Fix errno for IBM long double.
[glibc.git] / ChangeLog
blob45be576e1db610ab48e7aa9a56c0c1f9a3a50b59
1 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
3         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
4         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
5         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
6         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
8         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
9         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
10         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
11         defined.
12         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
13         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
15 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
17         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
18         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
19         is, either do nothing at all if __ASSUME_ACCEPT4, or
20         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
21         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
22         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
23         define.
24         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
25         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
26         internal_accept4 in socket directory.
28 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
30         * sysdeps/ia64/configure.in: New file.
32 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
34         [BZ #10162]
35         * sysdeps/ia64/memchr.S: Use speculative load.
37         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
38         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
39         use it.
41         * sysdeps/i386/__longjmp.S: Add .text.
42         * sysdeps/x86_64/__longjmp.S: Likewise.
44 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
46         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
47         __ASSUME_ACCEPT4 for IA-64.
49 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
51         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
53         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
54         (SOCKOP_accept4): Define.
56 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
58         Sun approved the change of the license.
59         * sunrpc/auth_des.c: Replace license text.
60         * sunrpc/auth_none.c: Likewise.
61         * sunrpc/auth_unix.c: Likewise.
62         * sunrpc/authdes_prot.c: Likewise.
63         * sunrpc/authuxprot.c: Likewise.
64         * sunrpc/bindrsvprt.c: Likewise.
65         * sunrpc/clnt_gen.c: Likewise.
66         * sunrpc/clnt_perr.c: Likewise.
67         * sunrpc/clnt_raw.c: Likewise.
68         * sunrpc/clnt_simp.c: Likewise.
69         * sunrpc/clnt_tcp.c: Likewise.
70         * sunrpc/clnt_udp.c: Likewise.
71         * sunrpc/clnt_unix.c: Likewise.
72         * sunrpc/des_crypt.c: Likewise.
73         * sunrpc/des_soft.c: Likewise.
74         * sunrpc/get_myaddr.c: Likewise.
75         * sunrpc/getrpcport.c: Likewise.
76         * sunrpc/key_call.c: Likewise.
77         * sunrpc/key_prot.c: Likewise.
78         * sunrpc/openchild.c: Likewise.
79         * sunrpc/pm_getmaps.c: Likewise.
80         * sunrpc/pm_getport.c: Likewise.
81         * sunrpc/pmap_clnt.c: Likewise.
82         * sunrpc/pmap_prot.c: Likewise.
83         * sunrpc/pmap_prot2.c: Likewise.
84         * sunrpc/pmap_rmt.c: Likewise.
85         * sunrpc/rpc/auth.h: Likewise.
86         * sunrpc/rpc/auth_unix.h: Likewise.
87         * sunrpc/rpc/clnt.h: Likewise.
88         * sunrpc/rpc/des_crypt.h: Likewise.
89         * sunrpc/rpc/key_prot.h: Likewise.
90         * sunrpc/rpc/netdb.h: Likewise.
91         * sunrpc/rpc/pmap_clnt.h: Likewise.
92         * sunrpc/rpc/pmap_prot.h: Likewise.
93         * sunrpc/rpc/pmap_rmt.h: Likewise.
94         * sunrpc/rpc/rpc.h: Likewise.
95         * sunrpc/rpc/rpc_des.h: Likewise.
96         * sunrpc/rpc/rpc_msg.h: Likewise.
97         * sunrpc/rpc/svc.h: Likewise.
98         * sunrpc/rpc/svc_auth.h: Likewise.
99         * sunrpc/rpc/types.h: Likewise.
100         * sunrpc/rpc/xdr.h: Likewise.
101         * sunrpc/rpc_clntout.c: Likewise.
102         * sunrpc/rpc_cmsg.c: Likewise.
103         * sunrpc/rpc_common.c: Likewise.
104         * sunrpc/rpc_cout.c: Likewise.
105         * sunrpc/rpc_dtable.c: Likewise.
106         * sunrpc/rpc_hout.c: Likewise.
107         * sunrpc/rpc_main.c: Likewise.
108         * sunrpc/rpc_parse.c: Likewise.
109         * sunrpc/rpc_parse.h: Likewise.
110         * sunrpc/rpc_prot.c: Likewise.
111         * sunrpc/rpc_sample.c: Likewise.
112         * sunrpc/rpc_scan.c: Likewise.
113         * sunrpc/rpc_scan.h: Likewise.
114         * sunrpc/rpc_svcout.c: Likewise.
115         * sunrpc/rpc_tblout.c: Likewise.
116         * sunrpc/rpc_util.c: Likewise.
117         * sunrpc/rpc_util.h: Likewise.
118         * sunrpc/rpcinfo.c: Likewise.
119         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
120         * sunrpc/rpcsvc/key_prot.x: Likewise.
121         * sunrpc/rpcsvc/klm_prot.x: Likewise.
122         * sunrpc/rpcsvc/mount.x: Likewise.
123         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
124         * sunrpc/rpcsvc/rex.x: Likewise.
125         * sunrpc/rpcsvc/rstat.x: Likewise.
126         * sunrpc/rpcsvc/rusers.x: Likewise.
127         * sunrpc/rpcsvc/sm_inter.x: Likewise.
128         * sunrpc/rpcsvc/spray.x: Likewise.
129         * sunrpc/rpcsvc/yppasswd.x: Likewise.
130         * sunrpc/rtime.c: Likewise.
131         * sunrpc/svc.c: Likewise.
132         * sunrpc/svc_auth.c: Likewise.
133         * sunrpc/svc_authux.c: Likewise.
134         * sunrpc/svc_raw.c: Likewise.
135         * sunrpc/svc_run.c: Likewise.
136         * sunrpc/svc_simple.c: Likewise.
137         * sunrpc/svc_tcp.c: Likewise.
138         * sunrpc/svc_udp.c: Likewise.
139         * sunrpc/svc_unix.c: Likewise.
140         * sunrpc/svcauth_des.c: Likewise.
141         * sunrpc/xcrypt.c: Likewise.
142         * sunrpc/xdr.c: Likewise.
143         * sunrpc/xdr_array.c: Likewise.
144         * sunrpc/xdr_float.c: Likewise.
145         * sunrpc/xdr_mem.c: Likewise.
146         * sunrpc/xdr_rec.c: Likewise.
147         * sunrpc/xdr_ref.c: Likewise.
148         * sunrpc/xdr_sizeof.c: Likewise.
149         * sunrpc/xdr_stdio.c: Likewise.
151         * po/da.po: Update from translation team.
153 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
155         * sysdeps/sh/____longjmp_chk.S: New file.
156         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
157         * sysdeps/sh/sh4/__longjmp.S: Likewise.
159 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
160             Ulrich Drepper  <drepper@redhat.com>
162         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
163         (__nscd_cache_search): Assume each entry in the
164         hash chain needs one hashentry and half of datahead.  Use
165         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
167 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
169         * posix/sys/wait.h: Fix typos.  Pretty printing.
170         * stdlib/stdlib.h: Likewise.  Correct comments.
172         [BZ #10159]
173         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
175         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
176         patch.
178 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
180         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
181         Use it if we absolutely cannot reach any more correct list elements
182         because that many do not fit into the currently mapped database.
184 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
186         * nscd/nscd_helper.c: Include stddef.h.
187         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
188         in a couple of places.  Return NULL if trail is not less than
189         datasize, don't consider dataheads with length smaller than
190         offsetof (struct datahead, data) + datalen.
191         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
192         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
193         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
194         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
195         * nscd/nscd_getai.c (__nscd_getai): Likewise.
196         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
197         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
199         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
200         Rename ...
201         (fallocate64): ... to this.
202         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
203         Rename ...
204         (fallocate64): ... to this.
205         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
206         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
207         fallocate64@@GLIBC_2.10.
208         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
209         fallocate64@@GLIBC_2.11.
210         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
212         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
213         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
215         * nscd/selinux.c (nscd_avc_destroy): Removed.
216         * nscd/selinux.h (nscd_avc_destroy): Likewise.
217         * nscd/nscd.c (termination_handler): Don't call
218         nscd_avc_destroy.
220 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
222         * include/atomic.h: Formatting.
223         (catomic_compare_and_exchange_val_acq): Don't define if already
224         defined by bits/atomic.h.
226 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
228         * math/libm-test.inc (expm1_test): Add test for range error.
230         * Versions.def: Add GLIBC_2.11 for libc.
231         * debug/Makefile (routines): Add longjmp_chk.
232         Add rules to build and run tst-longjmp_chk.
233         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
234         * debug/longjmp_chk.c: New file.
235         * debug/tst-longjmp_chk.c: New file.
236         * include/bits/setjmp2.: New file.
237         * include/stdio.h: Mark __fortify_fail as internal_function.
238         * setjmp/Makefile (headers): Add bits/setjmp2.h.
239         * setjmp/bits/setjmp2.h: New file.
240         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
241         of the aliases.
242         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
243         defined.
244         * sysdeps/i386/____longjmp_chk.S: New file.
245         * sysdeps/x86_64/____longjmp_chk.S: New file.
246         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
247         * sysdeps/x86_64/__longjmp.S: Likewise.
249         * version.h: Bump for 2.11 development.
251         * elf/check-execstack.c: New file.
252         * elf/Makefile: Add rules to build and run check-execstack.
254 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
256         * version.h (VERSION): Bump to 2.10.1.
258         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
259         compatibility functions.
260         * nss/getXXent_r.c: Likewise.
261         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
262         * gshadow/getsgnam_r.c: Likewise.
263         * gshadow/Version: Remove duplicate entries.
265         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
266         for recent processor.
267         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
268         Likewise.
270 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
272         * version.h (VERSION): Bump for 2.10 release.
273         * include/features.h (__GLIBC_MINOR__): Bump to 10.
275         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
276         same place we add ASFLAGS-config.
278 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
280         [BZ #10128]
281         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
282         or FORMERR and the other NOERROR, don't raise an error.
284 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
286         [BZ #10118]
287         * Makeconfig (+asflags): New variable based upon ASFLAG or
288         asflags-cpu.
289         (ASFLAGS): Add override to set ASFLAGS to +asflags.
290         * config.make.in (asflags-cpu): Add variable based upon
291         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
292         the assembler.
293         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
294         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
295         recognizes power6 instruction set due to passing -mcpu=power6 from
296         --with-cpu=power6 when compiling .S files.
297         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
298         Likewise.
299         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
300         Likewise.
301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
302         Likewise.
304 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
306         * string/stratcliff.c (do_test): Test for zero length
307         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
308         at the end of the page.
310 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
312         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
314         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
315         count is zero.
317         * po/da.po: Update from translation team.
319 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
321         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
322         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
324 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
326         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
327         and READ_IMPLIES_EXEC.
329 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
331         * po/da.po: Update from translation team.
333 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
335         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
336         comment change.
338 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
340         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
341         to MAP_ANON in PROT_NONE mmap64 call.
342         (open_archive): Likewise.
343         (file_data_available_p): Use mmap64 instead of mremap.
344         (enlarge_archive): Likewise.  Update head if ah->addr changed.
345         Attempt to reserve address space after mmap64 region.
347 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
349         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
350         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
351         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
353         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
354         atanh should set ERANGE.
356         [BZ #10087]
357         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
358         result of lookup to make call to implement STT_GNU_IFUNC.
359         (_dl_profile_fixup): Likewise.
360         Patch by H.J. Lu <hjl.tools@gmail.com>.
362         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
363         warning.
365         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
366         from definition.
368         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
369         label if it is not used.
371         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
372         of gmon_hist_hdr and gmon_hdr structures and use them.
373         * elf/sprof.c: Likewise.
375         * elf/dl-load.c (open_verify): Add temporary variable to avoid
376         warning.
378         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
380         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
381         to avoid cast.
383         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
384         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
385         to avoid warnings.
386         (iruserok_af): Use ss_family instead of casts.
388         * gmon/gmon.c (write_hist): Define real-type variant of
389         gmon_hist_hdr structure and use it.
390         (write_gmon): Likewise for gmon_hdr.
392         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
393         function if we are not going to define it.
394         * sysdeps/unix/sysv/linux/writev.c: Likewise.
396         * inet/inet6_option.c (option_alloc): Add temporary variable to
397         avoid warning.
399         * libio/strfile.h (struct _IO_streambuf): Use correct type and
400         name of VTable element.
401         * libio/iovsprintf.c: Avoid casts to avoid warnings.
402         * libio/iovsscanf.c: Likewise.
403         * libio/vasprintf.c: Likewise.
404         * libio/vsnprintf.c: Likewise.
405         * stdio-common/isoc99_vsscanf.c: Likewise.
406         * stdlib/strfmon_l.c: Likewise.
407         * debug/vasprintf_chk.c: Likewise.
408         * debug/vsnprintf_chk.c: Likewise.
409         * debug/vsprintf_chk.c: Likewise.
411         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
412         function pointers.
414 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
416         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
418 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
420         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
422         * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
423         * sysdeps/i386/fpu/s_tanf.S: Likewise.
424         * sysdeps/i386/fpu/s_tanl.S: Likewise.
425         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
426         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
427         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
428         * math/libm-test.inc: Add tests for errno after tan calls with
429         ±Inf.
431         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
432         errno value vor pow(+-0,neg).
433         * math/libm-test.inc (pow_test): Add tests for errno value for
434         pole errors.
436         * math/w_fmod.c: Also handle x=±Inf as error.
437         * math/w_fmodf.c: Likewise.
438         * math/w_fmodl.c: Likewise.
439         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
440         x=±Inf or y=0.
442         * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
443         * sysdeps/i386/fpu/s_cosf.S: Likewise.
444         * sysdeps/i386/fpu/s_cosl.S: Likewise.
445         * sysdeps/i386/fpu/s_sin.S: Likewise.
446         * sysdeps/i386/fpu/s_sinf.S: Likewise.
447         * sysdeps/i386/fpu/s_sinl.S: Likewise.
448         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
449         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
450         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
451         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
452         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
453         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
454         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
455         * math/libm-test.inc: Add tests for errno after sin/cos calls with
456         ±Inf.
458         * stdlib/strtod_l.c (round_and_return): We have to set errno to
459         ERANGE for underflows.
460         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
462         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
463         the 2001 revision.
465         * libio/tst-widetext.input: Remove surrogates.
467         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
469         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
470         for lgamma should set errno to ERANGE, not EDOM.
471         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
473 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
475         [BZ #10093]
476         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
477         UTF-16 surrogates.
479         * locale/programs/locarchive.c (enlarge_archive): Conserve address
480         space when temporarily mapping the whole content of the old file.
482         [BZ #10100]
483         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
484         not zero.
486 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
488         * iconvdata/sjis.c (BODY): Don't advance inptr before
489         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
490         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
491         two byte chars.
493 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
495         * locale/locarchive.h (struct locarhandle): Rename len field to
496         mmaped and add new reserved field.
497         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
498         (create_archive): Reserve address space and then map file into it.
499         (open_archive): Likewise.
500         (file_data_available_p): New function.
501         (compare_from_file): New function.
502         (close_archive): Adjust to member name changes.
503         (add_locale): Before comparing locale data, check it is mapped.
504         Otherwise fall back to reading from the file.
506 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
508         * stdio-common/psiginfo.c: Include <errno.h>.
510 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
512         [BZ #9920]
513         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
514         to get consistency between 32 and 64 bit architectures.
516         [BZ #10052]
517         * sysdeps/unix/make-syscalls.sh: Add rule to create target
518         directory for dummy syscall rules.
519         Patch by Chris Steinbroner <hesh@pobox.com>.
521 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
523         [BZ #10092]
524         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
525         MNT_EXPIRE.
527 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
529         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
530         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
532 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
534         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
535         data from vector to temporary buffer and call PWRITEV after it
536         instead of vice versa.
537         * sysdeps/posix/preadv.c: Fix up comment.
538         * misc/preadv.c: Likewise.
539         * misc/preadv64.c: Likewise.
540         * misc/pwritev.c: Likewise.
541         * misc/pwritev64.c: Likewise.
542         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
544 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
546         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
548         * shadow/Makefile (tests): Add tst-shadow.
549         * shadow/tst-shadow.c: New file.
551         [BZ #9955]
552         * gshadow/Makefile: New file.
553         * gshadow/Versions: New file.
554         * gshadow/fgetsgent.c: New file.
555         * gshadow/fgetsgent_r.c: New file.
556         * gshadow/getsgent.c: New file.
557         * gshadow/getsgent_r.c: New file.
558         * gshadow/getsgnam.c: New file.
559         * gshadow/getsgnam_r.c: New file.
560         * gshadow/gshadow.h: New file.
561         * gshadow/putsgent.c: New file.
562         * gshadow/sgetsgent.c: New file.
563         * gshadow/sgetsgent_r.c: New file.
564         * gshadow/tst-gshadow.c: New file.
565         * include/gshadow.h: New file.
566         * Makeconfig (all-subdirs): Add gshadow.
567         * Makefile (installed-headers): Add gshadow/gshadow.h.
568         * nss/Makefile (databases): Add sgrp.
569         * nss/Versions: Add gshadow functions as private exports.
570         * nss/nsswitch.conf: Add gshadow entry.
571         * nss/sgrp-lookup.c: New file.
572         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
573         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
574         * nss/nss_files/files-sgrp.c: New file.
575         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
576         * sysdeps/unix/sysv/linux/paths.h: Likewise.
578 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
580         * stdio-common/printf.h: Add missing const to register_printf_modifier.
581         * stdio-common/reg-modifier.c: Likewise.
583 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
585         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
586         is no FPU.
588 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
590         [BZ #10086]
591         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
592         headers up to 2.6.30.
594         * po/ca.po: Update from translation team.
596 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
598         [BZ #10069]
599         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
600         an object that uses static TLS if the TLS modid is higher than the
601         reserve we always allocate.  At least for multi-threaded code.
603 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
605         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
606         Numerically stable check for valid width.
608         * locale/programs/locarchive.c (open_archive): Map the entire file
609         and not just the administrative data.
610         (add_locale): When we find a hash sum match compare the content
611         to be sure.
613         * malloc/malloc.c (malloc_info): Output address space information.
615 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
617         * malloc/malloc.c (malloc_info): Also output system memory information.
619         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
620         architectures have preadv/pwritev in 2.6.30.
622         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
623         * sysdeps/posix/readv.c: Likewise.
624         Reported by Markus Armbruster <armbru@redhat.com>.
626         * malloc/hooks.c (top_check): Force hook value into register.
628 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
630         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
631         calls to _dl_relocate_object.
633 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
635         [BZ #9957]
636         * malloc/malloc.c (force_reg): Define.
637         (sYSMALLOc): Load hook variable into variable
638         before test and force into register.
639         (sYSTRIm): Likewise.
640         (public_mALLOc): Force hook value into register.
641         (public_fREe): Likewise.
642         (public_rEALLOc): Likewise.
643         (public_mEMALIGn): Likewise.
644         (public_vALLOc): Likewise.
645         (public_pVALLOc): Likewise.
646         (public_cALLOc): Likewise.
647         (__posix_memalign): Likewise.
648         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
649         before test and force into register.
650         * malloc/hooks.c (top_check): Likewise.
651         (public_sET_STATe): Pretty printing.
653         * resolv/res_send.c (send_dg): Don't just ignore the result we got
654         in case we only receive one reply in single-request mode.
656 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
658         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
659         are dlopened in statically linked program even for __LM_ID_CALLER.
661 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
663         * resolv/res_send.c (send_dg): Don't switch into single-request
664         mode if we already are in it.
666 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
668         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
669         are always at least 4 bytes in the returned line.
671 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
673         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
674         __libc_use_alloca (8192), if the stack is too small use 512 bytes
675         instead of 8K.  Stop searching in /proc/stat after hitting first
676         line not starting with cpu.
677         (next_line): Truncate too long
678         lines at buffer size * 3/4 instead of pretending there were line
679         breaks inside of large lines.
681 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
683         * sysdeps/x86_64/mp_clz_tab.c: New file.
685 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
686             Ulrich Drepper  <drepper@redhat.com>
688         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
689         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
690         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
692 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
694         * sysdeps/sh/libc-tls.c: New file.
696         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
698 2009-04-14  Roland McGrath  <roland@redhat.com>
700         * elf/elf.h: Add various missing ARM constants, to match binutils.
702 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
704         Optimizations from GMP.
705         * sysdeps/x86_64/add_n.S: New file.
706         * sysdeps/x86_64/addmul_1.S: New file.
707         * sysdeps/x86_64/lshift.S: New file.
708         * sysdeps/x86_64/mul_1.S: New file.
709         * sysdeps/x86_64/rshift.S: New file.
710         * sysdeps/x86_64/sub_n.S: New file.
711         * sysdeps/x86_64/submul_1.S: New file.
713 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
715         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
716         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
717         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
718         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
720 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
722         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
723         preadv/pwritev.
725 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
727         * sysdeps/x86-64/strrchr.S: New file.
729 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
731         * stdio-common/printf.h (struct printf_info): Add user element.
732         New types printf_arginfo_size_function, printf_va_arg_function.
733         Declare register_printf_specifier, register_printf_modifier,
734         register_printf_type.
735         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
736         (union printf_arg): Add pa_user element.
737         Adjust __printf_arginfo_table type.
738         Add __printf_va_arg_table, __printf_modifier_table,
739         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
740         declarations.
741         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
742         If registered arginfo call failed try normal specifier.
743         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
744         function.
745         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
746         * stdio-common/Versions: Export register_printf_modifier,
747         register_printf_type, and register_printf_specifier for GLIBC_2.10.
748         * stdio-common/reg-modifier.c: New file.
749         * stdio-common/reg-type.c: New file.
750         * stdio-common/reg-printf.c (__register_printf_specifier): New
751         function.  Mostly the old __register_printf_function function but
752         uses locking and type of third parameter changed.
753         (__register_printf_function): Implement using
754         __register_printf_specifier.
755         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
756         calls to arginfo functions.  Allocate enough memory for user-defined
757         types.  Call new va_arg functions to get user-defined types.
758         Try installed handlers even for existing format specifiers first.
760 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
762         * sysdeps/x86_64/rawmemchr.S: New file.
764         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
765         Simplified code and possible copy problem fixed.
767         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
768         function if it is not defined.  Add some necessary casts.
769         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
771         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
772         have preadv/pwritev in 2.6.30.
774 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
776         * malloc/malloc.c (malloc_info): New function.
777         * malloc/malloc.h: Declare it.
778         * malloc/Versions: Export malloc_info for GLIBC_2.10.
780         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
781         to avoid PLT slot.
783         * malloc/malloc.c (_int_realloc): Add parameter with old block
784         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
785         Adjust all callers.
786         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
788 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
790         * sysdeps/x86_64/strchrnul.S: New file.
792         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
793         depending libcrypt on -lfreebl3.
795         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
796         preadv/pwritev in 2.6.30.
798         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
799         instead of __strcasecmp.
801         * string/stratcliff.c (do_test): Add memchr tests..
802         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
803         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
804         first read quad word.
806 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
808         * string/strverscmp.c (__strverscmp): Fix last cleanups.
809         * string/tst-svc.input: Add new test case.
810         * string/tst-svc.expect: Adjust.
811         * string/Makefile: Don't ignore tst-svc error.
813         * sysdeps/x86_64/memchr.S: New file.
815         * resolv/resolv.h (RES_SNGLKUP): Define.
816         * resolv/res_init.c (res_setoptions): Recognize single-request option.
817         * resolv/res_send.c (send_dg): If we sent two requests at once and
818         only get one reply before timeout switch to mode where we send the
819         second request only after the first answer has been received.
821 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
823         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
824         * sysdeps/x86_64/strchr.S: Likewise.
826 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
828         * configure.in: We need to test for the compiler earlier.
830         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
831         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
832         GLIBC_2.10.
833         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
834         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
835         and pwritev.
836         * misc/preadv.c: New file.
837         * misc/preadv64.c: New file.
838         * misc/pwritev.c: New file.
839         * misc/pwritev64.c: New file.
840         * sysdeps/posx/preadv.c: New file.
841         * sysdeps/posx/preadv64.c: New file.
842         * sysdeps/posx/pwritev.c: New file.
843         * sysdeps/posx/pwritev64.c: New file.
844         * sysdeps/unix/sysv/linux/preadv.c: New file.
845         * sysdeps/unix/sysv/linux/preadv64.c: New file.
846         * sysdeps/unix/sysv/linux/pwritev.c: New file.
847         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
848         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
849         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
851         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
852         compatibility code.
853         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
855         * sysdeps/unix/sysv/linux/kernel-features.h: Define
856         __ASSUME_COMPLETE_READV_WRITEV.
857         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
858         with modern kernels.
859         * sysdeps/unix/sysv/linux/writev.c: Likewise.
861         * sysdeps/posix/readv.c: Since read is a cancellation point we have
862         to free a possible malloced buffer in case of cancellation.
863         * sysdeps/posix/writev.c: Likewise for write.
865 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
867         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
869         * configure.in: Recognize --enable-nss-crypt.
870         * config.make.in: Add nss-crypt entry.
871         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
872         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
873         and include path for NSS directory to compiler for md5-crypt,
874         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
875         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
876         function implementation, use NSS.  Introduce wrappers around the
877         hash function calls.  Little code size optimization.
878         * crypt/sha256-crypt.c: Likewise.
879         * crypt/sha512-crypt.c: Likewise.
880         * scripts/check-local-headers.sh: Ignore nss3 directory.
882         * configure.in: Rename pic_default to libc_cv_pic_default.
883         * config.make.in: Likewise.
885 2009-04-01  Roland McGrath  <roland@redhat.com>
887         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
888         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
889         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
890         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
891         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
892         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
893         (R_SPARC_NUM): Update.
894         From Dave Miller <davem@davemloft.net>.
896 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
898         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
900 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
902         * elf/dl-open.c: Keep track of used name spaces and only iterate over
903         those which are used.
904         * elf/dl-addr.c: Likewise.
905         * elf/dl-caller.c: Likewise.
906         * elf/dl-fini.c: Likewise.
907         * elf/dl-iteratephdr.c: Likewise.
908         * elf/dl-libc.c: Likewise.
909         * elf/dl-load.c: Likewise.
910         * elf/dl-support.c: Likewise.
911         * elf/dl-sym.c: Likewise.
912         * elf/rtld.c: Likewise.
913         * sysdeps/generic/ldsodefs.h: Likewise.
915         * elf/dl-load.c: Remove support for systems without MAP_ANON.
916         * elf/dl-minimal.c: Likewise.
917         * elf/dl-misc.c: Likewise.
918         * elf/rtld.c: Likewise.
919         * sysdeps/generic/ldsodefs.h: Likewise.
921 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
923         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
924         Avoid reuse of complex expression.
926         * po/fr.po: Update from translation team.
928 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
930         * include/dirent.h: Yet more changes to match sort function type
931         change.
932         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
933         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
934         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
936 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
938         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
940 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
942         * nscd/connections.c (restart): Try to preserve the process name
943         by reading the /proc/self/exe symlink and using the return name.
944         Patch by Jeff Bastian <jbastian@redhat.com>.
946 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
948         [BZ #9733]
949         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
950         if we are not loading a new audit library.
951         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
952         Only use profiling trampoline for auditing if we are not relocating
953         an audit library.
954         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
955         * elf/rtld.c: Likewise.
956         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
958         * elf/rtld.c (dl_main): Extend help message for --audit option.
960         [BZ #9759]
961         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
962         alphasort64, versionsort, and versionsort64 to POSIX 2008.
963         * dirent/alphasort.c: Adjust implementation to type change.
964         * dirent/alphasort64.c: Likewise.
965         * dirent/scandir.c: Likewise.
966         * dirent/versionsort.c: Likewise.
967         * dirent/versionsort64.c: Likewise.
968         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
969         declaration.
970         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
971         declaration.
973         [BZ #9880]
974         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
975         correctly.  Set segleft member in output as required.
976         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
977         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
979         [BZ #9881]
980         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
981         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
982         * inet/Makefile (tests): Add tst-inet6_rth.
983         * inet/tst-inet6_rth.c: New file.
985         [BZ #5807]
986         * string/strlen.c (strlen): Fix omission in the expression to test
987         for NUL bytes.
989 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
991         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
993         * elf/dl-runtime.c (reloc_offset): Define.
994         (reloc_index): Define.
995         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
996         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
997         computing index from reloc_offset.
998         (_dl_call_pltexit): Likewise.
999         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
1000         the relocation index to _dl_fixup.
1001         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
1002         _dl_call_pltexit.
1003         * sysdeps/x86_64/dl-runtime.c: New file.
1005         [BZ #9893]
1006         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
1007         alignment of La_x86_64_regs.  Store xmm parameters.
1008         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
1010         [BZ #9913]
1011         * string/strverscmp.c (__strverscmp): Fix case of different digits
1012         in fractional part of string.
1013         Patch by Jingyu Liu <jyliu@fortinet.com>.
1014         * string/Makefile (tests): Add tst-svc2.
1015         * string/tst-svc2.c: New file.
1017         * string/strverscmp.c (__strverscmp): Optimize size of tables.
1019         * locale/iso-639.def: Add Min Nan.
1021 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1023         [BZ #9948]
1024         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
1026 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
1028         * elf/dl-sysdep.c (auxvars): Compress data structure.
1030         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
1031         STT_GNU_IFUNC handling.
1032         (elf_machine_rela): Likewise.
1034 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
1036         * config.h.in (USE_MULTIARCH): Define.
1037         * configure.in: Handle --enable-multi-arch.
1038         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
1039         (_dl_fixup_profile): Likewise.
1040         * elf/do-lookup.c (dl_lookup_x): Likewise.
1041         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
1042         * elf/elf.h (STT_GNU_IFUNC): Define.
1043         * include/libc-symbols.h (libc_ifunc): Define.
1044         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
1045         framework in init-arch.h to get CPUID values.
1046         * sysdeps/x86_64/multiarch/Makefile: New file.
1047         * sysdeps/x86_64/multiarch/init-arch.c: New file.
1048         * sysdeps/x86_64/multiarch/init-arch.h: New file.
1049         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
1051         * config.make.in (experimental-malloc): Define.
1052         * configure.in: Handle --enable-experimental-malloc.
1053         * malloc/Makefile: Handle experimental-malloc flag.
1054         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
1055         * malloc/arena.c: Likewise.
1056         * malloc/hooks.c: Likewise.
1057         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
1059 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
1061         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
1062         prediction.  A few size optimizations.
1064 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
1066         * time/tzset.c: Optimize a bit for size.
1068 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
1070         * include/stdio.h (fmemopen): Add libc_hidden_proto.
1071         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
1073         * elf/sprof.c: Avoid warning about multi-line comment.
1075 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
1077         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
1078         DST name.
1079         * time/tst-posixtz.c: Add tests for quoted timezone names.
1081 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
1083         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
1084         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
1085         200809L instead of 200112L.
1086         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
1087         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
1089         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
1090         instead of __quick_exit_funcs to __run_exit_handlers.
1091         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
1092         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
1093         (__cxa_at_quick_exit): Remove attribute_hidden.
1094         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
1095         to __run_exit_handlers.
1096         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
1097         attribute_hidden.
1099 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
1101         * po/id.po: Update from translation team.
1103 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
1105         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
1106         .machine push; .machine "power6" and .machine pop around mtfsf
1107         insns outside of _ARCH_PWR6 define.
1108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1109         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1110         Likewise.
1111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1112         Likewise.
1113         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
1114         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
1115         relax_fenv_state): Likewise.
1117 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
1119         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
1120         cxa_at_quick_exit.
1121         (static-only-routines): Add at_quick_exit.
1122         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
1123         GLIBC_2.10.
1124         * stdlib/quick_exit.c: New file.
1125         * stdlib/at_quick_exit.c: New file.
1126         * stdlib/cxa_at_quick_exit.c: New file.
1127         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
1128         it appropriately.
1129         (__internal_atexit): New function.
1130         (__new_exitfn): Now takes parameter to point to the list to use.
1131         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
1132         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
1133         (exit): ...here.  Just call __run_exit_handlers appropriately.
1134         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
1135         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
1136         * stdlib/on_exit.c: Adjust call to __new_exitfn.
1137         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
1139         * po/id.po: Update from translation team.
1141 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
1143         * po/ru.po: Update from translation team.
1145 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
1147         * po/nl.po: Update from translation team.
1149 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
1151         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
1152         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1153         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1154         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1155         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1156         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1157         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1159         * po/pl.po: Update from translation team.
1161 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
1163         [BZ #7083]
1164         * sysdeps/unix/sysv/linux/fallocate.c: New file.
1165         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
1166         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
1167         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
1168         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
1169         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
1170         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
1171         for GLIBC_2.10.
1172         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1173         Add fallocate and fallocate64.
1175         * io/fcntl.h: Pretty printing.
1177 2009-03-02  Richard Guenther  <rguenther@suse.de>
1179         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
1180         attribute also for non-C99 inline semantics variant.
1182 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1184         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
1185         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
1186         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
1187         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
1188         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
1189         Likewise.
1190         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
1191         Likewise.
1193 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
1195         * po/cs.po: Update from translation team.
1197 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
1199         * po/bg.po: Update from translation team.
1200         * po/sv.po: Likewise.
1201         * po/fi.po: Likewise.
1202         * po/vi.po: Likewise.
1204 2009-02-27  Roland McGrath  <roland@redhat.com>
1206         * Makeconfig (%.v.i): Depend on Makeconfig.
1207         Exclude % lines from initial #-comment removal.
1209 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
1211         * po/ko.po: Update from translation team.
1213 2009-02-26  Roland McGrath  <roland@redhat.com>
1215         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
1216         avoids unused warning.
1218 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
1219             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1221         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
1222         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
1223         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
1224         and asm/user.h.  Include asm/ptrace.h.
1225         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
1226         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1227         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
1228         Undefine.
1229         (start_thread): Don't undefine.
1230         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
1231         Define.
1233 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
1235         * wctype/wctype.h: The *_l functions are in POSIX 2008.
1236         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
1237         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
1238         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
1239         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
1240         200112L to 200809L.
1241         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
1242         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1243         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
1244         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1245         _SC_THREAD_ROBUST_PRIO_PROTECT.
1246         * posix/unistd.h: fexecve is in POSIX 2008.
1247         * time/time.h: strftime_l is in POSIX 2008.
1248         * io/sys/stat.h: futimens is in POSIX 2008.
1249         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
1250         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
1251         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
1252         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
1253         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
1254         open_memstream, and vdprintf are in POSIX 2008.
1256 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
1258         * include/features.h: Define macros for XPG7/POSIX 2008.
1259         * ctype/ctype.h: The *_l functions are in POSIX 2008.
1260         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
1261         POSIX 2008.
1262         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
1263         * locale/xlocale.h: Define locale_t type.
1264         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
1265         in POSIX 2008.  Don't define locale_t here.
1266         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
1267         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
1268         UTIME_OMIT only with __USE_ATFILE.
1269         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
1270         * stdio-common/psiginfo.c: New file.
1271         * stdio-common/psiginfo-data.h: New file.
1272         * stdio-common/psiginfo-define.h: New file.
1273         * stdio-common/Makefile (routines): Add psiginfo.
1274         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
1275         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1276         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1277         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1278         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1279         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1280         * io/sys/stat.h: Move mknodat definition into same conditional as
1281         mknod.
1282         * time/sys/time.h: futimesat is not among the functions accepted
1283         into the POSIX standard.
1285         * include/features.h: If no feature selection given and we select
1286         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
1287         * posix/Versions: Export __posix_getopt.
1288         * posix/getopt.c (_getopt_initialize): Take additional parameter.
1289         Use it to alternatively initialize __posixly_correct.
1290         (_getopt_internal_r): Take addition parameter.  Pass on to
1291         _getopt_initialize.
1292         (_getopt_internal): Take addition parameter.  Pass on to
1293         _getopt_internal_r.
1294         (getopt): Pass additional zero to _getopt_internal.
1295         (__posix_getopt): New function.
1296         * posix/getopt.h: Add redirection for getopt.
1297         * posix/getopt1.c (getopt_long): Pass additional zero to
1298         _getopt_internal.
1299         (getopt_long_only): Likewise.
1300         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
1301         (_getopt_long_only_r): Likewise.
1302         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
1303         _getopt_internal_r.
1305 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
1307         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
1308         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1309         * sysdeps/posix/sysconf.c (__sysconf): Handle
1310         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
1311         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1313 2009-02-24  Roland McGrath  <roland@redhat.com>
1315         [BZ #9895]
1316         * README.template: Reworded not to use substituted version number.
1317         Renamed to ...
1318         * README: ... here (no longer generated).
1319         * Makefile (README): Target removed.
1321 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
1323         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
1324         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
1325         instead.
1327         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
1329         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
1331 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
1333         * po/bg.po: Update from translation team.
1335 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
1337         * stdlib/monetary.h: Uglify function parameter names.
1338         * sunrpc/rpc/pmap_clnt.h: Likewise.
1339         * sunrpc/rpc/svc.h: Likewise.
1340         * sunrpc/rpc/xdr.h: Likewise.
1341         * sunrpc/rpc/clnt.h: Likewise.
1342         * resolv/netdb.h: Likewise.
1343         * resolv/arpa/nameser.h: Likewise.
1344         * resolv/resolv.h: Likewise.
1345         * argp/argp.h: Likewise.
1346         * locale/langinfo.h: Likewise.
1347         * io/sys/stat.h: Likewise.
1348         * posix/spawn.h: Likewise.
1349         * nis/rpcsvc/nislib.h: Likewise.
1350         * malloc/obstack.h: Likewise.
1351         * sysdeps/ia64/bits/link.h: Likewise.
1352         * sysdeps/i386/bits/link.h: Likewise.
1353         * sysdeps/s390/bits/link.h: Likewise.
1354         * sysdeps/powerpc/bits/link.h: Likewise.
1355         * sysdeps/x86_64/bits/link.h: Likewise.
1356         * sysdeps/sparc/bits/link.h: Likewise.
1357         * sysdeps/sh/bits/link.h: Likewise.
1358         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
1359         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
1360         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
1361         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
1363 2008-12-01  Fredrik Unger  <fred@tree.se>
1365         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
1366         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
1367         _FP_UNPACK_RAW_2, fix up first argument.
1369 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
1371         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
1372         (GET_NPROCS_PARSER): Change parameters and use next_line.
1373         (__get_nprocs): Rewrite to not use stdio routines.
1374         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
1375         Change parameters and use next_line.
1377 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
1379         [BZ #5381]
1380         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
1381         Change mempool_alloc prototype.
1382         * nscd/mem.c (gc): Don't handle mem_in_flight.
1383         (mempool_alloc): Third parameter now only indicates whether this is the
1384         first call (to allocate data) or not.  If it is, get db rdlock.
1385         Release it on error.  Don't handle mem_in_flight.
1386         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
1387         Adjust third parameter of mempool_alloc calls.
1388         Nothing to do here in case mempool_alloc fails.
1389         Avoid local variable shadowing parameter.  No need to get db rdlock
1390         before calling cache_add.
1391         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
1392         no mem_in_flight array anymore.
1393         * nscd/connections.c: Remove definition and handling of mem_in_flight.
1394         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
1395         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
1396         in case mempool_alloc fails. No need to get db rdlock before calling
1397         cache_add.
1398         * nscd/hstcache.c (cache_addhst): Likewise.
1399         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1400         * nscd/servicescache.c (cache_addserv): Likewise.
1401         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
1403 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
1405         * po/lt.po: Update from translation team.
1407 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
1409         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
1410         defined, allow additional data to be added using the optional
1411         MORE_ELF_HEADER_DATA macro.
1412         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
1413         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
1415 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
1417         * include/atomic.h: Define catomic_and if not already defined.
1418         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
1419         * sysdeps/i386/i486/bits/atomic.h: Likewise.
1421 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
1423         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
1424         Change all callers.
1425         (_int_realloc): Likewise.  Third argument is now padded size
1426         All _int_* functions are now static.
1428         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
1429         * malloc/arena.c: Likewise.
1430         * include/malloc.h: Remove now unnecessary declarations of the _int_*
1431         functions.
1433         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
1434         easily.
1436         * malloc/malloc.c: Add branch prediction for use of the hooks.
1438         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
1440 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1442         [BZ #7095]
1443         * bits/confname.h: Add SUSv7 macros for getconf environments.
1444         * bits/environments.h: Likewise.
1445         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
1446         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
1447         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
1448         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
1449         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
1450         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
1451         * posix/getconf.c: Likewise.
1452         * posix/sysconf.c: Likewise.
1453         * sysdeps/posix/sysconf.c: Likewise.
1454         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
1455         environments.
1457 2009-01-16  Petr Baudis  <pasky@suse.cz>
1459         [BZ #9753]
1460         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
1461         even if we currently have zero nscount.
1463 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1465         [BZ #9781]
1466         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
1467         the input line is too long.
1469         * po/Makefile (libc.pot): Add f_print as function taking c-format
1470         parameter.
1472         * debug/xtrace.sh: Unify translatable messages.
1473         * elf/ldd.bash.in: Likewise.
1474         * elf/sprof.c: Likewise.
1475         * locale/programs/locale.c: Likewise.
1476         * malloc/memusage.sh: Likewise.
1477         * nss/getent.c: Likewise.
1479 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
1481         * debug/pcprofiledump.c (print_version,
1482         argp_program_version_hook): New function.
1483         * elf/ldconfig.c (more_help): New function.
1484         (argp): Use it.
1485         * elf/sln.c (usage): New function.
1486         (main): Support --help and --version.
1487         * malloc/memusagestat.c (print_version): New function.
1488         (argp_program_version_hook): New variable.
1489         * nscd/nscd.c (more_help): New function.
1490         (argp): Use it.
1491         * posix/getconf.c (main): Send --version output to stdout.
1492         Support --help.
1493         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
1494         arguments.  All callers changed.
1495         (print_version): New function.
1496         (parseargs): Support --help and --version.
1497         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
1498         changed.
1499         (print_version): New function.
1500         (main): Use getopt_long.  Support --help and --version.
1501         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
1502         --version.
1504 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1506         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
1507         (update_data): Fix handling of wrapping back
1508         to the beginning of the buffer.
1510         [BZ #9823]
1511         * stdio-common/psignal.c (psignal): Fix test for empty string.
1513 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
1515         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
1516         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
1517         move _null_auth to .rodata.
1519         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
1520         value of 24.
1522         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
1524         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
1525         today than when the original code was written.  Use larger
1526         buffers.  This also makes it unnecessary to have stat information,
1527         if this causes extra efforts.
1528         (__opendir): In case O_DIRECTORY works, don't call fstat just for
1529         __alloc_dir.
1531 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
1533         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
1534         is set.
1535         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
1536         * sysdeps/sh/sh4/__longjmp.S: Likewise.
1537         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
1538         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
1539         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
1540         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1542 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
1544         * po/ru.po: Update from translation team.
1546 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
1548         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
1549         Add _tid slot to maintain consistency with kernel.
1551 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
1553         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
1554         incomplete characters at end of input buffer.
1555         * libio/Makefile (tests): Add tst-fgetwc.
1556         * libio/tst-fgetwc.c: New file.
1557         * libio/tst-fgetwc.input: New file.
1559 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
1561         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
1563 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
1565         [BZ #9793]
1566         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
1567         *OUTBUFSTART unless the whole output fit into the buffer.
1568         * iconv/Makefile (tests): Add tst-iconv4.
1569         * iconv/tst-iconv4.c: New file.
1571 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
1573         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
1574         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1576 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
1578         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
1579         newer linker scripts.
1581 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
1583         [BZ #7040]
1584         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
1585         inotify_rm_watch should have type int.
1587 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
1589         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1590         Make aligned_restore_vmx a local symbol.
1591         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
1592         Likewise.
1594 2009-01-30  Andreas Jaeger  <aj@suse.de>
1596         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
1597         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
1598         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
1599         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
1600         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
1601         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
1602         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
1604 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
1606         [BZ #9726]
1607         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
1608         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
1610 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
1612         [BZ #9726]
1613         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1614         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1616         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1618 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
1620         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
1621         memcpy instead of memcmp.
1622         (_dl_setup_pointer_guard): Likewise.
1624 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
1626         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
1627         manipulated brk, use malloc_printerr.
1628         * misc/sbrk.c (__sbrk): Better error handling for nonsense
1629         requests.
1631 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
1633         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
1634         rindex): For C++ add inlines so that they can be recognized as
1635         builtins.
1636         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
1638 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
1639             Jakub Jelinek  <jakub@redhat.com>
1641         * string/string.h: Define correct C++ prototypes for gcc 4.4.
1642         * wcsmbs/wchar.h: Likewise.
1644 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
1646         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
1647         (stackinfo_sub_sp): Define.
1649 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
1651         [BZ #9750]
1652         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
1653         * include/alloca.h (alloca_account): Define.
1654         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
1655         (stackinfo_sub_sp): Define.
1657         * nscd/connections.c (nscd_init): If database file access fails
1658         check whether this is due to permission problems and bail in that
1659         case.
1661         [BZ #9741]
1662         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
1663         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
1665 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1667         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
1668         Add "t" to clobber list.
1669         (INTERNAL_SYSCALL_NCS): Likewise.
1671 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
1673         * nss/getent.c (print_networks): Don't print comma between aliases.
1675 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
1677         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
1679         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
1680         the hash table.
1681         * misc/Makefile (tests): Add bug-hsearch1.
1682         * misc/bug-hsearch1.c: New file.
1684 2009-01-22  Roland McGrath  <roland@redhat.com>
1686         * Makeconfig (%.v.i): Strip trailing # comments,
1687         not only whole-line comments.
1689 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
1691         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
1692         one parameter.  If non-NULL use it to initialize return value.
1693         (_dl_setup_pointer_guard): New function.
1694         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1695         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
1696         * elf/rtld.c (security_init): Pass _dl_random to
1697         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
1698         pointer_chk_guard.
1699         * elf/dl-sysdep.c (_dl_random): New variable.
1700         (_dl_sysdep_start): Handle AT_RANDOM.
1701         (_dl_show_auxv): Likewise.
1702         * elf/dl-support.c (_dl_random): New variable.
1703         (_dl_aux_init): Handle AT_RANDOM.
1704         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
1705         to _dl_setup_stack_chk_guard.
1707         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
1709 2009-01-10  Roland McGrath  <roland@redhat.com>
1711         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
1713 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
1715         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
1717         [BZ #9706]
1718         * nss/nss_files/files-parse.c (strtou32): New function.
1719         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
1720         across 32-bit and 64-bit platforms.
1721         (INT_FIELD_MAYBE_NULL): Likewise.
1723 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
1725         [BZ #9720]
1726         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
1727         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
1728         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
1729         Likewise.
1731 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
1733         [BZ #697]
1734         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
1735         being NULL also if there are no backreferences.
1736         * posix/rxspencer/tests: Add testcases.
1738 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
1740         [BZ #9697]
1741         * posix/bug-regex17.c: Add testcases.
1742         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
1743         handling.
1745 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1747         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
1748         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
1749         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
1750         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
1751         for elf subdir.
1752         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
1753         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
1754         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
1755         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
1756         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
1757         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1759 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
1761         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
1762         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
1763         re_string_skip_chars, re_string_reconstruct): Likewise.
1764         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
1766 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
1768         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
1769         adjust the buffer alignment.
1771 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1773         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
1774         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
1775         net/route.h.
1777         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
1778         flavor to description only when flavor is not NULL.
1780         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
1781         mutex after SIGIO/SIGURG lookup loop.
1783 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1785         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
1787 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
1789         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
1790         handling.
1792 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
1794         * sysdeps/unix/sysv/linux/kernel-features.h
1795         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
1797         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
1798         if no output is written.
1800         * version.h: Bump to 2.10 development.
1802         * posix/getconf.c: Update copyright year.
1803         * nss/getent.c: Likewise.
1804         * iconv/iconvconfig.c: Likewise.
1805         * iconv/iconv_prog.c: Likewise.
1806         * elf/ldconfig.c: Likewise.
1807         * catgets/gencat.c: Likewise.
1808         * csu/version.c: Likewise.
1809         * elf/ldd.bash.in: Likewise.
1810         * elf/sprof.c (print_version): Likewise.
1811         * locale/programs/locale.c: Likewise.
1812         * locale/programs/localedef.c: Likewise.
1813         * nscd/nscd.c (print_version): Likewise.
1814         * debug/xtrace.sh: Likewise.
1815         * malloc/memusage.sh: Likewise.
1816         * malloc/mtrace.pl: Likewise.
1817         * debug/catchsegv.sh: Likewise.
1819 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
1821         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
1822         script.
1824 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
1826         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
1827         gethostbyname4_r function call succeeded, just leave the loop.
1829         [BZ #9694]
1830         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
1831         very end.
1832         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
1833         * wctype/Makefile (tests): Add bug-wctypeh.
1834         * wctype/bug-wctypeh.c: New file.
1836         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
1837         LOCALDOMAIN is defined.
1838         * nscd/nscd_getai.c (__nscd_getai): Likewise.
1840         * sysdeps/x86_64/bits/select.h: New file.
1842         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
1844 2008-12-21  Bruno Haible  <bruno@clisp.org>
1846         [BZ #9677]
1847         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
1848         if no output is written.
1850 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
1852         * login/utmp_file.c (pututline_file): Replace call to dup2 with
1853         libc internal symbol __dup2 to avoid access through the PLT.
1855 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
1857         [BZ #6545]
1858         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
1859         available only for __USE_GNU.
1861         * inet/Makefile (tests): Add tst-getni2.
1862         * inet/tst-getni2.c: New file.
1864         [BZ #7080]
1865         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
1866         NULL when NI_NAMEREQD is set.
1867         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1868         * inet/Makefile (tests): Add tst-getni1.
1869         * inet/tst-getni1.c: New file.
1871 2008-12-03  Petr Baudis  <pasky@suse.cz>
1873         [BZ #7067]
1874         * nscd/connections.c (invalidate_cache): Use prune_run_lock
1875         instead of prune_lock.
1876         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
1877         * nscd/nscd.h (database_dyn): Add prune_run_cache.
1879 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
1881         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
1882         use.
1884         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
1885         handling.
1887         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
1888         after reading name server list.
1890         [BZ #7058]
1891         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
1892         handling for host name aliases.
1894 2008-11-24  Arkadiusz Miśkiewicz  <arekm@maven.pl>
1896         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
1897         instead of doing things manually.
1899 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
1901         * posix/regex_internal.h (build_wcs_upper_buffer):
1902         Return type is reg_error_t.
1904 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
1906         * posix/globtest.sh: Use mktemp to create temporary file and
1907         directory.
1909         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
1910         sets correctly.
1911         (__CPU_CLR_S): Likewise.
1912         (__CPU_ISSET_S): Likewise.
1914 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
1915             Ulrich Drepper  <drepper@redhat.com>
1917         * scripts/firstversion.awk: Use custom comparison function to compare
1918         version numbers.
1919         * scripts/versions.awk: Use sort invocation which can handle
1920         multi-digit sub-version numbers.
1922 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
1924         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
1925         * locale/iso-639.def: Add Chhattisgarhi entry.
1927 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
1929         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
1930         ESRCH return value.
1931         (_nss_dns_gethostbyname4_r): Likewise.
1932         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
1933         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
1934         gethostbyname4_r, we don't have a separate IPv6 status, so copy
1935         the no_data variable.
1937         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
1938         information at the correct index.
1940         * socket/sys/socket.h: Declare accept4.
1941         * socket/accept4.c: New file.
1942         * sysdeps/unix/sysv/linux/accept4.c: New file.
1943         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
1944         * socket/Makefile (routines): Add accept4.
1945         * socket/Versions: Export accept4 with version GLIBC_2.10.
1946         * socket/paccept.c: Removed.
1947         * sysdeps/unix/sysv/linux/paccept.c: Removed.
1948         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
1949         * Versions.def: Define GLIBC_2.10 for libc.
1950         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
1952         * nscd/connections.c: Use accept4.
1954         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
1956 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
1958         * resolv/res_send.c (send_dg): Create sockets with non-blocking
1959         flag already set.
1961         * stdlib/setenv.c (unsetenv): Don't search environment if it does
1962         not exist.
1963         * stdlib/Makefile (tests): Add tst-unsetenv1.
1964         * stdlib/tst-unsetenv1.c: New file.
1966 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
1968         * login/utmp_file.c (file_writable): New variable.
1969         (setutent_file): Don't try to open file for writing.
1970         (pututline_file): Before writing, make descriptor writable if
1971         necessary.
1973 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
1975         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
1976         to IPv4 or IPv6 if an interface has been found.
1978 2008-11-26  Roland McGrath  <roland@redhat.com>
1980         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
1981         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
1983         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
1984         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
1985         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
1987         * elf/elf.h (NT_386_IOPERM): New macro.
1988         (NT_PPC_VSX): New macro.
1990 2008-11-25  Roland McGrath  <roland@redhat.com>
1992         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
1993         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
1994         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
1995         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
1996         Subdirectories moved to ports repository.
1997         * configure.in (base_machine): Remove alpha case.
1999 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
2001         * sysdeps/mach/strerror_l.c: New file.
2003 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
2005         [BZ #6411]
2006         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
2007         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
2008         magic numbers.
2009         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
2010         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
2011         (relax_fenv_state): Same as above.
2012         (FPSCR_29): Reserve bit in ISA 2.05.
2013         (FPSCR_NI): Provide define for compat.
2014         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
2015         magic numbers.
2016         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
2017         magic numbers.
2018         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
2019         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
2020         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
2021         access to hwcap to account for hwcap size increase to uint64_t.
2022         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
2023         Likewise.
2024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
2025         (*setcontext): Likewise.
2026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2027         New file.
2028         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2029         New file.
2030         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2031         (*setcontext): dynamically select mtfsf insn based on
2032         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
2033         increase to uint64_t.
2034         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2035         (*swapcontext): dynamically select mtfsf insn based on
2036         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
2037         increase to uint64_t.
2038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2039         New file.
2040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2041         New file.
2042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2043         (*setcontext): dynamically select mtfsf insn based on
2044         PPC_FEATURE_HAS_DFP.
2045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2046         (*swapcontext): dynamically select mtfsf insn based on
2047         PPC_FEATURE_HAS_DFP.
2049 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
2051         * version.h: Bump for 2.9 release.
2052         * include/features.h (__GLIBC_MINOR__): Bump to 9.
2054         [BZ #7029]
2055         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
2056         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
2057         all the rounding.
2059 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
2061         [BZ #7009]
2062         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
2063         unknown request types for now.
2065 2008-11-11  Roland McGrath  <roland@redhat.com>
2067         * sysdeps/x86_64/configure: New file.
2069         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
2070         * configure: Regenerated.
2072 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2074         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
2075         correct instruction to remove the stack frame.
2077 2008-11-03  Michael Matz  <matz@suse.de>
2079         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
2080         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
2082 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
2084         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
2085         Remove.
2087         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
2088         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
2089         of the thread variable instead of void *.
2090         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
2091         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
2092         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2093         __libc_tsd_define arguments.
2094         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
2095         __libc_tsd_address arguments.  Remove union hack.
2096         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
2097         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
2098         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
2099         Adjust __libc_tsd_{set,get} arguments.
2100         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2101         __libc_tsd_define arguments.
2102         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
2103         arguments.
2104         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
2105         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
2106         (LOCALE): Adjust __libc_tsd_define arguments.
2107         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
2108         arguments.
2109         (LOCALE): Adjust __libc_tsd_define arguments.
2110         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
2111         arguments.
2112         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
2113         arguments.
2115 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
2117         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
2118         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2120 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
2122         [BZ #6966]
2123         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
2125 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
2126             Ulrich Drepper  <drepper@redhat.com>
2128         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
2129         definition for GCC 3.1 and later.
2131 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
2133         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
2134         refetch dtv, as it might have changed.
2135         * elf/Makefile: Add rules to build and run tst-tls18.
2136         * elf/tst-tls18.c: New test.
2137         * elf/tst-tlsmod18a.c: New file.
2139 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
2141         [BZ #6875]
2142         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
2144 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
2146         [BZ #6867]
2147         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
2149         [BZ #6919]
2150         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
2151         Fix length of copy operation.
2153 2008-10-02  Pierre Habouzit <madcoder@debian.org>
2155         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
2156         and fix its calling convention.
2158 2008-10-07  Andreas Schwab  <schwab@suse.de>
2160         [BZ #6942]
2161         * resolv/res_send.c (send_vc): Fix last change.
2162         (send_dg): Align here as well.
2164 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
2166         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
2167         return value in case rlimit is RLIM_INFINITY.
2169         [BZ #6947]
2170         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
2171         for UL_SETFSIZE.
2172         * resource/Makefile (tests): Add bug-ulimit1.
2173         * resource/bug-ulimit1.c: New file.
2175         [BZ #6974]
2176         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
2177         without dot.  Properly terminate the string with a null byte.
2178         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
2180         [BZ #6980]
2181         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
2182         negative sizees.
2183         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
2184         negative __size.
2186         [BZ #6995]
2187         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
2189 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
2191         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
2192         abort if there is no initgroups_dyn function.
2194         * resolv/res_send.c (send_dg): On timeout, only return nonzero
2195         result if any of the queries really provided an answer.
2197 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
2199         * po/lt.po: Update from translation team.
2201 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
2203         * po/id.po: Update from translation team.
2205 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
2207         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
2208         Fix tests for existence of second reply.
2210 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
2212         * po/id.po: New file.
2213         Contributed by the Indonesian translation team.
2215 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
2217         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
2218         initialization.
2220 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
2222         * elf/Makefile: Add rules to build and run tst-tls17.
2223         * elf/tst-tls17.c: New test.
2224         * elf/tst-tlsmod17a.c: New file.
2225         * elf/tst-tlsmod17b.c: Likewise.
2227 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
2229         * stdlib/divmod_1.c: Use correct type for dummy variable.
2230         * stdlib/mod_1.c: Likewise.
2232 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
2234         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
2236 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
2238         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
2239         __nonnull order for C++.
2240         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
2241         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
2243 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
2245         * stdlib/longlong.h: Update from GCC.
2247 2008-10-09  Jakub Jelinek <jakub@redhat.com>
2248             David S. Miller  <davem@davemloft.net>
2250         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
2251         make sure any registers used with 64-bit 'branch-on-register'
2252         instructions have their top 32-bits clear.
2253         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
2254         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
2256 2008-09-18  Andreas Schwab  <schwab@suse.de>
2258         [BZ #6942]
2259         * resolv/res_send.c (send_vc): Fix use of unaligned address.
2260         Properly handle partial reads.
2262 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
2264         * elf/elf.h (STO_MIPS_PLT): New.
2265         (R_MIPS_COPY): New.
2266         (R_MIPS_JUMP_SLOT): New.
2267         (R_MIPS_NUM): Redefine to 128.
2268         (DT_MIPS_PLTGOT): New.
2269         (DT_MIPS_RWPLT): New.
2270         (DT_MIPS_NUM): Redefine to 0x35.
2272 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
2274         * timezone/africa: Update from tzdata2008f.
2275         * timezone/asia: Likewise.
2276         * timezone/australasia: Likewise.
2277         * timezone/europe: Likewise.
2278         * timezone/leapseconds: Likewise.
2279         * timezone/northamerica: Likewise.
2280         * timezone/southamerica: Likewise.
2281         * timezone/zone.tab: Likewise.
2283 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
2285         * nscd/connections.c: Disable use of paccept for now.
2287 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
2289         * socket/Versions: Remove paccept export for GLIBC_2.9.
2290         * socket/Makefile (routines): Remove paccept.
2291         * socket/sys/socket.h: Remove paccept declaration.
2293         * po/sv.po: Update from translation team.
2295 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
2297         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
2298         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2300 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
2302         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
2303         Patch by Olivier Fourdan <ofourdan@redhat.com>.
2305 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
2307         * sunrpc/rpc/svc.h: Declare svcfd_create.
2308         Patch by Michael Solberg <msolberg@redhat.com>.
2310 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
2311             Ulrich Drepper  <drepper@redhat.com>
2313         * malloc/malloc.c (public_vALLOc): Try other arenas in case
2314         _int_valloc fails.
2315         (public_pVALLOc): Likewise.
2317 2008-09-02  Andreas Jaeger  <aj@suse.de>
2319         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
2320         commit.
2322 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
2324         [BZ #6860]
2325         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
2327 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
2329         * Makefile (check-data): Check data directory in add-ons.
2330         * elf/Makefile (check-data): Likewise.
2332 2008-08-18  Roland McGrath  <roland@redhat.com>
2334         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
2335         * configure: Regenerated.
2336         * config.make.in (cflags-cpu): New substituted variable.
2337         (with-cpu): Variable removed.
2338         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
2340 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
2342         [BZ #6845]
2343         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
2344         __signbitl definition and __LONG_DOUBLE_128__ guard from:
2345         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
2346         redundant.  Functions which call floating point assembler operations
2347         should go into a sysdeps powerpc/fpu directory.
2349 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
2351         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
2352         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2354 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
2356         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
2358         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
2359         change related to AT_EXECFN.  We cannot use that string.
2360         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
2361         _dl_execfn member.
2362         * elf/dl-support.c: Remove _dl_execfn variable.
2363         (_dl_aux_init): Remove handling of AT_EXECFN.
2364         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
2365         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
2367 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
2369         [BZ #6544]
2370         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
2371         byte gets added to writes and seeks from the end use the length of
2372         the buffer and not the currently terminating NUL byte.
2374         [BZ #6634]
2375         * login/utmp_file.c (getutent_r_file): Take additional parameter.
2376         Set to true if locking failed.
2377         (getutid_r_file): Adjust caller.
2378         (pututline_file): Likewise.  Return NULL in this case.
2379         Patch mostly by halesh.s@gmail.com.
2381 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
2383         [BZ #6589]
2384         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
2385         Define.
2386         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
2388 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
2390         [BZ #6839]
2391         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
2392         macro since it is now available in elf/dynamic-link.h.
2394 2008-08-12  Roland McGrath  <roland@frob.com>
2396         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
2397         in case used outside of libc.
2398         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
2400 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
2402         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
2403         directly instead of going through dn_comp.
2405 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
2407         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2408         Fix asm constraints.
2410 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
2412         [BZ #6790]
2413         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
2414         (IPV6_PMTUDISC_PROBE): Likewise.
2416 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
2418         [BZ #6791]
2419         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
2421 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
2422             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2424         [BZ #6817]
2425         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
2426         Added the members 'vsx' and 'arch_2_06'.
2427         (_dl_powerpc_platforms): Add the member 'power7'.
2428         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
2429         to reflect the changes required by VSX and ISA 2.06.
2430         Modify _DL_PLATFORMS_COUNT to reflect the addition of
2431         'power7'.
2432         Defined PPC_PLATFORM_POWER7.
2433         (_dl_string_platform): Add support for POWER7.
2434         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
2435         capability and ISA 2.06.
2437 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
2439         [BZ #6824]
2440         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
2441         macro to detect use of 128 bit long double.
2442         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
2444 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
2446         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
2448         [BZ #5794]
2449         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
2450         parameters.
2451         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2452         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2454 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
2456         * nscd/connections.c (main_loop_poll): Pass a buffer which is
2457         guaranteed to be large enough to read inotify event.  Ignore
2458         EAGAIN error.  Better error message.  Add branch predicition.
2459         (main_loop_epoll): Likewise.
2461 2008-08-02  Roland McGrath  <roland@frob.com>
2463         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2464         Add memory clobbers.
2466 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
2468         * manual/arith.texi: Avoid @strong{Note:}.
2469         * manual/creature.texi: Likewise.
2470         * manual/filesys.texi: Likewise.
2471         * manual/math.texi: Likewise.
2472         * manual/memory.texi: Likewise.
2473         * manual/resource.texi: Likewise.
2474         * manual/syslog.texi: Likewise.
2475         * manual/time.texi: Likewise.
2477         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
2478         to prevent warning.
2480 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
2482         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
2483         new epoll_create1 interface.
2484         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2485         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
2486         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2488         * include/arpa/nameser.h (NS_GET16): Use const pointer.
2489         (NS_GET32): Likewise.
2491         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
2492         syscalls, too.
2494         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
2495         use the AT_EXECFN value if it is no absolute path.
2496         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
2497         __ASSUME_AT_EXECFN.
2499         * Versions.def: Add GLIBC_2.9 to libresolv.
2500         * include/resolv.h: Remove hidden proto declarations for __ns_*
2501         functions.  Add them for __dn_count_labels and __p_secstodate.
2502         * include/arpa/nameser.h: Add a number of hidden proto declarations.
2503         Define ns_msg_getflags macro here.
2504         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
2505         and __p_secstodate.
2506         * resolv/Versions: Export functions from <arpa/nameser.h> from
2507         libresolv in version GLIBC_2.9.
2508         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
2509         hidden definitions.
2510         * resolv/ns_netint.c: Likewise.
2511         * resolv/ns_parse.c: Likewise.
2512         * resolv/ns_print.c: Likewise.
2513         * resolv/ns_samedomain.c: Likewise.
2514         * resolv/ns_ttl.c: Likewise.
2515         * resolv/arpa/nameser_compat.h: Likewise.
2516         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
2517         function calls.
2518         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
2519         instead of ns_get16.
2520         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
2521         __ns_get32 instead of ns_get16 and ns_get32 respectively.
2522         (gaih_getanswer_slice): Likewise.
2523         * resolv/Makefile (libresolv-routines): Add ns_date.
2524         * resolv/ns_date.c: New file.
2526         * elf/Makefile (check-localplt.out): Also check libresolv and
2527         libcrypt.
2529 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
2531         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2532         __ASSUME_O_CLOEXEC.
2534 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
2536         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
2537         buffer passed to NSS functions.
2539         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
2541         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
2542         Define.
2544         * misc/syslog.c (openlog_internal): Fix compile problem.
2546 2008-07-28  Roland McGrath  <roland@redhat.com>
2548         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
2550 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
2552         * io/ftw.c (add_object): Remove inline to avoid warning.
2554         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
2556         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
2557         Use it instead of locally defined resplen2 variable.
2558         (res_nsend): Adjust for __libc_res_nsend interface change.
2559         (send_vc): Initialize *resplen2 if necessary.  Read length of
2560         package into an appropriately aligned variable.  Store converted length
2561         in new variable and use it appropriately.
2562         Add branch prediction help.
2563         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
2564         and pass it on to __libc_res_nsend.  Adjust all callers.
2565         (__libc_res_nsearch): Likewise.
2566         (__libc_res_nqeurydomain): Likewise.
2567         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
2568         change.
2569         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
2570         Define resplen2 variable and pass it to __libc_res_nsearch and then
2571         to gaih_getanswer.
2572         (getanswer_r): In case of incorrect DNS data don't overread buffer.
2573         Add branch prediction.
2574         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
2575         (gaih_getanswer): Don't decode second slice if first one failed due
2576         to a too small buffer.  Don't let not found status of second
2577         decoder shadow results of the first.
2578         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
2579         and __libc_res_nquery interface changes
2580         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
2581         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
2582         __libc_res_nsearch, and __libc_res_nsend.
2583         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
2584         change.
2585         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
2586         __libc_res_nsearch interface changes.
2588 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
2590         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
2592         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
2593         file descriptors with close-on-exec set.
2594         (exec_comm_child): Fix the case where the write end of the pipe is
2595         STDOUT_FILENO already.  In case it is, clear close-on-exec.
2597         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
2598         * io/pipe2.c: Likewise.
2599         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
2600         instead of __ASSUME_PACCEPT.
2601         * include/unistd.h: Declare __have_pipe2.
2602         * libio/iopopen.c: Implement "e" flag.
2603         * libio/Makefile (tests): Add tst-popen1.
2604         * libio/tst-popen1.c: New file.
2606         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
2607         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2609 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
2611         [BZ #6771]
2612         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
2613         success call of _IO_SEEKOFF or calls which failed because the
2614         descriptor is for a pipe.
2616         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
2617         magic number.
2619         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
2621         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
2622         F_SETFD use if we know fopen set the flag.
2624         * login/utmp_file.c (setutent_file): Minor optimization in case
2625         O_CLOEXEC is available.
2627 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
2629         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
2630         * elf/Makefile: Use pie-ccflag variable.
2631         * nscd/Makefile: Likewise.
2632         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
2634 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
2636         [BZ #6724]
2637         * Versions.def: Add GLIBC_2.9 version tag for libutil.
2638         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
2639         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
2640         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
2641         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
2642         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
2643         utmp32, utmpx32 and login32.
2644         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
2645         versions of struct utmp functions to libc and libutil.
2646         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
2647         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
2648         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
2649         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
2650         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
2651         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
2652         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
2653         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
2654         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
2655         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
2656         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
2657         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
2658         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
2659         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
2660         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
2661         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
2662         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
2663         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
2664         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
2665         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
2666         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
2667         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
2669 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
2671         * scripts/gen-as-const.awk: Generate more widely usable code by
2672         using 64-bit arithmetic.
2674         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
2675         the same treatment as narrow output code in last patch.
2677         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
2679         [BZ #6763]
2680         * elf/dl-load.c (local_strdup): Remove inline.
2681         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
2682         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
2683         part of the object.
2685         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
2687 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
2689         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
2690         the new syscalls, too.
2692         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
2693         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
2695         [BZ #6698]
2696         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
2697         parameter for end of buffer.  If temporary copy is too large use
2698         malloc.
2699         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
2700         interface change.
2701         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
2702         string rewrite when allocating buffer.
2704         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
2705         syscalls, too.
2707         * nscd/connections.c (nscd_init): Clean up fcntl call.
2709         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
2710         SOCK_NONBLOCK if possible.
2712         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
2713         SOCK_CLOEXEC if available.
2715         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
2716         __libc_clntudp_bufcreate_internal.
2717         * include/sys/socket.h: Declare __have_sock_cloexec.
2718         * socket/Makefile (aux): Add have_sock_cloexec.
2719         * socket/have_sock_cloexec.c: New file.
2720         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
2721         __libc_clntudp_bufcreate.
2722         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
2723         which takes an additional parameter.  Create socket with non-blocking
2724         mode and close-on-exec flag set, if wanted.
2725         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
2726         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
2727         instead of clntudp_create.  The socket has already the close-on-exec
2728         flag set if SOCK_CLOEXEC is defined.
2730 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
2732         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2733         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
2734         appropriate.
2735         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
2736         non-blocking mode by using socket, paccept, and inotify_init1.
2738         * Versions.def (glibc): Add GLIBC_2.9.
2739         * io/Makefile (routines): Add dup3 and pipe2.
2740         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
2741         * io/dup3.c: New file.
2742         * io/pipe2.c: New file.
2743         * posix/unistd.h: Declare dup3 and pipe2.
2744         * socket/Makefile (routines): Add paccept.
2745         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
2746         * socket/paccept.c: New file.
2747         * socket/sys/socket.h: Declare paccept.
2748         * sysdeps/unix/syscalls.list: Add entry for dup3.
2749         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
2750         epoll_create2 and inotify_init1.
2751         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
2752         * sysdeps/unix/sysv/linux/paccept.c: New file.
2753         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
2754         possible.
2755         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
2756         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
2757         inotify_init1, and pipe2 entries.
2758         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
2759         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
2760         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
2761         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
2762         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
2763         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
2764         SOCK_NONBLOCK.
2765         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
2766         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
2767         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
2768         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
2769         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
2770         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
2771         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
2772         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
2773         EPOLL_NONBLOCK.  Declare epoll_create2.
2774         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
2775         EFD_NONBLOCK.
2776         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
2777         IN_NONBLOCK.  Declare inotify_init1.
2778         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
2779         SFD_NONBLOCK.
2780         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
2781         TFD_NONBLOCK.
2783         * elf/elf.h: Define AT_EXECFN.
2784         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
2785         LD_ORIGIN_PATH.
2786         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
2787         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
2788         if __ASSUME_AT_EXECFN is defined.
2789         (_dl_aux_init): Handle AT_EXECFN.
2790         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
2791         for 2.6.27 and up.
2792         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
2793         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
2794         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
2795         _dl_execfn if available and avoid compatibility code if
2796         __ASSUME_AT_EXECFN is defined.
2798         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
2799         _dl_discover_osversion only for older kernels.
2801 2008-07-22  Roland McGrath  <roland@frob.com>
2803         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
2805 2008-07-21  Roland McGrath  <roland@frob.com>
2807         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
2808         returned too much data out of line.
2810 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
2812         * locale/setlocale.c (setname): Remove inline to avoid compiler
2813         warning.
2815         [BZ #6712]
2816         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
2818 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
2820         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
2821         doesn't manage to write anything, fail.
2823         * malloc/hooks.c (__malloc_check_init): Remove printf.
2825 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2827         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
2829 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
2831         * nscd/connections.c (main_loop_poll): Fix handling of read errors
2832         from inotify.
2833         (main_loop_epoll): Likewise.
2835 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
2837         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
2839         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
2840         if DEBUG is defined.
2842         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
2843         query.  Adjust buffer size computation for padding.
2845 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
2847         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
2848         * stdio-common/tst-setvbuf1.c: New file.
2849         * stdio-common/tst-setvbuf1.expect: New file.
2851         [BZ #6719]
2852         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
2853         when selecting fully-buffered stream.
2854         Patch by Wang Xin <wxinee@gmail.com>.
2856 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2858         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
2859         (__open_2): New function.
2860         (__open64_2): New alias to __open_2.
2861         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
2862         (__openat_2): New function.
2863         (__openat64_2): New alias to __openat_2.
2865 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
2867         [BZ #6723]
2868         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2870 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2872         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
2873         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
2874         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
2875         __hurd_dfail.
2876         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2877         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2878         * sysdeps/mach/hurd/send.c (__send): Likewise.
2879         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
2880         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
2882 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2884         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
2885         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2886         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2887         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
2888         * hurd/get-host.c (_hurd_get_host_config): Likewise.
2889         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
2891 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
2893         [BZ #6657]
2894         * time/strptime_l.c: Don't clear s.era_cnt after successful match
2895         of %EY.
2896         Patch by Petr Baudis.
2898 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
2900         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
2901         Patch by Peter Jones <pjones@redhat.com>.
2903 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
2905         [BZ #6654]
2906         * stdlib/canonicalize.c (__realpath): readlink can write too much
2907         into the buffer on platforms without PATH_MAX.
2909 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
2911         [BZ #6653]
2912         * posix/tst-regex.c (main): Rename to...
2913         (do_test): ... this. Remove cmdline option processing.
2914         (TIMEOUT): Define.
2915         (TEST_FUNCTION): Define.
2916         (CMDLINE_OPTIONS): Define.
2918 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
2920         [BZ #5210]
2921         * configure.in: Add -Werror to -fstack-protector test to catch
2922         unsupported architectures.
2923         Patch by Gilles Esponasse <g.esp@free.fr>.
2925 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
2927         * stdlib/tst-setcontext.c: Set back_in_main before exit if
2928         getcontext returns ENOSYS.
2930 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
2932         * nscd/connections.c (main_loop_poll): Fix test for read error.
2933         (main_loop_epoll): Likewise.
2935 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
2937         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
2938         better place so it is not called when nscd is used.
2940         * nscd/connections.c: Also recognize and handle changes to the
2941         resolver configuration file.
2943 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
2945         * time/strftime.c: Pass reference to tzset_called around to handle
2946         recursive calls.
2948         [BZ #6612]
2949         * time/strftime.c (__strftime_internal): Call tzset() only
2950         when printing timezone-dependent values.
2951         Based on a patch by Petr Baudis <pasky@suse.cz>.
2953         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
2954         unconditionally use second gaih_getanswer_slice result.
2956         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
2957         (getaddrinfo): RES must always be non-NULL.
2959 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
2961         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
2962         cr[34] registers.
2963         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2964         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2965         Likewise.
2966         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
2967         register.
2969 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
2971         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
2972         fields.
2973         * nscd/connections.c (inotify_fd): New variable.
2974         (nscd_init): Try to open an inotify descriptor.
2975         If successful, watch files for databases using inotify instead of
2976         having prune threads stat the files.
2977         (nscd_run_prune): Recognize clear_cache flag being set and call
2978         prune_cache appropriately.
2979         (main_loop_poll): Add inotify descriptor to wait set and handle the
2980         reported changes.
2981         (main_loop_epoll): Likewise.
2982         * nscd/cache.c (prune_cache): Don't stat files for databases if
2983         inotify is used.
2984         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
2985         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
2987         * nscd/grpcache.c (cache_addgr): Correctly compute size of
2988         fixed-size portion of the record.
2989         * nscd/servicescache.c (cache_addserv): Likewise.
2990         * nscd/pwdcache.c (cache_addpw): Likewise.
2991         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2993 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
2995         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
2996         out we don't use uninitialized memory.
2998         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
2999         the client.
3001 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
3003         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
3004         ignore T_DNAME messages.
3005         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
3007 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
3009         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
3010         Avoid segfault if first GETC returns eof/'\0'/'\n'.
3012 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
3014         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
3015         instead of portstr to nscd_getserv_r.  Patch by
3016         Roman Kagan <rkagan@mail.ru>.
3018 2008-05-26  Jim Meyering  <meyering@redhat.com>
3020         Remove more useless "if" tests before "free".
3021         * include/inline-hashtab.h (htab_delete): Likewise.
3022         * libio/freopen.c (freopen): Likewise.
3023         * libio/freopen64.c (freopen64): Likewise.
3024         * locale/programs/ld-collate.c (collate_read): Likewise.
3025         * misc/fstab.c (libc_freeres_fn): Likewise.
3026         * posix/glob.c (globfree): Likewise.
3028 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
3030         * string/Makefile (strop-tests): Add memmem.
3031         * string/test-memmem.c: New file.
3032         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
3033         (test_init): Size buf1 according to BUF1PAGES.
3035 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
3037         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
3038         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
3039         (CFLAGS-scanf17.c): New.
3040         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
3041         * stdio-common/scanf15.c (main): Likewise.
3042         * stdio-common/scanf16.c: New file.
3043         * stdio-common/scanf17.c: New file.
3045 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
3047         * resolv/res_send.c (send_dg): If we already have one of two
3048         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
3049         use the one answer insted of failing.
3051 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
3053         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
3054         being executed on PowerPC as the expected result exceeds IBM
3055         long double 128 __LDBL_MAX__.
3057 2008-05-21  Roland McGrath  <roland@redhat.com>
3059         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
3061         * Makefile (check-data): Use $(abi-name) before other guesses.
3062         Look in $(add-ons) dirs before scripts/data/.
3063         * elf/Makefile (check-data): Likewise.
3065         * scripts/soversions.awk: Grok ABI line.
3066         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
3067         Emit definition for abi-name variable.
3069 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
3071         * string/endian.h: Define new fixed-size hto* and *toh macros only
3072         if [__USE_BSD].
3074         * iconvdata/Depend: Add localedata.
3076 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3078         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
3080 2008-05-08  David S. Miller  <davem@davemloft.net>
3082         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
3083         HIDDEN_JUMPTARGET.
3084         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3085         (__SYSCALL_CLOBBERS): Remove %g* registers.
3086         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3087         (__SYSCALL_CLOBBERS): Likewise.
3088         * scripts/data/localplt-sparc-linux-gnu.data: New file.
3089         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
3091 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
3093         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3094         (CALL_ERRNO_LOCATION): Define.
3095         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3096         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3097         (CALL_ERRNO_LOCATION): Define.
3098         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3099         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
3100         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
3102 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
3104         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
3105         variable.
3107 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
3109         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
3110         (FIRST_FRAME_POINTER): Define.
3112 2008-05-09  David S. Miller  <davem@davemloft.net>
3114         * sysdeps/sparc/sparc64/backtrace.c: New file.
3116 2008-05-14  David S. Miller  <davem@davemloft.net>
3118         * sysdeps/sparc/machine-gmon.h: New file.
3119         * sysdeps/sparc/sparc-mcount.S: Likewise.
3120         * sysdeps/sparc/Makefile: Add sparc-mcount target to
3121         sysdep_routines in gmon directory.
3123 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
3125         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
3127 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
3129         * resolv/res_query.c (__libc_res_nquery): In case one of two
3130         answer was too short don't try to read that answer's header.
3132         * resolv/res_send.c (send_dg): In case of timeout and there are
3133         two queries and one has been answered, return value indicating
3134         success.
3136 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
3138         * nscd/cache.c (cache_add): Take additional parameter specifying
3139         whether this is in response of a cache refill.  Check alignment
3140         of package data.  Revamp waking of pruning thread.
3141         (prune_cache): Small optimization.
3142         * nscd/nscd.h: Adjust cache_add prototypes.
3143         * nscd/aicache.c: Adjust cache_add calls.
3144         * nscd/grpcache.c: Likewise.
3145         * nscd/hstcache.c: Likewise.
3146         * nscd/initgrcache.c: Likewise.
3147         * nscd/pwdcache.c: Likewise.
3148         * nscd/servicescache.c: Likewise.
3149         * nscd/connections.c (restart): Really disable cache use before
3150         exec attempt.  If it fails, reenable cache.
3151         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
3152         time to max to be able to notice concurrent cache additions.  Unlock
3153         prune_lock while performing gc.  Afterwards compute wakeup time with
3154         current wakeup_time value in mind.
3156 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
3158         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
3160         * nscd/mem.c (gc): Correctly determine highest used array element
3161         in mark.
3163         * nscd/mem.c (markrange): Add assert to check entries are all
3164         aligned.  Small cleanup in bitmap use.
3166         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
3167         blockoff of type nscd_ssize_t.
3168         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
3169         (mempoll_alloc): Record block offset and not address.
3171         * nscd/mem.c (gc): Fix test for stack overuse.
3173         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
3174         more asserts.
3176         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
3177         entry is available, believe it.
3179         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
3180         no answers return NSS_STATUS_NOTFOUND.
3181         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
3182         buffer does not have any content.
3184 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
3186         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
3188         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
3189         lookup, don't assign canon unconditionally.
3191 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3193         * string/Makefile (distribute): Add str-two-way.h.
3195 2008-03-29  Eric Blake  <ebb9@byu.net>
3197         Rewrite string searches to O(n) rather than O(n^2).
3198         * string/str-two-way.h: New file.  For linear fixed-allocation
3199         string searching.
3200         * string/memmem.c: New implementation.
3201         * string/strstr.c: New implementation.
3202         * string/strcasestr.c: New implementation.
3204 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
3206         * posix/regcomp.c (optimize_utf8): Add a note on why we test
3207         opr.ctx_type.
3208         (calc_first): Initialize constraint field.
3209         (duplicate_node_closure): Use it instead of special casing ANCHORS.
3210         Use search_duplicated_node to avoid loops.  Fix grammar.
3211         (duplicate_node): Merge constraint field for all node types.
3212         (calc_eclosure_iter): Look at constraint field for all node types.
3213         * posix/regex_internal.c (create_cd_newstate): Don't look at
3214         create_cd_newstate.
3216 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3218         [BZ #6428]
3219         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
3221         [BZ #6442]
3222         * string/endian.h: Add macros for fixed-size endian conversion.
3223         * bits/byteswap.h: Allow inclusion from <endian.h>.
3224         * sysdeps/i386/bits/byteswap.h: Likewise.
3225         * sysdeps/ia64/bits/byteswap.h: Likewise.
3226         * sysdeps/s390/bits/byteswap.h: Likewise.
3227         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3228         * string/Makefile (tests): Add tst-endian.
3229         * string/tst-endian.c: New file.
3231         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
3232         Patch by Reuben Thomas.
3234 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
3236         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
3238 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3240         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
3242         [BZ #6461]
3243         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
3244         Add missing braces.
3245         (BODY for __gconv_transform_internal_ascii): Likewise.
3247         [BZ #6472]
3248         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
3249         to be treated like link-local addresses.
3250         (match_prefix): Don't treat IPv4 loopback address special when
3251         converting to v4 mapped addressed.
3253         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
3254         if necessary.
3255         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
3256         * posix/tst-rfc3484-2.c: Likewise.
3257         * posix/tst-rfc3484-3.c: Likewise.
3259         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
3260         and SCTP.
3262         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
3264         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
3266         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
3268 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
3270         * po/lt.po: New file.  From Lituanian translation team.
3272 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
3274         Introduce TLS descriptors for i386 and x86_64.
3275         * include/inline-hashtab.h: New file, copied from 2005's
3276         libiberty, with fix for memory leak imported afterwards by
3277         Glauber de Oliveira Costa.
3278         * elf/tlsdeschtab.h: New file.
3279         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
3280         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
3281         (CHECK_STATIC_TLS): Move to...
3282         * elf/dynamic-link.h: ... this file.
3283         (TRY_STATIC_TLS): New macro.
3284         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
3285         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
3286         R_386_TLS_DESC): Define.
3287         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
3288         binutils.
3289         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
3290         R_X86_64_TLSDESC): Define.
3291         (R_386_NUM, R_X86_64_NUM): Adjust.
3292         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
3293         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3294         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3295         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
3296         release tlsdesc_table.
3297         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
3298         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
3299         (elf_machine_rel): Handle R_386_TLS_DESC.
3300         (elf_machine_rela): Likewise.
3301         (elf_machine_lazy_rel): Likewise.
3302         (elf_machine_lazy_rela): Likewise.
3303         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
3304         * sysdeps/i386/dl-tlsdesc.S: New file.
3305         * sysdeps/i386/dl-tlsdesc.h: New file.
3306         * sysdeps/i386/tlsdesc.c: New file.
3307         * sysdeps/i386/tlsdesc.sym: New file.
3308         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
3309         tlsdesc_table.
3310         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
3311         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3312         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3313         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
3314         release tlsdesc_table.
3315         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
3316         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
3317         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
3318         (elf_machine_rel): Handle R_X86_64_TLSDESC.
3319         (elf_machine_rela): Likewise.
3320         (elf_machine_lazy_rel): Likewise.
3321         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
3322         (__tls_get_addr): Do not declare for non-shared compiles.
3323         * sysdeps/x86_64/dl-tlsdesc.S: New file.
3324         * sysdeps/x86_64/dl-tlsdesc.h: New file.
3325         * sysdeps/x86_64/tlsdesc.c: New file.
3326         * sysdeps/x86_64/tlsdesc.sym: New file.
3327         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
3328         tlsdesc_table for both 32- and 64-bit structs.
3330 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
3332         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
3333         its own function.  This reduces the frame setup costs and more.
3335 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
3337         [BZ #3406]
3338         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
3339         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
3341 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
3343         * io/openat.c (__openat_2): Also pass fd to __openat.
3344         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
3345         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
3347         * string/tester.c (test_memcmp): Add a few more tests.
3348         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
3350 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
3352         * nscd/cache.c (cache_add): Before returning with failure and this
3353         is the first use of the record, mark it as unusable.
3354         * nscd/aicache.c: Don't touch the dataset after cache_add returns
3355         reporting a failure.
3356         * nscd/grpcache.c: Likewise
3357         * nscd/hstcache.c: Likewise.
3358         * nscd/initgrcache.c: Likewise.
3359         * nscd/pwdcache.c: Likewise.
3360         * nscd/servicescache.c: Likewise.
3362 2008-05-10  Roland McGrath  <roland@redhat.com>
3364         [BZ #6505]
3365         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
3367 2008-05-08  David S. Miller  <davem@davemloft.net>
3369         * misc/truncate64.c (truncate64): Use __truncate not truncate.
3371         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
3372         (__ieee754_y0l): Likewise.
3373         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
3374         (__ieee754_y1l): Likewise.
3375         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
3376         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
3377         frexpl and ldexpl.  math_private.h provides them and the latter
3378         is not even used.
3379         (__log1pl): Use __frexpl.
3381 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
3383         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
3384         prototypes.
3385         * include/arpa/nameser_compat.h: Define T_UNSPEC.
3386         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
3387         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
3388         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
3389         af==AF_UNSPEC.
3390         (_nss_nis_gethostbyname4_r): New function.
3391         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3392         Change to also handle af==AF_UNSPEC.
3393         (get_tablename): New function.  Use it to avoid duplication.
3394         (_nss_nisplus_gethostbyname4_r): New function.
3395         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
3396         available.
3397         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
3398         * nss/nss.h: Define struct gaih_addrtuple.
3399         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
3400         af==AF_UNSPEC.
3401         (_nss_files_gethostbyname4_r): New function.
3402         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
3403         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
3404         calls.
3405         * resolv/res_query.c (__libc_res_nquery): Take two additional
3406         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
3407         look up IPv4 and IPv6.
3408         Change all callers.
3409         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
3410         for an additional query and answer buffer.  Pass to send_vc and
3411         send_dg.
3412         (send_vc): Send possibly two requests and receive two answers.
3413         (send_dg): Likewise.
3414         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
3415         __libc_res_nquery.
3416         (_nss_dns_gethostbyname4_r): New function.
3417         (gaih_getanswer_slice): Likewise.
3418         (gaih_getanswer): Likewise.
3419         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
3420         __libc_res_nquery call.
3421         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
3422         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
3423         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
3424         available.
3426 2008-05-05  David S. Miller  <davem@davemloft.net>
3428         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
3429         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
3431 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3433         Fix termios bit macros.
3434         Move *DLY definitions where they belong, in termios.h.
3435         Add *[0-3] definitions.
3436         Fixes confusion between VT and FF.
3437         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
3438         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
3439         are already defined to avoid collision with termios.h.
3440         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
3441         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
3442         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
3443         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
3444         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
3445         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
3446         VTDLY, VT0, VT1): New macros.
3447         [__USE_GNU] (OLCUC): Change value of macro.
3448         [__USE_XOPEN] (OFILL): New macro.
3449         [__USE_BSD] (CRTSCTS): Change value.
3450         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
3451         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
3452         (B7200, B14400, B28800, B76800): New macros.
3454 2008-05-01  David S. Miller  <davem@davemloft.net>
3456         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
3457         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
3458         (gen-as-const-headers): Add it.
3459         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
3460         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
3461         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
3462         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
3464         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
3465         six system call parameters.
3466         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
3468 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
3470         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
3471         RUSAGE_LWP.
3472         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
3473         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
3475 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
3477         * stdlib/tst-setcontext.c: Include unistd.h.
3479 2008-04-25  David S. Miller  <davem@davemloft.net>
3481         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
3482         Pass "union semun" properly in to sys_ipc, it must be passed
3483         by value, not by reference.
3485 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
3487         * nscd/Makefile (nscd-cflags): Set back to -fpie.
3488         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
3489         * nscd/connections.c (mem_in_flight): Likewise.
3491         * nscd/nscd.h (dbs): Make hidden.
3493         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
3494         Avoid returning -1, return 0 instead.
3496 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
3498         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
3500 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
3502         [BZ #5209]
3503         * sysdeps/unix/sysv/linux/times.c: New file.
3505         [BZ #5381]
3506         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
3507         mem_in_flight_list variables.  Add new parameter to mempool_alloc
3508         prototype.
3509         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
3510         appropriate mem_in_flight element.
3511         (gc): Take allocations which have not yet been committed to the
3512         database into account.
3513         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
3514         Reset mem_in_flight before returning.
3515         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
3516         cue it up in mem_in_flight_list.
3517         * nscd/aicache.c: Adjust mempool_alloc call.
3518         * nscd/grpcache.c: Likewise.
3519         * nscd/hstcache.c: Likewise.
3520         * nscd/initgrcache.c: Likewise.
3521         * nscd/pwdcache.c: Likewise.
3522         * nscd/servicescache.c: Likewise.
3523         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
3524         of -fpie.
3526         * nscd/connections.c (handle_request): Provide better error message
3527         in case SELinux forbids the service.
3529         * version.h (VERSION): Bump to 2.8.90.
3531 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
3533         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
3535 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
3537         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
3538         Also use for 32-bit.
3539         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
3540         __nextafter instead of nextafter to avoid local PLT.
3541         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
3542         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3544         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
3546         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
3547         __fe_nomask_env.
3548         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
3549         <fenv_libc.h> instead of <fenv.h>.
3550         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
3551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
3553         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
3555         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
3556         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
3557         function from fegetexcept and make old name weak alias.
3558         * include/fenv.h: Declare __fegetexcept.
3559         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
3560         fegetexcept.
3561         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
3562         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
3563         to fetestexcept.
3564         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
3565         instead of frexpl to avoid local PLT.
3566         * math/s_significandl.c (__significandl): Use __ilogbl instead of
3567         ilogbl to avoid local PLT.
3568         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
3569         instead of ldexpl to avoid local PLT.
3570         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3571         __roundl not roundl to avoid local PLT.
3572         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
3573         local PLTs.  Use __sincosl instead of separate sinl and cosl
3574         calls.
3575         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3577         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
3578         version for ppc64 to 2.4.21 since without it makecontext will fail.
3580         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
3581         to the ABI in use.
3582         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
3583         .__tls_get_addr.
3584         [__powerpc64__] (TLS_GD): Likewise.
3586 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
3588         [BZ #4997]
3589         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
3590         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
3591         mantissa.
3592         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3593         Likewise.  Also account for when x is an odd number between 2^52
3594         and 2^53-1.
3595         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
3596         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3597         * math/libm-test.inc (lround_test, llround_test): Added test cases to
3598         detect aforementioned erroneous conditions.
3600 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
3602         * configure.in: Check for -fno-section-anchors in addition to
3603         -fno-toplevel-reorder.
3605 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
3607         * include/features.h (__GLIBC_MINOR__): Bump to 8.
3609         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
3610         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3611         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3612         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3613         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3614         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3616 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
3618         [BZ #5443]
3619         * time/era.c: Transform __libc_setlocale_lock into rwlock.
3620         * time/alt_digit.c: Likewise.
3621         * wcsmbs/wcsmbsload.c: Likewise.
3623 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
3625         * version.h (VERSION): Bump to 2.8.
3627         * timzeone/asia: Update from tzdata2008b.
3628         * timezone/backward: Likewise.
3629         * timezone/europe: Likewise.
3630         * timezone/northamerica: Likewise.
3631         * timezone/southamerica: Likewise.
3632         * timezone/iso3166.tab: Likewise.
3633         * timezone/leapseconds: Likewise.
3634         * timezone/zone.tab: Likewise.
3635         * timezone/private.h: Update from tzcode2008a.
3636         * timezone/zdump.c: Likewise.
3637         * timezone/zic.c: Likewise.
3639 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
3641         [BZ #5741]
3642         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
3643         Define additonal Data Cache Block instruction macros.
3644         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
3645         Replace dcbst with dcbf and sync with sync/isync.
3647 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
3649         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
3650         Always set ELF_RTYPE_CLASS_PLT.
3651         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
3653 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
3655         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
3656         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
3657         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
3658         For ISA 2.01 and later replace mftb with mfspr 268.
3660 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
3662         [BZ #5768]
3663         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
3664         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
3666 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
3668         [BZ #5768]
3669         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
3670         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
3671         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
3672         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
3674 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
3676         * stdlib/tst-makecontext.c (othervar): New variable.
3677         (cf): Test sign extending the argument to long.
3679 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
3681         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
3682         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
3683         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
3684         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
3685         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
3686         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
3687         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
3689 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
3691         * elf/Makefile (tests): Substitute tests-vis-yes here.
3692         (tests-vis-yes): Delete.
3693         (modules-name, modules-vis-yes): Similarly.
3695 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
3697         [BZ #4407]
3698         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3699         Preserve sign in signgamp when x is zero.
3701 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
3703         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
3704         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
3705         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
3706         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
3707         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
3708         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
3710 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
3712         [BZ #4314]
3713         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
3714         buffers.
3716         [BZ #5209]
3717         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
3718         a reserved error value.
3720         * stdlib/tst-makecontext.c: Change parameter to cf to negative
3721         value to check for correct sign extension.
3723         [BZ #5436]
3724         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3725         Copy 64-bit parameter values even though this is not required in
3726         the standard.
3728         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
3729         PC save.
3731 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
3733         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
3734         PC save.
3736 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
3738         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
3740 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
3742         [BZ #5998]
3743         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
3744         in line-buffered stream failed.
3745         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3747 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
3749         [BZ #6024]
3750         * scripts/abi-versions.awk: If the version specified by
3751         --enable-oldest-abi is older than the first version for this
3752         architecture, use the default version.
3754         * locale/programs/ld-collate.c (collate_read): Ignore script lines
3755         as well when ignoring the whole category.
3757 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
3759         [BZ #6042]
3760         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
3761         ETHERTYPE_* definitions.
3762         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
3764 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
3766         * stdlib/mbtowc.c (__no_r_state): Remove.
3767         (mbtowc): New static state variable.  Use it instead of
3768         __no_r_state.
3769         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
3770         (__wctomb_state): New hidden variable.
3771         (wctomb): Use __wctomb_state instead of __no_r_state.
3772         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
3773         (__wctomb_state): New extern decl.
3774         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
3776 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
3778         [BZ #5475]
3779         * resolv/res_init.c: Handle scope IDs in resolv.conf.
3781 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
3783         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
3785 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
3787         * po/nl.po: Update from translation team.
3789 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
3791         [BZ #6007]
3792         * string/strfry.c: Handle empty strings again.
3794 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
3796         [BZ #5443]
3797         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
3798         before looking for translation.
3799         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
3800         * locale/freelocale.c: Likewise.
3801         * locale/newlocale.c: Likewise.
3802         * locale/setlocale.c: Likewise.
3803         Based partially on a patch by ryo@np.css.fujitsu.com.
3805 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
3807         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
3808         acquiring wrlock.  Do conv_tab allocation while holding lock.
3809         * intl/Makefile: Add rules to build and run tst-gettext6.
3810         * intl/tst-gettext6.c: New test.
3811         * intl/tst-gettext6.sh: New file.
3813 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
3815         * po/nl.po: Update from translation team.
3817         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
3818         provided through st_blksize, try the default size before giving up.
3820 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
3822         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
3824         [BZ #5939]
3825         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
3827         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
3828         error message.  POSIX today does not require the messages to be in
3829         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
3831         [BZ #5979]
3832         * sunrpc/auth_unix.c: Unify printed strings.
3833         * sunrpc/clnt_tcp.c: Likewise.
3834         * sunrpc/clnt_udp.c: Likewise.
3835         * sunrpc/clnt_unix.c: Likewise.
3836         * sunrpc/svc_tcp.c: Likewise.
3837         * sunrpc/svc_udp.c: Likewise.
3838         * sunrpc/svc_unix.c: Likewise.
3839         * sunrpc/xdr.c: Likewise.
3840         * sunrpc/xdr_array.c: Likewise.
3841         * sunrpc/xdr_rec.c: Likewise.
3842         * sunrpc/xdr_ref.c: Likewise.
3843         * locale/programs/ld-time.c (time_finish): Unify messages.
3844         * locale/programs/locfile.c (handle_copy): Fix typo.
3845         * nscd/nscd.c (options): Fix typo.
3847         [BZ #5995]
3848         * stdlib/strtod_l.c: Use correct sign for result in one more
3849         underflow case.
3850         Patch by Eric Blake <ebb9@byu.net>.
3852 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
3854         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
3855         and creat system calls.
3856         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
3857         call.
3858         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
3859         system calls.
3860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
3861         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3862         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3864 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
3866         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
3867         <linux/limits.h> has defined it.
3868         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
3869         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
3870         headers.
3871         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
3872         it instead of ARG_MAX.
3874 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
3876         * posix/gai.conf: Fix comment for scope nullbits.
3877         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
3878         default to 128 bits for v4 mapped addresses.
3880 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3882         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
3883         ptrace call to get the ieee_instruction_pointer from the kernel.
3884         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
3885         ptrace call to set the ieee_instructtion_pointer.
3886         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
3887         Add comment that ieee_instruction_pointer is always 0.
3889 2008-03-09  Andreas Jaeger  <aj@suse.de>
3891         [BZ #5857]
3892         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
3893         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
3894         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
3896         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
3897         (rint_test): Likewise.
3899 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
3901         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
3902         call.
3903         (__nisfind_server): Similar for open readColdStartFile call.
3904         Patch partially by Jim Meyering.
3905         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
3906         around internal_setent call.
3908         * po/vi.po: New Vietnamese translation.
3910         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
3911         ADJ_OFFSET_SS_READ.
3913         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
3914         remove CLONE_STOPPED.
3916 2008-02-10  Jim Meyering  <meyering@redhat.com>
3918         Remove useless "if" before "free":
3919         * elf/ldconfig.c (parse_conf_include): Likewise.
3920         * gmon/gmon.c (weak_alias): Likewise.
3921         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
3922         * inet/rcmd.c (__validuser2_sa): Likewise.
3923         * intl/bindtextdom.c (set_binding_values): Likewise.
3924         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
3925         * libio/genops.c (save_for_backup): Likewise.
3926         * libio/wgenops.c (save_for_wbackup): Likewise.
3927         * locale/programs/ld-collate.c (collate_read): Likewise.
3928         * locale/programs/linereader.c (get_string): Likewise.
3929         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
3930         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
3931         * resolv/res_debug.c (do_section): Likewise.
3932         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
3933         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
3934         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3935         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
3936         * time/tzset.c (tzset_internal): Likewise.
3938 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
3940         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
3941         of ASSEMBLER.
3943 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
3945         [BZ #5903]
3946         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
3947         not stream for output file.  Open output file here.
3948         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
3949         and output file name.
3950         (process_fd): Likewise.
3951         (process_file): Likewise.
3952         (main): Adjust callers of changed functions.
3953         * iconv/iconv_prog.h: Adjust prototype.
3955 2008-03-09  Andreas Jaeger  <aj@suse.de>
3957         [BZ #5753]
3958         * sysdeps/ia64/ieee754.h: Use protected namespace
3959         __BIG_ENDIAN/__LITTLE_ENDIAN.
3960         * sysdeps/ieee754/ieee754.h: Likewise.
3961         Patch by Aurelien Jarno <aurelien@aurel32.net>.
3963 2008-03-08  Roland McGrath  <roland@frob.com>
3965         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
3966         ignore a signal that came from a machine exception, treat it as a
3967         fatal core-dump signal instead.
3968         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3970         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3971         Clear DF bit in thread state's eflags.
3972         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3974 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
3976         [BZ #5774]
3977         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
3978         of NAN(...) sequence.
3979         * stdlib/Makefile (tests): Add tst-strtod6.
3980         * stdlib/tst-strtod6.c: New file.
3982         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
3984         [BZ #5762]
3985         * posix/getopt.c (_getopt_internal_r): Clarify error message by
3986         putting offending option character in quotes.  Clean up error
3987         messages.
3988         * po/be.po: Adjust msgstr in translation file.
3989         * po/bg.po: Likewise.
3990         * po/ca.po: Likewise.
3991         * po/cs.po: Likewise.
3992         * po/da.po: Likewise.
3993         * po/de.po: Likewise.
3994         * po/es.po: Likewise.
3995         * po/fr.po: Likewise.
3996         * po/hr.po: Likewise.
3997         * po/ko.po: Likewise.
3998         * po/nl.po: Likewise.
3999         * po/rw.po: Likewise.
4000         * po/sk.po: Likewise.
4001         * po/sv.po: Likewise.
4002         * po/tr.po: Likewise.
4003         * po/zh_CN.po: Likewise.
4004         * po/zh_TW.po: Likewise.
4006         [BZ #5760]
4007         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
4008         Patch by Roland Bless <roland@bless.de>.
4010         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
4011         .o file.
4012         * elf/Makefile (routines): Add dl-sysdep.
4013         (elide-routines.os): Likewise.
4015 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
4017         [BZ #5786]
4018         * elf/dl-sysdep.c: Undefine ROUND after use.
4019         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
4020         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
4021         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
4022         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
4023         to ...
4024         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
4025         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
4026         if necessary.
4027         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
4029         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
4030         _dl_tls_get_addr_soft element.
4031         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
4032         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
4033         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
4034         GLRO.
4035         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
4036         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
4037         of internal_function.
4039         * stdlib/Makefile (aux): Add tens_in_limb.
4040         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
4041         * stdlib/tens_in_limb.c: ...here.  New file.
4043         [BZ #5778]
4044         * sysdeps/unix/sysv/linux/pathconf.h: Declare
4045         __statfs_chown_restricted.
4046         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
4047         for _PC_CHOWN_RESTRICTED.
4048         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
4049         Implement __statfs_chown_restricted.
4050         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
4051         _POSIX_CHOWN_RESTRICTED value to zero.
4052         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
4053         defined to zero.
4055         * sysdeps/x86_64/rtld-memset.c: New file.
4057 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
4059         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
4061         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
4062         Barcelona machine.  Make default fall through branch of
4063         __x86_64_preferred_memory_instruction check as the integer code path.
4065 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
4067         * sysdeps/x86_64/cacheinfo.c
4068         (__x86_64_preferred_memory_instruction): New variable.
4069         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4071         * sysdeps/x86_64/memset.S: Rewrite.
4073 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
4075         * include/stdio.h (__asprintf_chk, __dprintf_chk,
4076         __obstack_printf_chk): New prototypes.
4077         (__vasprintf_chk, __vdprintf_chk,
4078         __obstack_vprintf_chk): Likewise.
4079         Add libc_hidden_proto.
4080         * libio/obprintf.c
4081         (_IO_obstack_jumps): No longer static, add attribute_hidden.
4082         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
4083         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4084         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
4085         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
4086         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4087         __obstack_vprintf_chk): New prototypes.
4088         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
4089         obstack_vprintf): New inlines.
4090         * debug/dprintf_chk.c: New file.
4091         * debug/vdprintf_chk.c: New file.
4092         * debug/asprintf_chk.c: New file.
4093         * debug/vasprintf_chk.c: New file.
4094         * debug/obprintf_chk.c: New file.
4095         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
4096         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
4097         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
4098         @@GLIBC_2.8.
4099         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
4100         vdprintf_chk and obprintf_chk, set CFLAGS for them.
4101         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
4102         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
4103         libc_hidden_proto.
4104         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
4105         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
4106         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
4107         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
4108         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
4109         @@GLIBC_2.8.
4110         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
4111         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
4112         obstack_vprintf_chk.
4113         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
4114         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
4115         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
4116         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
4117         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
4118         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
4120 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
4122         [BZ #5779]
4123         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
4124         Patch by Roy Marples <roy@marples.name>.
4126         [BZ #5736]
4127         * malloc/malloc.c: Fix typo in comment.
4129         [BZ #5627]
4130         * locale/iso-639.def: Add Shuswap.
4132 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
4134         [BZ #5790]
4135         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
4136         overwrite *h_errnop/*errnop values from getanswer_r in case of
4137         failure.
4139 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
4141         [BZ #5818]
4142         * nscd/connections.c (dbs): Add initializers for .suggested_module.
4143         (verify_persistent_db): Remove one unnecessary test and add a new one
4144         for bad configuration.
4145         (nscd_init): Improve error reported when persistent database cannot
4146         be reused.
4147         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
4148         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
4149         .suggested_module and .max_db_size and case config file says the
4150         values are zero.
4151         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
4153         [BZ #5854]
4154         * nis/ypclnt.c (yp_order): Fix handling of return value of
4155         do_ypcall_tr call.
4156         Patch by Jeff Moyer <jmoyer@redhat.com>.
4158         * po/fr.po: Update from translation team.
4160 2008-02-22  Andreas Jaeger  <aj@suse.de>,
4161             Carlos O'Donell <carlos@systemhalted.org>
4163         [BZ #5012]
4164         * FAQ.in: Describe why glibc needs to be compiled with
4165         optimization.
4167 2008-02-19  Roland McGrath  <roland@redhat.com>
4169         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
4171 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
4173         [BZ #5737]
4174         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
4175         __USE_MISC is defined.
4177 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
4179         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
4180         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
4181         sys/timerfd.h.
4182         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
4183         timerfd_gettime, timerfd_settime.
4184         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
4185         timerfd_gettime, timerfd_settime for GLIBC_2.8.
4187 2008-02-08  Roland McGrath  <roland@redhat.com>
4189         * elf/elf.h (NT_PPC_SPE): New macro.
4191 2008-02-06  Roland McGrath  <roland@redhat.com>
4193         * Makerules ($(common-objpfx)sysd-rules):
4194         Depend on $(sysdep-makeconfigs).
4196 2008-01-31  Roland McGrath  <roland@redhat.com>
4198         [BZ #5442]
4199         * configure.in: Use -print-file-name if it yields a directory,
4200         for each of include and include-fixed.
4201         * configure: Regenerated.
4203         * Makeconfig (sysd-rules-targets): New variable.
4204         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
4205         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
4207 2008-01-30  Roland McGrath  <roland@redhat.com>
4209         * manual/libc.texinfo: Update back-cover text.
4211         * elf/elf.h (NT_386_TLS): New macro.
4213 2008-01-29  Roland McGrath  <roland@redhat.com>
4215         * Makeconfig (sysd-rules-patterns): New variable.
4216         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
4217         (check-inhibit-asm): New canned sequence, replaces ...
4218         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
4219         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
4220         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
4221         (CFLAGS-rtld): Variable removed.
4223 2008-01-24  Roland McGrath  <roland@redhat.com>
4225         * configure.in: Let configure fragments set base_os.
4226         * configure: Regenerated.
4228 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
4230         * po/ko.po: Update from translation team.
4232 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
4234         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
4236 2008-01-12  Andreas Jaeger  <aj@suse.de>
4238         [BZ #5040]
4239         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
4240         Add EPOLLRDHUP.
4242 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4244         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
4245         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
4246         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
4248 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
4250         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
4251         * elf/dl-close.c (_dl_close): Check for it.
4252         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
4253         (_dl_allocate_static_tls): Likewise.
4254         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
4255         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
4256         to it.
4257         * elf/tst-tls16.c: New file.
4258         * elf/tst-tlsmod16a.c: New file.
4259         * elf/tst-tlsmod16b.c: New file.
4260         * elf/Makefile: Add rules to build and run tst-tls16.
4262 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
4264         [BZ #5628]
4265         * bits/shm.h: Fix comment describing shmid_ds.
4266         * sysdeps/gnu/bits/shm.h: Likewise.
4267         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
4268         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
4269         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
4270         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
4271         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
4272         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
4273         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
4274         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
4275         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
4277         [BZ #5607]
4278         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
4279         prototypes.
4280         * conform/data/limits.h-data: Adjust limits changed in v6 and add
4281         additional suffixes.
4282         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
4283         Add optional functions mq_timedreceive and mq_timedsend.
4284         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
4285         * conform/data/pthread.h-data: Fix prototype of
4286         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
4287         * conform/data/semaphore.h-data: Allow time.h definitions.
4288         * conform/data/signal.h-data: Likewise.
4289         * conform/data/stdio.h-data: getw and putw are not required in v6.
4290         * conform/data/stdlib.h-data: Change setstate prototype.
4291         * conform/data/string.h-data: Fix strerror_r prototype.
4292         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
4293         * conform/data/unistd.h-data: pthread_atfork not required in v6.
4294         Fix readlink prototype.
4295         * conform/data/netinet/in.h-data: Add const to in6addr_any and
4296         in6addr_loopback.
4297         * inet/netinet/in.h: Cleanup namespace.
4298         * posix/regex.h: Likewise.
4299         * resolv/netdb.h: Likewise.
4300         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
4301         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4302         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4303         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
4304         of names of in in6_addr.
4305         (default_precedence): Likewise.
4306         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
4307         NULL definition.
4309 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
4311         * conform/data/fmtmsg.h-data: Add missing allows.
4312         * conform/data/ftw.h-data: Likewise.
4313         * conform/data/inttypes.h-data: Likewise.
4314         * conform/data/math.h-data: Likewise.
4315         * conform/data/signal.h-data: Likewise.
4316         * conform/data/net/if.h-data: Likewise.
4317         * conform/data/netinet/in.h-data: Likewise.
4318         * conform/data/sys/socket.h-data: Likewise.
4320         [BZ #5614]
4321         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
4322         (__strtok_r): Simplify.
4323         * string/tester.c (test_strtok_r): Add test case for futile search
4324         with single-character seach string.
4326 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
4328         * po/ko.po: Update from translation team.
4330 2008-01-11  Andreas Jaeger  <aj@suse.de>
4332         [BZ #5600]
4333         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
4334         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
4335         kernel header.
4337 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
4339         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
4340         native interface lookup in all the relevant places.
4342 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
4343             Ulrich Drepper  <drepper@redhat.com>
4345         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
4346         field.  Use sockaddr_in6 for source_addr.
4347         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
4348         (match_prefix): Likewise.
4349         (get_label): Likewise.
4350         (get_precedence): Likewise.
4351         (rfc3484_sort): Change to use indirect access to results array.
4352         Adjust to use of sockaddr_in6.  Replace service_order test with
4353         simple index comparison.
4354         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
4355         service_order field.  Adjust qsort_t calls.  Access sorted result
4356         array indirectly through order array.
4357         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
4358         * posix/tst-rfc3484-2.c: Likewise.
4359         * posix/tst-rfc3484-3.c: Likewise.
4361 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
4363         [BZ #5541]
4364         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
4365         pollfd structures.
4366         Patch by André Cruz.
4368         [BZ #5545]
4369         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
4370         (clnt_spcreateerror): Likewise.
4372         [BZ #5553]
4373         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
4374         (public_mEMALIGn): Likewise.
4375         Patch mostly by Daniel Jacobowitz.
4377 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
4379         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
4380         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
4381         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
4382         * stdlib/tst-makecontext2.c: New test.
4384 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
4386         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
4387         defined.
4388         (REINIT_PARAMS): Likewise.  Undefine before end of file.
4389         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
4390         transliteration hooks and REINIT_PARAMS afterwards.
4391         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
4392         status.
4393         (REINIT_PARAMS): Define.
4394         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
4395         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
4396         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
4397         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
4398         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
4399         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
4400         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
4401         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
4402         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
4403         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
4404         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
4405         * iconvdata/tst-iconv7.c: New test.
4407 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
4409         * libio/stdio.h (vscanf): Fix definition for loser compilers.
4411 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
4413         [BZ #5112]
4414         * nscd/connections.c (restart): Fix condition.
4416 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
4418         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
4419         __ctype_toupper_loc): Add __THROW.
4421 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
4423         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
4424         recognition of interface family.
4426         * posix/getconf.c: Update copyright year.
4427         * nss/getent.c: Likewise.
4428         * iconv/iconvconfig.c: Likewise.
4429         * iconv/iconv_prog.c: Likewise.
4430         * elf/ldconfig.c: Likewise.
4431         * catgets/gencat.c: Likewise.
4432         * csu/version.c: Likewise.
4433         * elf/ldd.bash.in: Likewise.
4434         * elf/sprof.c (print_version): Likewise.
4435         * locale/programs/locale.c: Likewise.
4436         * locale/programs/localedef.c: Likewise.
4437         * nscd/nscd.c (print_version): Likewise.
4438         * debug/xtrace.sh: Likewise.
4439         * malloc/memusage.sh: Likewise.
4440         * malloc/mtrace.pl: Likewise.
4441         * debug/catchsegv.sh: Likewise.
4443 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
4445         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
4446         second lookup.
4448 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
4450         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
4451         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4453 2007-12-17  Roland McGrath  <roland@redhat.com>
4455         * inet/ether_line.c (ether_line): Remove unused variable.
4457 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4459         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
4460         and winp.
4461         * login/openpty.c (openpty): Likewise.
4462         * login/pty.h (openpty, forkpty): Likewise.
4463         * manual/terminal.texi (openpty, forkpty): Likewise.
4465 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
4467         * malloc/malloc.c (public_cALLOc): For arenas other than
4468         main_arena, count all bytes inside the mprotect_size range of the
4469         heap as uninitialized.
4471 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
4473         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
4474         executable stacks.
4476         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
4477         mTRIm for all of them.
4478         (mTRIm): Additionally iterate over all free blocks and use madvise
4479         to free memory for all those blocks which contain at least one
4480         memory page.
4481         * malloc/tst-trim1.c: New file.
4482         * malloc/Makefile (tests): Add tst-trim1.
4484         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
4486 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
4488         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4489         First cast argument to long
4490         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
4491         Return long.
4492         (__vdso_clock_gettime): Likewise.
4493         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
4494         return long.
4496 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
4498         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
4499         * locale/nl_langinfo_l.c: Real implementation, copied from
4500         nl_langinfo.c.
4501         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
4503 2007-12-01  Jim Meyering  <meyering@redhat.com>
4505         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4506         that would inhibit utf8-optimization of a regexp containing line-
4507         or buffer-anchors, e.g., `^', `$'.
4509 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
4511         * time/bug-getdate1.c (do_test): Don't use century values which
4512         aren't valid on 32-bit systems.
4514 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
4516         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
4517         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
4518         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
4519         __strcat_g, __strncat_g): Add __asm__.
4521 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
4523         [BZ #5477]
4524         * io/fchmodat.c: Fix typo in stub_warning use.
4525         Patch by Petr Salinger.
4527 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
4529         * iconvdata/hp-thai8.c: New file.
4530         * iconvdata/Makefile: Add rules for hp-thai8.c.
4531         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
4532         * iconvdata/gconv-modules: Likewise.
4534         [BZ #5464]
4535         * iconvdata/hp-greek8.c: New file.
4536         * iconvdata/Makefile: Add rules for hp-greek8.c.
4537         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
4538         * iconvdata/gconv-modules: Likewise.
4540         [BZ #5463]
4541         * iconvdata/hp-turkish8.c: New file.
4542         * iconvdata/Makefile: Add rules for hp-turkish8.c.
4543         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
4544         * iconvdata/gconv-modules: Likewise.
4546         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
4547         (shrink_heap): ... this new function.
4548         (heap_trim): Call shrink_heap instead of grow_heap.
4550         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
4551         case don't call alloc_perturb.
4553 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
4555         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
4556         possible.
4557         * sysdeps/unix/sysv/linux/kernel-features.h
4558         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
4559         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
4561 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
4563         [BZ #5424]
4564         * stdio-common/vfprintf.c: Do not overflow when adding to done.
4565         * stdio-common/Makefile (tests): Add bug22.
4566         * stdio-common/bug22.c: New file.
4568         [BZ #5451]
4569         * time/getdate.c: Fix filling in default values.
4570         * time/bug-getdate1.c: New file.
4571         * time/Makefile: Add rules to build and run bug-getdate1.
4573         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
4574         * iconvdata/ebcdic-es.c: Likewise.
4575         * iconvdata/ebcdic-es-a.c: Likewise.
4576         * iconvdata/ebcdic-uk.c: Likewise.
4577         * iconvdata/iso8859-16.c: Likewise.
4578         * iconvdata/viscii.c: Likewise.
4579         * iconvdata/iso8859-9e.c: Likewise.
4580         * iconvdata/Makefile: Adjust appropriately.
4582         [BZ #5428]
4583         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
4584         __need_wint_t.
4586 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
4588         [BZ #5427]
4589         * iconvdata/hp-roman9.c: New file.
4590         * iconvdata/Makefile: Add rules for hp-roman9.c.
4591         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
4592         * iconvdata/gconv-modules: Likewise.
4594         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
4595         * iconvdata/Makefile: Adjust appropriately.
4597         [BZ #5441]
4598         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
4599         structure, it's allocated with alloca.
4600         * stdio-common/Makefile (tests): Add bug21.
4601         * stdio-common/bug21.c: New file.
4603 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
4605         [BZ #5452]
4606         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
4607         keyword for gcc's braced-groups.
4609 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
4611         [BZ #5454]
4612         * inet/ether_line.c: Strip hostname of whitespaces.
4613         * inet/Makefile (tests): Add tst-ether_line.
4614         * inet/tst-ether_line.c: New file.
4616 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
4618         [BZ #5439]
4619         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
4621         [BZ #5435]
4622         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
4624         * stdlib/tst-setcontext.c: Catch the case where the links gets
4625         messed up and we do not reach main again.
4627         * po/ca.po: Update from translation team.
4629 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
4631         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
4632         * posix/regex.h (REG_ENOSYS): Likewise.
4633         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
4635 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
4637         * nscd/nscd.h (MAX_STACK_USE): Define.
4638         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
4639         (gc): Initialize stack_used based on allocation in prune_cache.
4640         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
4641         Clear array before use.
4643         * nscd/aicache.c (addhstaiX): Update statistics counter in case
4644         memory allocation failed.
4645         * nscd/hstcache.c (cache_addhst): Likewise.
4646         * nscd/grpcache.c (cache_addgr): Likewise.
4647         * nscd/servicescache.c (cache_addserv): Likewise.
4648         * nscd/pwdcache.c (cache_addpw): Likewise.
4649         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4651 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
4653         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
4654         and creat system calls.
4656         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
4658 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4660         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
4661         Add netiucv/iucv.h.
4662         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
4663         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
4664         protocol.
4665         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
4666         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
4667         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
4669 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4671         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
4672         strncat): Define as macros to avoid compile errors.
4674         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
4675         creat entries.
4677 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
4679         [BZ #5382]
4680         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
4681         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
4682         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
4683         overflow it.
4684         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4686         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
4687         Return zero in case the thread library is not NPTL.
4689         [BZ #5375]
4690         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
4691         initializing interface list.
4693         [BZ #5378]
4694         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
4695         use result of nss_getgrgid_r if nothing was found.  For other
4696         error return with a failure.
4697         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4699         * locale/programs/ld-collate.c (collate_read): Fix loop to match
4700         macro name.
4702 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
4704         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
4705         (get_scope): For IPv4 scope, use scopes table.
4706         (fini): Free scopes table if necessary.
4707         (free_scopelist): New function.
4708         (scopecmp): New function.
4709         (gaiconf_init): Also handle scopev4 entries.
4710         * posix/tst-rfc3484.c (do_test): Initialize scopes.
4711         * posix/tst-rfc3484-2.c (do_test): Likewise.
4712         * posix/gai.conf: Document scopev4 defaults.
4713         * posix/Makefile (tests): Add tst-rfc3484-3.
4714         * posix/tst-rfc3484-3.c: New file.
4716         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
4717         Teredo tunnels.
4718         * posix/gai.conf: Update for current default tables.
4720 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
4722         * po/tr.po: Update from translation team.
4724 2007-11-18  Roland McGrath  <roland@frob.com>
4726         * manual/arith.texi (Remainder Functions): Spelling fix.
4727         From Shaun Silk <genix@mysoul.com.au>.
4729         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
4731 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
4733         * po/zh_CN.po: Update from translation team.
4735         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
4736         Add sys/signalfd.h and sys/eventfd.h.
4738 2007-11-15  Bruno Haible  <bruno@clisp.org>
4740         [BZ #5346]
4741         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
4742         union.
4743         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
4744         (DCIGETTEXT): Change the allocation of the 'search' variable so that
4745         it needs only fixed stack space. Delay the initialization of
4746         msgid_len until it is needed.
4748 2007-11-15  Andreas Jaeger  <aj@suse.de>
4750         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
4751         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
4753 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
4755         * po/ko.po: Update from translation team.
4757 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
4759         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
4760         significantly.  The device type is also part of the ifinfomsg data.
4762         * po/sv.po: Update from translation team.
4763         * po/nl.po: Likewise.
4765         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
4766         to wake up in 24 hours.
4768         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
4770 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
4772         * po/cs.po: Update from translation team.
4773         * po/pl.po: Likewise.
4775         * include/ifaddrs.h: Remove in6ai_temporary.
4776         (struct in6addrinfo): Add index element.
4777         Declare __check_native.
4778         * inet/Makefile (aux): Add check_native.
4779         * sysdeps/unix/sysv/linux/check_native.c: New file.
4780         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
4781         IFA_F_TEMPORARY.  Pass back ifa_index.
4782         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
4783         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
4784         call __check_native if necessary.
4785         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
4786         to sort addresses.  Pass information about the results.
4787         * posix/tst-rfc3484.c: Adjust for addition of index field and change
4788         of rfc3484_sort interface.
4789         * posix/tst-rfc3484-2.c: Likewise.
4791         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
4792         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
4793         for _quicksort.
4794         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
4795         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
4796         on as third parameter to compare function and _quicksort.
4797         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
4798         to the compare function.
4799         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
4800         * Versions.def: Add GLIBC_2.8 for libc.
4802         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
4803         * posix/tst-rfc3484-2.c: Likewise.
4805         * include/kernel-features.h: Moved to...
4806         * sysdeps/mach/hurd/kernel-features.h: ...here.
4808 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
4810         * sysdeps/i386/i586/memcpy_chk.S: New file.
4811         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
4812         * sysdeps/i386/i586/memset_chk.S: Likewise.
4814 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
4816         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
4817         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
4818         list of interfaces.  Also store prefix length.
4819         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
4820         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
4821         prefix if source and destination address are in the same subnet.
4822         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
4823         Always look for matching record in in6ai list.
4824         Correct source_addr_len value for IPv6->IPv4 converted records.
4826 2007-11-11  Roland McGrath  <roland@frob.com>
4828         * include/kernel-features.h: New file.
4830 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
4832         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
4833         complications for 64-bit platforms.
4835         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
4836         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
4837         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
4838         open64_2.
4839         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
4840         entries.
4841         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4842         * sysdeps/wordsize-64/alphasort.c: New file.
4843         * sysdeps/wordsize-64/alphasort64.c: New file.
4844         * sysdeps/wordsize-64/fseeko.c: New file.
4845         * sysdeps/wordsize-64/fseeko64.c: New file.
4846         * sysdeps/wordsize-64/ftello.c: New file.
4847         * sysdeps/wordsize-64/ftello64.c: New file.
4848         * sysdeps/wordsize-64/ftw.c: New file.
4849         * sysdeps/wordsize-64/ftw64.c: New file.
4850         * sysdeps/wordsize-64/iofgetpos.c: New file.
4851         * sysdeps/wordsize-64/iofgetpos64.c: New file.
4852         * sysdeps/wordsize-64/iofopen.c: New file.
4853         * sysdeps/wordsize-64/iofopen64.c: New file.
4854         * sysdeps/wordsize-64/iofsetpos.c: New file.
4855         * sysdeps/wordsize-64/iofsetpos64.c: New file.
4856         * sysdeps/wordsize-64/lockf.c: New file.
4857         * sysdeps/wordsize-64/lockf64.c: New file.
4858         * sysdeps/wordsize-64/mkostemp.c: New file.
4859         * sysdeps/wordsize-64/mkostemp64.c: New file.
4860         * sysdeps/wordsize-64/mkstemp.c: New file.
4861         * sysdeps/wordsize-64/mkstemp64.c: New file.
4862         * sysdeps/wordsize-64/scandir.c: New file.
4863         * sysdeps/wordsize-64/scandir64.c: New file.
4864         * sysdeps/wordsize-64/tmpfile.c: New file.
4865         * sysdeps/wordsize-64/tmpfile64.c: New file.
4866         * sysdeps/wordsize-64/versionsort.c: New file.
4867         * sysdeps/wordsize-64/versionsort64.c: New file.
4868         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
4869         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
4870         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
4871         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
4872         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
4873         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
4874         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
4875         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
4876         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
4877         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
4878         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
4879         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
4881         * crypt/sha256-crypt.c: Fix a comment.
4882         * crypt/sha512-crypt.c: Likewise.
4884 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
4886         * sysdeps/x86_64/memset.S: Add sfence after movnti.
4888 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
4890         [BZ #5277]
4891         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
4892         because output buffer is too small break, don't loop.
4893         * iconvdata/Makefile (tests): Add bug-iconv6.
4894         * iconvdata/bug-iconv6.c: New file.
4896 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
4898         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
4899         with size_t type.
4900         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
4901         size_t.  Add casts where needed.
4903         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
4904         old headers, don't call avc_has_perm if we don't have the
4905         permission information.
4907 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
4909         * elf/rtld.c (dl_main): Use the page size to find the map start.
4911 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
4913         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
4914         Patch by Szymon Siwek <sls@poczta.wp.pl>.
4916         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
4917         when the lookup call failed.
4919         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
4920         Add prune_cond and wakeup_time.
4921         (CACHE_PRUNE_INTERNAL): Define.
4922         Update declarations of prune_cache and setup_thread.
4923         * nscd/connections.c (dbs): Update initializers.
4924         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
4925         (nscd_init): Default number of threads is now 4.
4926         (invalidate_cache): Take lock before calling prune_cache.
4927         (handle_request): If SELinux forbids the request, say so.
4928         (readylist_cond): Use static initializer.
4929         (nscd_run_prune): New function.  Used only by pruning threads.
4930         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
4931         here.
4932         (fd_ready): Update nscd_run reference.
4933         (start_threads): No need to initialize readylist_cond.
4934         Start pruning threads separately.
4935         * nscd/nscd_setup_thread.c: Change return value type to int and always
4936         return 0.
4937         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
4938         to int and return nonzero value if we can use the TID address hack.
4939         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
4940         the database is later than the new entry's timeout, update the
4941         wakeup time and wake the cleanup thread.
4942         (prune_cache): Return seconds the next entry in the database is still
4943         valid.  Remove locking for pruning here.
4944         * nscd/nscd.conf: Document default number of threads.
4946 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
4948         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
4949         stack is properly aligned for the target function.
4950         Correct unwind info.
4952         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
4953         when using auditing libraries.
4955 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
4957         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
4958         _nss_dns_getnetbyaddr2_r.
4959         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
4960         extra parameter to getanswer_r.
4961         (_nss_dns_getnetbyaddr_r): Now a wrapper around
4962         _nss_dns_getnetbyaddr2_r.
4964         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
4965         gethstbynm3_r.
4966         * nscd/gethstbynm2_r.c: Remove.
4967         * nscd/gethstbynm3_r.c: New file.
4968         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
4969         __gethostbyaddr_r.
4970         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
4971         __gethostbyaddr_r compatibility wrapper.
4972         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
4973         determining timeout of entry.
4974         (lookup): Take new parameter and pass it to __gethostbyname3_r and
4975         __gethostbyaddr2_r.
4976         (addhstbyX): Pass reference to variable for TTL to lookup and
4977         cache_addhst.
4978         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
4979         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
4980         and __nss_next2.  Remove __nss_services_lookup.
4981         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
4982         Add compat wrapper.
4983         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
4984         __nss_next2.
4985         * nss/getXXent_r.c: Likewise.
4986         * nss/getnssent_r.c: Likewise.
4987         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
4988         does not exist in module, try the optional second name.
4989         (__nss_next2): New function.
4990         (__nss_next): Now wrapper around __nss_next2.
4991         * nss/nsswitch.h: Adjust __nss_lookup prototype.
4992         Declare __nss_next2.
4993         Adjust definition of db_lookup_function type.
4994         * nss/service-lookup.c: Define NO_COMPAT.
4995         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
4996         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
4997         * inet/ether_ntoh.c: Likewise.
4998         * sunrpc/netname.c: Likewise.
4999         * sunrpc/publickey.c: Likewise.
5000         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
5001         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
5002         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
5003         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
5004         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
5006         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
5008         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
5010 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
5012         [BZ #5204]
5013         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
5014         * crypt/sha512c-test.c: Likewise.
5016         [BZ #5225]
5017         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
5018         to keep track of end of %[ format string element.
5019         * stdio-common/Makefile (tests): Add bug20.
5020         * stdio-common/bug20.c: New file.
5022         [BZ #5222]
5023         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
5024         path elements in counting mode.
5026 2007-10-27  Andreas Jaeger  <aj@suse.de>
5028         [BZ #5040]
5029         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
5031         [BZ #3112]
5032         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
5033         (__cleanup): Free shared library when exiting.
5034         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
5035         (__cleanup): Free shared library when exiting.
5037 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
5039         [BZ #2549]
5040         * math/libm-test.inc (check_float_internal): Support
5041         denormalized return.
5043 2007-10-23  Andreas Jaeger  <aj@suse.de>
5045         [BZ #5208]
5046         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
5047         __LONG_LONG_PAIR to handle little endian byte order.
5048         Suggested by abhishekrai@google.com
5050 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
5052         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
5054 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
5056         * nscd/cache.c (prune_cache): Move test for modified file outside
5057         of locking.
5059 2007-10-21  Andreas Jaeger  <aj@suse.de>
5061         * manual/texinfo.tex: Update to latest version.
5063         * manual/sysinfo.texi (System Parameters): Fix Formatting.
5065         * manual/arith.texi (Status bit operations): Fix formatting.
5067         * manual/errno.texi (Error Messages): Fix formatting.
5069         * manual/sysinfo.texi (System Parameters): Fix formatting.
5071         * manual/libc.texinfo: Update VERSION and UPDATED.
5073 2007-10-19  Roland McGrath  <roland@redhat.com>
5075         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
5077 2007-10-06  David S. Miller  <davem@davemloft.net>
5079         * configure.in: Add sparcv9v2 and sparc64v2.
5080         * scripts/config.sub: Likewise.
5081         * configure: Regenerate.
5082         * elf/elf.h (HWCAP_SPARC_N2): New.
5083         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
5084         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
5085         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
5086         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
5087         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
5088         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
5089         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
5091 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
5093         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
5094         even if the poll result indicates there is data to read.
5095         Patch by Jeff Moyer <jmoyer@redhat.com>.
5097 2007-10-18  Roland McGrath  <roland@redhat.com>
5099         * elf/elf.h (NT_PPC_VMX): New macro.
5101 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5103         * version.h (VERSION): Set to 2.7.90.
5105 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
5107         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
5108         weak_alias.
5110 2007-10-17  Roland McGrath  <roland@frob.com>
5112         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
5113         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
5115 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5117         * version.h (VERSION): Bump to 2.7.
5118         * include/features.h (__GLIBC_MINOR__): Bump to 7.
5120         [BZ #5186]
5121         * time/tzset.c (__tz_convert): Don't force testing for a change of
5122         TZ if not called from localtime.  But then also see whether the
5123         file changed, in case __use_tzfile is set.
5125         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
5126         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5127         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5128         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5129         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5130         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5131         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
5132         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5134 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
5136         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
5137         and admin selects to be able to replace the gai.conf file, lock
5138         data structures around the qsort call.
5140 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5142         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
5143         new memset.
5144         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
5145         too high for the improvements.  Implement bzero unconditionally for
5146         use in libc.
5148 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5149             Jakub Jelinek  <jakub@redhat.com>
5151         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
5152         even when time_t is 32-bit.
5153         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
5154         timezone data read by __tzfile_default.  Ensure __tzname[0] is
5155         always set after the search.
5157 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
5159         * time/tzfile.c (__tzfile_read): Help the compiler recognize
5160         unreachable code on 32-bit machines.
5162 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5164         [BZ #5184]
5165         * time/strftime_l.c: Include stdbool.h.
5166         (my_strftime): New wrapper, old function renamed to...
5167         (__strftime_internal): ... new function.  Add tzset_called
5168         argument, pass it down to recursive calls, don't call tzset ()
5169         if already true, set to true after call to tzset ().
5171 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
5173         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
5174         into account when copying TZ string.
5176 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5178         * time/tzfile.c (__tzfile_compute): For use_last case set i to
5179         num_transition rather than num_transitions - 1.
5181 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5183         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
5184         PIC indirect jump.
5186         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
5187         a local label rather than HIDDEN_JUMPTARGET.
5189 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
5191         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
5192         (init_cacheinfo): Initialize it.
5193         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
5194         Always define bzero.
5195         Remove non-glibc code.
5196         * sysdeps/x86_64/bzero.S: Make an empty file.
5198 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
5200         * sysdeps/x86_64/cacheinfo.c
5201         (__x86_64_preferred_memory_instruction): New.
5202         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5204         * sysdeps/x86_64/memset.S: Rewrite.
5206 2007-10-15  Roland McGrath  <roland@redhat.com>
5208         * po/libc.pot: Regenerated.
5210 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
5212         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
5213         pointers.
5215         [BZ #3425]
5216         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
5217         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
5218         address record to T_A/T_AAAA requests.
5220 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
5222         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
5224         * posix/glob.c: Add some branch prediction throughout.
5226         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
5227         read from nscd.
5229         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
5230         service_order.
5231         (rfc3484_sort): Make sure that even if qsort doesn't support
5232         stable sorting out sorting here is stable by comparing service_order.
5233         (getaddrinfo): Initialize service_order.
5234         * posix/tst-rfc3484.c (do_test): Adjust for addition of
5235         service_order field to sorting structure.
5236         * posix/tst-rfc3484-2.c (do_test): Likewise.
5238         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
5239         * time/tzset.c (tzset_internal): Break TZ string parsing out into
5240         __tzset_parse_tz and updating of daylight, timezone, tzname into
5241         update_vars.
5242         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
5243         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
5244         happens in __tz_compute.
5245         * time/tzfile.c (__tzfile_read): Also read TZ string.
5246         (find_transition): Fold into __tzfile_compute.
5247         (__tzfile_compute): For times beyond the last transition try to
5248         use the TZ string.
5249         * timezone/tst-timezone.c: Information in daylight and tzname does
5250         change for Asia/Tokyo timezone with more concrete information.
5251         Remove the test.
5253         * include/stdio.h: Add libc_hidden_proto for ftello.
5254         * libio/ftello.c: Add libc_hidden_def.
5256         [BZ #1140]
5257         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
5258         on the specified time and not the last entries in the file.  Move
5259         code to determine tzname[] to...
5260         (find_transition): ...here.  Add ugly guess for times before the
5261         first transition.
5263 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
5265         [BZ #3195]
5266         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
5267         no entry.
5268         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
5269         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5270         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5271         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
5273         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
5274         read mechanism when there are no group members and avoid no-op
5275         read syscall in this case.
5277         [BZ #3242]
5278         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
5279         (__readall): If reading failed due to EAGAIN error wait a bit
5280         and possibly try again.
5281         (__readvall): Likewise.
5283 2007-10-13  Bruno Haible  <bruno@clisp.org>
5285         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
5286         when we cannot recode the message.
5288 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
5290         [BZ #4359]
5291         * libio/__freading.c (__freading): Don't return true for
5292         write-only streams.  For read/write streams, check whether we
5293         performed a read operation already.
5294         * libio/Makefile (tests): Add tst-ext2.
5295         * libio/tst-ext2.c: New file.
5297 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
5299         * locale/programs/repertoire.c (repertoire_read): Always free
5300         memory for repertoire file name [Coverity CID 270].
5302         * elf/cache.c (save_aux_cache): Free memory allocated for
5303         temporary file name [Coverity CID 267].
5305 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
5307         * misc/Makefile (headers): Add bits/error.h.
5309 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
5311         * posix/fnmatch_loop.c: Take rule index returned as part of
5312         findidx return value into account when accessing weights.
5313         * posix/regcomp.c: Likewise.
5314         * posix/regexec.c: Likewise.
5316         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
5317         (skip_to): Fix problems with parameter of elifdef/elifndef.
5319 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
5321         * iconv/gconv_simple.c: Add some branch prediction.
5323 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
5325         * locale/programs/ld-collate.c (collate_read): If ignore_content
5326         and nowtok is tok_define, eat any tok_eol tokens.
5328 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
5330         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
5331         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
5333         * inet/netinet/in.h: Don't include bits/socket.h.
5334         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
5335         macro.
5336         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
5338 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
5340         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
5341         and tok_elifndef.
5342         * locale/programs/locfile-kw.gperf: Likewise.
5343         * locale/programs/ld-collate.c: Implement primitive preprocessor.
5345 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
5347         * stdio-common/printf-parse.h: Include string.h and wchar.h.
5348         (__find_specwc): Change into __extern_always_inline function.
5349         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
5350         (__parse_one_specmb): Remove ps argument.
5351         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
5352         Adjust __find_specmb and __parse_one_specmb callers.
5353         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
5354         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
5355         Removed.
5356         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
5357         caller.
5359 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
5361         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
5362         with some Pentium Ds.
5364 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
5366         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
5367         __read not read.
5368         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
5369         __write not write.
5371 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
5373         [BZ #181]
5374         * locale/C-time.c: Set week_1stday data to 19971201.
5375         * locale/programs/ld-time.c (time_finish): Default for
5376         first_workday is Monday.
5378         [BZ #2633]
5379         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
5381         [BZ #5103]
5382         * posix/glob.c (glob): Recognize patterns starting \/.
5383         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
5384         (main): Add test for pattern starting \/.
5386         * misc/error.h: Use __const instead of const.
5387         * misc/bits/error.h: Likewise.
5389 2007-10-07  Andreas Jaeger  <aj@suse.de>
5391         * include/bits/error.h: New file.
5393         * misc/bits/error.h (error_at_line): Fix prototype.
5395 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
5397         [BZ #3924]
5398         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
5399         more little bugs in creating the stack frame when pltexit has to
5400         be called.
5402         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
5403         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
5405         [BZ #4407]
5406         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
5407         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5408         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5409         * math/libm-test.inc: Add test for this case.
5411         [BZ #5010]
5412         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
5413         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
5414         map service succeeded.
5415         (svc_is_mapped): New function.
5416         (svc_unregister): Use it before trying to unmap service.
5418 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
5420         * timezone/zic.c: Update from tzcode2007h.
5422         [BZ #5063]
5423         * timezone/africa: Update from tzdata2007h.
5424         * timezone/antarctica: Likewise.
5425         * timezone/asia: Likewise.
5426         * timezone/australasia: Likewise.
5427         * timezone/europe: Likewise.
5428         * timezone/leapseconds: Likewise.
5429         * timezone/northamerica: Likewise.
5430         * timezone/southamerica: Likewise.
5431         * timzeone/zone.tab: Likewise.
5433         [BZ #5104]
5434         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
5436         [BZ #5113]
5437         * string/bits/string2.h (__strdup): Cast parameters to calloc to
5438         avoid warning with -Wconversion.
5439         (__strndup): Likewise.
5440         Half the patch by Christian Iseli <christian.iseli@licr.org>.
5442         [BZ #5112]
5443         * nscd/connections.c (restart): Don't resync if database is
5444         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
5446         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
5447         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
5449         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
5450         evetnfd_read, eventfd_write.
5451         * sysdeps/unix/sysv/linux/eventfd.c: New file.
5452         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
5453         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
5454         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
5455         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
5456         eventfd_write for GLIBC_2.7.
5458         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
5459         * sysdeps/unix/sysv/linux/signalfd.c: New file.
5460         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
5461         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
5463 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
5465         * stdlib/msort.c: Include stdint.h.
5466         (struct msort_param): New type.
5467         (msort_with_tmp): Use struct msort_param pointer for unchanging
5468         parameters.  Add optimized handling for several common sizes
5469         and indirect sorting mode.
5470         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
5471         sorting.
5472         Suggested by Belazougui Djamel .
5474         * stdlib/Makefile (tests): Add tst-qsort2.
5475         * stdlib/tst-qsort2.c: New test.
5477 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
5479         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
5480         for dup2 in case another thread races with the current one.  Retry
5481         in this case.
5483         * misc/error.h: Remove support for use outside of libc.  We have to
5484         include <features.h> now.  Include <bits/error.h> if possible.
5485         * misc/bits/error.h: New file.
5487 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
5489         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
5490         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
5491         __extern_always_inline functions unconditionally, drop macros.
5493         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
5494         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
5495         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
5497         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
5498         add __artificial__ attribute.
5500 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
5502         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
5503         backward to forward direction.
5505         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
5507         [BZ #645]
5508         * locale/programs/ld-collate.c (collate_finish): Compare against last
5509         used section which is known to have rules defined.
5510         (collate_read): After order_start, correctly record order of sections
5511         and queue sections up.
5513 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
5515         [BZ #5071]
5516         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
5517         the same number of pages.
5518         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
5520         * locale/programs/ld-collate.c (collate_read): After initial copy
5521         statement, continue in state 0.
5523         * include/stdio_ext.h (__fsetlocking): Define as macro.
5525 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
5527         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
5528         of section order.
5530         * po/pt_BR.po: Fix typo.
5532 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
5534         * iconvdata/Makefile (modules): Add ISO8859-9E.
5535         (distribute): Add iso8859-9e.c.
5536         (gen-8bit-gap-modules): Add iso8859-9e.
5537         * iconvdata/iso8859-9e.c: New file.
5538         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
5539         * iconvdata/TESTS: Likewise.
5540         * iconvdata/tst-tables.sh: Likewise.
5542         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5544         * locale/iso-639.def: Add several new entries.
5546 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
5548         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
5549         void * pointers instead of struct link_map **.
5550         (_dl_scope_free): Change argument type to void *.
5551         * include/link.h (struct link_map): Change type of l_reldeps
5552         to struct link_map_reldeps, move l_reldepsact into that
5553         struct too.
5554         * elf/dl-deps.c: Include atomic.h.
5555         (_dl_map_object_deps): Only change l->l_initfini when it is
5556         fully populated, use _dl_scope_free for freeing it.  Optimize
5557         removal of libs from reldeps by using l_reserved flag, when
5558         some removal is needed, allocate a new list instead of
5559         reallocating and free the old with _dl_scope_free.  Adjust
5560         for l_reldeps and l_reldepsact changes.
5561         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
5562         searching in l_initfini and l_reldeps without holding dl_load_lock.
5563         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
5564         l_reldepsact changes.
5565         * elf/dl-close.c (_dl_close_worker): Likewise.
5566         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
5568 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
5570         * iconvdata/Makefile (modules): Add KOI8-RU.
5571         (distribute): Add koi8-ru.c.
5572         (gen-8bit-gap-modules): Add koi8-ru.
5573         * iconvdata/koi8-ru.c: New file.
5574         * iconvdata/gconv-modules: Add entries for KOI8-RU.
5575         * iconvdata/TESTS: Likewise.
5576         * iconvdata/tst-tables.sh: Likewise.
5578         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5580 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
5582         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
5583         with __warning__/__error__ attributes.
5584         (__warnattr): Define.
5585         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
5586         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
5587         __warnattr.
5588         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
5589         of __*_chk if compile time detectable overflow is found.
5590         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
5591         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
5592         with __warnattr.
5593         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
5594         instead of __*_chk if compile time detectable overflow is found.
5595         (__gets_alias): Rename to...
5596         (__gets_warn): ... this.  Add __warnattr.
5597         (gets): Call __gets_warn instead of __gets_alias.
5598         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
5599         aliases with __warnattr.
5600         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
5601         time detectable overflow is found.
5602         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
5603         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
5604         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
5605         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
5606         __getdomainname_chk_warn): New aliases with __warnattr.
5607         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
5608         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
5609         __*_chk_warn instead of __*_chk if compile time detectable overflow
5610         is found.
5611         (__getgroups_chk): Rename argument to __listlen from listlen.
5612         (__getwd_alias): Rename to...
5613         (__getwd_warn): ... this.  Add __warnattr.
5614         (getwd): Call __getwd_warn instead of __getwd_alias.
5615         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
5616         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
5617         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
5618         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
5619         __wcsnrtombs_chk_warn): New aliases with __warnattr.
5620         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
5621         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
5622         compile time detectable overflow is found.
5623         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
5624         to use __*_chk or not.
5625         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
5626         in comparisons which function should be called and in __*_chk*
5627         arguments.  Call __*_chk_warn instead of __*_chk if compile time
5628         detectable overflow is found.
5629         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
5630         __*_chk argument.
5631         * debug/tst-chk1.c (do_test): Add a few more tests.
5633 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
5635         [BZ #5058]
5636         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
5637         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
5638         (_nl_unload_domain): Finalize conversions_lock.
5639         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
5640         handling table of known conversions.
5642 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
5644         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
5645         close_not_cancel_no_status instead of close.
5647 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
5649         [BZ #5028]
5650         * posix/regcomp.c (lookup_collation_sequence_value): Check that
5651         nrules != 0 for multibyte chars.
5653 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
5655         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
5656         Provide better error message in case the type is unknown.
5658         [BZ #4963]
5659         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
5660         * string/stratcliff.c: Make usable to test wide char functions.
5661         * wcsmbs/wcsatcliff.c: New file.
5662         * wcsmbs/Makefiel (tests): Add wcsatcliff.
5664         [BZ #4972]
5665         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
5666         (distribute): Add mac-centraleurope.c.
5667         (gen-8bit-gap-modules): Add mac-centraleurope.
5668         * iconvdata/mac-centraleurope.c: New file.
5669         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
5670         * iconvdata/TESTS: Likewise.
5671         * iconvdata/tst-tables.sh: Likewise.
5673         [BZ #5043]
5674         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
5676 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
5678         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
5679         from __x86_64_core_cache_size_half.
5680         (init_cacheinfo): Compute shared cache size for AMD processors with
5681         shared L3 correctly.
5682         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
5683         name change.
5684         Patch in large parts by Evandro Menezes.
5686 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
5688         * elf/dl-lookup.c (add_dependency): Handle failing memory
5689         allocation for dependency list.  Remove unnecessary check.
5691         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
5692         open/close when determining source addresses.
5694         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
5695         sha512-crypt, and sha512.
5696         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
5697         (distribute): Add sha256.h and sha512.h.
5698         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
5699         and call the appropriate code.
5700         * crypt/sha256-crypt.c: New file.
5701         * crypt/sha256.c: New file.
5702         * crypt/sha256.h: New file.
5703         * crypt/sha256c-test.c: New file.
5704         * crypt/sha256test.c: New file.
5705         * crypt/sha512-crypt.c: New file.
5706         * crypt/sha512.c: New file.
5707         * crypt/sha512.h: New file.
5708         * crypt/sha512c-test.c: New file.
5709         * crypt/sha512test.c: New file.
5711 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
5713         * misc/bits/syslog.h (syslog): Remove extraneous argument from
5714         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
5715         __syslog_chk.
5717 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
5719         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
5720         %as in fscanf format strings.
5722         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
5723         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
5724         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
5725         Likewise.
5726         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
5727         Likewise.
5729         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
5730         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
5731         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
5732         * elf/dl-sym.c (do_sym): Likewise.
5733         * include/link.h (struct link_map): Add l_serial field.
5734         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
5735         * elf/dl-lookup.c (add_dependency): Add flags argument.
5736         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
5737         flags, use THREAD_GSCOPE_RESET_FLAG before and
5738         THREAD_GSCOPE_SET_FLAG after
5739         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
5740         Don't dereference map until it has been found on some list.
5741         If map->l_serial changed, return -1.
5743 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
5745         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
5746         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
5747         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
5748         libc_hidden_proto.
5749         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
5750         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
5751         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
5752         add libc_hidden_proto.
5753         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5754         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5755         conformance requested.
5756         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
5757         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5758         conformance requested.
5759         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5760         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
5761         conformance requested.
5762         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
5763         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
5764         ISO C99 or POSIX conformance requested.
5765         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
5766         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
5767         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
5768         and __isoc99_vsscanf@@GLIBC_2.7.
5769         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
5770         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
5771         (tests): Add scanf14.
5772         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
5773         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
5774         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
5775         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
5776         CFLAGS-isoc99_scanf.c): Add $(exceptions).
5777         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
5778         from using internal headers.
5779         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
5780         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
5781         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
5782         and __isoc99_vswscanf@@GLIBC_2.7.
5783         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
5784         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
5785         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
5786         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
5787         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
5788         * stdio-common/isoc99_scanf.c: New file.
5789         * stdio-common/isoc99_vsscanf.c: New file.
5790         * stdio-common/isoc99_vscanf.c: New file.
5791         * stdio-common/isoc99_vfscanf.c: New file.
5792         * stdio-common/isoc99_fscanf.c: New file.
5793         * stdio-common/isoc99_sscanf.c: New file.
5794         * wcsmbs/isoc99_fwscanf.c: New file.
5795         * wcsmbs/isoc99_vswscanf.c: New file.
5796         * wcsmbs/isoc99_swscanf.c: New file.
5797         * wcsmbs/isoc99_wscanf.c: New file.
5798         * wcsmbs/isoc99_vwscanf.c: New file.
5799         * wcsmbs/isoc99_vfwscanf.c: New file.
5800         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
5801         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
5802         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
5803         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
5804         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
5805         * stdio-common/scanf14.c: New test.
5806         * stdio-common/scanf15.c: New test.
5807         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
5808         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
5809         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
5810         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
5811         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
5812         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
5813         __nldbl___isoc99_scanf@@GLIBC_2.7,
5814         __nldbl___isoc99_fscanf@@GLIBC_2.7,
5815         __nldbl___isoc99_sscanf@@GLIBC_2.7,
5816         __nldbl___isoc99_vscanf@@GLIBC_2.7,
5817         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
5818         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
5819         __nldbl___isoc99_wscanf@@GLIBC_2.7,
5820         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
5821         __nldbl___isoc99_swscanf@@GLIBC_2.7,
5822         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
5823         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
5824         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
5825         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
5826         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
5827         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
5828         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
5829         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
5830         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5831         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
5832         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
5833         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
5834         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
5835         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
5836         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
5837         functions.
5838         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
5839         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
5840         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
5841         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
5842         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
5843         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
5844         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
5845         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
5846         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
5847         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
5848         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
5849         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
5851         * stdio-common/Makefile (tests): Add scanf13.
5852         (scanf13-ENV): New.
5853         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
5854         m modifier followed by l.
5855         (STRING_ARG): Add width argument.
5856         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
5857         <case L_('C')>: Handle %mlc and %mC.
5858         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
5859         arguments.
5860         * stdio-common/scanf13.c: New test.
5862         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
5863         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
5865 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
5867         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
5868         type and __THROW marker of splice, vmsplice, and tee.
5869         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5870         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5871         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5872         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5873         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5874         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5875         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5876         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
5877         as cancellation points.
5879 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
5881         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
5882         parse more than three parts of the version number.
5884 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
5886         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
5887         modifier.  Patch by Jakub Jelinek.
5889 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
5891         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
5892         call_fallocate in misc subdir.
5893         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
5894         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
5895         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
5896         instead of __fallocate64.
5897         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
5899 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
5901         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
5902         * rt/Makefile (headers): Add bits/mqueue2.h.
5903         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
5904         optimizing with GCC and __va_arg_pack_len is defined.
5905         * rt/bits/mqueue2.h: New file.
5906         * rt/mq_open.c (__mq_open): Renamed from mq_open.
5907         (mq_open): New strong_alias.
5908         (__mq_open_2): New function.
5909         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
5910         (mq_open): New strong_alias.
5911         (__mq_open_2): New function.
5912         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
5913         * Versions.def (librt): Add GLIBC_2.7 version.
5914         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
5915         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
5917         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
5918         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
5919         is defined rather than when not C++.
5920         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
5921         __openat64_alias): New redirects.
5922         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
5923         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
5924         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
5925         (open, open64, openat, openat64): Rewrite as __extern_always_inline
5926         functions instead of function-like macros.
5928 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
5930         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
5931         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
5932         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
5934 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
5936         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
5937         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
5939 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
5941         * inet/tst-network.c: Increment ERRORS for failing tests.
5943 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
5945         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
5946         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
5947         implement as __extern_always_inline function.
5948         (vsyslog): Define as __extern_always_inline function unconditionally.
5949         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
5950         When __va_arg_pack is defined, implement as __extern_always_inline
5951         functions.
5952         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5953         __extern_always_inline functions unconditionally.
5954         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
5955         bits/stdio2.h will be included.
5956         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
5957         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
5958         implement as __extern_always_inline functions.
5959         (vswprintf, vwprintf, vfwprintf): Define as
5960         __extern_always_inline functions unconditionally.
5961         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
5963 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
5965         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
5966         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
5967         attribute.
5968         * include/features.h (__USE_EXTERN_INLINES): Define only when
5969         __extern_inline is defined.
5970         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
5971         is defined instead of when not __cplusplus.
5972         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
5973         is defined instead of when not __cplusplus.
5974         * socket/sys/socket.h: Include bits/socket2.h when
5975         __extern_always_inline is defined instead of when not __cplusplus.
5976         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
5977         is defined instead of when not __cplusplus.
5978         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
5979         is defined instead of when not __cplusplus.
5980         * string/string.h: Include bits/string3.h when __extern_always_inline
5981         is defined instead of when not __cplusplus.
5982         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
5983         is defined instead of when not __cplusplus.
5984         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
5985         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
5986         is not defined.
5987         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
5988         defined __extern_always_inline instead of !defined __cplusplus.
5989         * libio/bits/stdio-ldbl.h: Likewise.
5990         * wcsmbs/bits/wchar-ldbl.h: Likewise.
5991         * misc/bits/syslog.h (syslog): Don't define for C++.
5992         (vsyslog): Use __extern_always_inline function for C++ instead of
5993         a macro.
5994         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
5995         whenever that macro is defined.
5996         (vprintf): Don't provide the inline for C++.
5997         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
5998         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
5999         define the macros for C++.
6000         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
6001         __extern_always_inline functions for C++.
6002         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
6003         stat64, lstat64, fstat64, fstatat64): Don't define if not
6004         __USE_EXTERN_INLINES.
6005         * wcsmbs/bits/wchar2.h: Fix #error message.
6006         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
6007         (vswprintf, vwprintf, vfwprintf): Define using
6008         __extern_always_inline functions for C++.
6009         * string/bits/string3.h: Don't #undef macros if __cplusplus.
6010         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
6011         strncpy, strcat, strncat): Define as __extern_always_inline
6012         functions instead of macros for C++.
6013         * math/bits/cmathcalls.h: Guard __extern_inline routines with
6014         defined __extern_inline.
6015         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
6016         to __extern_inline whenever that macro is defined.
6017         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6018         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6019         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
6020         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
6021         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6022         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6023         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6024         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6025         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
6026         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
6027         prototypes.  Only provide __extern_inline routines if
6028         __USE_EXTERN_INLINES.
6029         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
6030         tests.
6031         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
6032         For now avoid some *printf tests in C++.  Skip all testing
6033         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
6034         is not.
6035         * debug/tst-chk4.cc: New file.
6036         * debug/tst-chk5.cc: New file.
6037         * debug/tst-chk6.cc: New file.
6038         * debug/tst-lfschk4.cc: New file.
6039         * debug/tst-lfschk5.cc: New file.
6040         * debug/tst-lfschk6.cc: New file.
6041         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
6042         prototypes in C++.
6043         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
6044         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
6045         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
6047 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
6049         * po/cs.po: Update from translation team.
6051 2007-09-11  Roland McGrath  <roland@redhat.com>
6053         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
6054         compiling.
6056 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6058         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
6060 2007-09-05  Roland McGrath  <roland@redhat.com>
6062         * manual/signal.texi (Signaling Another Process): Typo fix.
6063         From Karl Berry <karl@freefriends.org>.
6065 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
6067         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
6068         zero if not defined.
6069         (make_request): Recognize optimistic addresses and treat them like
6070         deprecated addresses.
6071         Reported by Neil Horman <nhorman@redhat.com>.
6073 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
6075         * nscd/connections.c (send_ro_fd): Also transfer file size.
6076         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
6077         file size don't call fstat.
6079         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
6080         ahead and map the file.  This should always be correct and we can
6081         catch problems later.
6083 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
6085         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
6086         prototypes.
6087         (__fread_alias, __fread_unlocked_alias): New aliases.
6088         (fread): New extern inline.
6089         (fread_unlocked): Likewise.  Undef macro before definition of
6090         the inline function.
6091         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
6092         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
6093         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
6094         and __fread_unlocked_chk@@GLIBC_2.7.
6095         * debug/fread_chk.c: New file.
6096         * debug/fread_u_chk.c: New file.
6097         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
6099 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
6101         * sysdeps/unix/sysv/linux/syscalls.list
6102         (personality): Change caller to EXTRA.
6104 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
6106         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
6107         to keep gcc quiet.
6108         * iconvdata/iso-2022-cn.c (BODY): Likewise.
6110         * locale/programs/ld-collate.c (collate_output): Avoid warning if
6111         NDEBUG is defined.
6113         * Makerules: Use -p option with mkdir.
6115         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
6116         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
6117         (_xdr_directory_obj): Likewise.
6118         (xdr_entry_obj): Likewise.
6119         (xdr_group_obj): Likewise.
6120         (xdr_link_obj): Likewise.
6121         (xdr_table_obj): Likewise.
6122         (_xdr_nis_result): Likewise.
6123         (_xdr_ns_request): Likewise.
6124         (_xdr_ib_request): Likewise.
6125         (_xdr_nis_taglist): Likewise.
6126         (xdr_cback_data): Likewise.
6127         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
6128         (xdr_ypresp_maplist): Likewise.
6130         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
6132         * posix/regex_internal.h: Prevent some declarations and definitions
6133         to be seen when used in tests.
6135         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
6136         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
6138         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
6140         * config.make.in (datarootdir): Add to shut up configure.
6142         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
6143         associativity for fully-associative caches.
6145         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
6146         requests.  Fill on more associativity values for L2.
6147         Patch mostly by Evandro Menezes.
6149 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
6151         * sysdeps/unix/sysv/linux/x86_64/init-first.c
6152         (_libc_vdso_platform_setup): Avoid using exported variable by using
6153         alias.
6155         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
6157         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
6158         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
6159         defined.
6161 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
6163         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
6164         align stack for call if pltexit is to be used.
6166         [BZ #3924]
6167         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
6168         align for function call in case pltexit has to be called later.
6170         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
6171         implicit atomic operation when storing function pointer.
6172         (_dl_runtime_profile): Likewise.
6174 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
6176         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
6177         NIS_NOTFOUND.
6179 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
6181         [BZ #4566]
6182         * string/strtok.c: Fix typo in comment.
6184         [BZ #4582]
6185         * debug/segfault.c: Fix typos in comments.
6187         [BZ #4588]
6188         * stdio-common/tempnam.c: Fix comment, it is not checked that
6189         TMPDIR points to a writable directory.
6191         [BZ #4726]
6192         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
6193         memory allocated for the name server address.
6195         [BZ #4946]
6196         * nscd/connections.c (handle_request): Using sendfile always
6197         requires that mmap is used for the database.
6198         Patch by Petr Baudis <pasky@suse.cz>.
6200         [BZ #4905]
6201         * nscd/hstcache.c (cache_addhst): When reloading an entry which
6202         suddenly has two or more addresses, ignore it and remove the old
6203         entry.
6205         [BZ #4814]
6206         * resolv/res_hconf.c: Prepare for compiling outside libc.
6207         * nscd/res_hconf.c: New file.
6208         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
6209         the new file.
6210         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
6211         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
6213         * nscd/hstcache.c (cache_addhst): Minimal optimization.
6215         [BZ #4925]
6216         * debug/pcprofiledump.c: Turn on internationalization by calling
6217         setlocale.  Patch mostly by Benno Schulenberg.
6219         [BZ #4936]
6220         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
6221         the state.
6222         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
6223         * iconvdata/bug-iconv5.c: New file.
6225 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
6227         [BZ #4896]
6228         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
6229         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
6230         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
6231         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
6232         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
6233         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
6234         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
6235         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
6237 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
6239         [BZ #4937]
6240         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
6241         lookup loop.  Suggested by John Reiser.
6243 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
6245         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
6247 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
6249         * csu/libc-start.c: Don't handle VDSO_SETUP here.
6250         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
6251         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
6252         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
6253         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
6254         to...
6255         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
6257 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
6259         * po/nl.po: Update from translation team.
6261 2007-08-16  Andreas Jaeger  <aj@suse.de>
6263         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
6264         Reported by Peter Festner <peter.festner@ewetel.net>.
6266 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
6268         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
6270 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
6272         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
6273         to check for undefined symbols.
6275         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
6276         If the syscall fails, set errno to the actual returned error number
6277         rather than EINVAL.
6278         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
6279         arguments are incorrect, set errno to EINVAL, if the syscall
6280         fails, set errno to the actual returned error number.
6282         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
6283         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
6285         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
6286         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
6287         file.
6288         (ASI_PNF, ASI_BLK_P): Don't define.
6289         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
6290         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
6291         file.
6292         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
6293         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
6294         file.
6296 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
6298         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
6299         FE_UNDERFLOW on Niagara CPUs.
6301         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
6302         exceptions.
6304 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
6306         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
6307         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
6308         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
6309         flush should be used or not inside of the function.
6310         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
6312         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
6313         __thread_start): Use HIDDEN_JUMPTARGET.
6314         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
6315         __thread_start): Likewise.
6316         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
6318         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
6319         Add libc_hidden_proto.
6320         (STRTOF): Add libc_hidden_proto.
6321         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
6322         (strtold_l, wcstold_l): Use them as second argument for
6323         long_double_symbol.
6325 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
6327         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
6329 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6331         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
6333 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
6335         * po/bg.po: New file.  From the translation team.
6337 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
6339         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
6340         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
6341         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
6342         when each feature was introduced.
6344         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
6345         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
6346         (CHECK_HASH): New macro.
6347         (PREPARE_VERSION): Use it.
6349         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
6350         prototype if not __ASSUME_PSELECT.
6351         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
6352         prototype if not __ASSUME_PPOLL.
6354         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
6356         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
6357         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
6358         is defined.
6360 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
6362         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6363         (_libc_vdso_platform_setup): If vDSO is not available point
6364         __vdso_gettimeofday to the vsyscall.
6365         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
6366         __vdso_gettimeofday instead of vsyscall.
6368 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
6370         * nscd/servicescache.c: Include kernel-features.h.
6371         * nscd/gai.c: Likewise.
6372         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
6373         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
6374         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
6375         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
6376         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
6377         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
6378         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
6379         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
6380         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6382 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
6384         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
6385         and _dl_get_origin defines anymore.
6387         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
6388         Build fix for systems which might lack POSIX timer support.
6390         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6391         (_libc_vdso_platform_setup): Mangle function pointers before storing
6392         them.
6393         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
6394         Demangle vdso pointer before use.
6395         (INTERNAL_VSYSCALL): Likewise.
6397         * elf/cache.c (primes): Mark as const.
6398         Noted by Roland McGrath.
6400 2007-08-01  Andreas Jaeger  <aj@suse.de>
6401             Jakub Jelinek  <jakub@redhat.com>
6403         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
6404         (options): Add option.
6405         (parse_opt): Handle option.
6406         (manual_link): Adjust process_file caller.  Call implicit_soname.
6407         (search_dir): Formatting.  Use and populate auxiliary cache.
6408         (main): Load and save auxiliary cache.
6409         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
6410         stat64 from fstat64 to caller.
6411         (implicit_soname): New function.
6412         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
6413         leave *soname as NULL.
6414         * elf/cache.c: Include libgen.h.
6415         (print_entry, print_cache, compare, save_cache, add_to_cache):
6416         Formatting and cleanups.
6417         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
6418         aux_cache_file): New structures.
6419         (AUX_CACHEMAGIC): Define.
6420         (primes): New array.
6421         (aux_hash_size, aux_hash): New variables.
6422         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
6423         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
6424         load_aux_cache, save_aux_cache): New functions.
6425         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
6426         (init_aux_cache, search_aux_cache, add_to_aux_cache,
6427         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
6428         (process_file): Adjust prototype.
6430 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
6432         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
6433         with __need_size_t.
6435 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
6437         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
6438         r_found_version structure as second parameter.
6439         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
6440         (_dl_vdso_vsym): Change type of second parameter accordingly.
6441         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
6442         (_libc_vdso_platform_setup): Adjust.
6443         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6444         (_libc_vdso_platform_setup): Likewise.
6446         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
6447         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
6448         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
6449         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
6450         * csu/libc-start.c: Pretty printing.
6451         Use VDSO_SETUP if defined.
6452         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
6453         and let generic code call into _libc_vdso_platform_setup.
6454         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
6455         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
6456         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
6457         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
6458         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
6459         for GLIBC_PRIVATE.
6460         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
6461         (sysdep_rountines): Add dl-vdso.
6463         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
6464         of routines.
6466         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
6467         attribute_hidden to __vdso_gettimeofday prototype.
6469 2007-08-12  Roland McGrath  <roland@redhat.com>
6471         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
6472         From: Karl Berry <karl@freefriends.org>.
6474 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
6476         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
6477         an atime update for the files we read.
6479 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
6481         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
6483         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
6484         instead of mkstemp.
6486         * misc/Makefile (routines): Add mkostemp and mkostemp64.
6487         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
6488         * misc/mkostemp.c: New file.
6489         * misc/mkostemp64.c: New file.
6490         * stdlib/stdlib.h: Declare the new functions.
6491         * sysdeps/posix/tempname.c: Add new parameter which is added to
6492         the flags for open.  Remove __GT_BIGFILE handling.
6493         * stdio-common/tempname.c: Likewise.
6494         * include/stdio.h: Adjust __gen_tempname prototype.
6495         Renumber __GT_* constants.
6496         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
6497         * misc/mkdtemp.c: Likewise.
6498         * misc/mkstemp.c: Likewise.
6499         * misc/mkstemp64.c: Likewise.
6500         * misc/mktemp.c: Likewise.
6501         * stdio-common/tempnam.c: Likewise.
6502         * stdio-common/tmpfile.c: Likewise.
6503         * stdio-common/tmpfile64.c: Likewise.
6504         * stdio-common/tmpnam.c: Likewise.
6505         * stdio-common/tmpnam_r.c: Likewise.
6507 2007-08-10  Roland McGrath  <roland@frob.com>
6509         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
6510         New macros.
6511         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
6512         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6514 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
6516         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
6517         possible.
6518         * nss/nss_files/files-alias.c (internal_setent): Likewise.
6519         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
6520         * nss/nss_files/files-have_o_cloexec.c: New file.
6522         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
6523         available.
6525 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
6527         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
6528         ___new_wcstold_l): New weak aliases.
6529         (strtold_l, wcstold_l): Use them as second argument for
6530         long_double_symbol.
6532 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
6534         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
6535         register in test for error.
6537         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
6538         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
6540         * po/sv.po: Update from translation team.
6542 2007-08-06  Roland McGrath  <roland@redhat.com>
6544         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
6545         Remove __strto*_l inlines.
6546         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
6547         * stdlib/strtod.c: Add libc_hidden_def.
6548         * stdlib/strtod_l.c: Likewise.
6549         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
6550         for __new_strtold and __new_wcstold.
6551         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
6552         __STRTOF, STRTOF.
6553         * stdlib/strtol.c: Add libc_hidden_def.
6554         * stdlib/strtol_l.c: Likewise.
6555         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
6556         strtoq.
6558         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
6560         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
6561         * scripts/data/localplt-generic.data: ... here.
6562         * elf/Makefile (check-data): Get generic file if no other.
6563         ($(objpfx)check-localplt.out): Make target unconditional.
6565         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
6566         Use ElfW(Nhdr).
6568 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
6570         * po/zh_CN.po: Updated translation from translation team.
6572 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
6574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
6575         Don't use CGOTSETUP and CGOTRESTORE macros.
6577 2007-08-04  Roland McGrath  <roland@redhat.com>
6579         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
6581 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
6583         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
6584         __extension__ around the whole statement expression.
6586 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
6588         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
6589         elements during initialization.
6591         * po/pl.po: Updated translation from translation team.
6592         * po/tr.po: Likewise.
6593         * po/nl.po: Likewise.
6595 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
6597         * rt/aio.h: Add __nonnull attributes.
6599 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
6601         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
6602         * stdlib/Makefile (tests): Add tst-strtod5.
6603         (tst-strtod5-ENV): New.
6604         * stdlib/tst-strtod5.c: New file.
6606         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
6607         failed.
6608         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
6609         on failure.
6611         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
6612         allocated.
6614 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
6616         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
6617         numbers.
6619 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
6621         * io/Makefile (aux): Add have_o_cloexec.
6622         * include/fcntl.h: Declare __have_o_cloexec.
6623         * io/have_o_cloexec.c: New file.
6624         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
6625         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
6626         fcntl call if not necessary.
6627         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
6628         of local variable.
6630         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
6631         Avoid memset, add explicit initialization.
6632         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
6633         to the end and change into zero-sized array.
6634         Move lock member to fill a hole on 64-bit platforms.
6636         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
6637         inline functions.
6638         * include/stdlib.h: Add __strto*_internal prototypes here.
6639         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
6640         inline functions.
6641         * include/wchar.h: Add __wcsto*_internal prototypes.
6642         * sysdeps/generic/inttypes.h: No need to protect the declaration
6643         of the __strto*_internal and __wcsto*_internal members here.
6645         * rt/mqueue.h: Change const to __const and add nonnull attributes.
6647 2007-08-02  Roland McGrath  <roland@redhat.com>
6649         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
6650         $(inst_bindir)/getconf if possible.
6652         * posix/Makefile ($(objpfx)getconf.speclist): New target.
6653         (generated): Add it.
6654         ($(inst_libexecdir)/getconf): Use it.
6656 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
6658         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
6659         /proc is faster and sufficient.  /sys is still needed for
6660         __get_nprocs_conf.
6662 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
6664         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
6665         syscall as __fallocate64.
6666         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
6667         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
6669 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
6671         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
6672         value.
6674         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
6675         if off_t is different rank from size_t.
6677         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
6678         uw_frame_state_for): Avoid type punning warnings.
6679         * sysdeps/generic/unwind-dw2-fde-glibc.c
6680         (_Unwind_IteratePhdrCallback): Likewise.
6681         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
6682         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
6683         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
6684         pointers.
6686 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
6688         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
6689         total processors using sysfs.
6690         (__get_nprocs): Use sysfs to determine which processors are online.
6692 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
6694         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
6695         syscall arguments count.
6697         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
6699 2007-07-30  Roland McGrath  <roland@redhat.com>
6701         * manual/libc.texinfo: Update copyrights, formatting magic, and
6702         @dircategory.  From Karl Berry <karl@freefriends.org>.
6704 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
6706         [BZ #4860]
6707         * io/Makefile (headers): Add bits/fcntl2.h.
6709         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
6710         using gcc builtin.
6711         (__CPU_EQUAL_S): Likewise.
6713         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
6714         (tests): Add tst-cpuset.
6715         * posix/sched_cpualloc.c: New file.
6716         * posix/sched_cpufree.c: New file.
6717         * posix/tst-cpuset.c: New file.
6718         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
6719         GLIBC_2.7.
6720         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
6721         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
6722         macros.  Define CPU_*_S macros.
6724 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
6726         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
6727         entry.
6729         [BZ #4858]
6730         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
6731         #.0g and value rounded to 1.0.
6732         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
6734 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
6736         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
6737         for int_frac_digits and frac_digits.
6739         * login/logout.c (logout): Avoid aliasing violation.
6740         * login/logwtmp.c (logwtmp): Likewise.
6742         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
6744         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
6745         to avoid warning.
6746         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
6747         warning.
6748         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
6749         warning.
6750         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
6751         to avoid warnings.
6753         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
6754         void **.
6755         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
6757         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
6758         char * to avoid warning.
6759         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
6761         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
6763         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
6764         allocate_arrays): Cast second argument to charmap_find_symbol
6765         to char * to avoid warnings.
6767         * locale/programs/repertoire.c (repertoire_new_char): Change
6768         from_nr, to_nr and cnt to unsigned long, adjust printf format
6769         string.
6771         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
6772         Cast second argument to new_element to char * to avoid warnings.
6774         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
6776         * intl/gettextP.h (struct loaded_domain): Change plural to const
6777         struct expression *.
6778         * intl/plural-eval.c (plural_eval): Change first argument to
6779         const struct expression *.
6780         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
6781         argument to const struct expression **.
6782         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
6783         prototypes.
6784         * intl/loadmsgcat (_nl_unload_domain): Cast away const
6785         in call to __gettext_free_exp.
6787         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
6788         unitialized wstring/wpattern var warnings.
6790         * posix/runtests.c (struct a_test): Make data field const char *.
6792         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
6793         vars if not LDBL_MANT_DIG >= 106.
6795         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
6797         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
6798         __find_specmb to avoid warning.
6800         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
6802         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
6803         to avoid warnings.
6805         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
6806         initializer.
6808         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
6809         tv var when it will be actually used.
6811         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
6812         to avoid warnings.
6814         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
6815         char array resp. pointer.
6816         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
6817         char array.
6818         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
6819         to const unsigned char **.
6820         (ucs4_to_cns11643): Change second argument to unsigned char *.
6821         * iconvdata/euc-tw.c (BODY): Change endp type to
6822         const unsigned char *.
6823         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
6824         to unsigned char *.
6825         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
6826         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
6827         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
6828         types to unsigned char pointers/arrays instead of char.
6829         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
6830         to unsigned char *.
6831         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
6832         * iconvdata/jis0212.h: Include assert.h.
6833         (ucs4_to_jisx0212): Change second argument to unsigned char *.
6834         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
6835         of trying to handle that.
6836         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
6837         shut up a warning.
6838         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
6839         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
6840         two dimensional const unsigned char arrays.
6841         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
6842         Initialize endp to inptr to shut up a warning.
6844 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
6846         [BZ #4772]
6847         * time/strptime_l.c (__strptime_internal): Silently ignore
6848         strftime modifiers and field width in recursive calls.
6850         * include/time.h (enum ptime_locale_status): Remove.
6851         (__strptime_internal): Remove decided and era_cnt arguments,
6852         add statep argument.
6853         * time/strptime_l.c (__strptime_internal): Remove decided
6854         and era_cnt arguments, add statep argument.  Don't recompute
6855         any fields in recursive calls, only update caller's tm
6856         and state, if recursive call fails, don't change tm nor
6857         any state.
6858         (get_alt_number): Adjust.
6859         (recursive): Adjust caller.
6860         (strptime): Likewise.
6861         * time/strptime.c (strptime): Likewise.
6863 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
6865         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
6866         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
6867         if from and to charsets are the same.
6868         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
6869         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
6870         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
6872 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
6874         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
6875         Don't define wint_t when __need_mbstate_t unless it
6876         is necessary.
6877         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
6878         in the typedef if possible.
6879         * wctype/wctype.h (wint_t): Define by including
6880         wchar.h with __need_wint_t instead of including stddef.h
6881         with __need_wint_t and as fallback definining it ourselves.
6882         * iconv/gconv.h (__need_wint_t): Define before including
6883         wchar.h.
6884         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
6885         or _GLIBCPP_USE_WCHAR_T.
6886         (__need_wchar_t): Don't define
6887         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6888         (__need_wint_t): Don't define before including stddef.h,
6889         define before including wchar.h only if _LIBC or
6890         _GLIBCPP_USE_WCHAR_T.
6891         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6892         * sysdeps/mach/hurd/_G_config.h: Likewise.
6893         * sysdeps/generic/_G_config.h: Likewise.
6894         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
6895         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
6896         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
6897         if _LIBC or _GLIBCPP_USE_WCHAR_T.
6899 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
6901         * sysdeps/posix/posix_fallocate64.c: Undefine
6902         __posix_fallocate64_l64 before alias handling.
6903         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
6904         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
6905         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
6906         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
6908         * io/tst-posix_fallocate.c: Include <fcntl.h>.
6910 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
6912         * locale/programs/ld-collate.c (atwc): New variable.
6913         (add_to_tablewc): New toplevel function, moved from collate_output.
6914         (collate_output): Remove add_to_tablewc nested function.
6916         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
6917         (name_insert): New function.
6918         (write_output): Remove hash_table and hash_size vars and name_insert
6919         nested function.
6921 2007-07-24  Roland McGrath  <roland@redhat.com>
6923         * Makerules (install-others-programs-nosubdir): New target.
6924         (install-no-libc.a-nosubdir): Depend on it.
6926         * iconv/Makefile (install-others-programs): Set this instead of
6927         install-others.
6928         * login/Makefile (install-others-programs): Likewise.
6929         * posix/Makefile (install-others-programs): Likewise.
6931         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
6932         dependencies.
6934 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
6936         * io/Makefile (tests): Add tst-posix_fallocate.
6937         * io/tst-posix_fallocate.c: New file.
6939         * sysdeps/unix/sysv/linux/kernel-features.h: Define
6940         __ASSUME_FALLOCATE.
6942 2007-07-22  Roland McGrath  <roland@frob.com>
6944         * hurd/getdport.c: Add missing copyright year update.
6946         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
6947         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
6949 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
6951         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
6953         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
6954         O_CLOEXEC is needed.
6955         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
6956         Avoid additional fcntl to set O_CLOEXEC if not needed.
6957         * nis/nss_compat/compat-initgroups.c: Likewise.
6958         * nis/nss_compat/compat-pwd.c: Likewise.
6959         * nis/nss_compat/compat-spwd.c: Likewise.
6961 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6963         [BZ #3665]
6964         * manual/errno.texi: Change ECANCELED value to 119.
6966         [BZ #4610]
6967         * mach/lock-intern.h: Include <sys/cdefs.h>.
6969         [BZ #4178]
6970         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
6971         reading A.
6973         [BZ #4126]
6974         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
6975         to __sigsuspend.
6977         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
6979 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
6981         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
6982         `__ASSEMBLER__'.
6983         * sysdeps/mach/hurd/i386/tls.h: Likewise.
6985 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
6987         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
6988         descriptor received from nscd.
6990         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
6992         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
6993         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6994         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6995         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6996         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6997         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6999 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
7001         [BZ #4816]
7002         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
7004         [BZ #4813]
7005         * login/forkpty.c (forkpty): Close master and slave fds on
7006         fork failure.  Patch by
7007         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
7009 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
7011         * include/features.h (__USE_ISOC95): New define.
7012         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
7013         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
7014         for -std=iso9899:199409.
7015         * CONFORMANCE: Remove comments about unsupported AMD1.
7017 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
7019         * sysdeps/ia64/sched_cpucount.c: New file.
7020         * sysdeps/powerpc/sched_cpucount.c: New file.
7022         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
7023         __BEGIN_DECLS/__END_DECLS around the prototype.
7024         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
7025         pointer to const cpu_set_t.
7027         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
7028         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
7029         __need_size_t and include stddef.h.
7030         * sysvipc/sys/msg.h: Likewise.
7031         * posix/sched.h: Likewise.
7032         * hurd/hurd/signal.h (__need_size_t): Define.
7034         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
7035         neither does signal.h in pedantic ISO C namespaces.  stdio.h
7036         no longer defines wint_t or wchar_t.
7038         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
7039         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
7040         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
7041         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
7042         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
7043         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
7044         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
7045         * debug/printf_chk.c (__printf_chk): Likewise.
7046         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
7047         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
7049         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
7050         Define.
7052         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
7053         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
7055 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
7057         [BZ #4792]
7058         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
7059         * malloc/malloc.h (realloc): Likewise.
7061         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
7062         if one of proc_file_chain streams has that fileno.
7063         * stdio-common/Makefile (tests): Add tst-popen2.
7064         * stdio-common/tst-popen2.c: New test.
7066 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
7068         * elf/ldconfig.c: Allow GPLv2 or any later version.
7069         * elf/readlib.c: Likewise.
7070         * elf/chroot_canon.c: Likewise.
7071         * elf/cache.c: Likewise.
7072         * nscd/mem.c: Likewise.
7073         * nscd/getpwuid_r.c: Likewise.
7074         * nscd/grpcache.c: Likewise.
7075         * nscd/aicache.c: Likewise.
7076         * nscd/getsrvbynm_r.c: Likewise.
7077         * nscd/nscd.c: Likewise.
7078         * nscd/servicescache.c: Likewise.
7079         * nscd/getsrvbypt_r.c: Likewise.
7080         * nscd/initgrcache.c: Likewise.
7081         * nscd/gethstbyad_r.c: Likewise.
7082         * nscd/gethstbynm2_r.c: Likewise.
7083         * nscd/getgrnam_r.c: Likewise.
7084         * nscd/nscd_setup_thread.c: Likewise.
7085         * nscd/getpwnam_r.c: Likewise.
7086         * nscd/gai.c: Likewise.
7087         * nscd/connections.c: Likewise.
7088         * nscd/dbg_log.c: Likewise.
7089         * nscd/cache.c: Likewise.
7090         * nscd/hstcache.c: Likewise.
7091         * nscd/nscd_conf.c: Likewise.
7092         * nscd/getgrgid_r.c: Likewise.
7093         * nscd/pwdcache.c: Likewise.
7094         * catgets/gencat.c: Likewise.
7095         * locale/programs/linereader.h: Likewise.
7096         * locale/programs/locarchive.c: Likewise.
7097         * locale/programs/ld-paper.c: Likewise.
7098         * locale/programs/locfile-kw.h: Likewise.
7099         * locale/programs/ld-address.c: Likewise.
7100         * locale/programs/xmalloc.c: Likewise.
7101         * locale/programs/ld-time.c: Likewise.
7102         * locale/programs/localedef.c: Likewise.
7103         * locale/programs/simple-hash.c: Likewise.
7104         * locale/programs/xstrdup.c: Likewise.
7105         * locale/programs/ld-numeric.c: Likewise.
7106         * locale/programs/locfile-kw.gperf: Likewise.
7107         * locale/programs/ld-collate.c: Likewise.
7108         * locale/programs/charmap-kw.gperf: Likewise.
7109         * locale/programs/charmap.h: Likewise.
7110         * locale/programs/charmap-kw.h: Likewise.
7111         * locale/programs/config.h: Likewise.
7112         * locale/programs/locfile.c: Likewise.
7113         * locale/programs/ld-ctype.c: Likewise.
7114         * locale/programs/charmap.c: Likewise.
7115         * locale/programs/ld-messages.c: Likewise.
7116         * locale/programs/repertoire.h: Likewise.
7117         * locale/programs/locale.c: Likewise.
7118         * locale/programs/ld-name.c: Likewise.
7119         * locale/programs/linereader.c: Likewise.
7120         * locale/programs/locfile.h: Likewise.
7121         * locale/programs/3level.h: Likewise.
7122         * locale/programs/ld-monetary.c: Likewise.
7123         * locale/programs/ld-measurement.c: Likewise.
7124         * locale/programs/charmap-dir.c: Likewise.
7125         * locale/programs/ld-identification.c: Likewise.
7126         * locale/programs/localedef.h: Likewise.
7127         * locale/programs/charmap-dir.h: Likewise.
7128         * locale/programs/repertoire.c: Likewise.
7129         * locale/programs/simple-hash.h: Likewise.
7130         * locale/programs/ld-telephone.c: Likewise.
7131         * locale/programs/locale-spec.c: Likewise.
7132         * locale/programs/locfile-token.h: Likewise.
7133         * posix/getconf.c: Likewise.
7134         * iconv/dummy-repertoire.c: Likewise.
7135         * iconv/iconv_charmap.c: Likewise.
7136         * iconv/iconvconfig.c: Likewise.
7137         * iconv/iconv_prog.c: Likewise.
7138         * malloc/memusagestat.c: Likewise.
7139         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
7141 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7143         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
7144         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
7145         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
7146         check for the first argument.
7148 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
7150         [BZ #4775]
7151         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
7152         (__tgmath_real_type): Fix if expr is const int or other const
7153         qualified integral type.
7154         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
7155         expressions and handle const qualified arguments.
7156         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
7157         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
7158         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
7159         statement expressions.
7160         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
7161         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
7162         (__TGMATH_UNARY_IMAG): Define.
7163         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
7164         * math/Makefile (tests): Add test-tgmath2.
7165         (CFLAGS-test-tgmath2.c): Add.
7166         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
7167         count_cfloat, count_cldouble): New variables.
7168         (NCCALLS): Define.
7169         (main): Check number of complex calls as well.
7170         (F(compile_test)): Add complex tests and tests with const qualified
7171         arguments.
7172         (y, z, ccount): Define.
7173         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
7174         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
7175         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
7176         F(cproj)): New functions.
7177         * math/test-tgmath2.c: New test.
7179 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
7181         [BZ #4776]
7182         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
7183         RPATH etc. as "/" rather than "", don't segfault on empty paths,
7184         instead output ".".
7185         * dlfcn/Makefile (distribute): Add glreflib3.c.
7186         (module-names): Add glreflib3.
7187         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
7188         glreflib1.so.
7189         (LDFLAGS_glreflib3.so): New.
7190         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
7191         glreflib1.so.
7192         * dlfcn/glreflib3.c: New file.
7194         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
7195         returned -1, return NULL.
7196         * intl/explodename.c (_nl_explode_name): Return -1 if
7197         _nl_normalize_codeset failed.
7199 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
7201         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
7202         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
7203         and avoid branch misspredicts for > 31 bytes memset case.
7204         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
7205         Remove toc ref to __cache_line_size.
7207         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
7208         to get ISA-V2.0 branch hints.
7209         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
7210         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
7211         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
7212         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
7213         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
7214         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
7215         Remove toc ref to __cache_line_size.
7217         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
7218         Include math_ldbl_opt.h.
7220 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
7222         [BZ #4773]
7223         * time/strptime_l.c (__strptime_internal): Implement greedy
7224         matching of weekday and month names.
7226 2007-07-09  Roland McGrath  <roland@redhat.com>
7228         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
7229         (ELF_NOTE_ABI): Use it.
7230         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
7232 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
7234         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
7235         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7237 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
7239         [BZ #4745]
7240         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
7241         in loop to look for conversion specifier to avoid testing of
7242         wrong errno value.
7243         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
7244         * stdio-common/bug18.c: New file.
7245         * stdio-common/bug18a.c: New file.
7246         * stdio-common/bug19.c: New file.
7247         * stdio-common/bug19a.c: New file.
7249 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
7251         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
7252         running awk script.
7254 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
7256         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
7257         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
7258         Return NULL if mmap failed instead of asserting it does not.
7259         (calloc): Check for integer overflow.
7261         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
7262         than LONG_MAX / 10.
7264 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
7266         [BZ #4702]
7267         * nis/nss-default.c: Include errno.h.
7268         (init): Preserve errno.
7270 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
7272         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
7274 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
7276         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
7278 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7280         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
7282 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7284         * sysdeps/s390/dl-procinfo.c: New file.
7285         * sysdeps/s390/dl-procinfo.h: New file.
7286         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
7288 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
7290         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
7291         in PT_NOTE segments with multiple notes.
7292         * elf/readelflib.c (process_elf_file): Likewise.
7294 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
7296         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
7297         ISO C compliant.
7299 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
7301         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
7303 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
7305         * include/link.h: Don't include rtld-lowlevel.h.
7306         (struct link_map): Remove l_scope_lock.
7307         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
7308         (_dl_scope_free_list): New field (variable) in _rtld_global.
7309         (DL_LOOKUP_SCOPE_LOCK): Remove.
7310         (_dl_scope_free): New prototype.
7311         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
7312         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
7313         (_dl_profile_fixup): Likewise.
7314         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
7315         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
7316         THREAD_GSCOPE_RESET_FLAG around it.
7317         * elf/dl-close.c (_dl_close_worker): Don't use
7318         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
7319         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
7320         scopes were queued or if l_scope_mem has been abandoned.
7321         * elf/dl-open.c (_dl_scope_free): New function.
7322         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
7323         * elf/dl-support.c (_dl_scope_free_list): New variable.
7324         * elf/dl-lookup.c (add_dependency): Remove flags argument.
7325         Remove DL_LOOKUP_SCOPE_LOCK handling.
7326         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
7327         handling.
7328         * elf/dl-object.c (_dl_new_object): Don't use
7329         __rtld_mrlock_initialize.
7331 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
7333         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
7334         to fill in holes
7335         (rtld_global_ro): Likewise.
7337 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7339         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
7340         Move PT_LOAD checking to...
7341         (_dl_addr_inside_object): ... here, new function.
7342         * elf/dl-sym.c (do_sym): If not l_contiguous,
7343         call _dl_addr_inside_object.
7344         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7345         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7346         * elf/dl-open.c (dl_open_worker): Likewise.
7347         (_dl_addr_inside_object): New function if IS_IN_rtld.
7348         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
7349         holes are present or are PROT_NONE protected.
7350         * include/link.h (struct link_map): Add l_contiguous field.
7351         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
7353 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7354             Tomas Janousek  <tjanouse@redhat.com>
7355             Ulrich Drepper  <drepper@redhat.com>
7357         [BZ #4647]
7358         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
7359         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
7360         socket.
7361         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
7362         unused member a bitmap.
7363         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
7364         servers are configured.
7366 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7368         * elf/rtld.c (dl_main): Don't call init_tls more than once.
7370 2007-06-17  Andreas Schwab  <schwab@suse.de>
7372         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
7374 2007-06-16  Andreas Jaeger  <aj@suse.de>
7376         [BZ #4125]
7377         * sysdeps/unix/sysv/linux/sys/ptrace.h
7378         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
7379         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
7380         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
7381         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
7382         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
7383         Define.
7384         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7385         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7386         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7387         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7389 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
7391         [BZ #4599]
7392         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
7393         determining whether there are IPv4/IPv6 addresses, ignore loopback
7394         addresses.
7396 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
7398         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
7399         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
7400         as the return type.  Change type of "r" variable to CMPtype.
7401         * soft-fp/eqsf2.c (__eqsf2): Likewise.
7402         * soft-fp/eqtf2.c (__eqtf2): Likewise.
7403         * soft-fp/gedf2.c (__gedf2): Likewise.
7404         * soft-fp/gesf2.c (__gesf2): Likewise.
7405         * soft-fp/getf2.c (__getf2): Likewise.
7406         * soft-fp/ledf2.c (__ledf2): Likewise.
7407         * soft-fp/lesf2.c (__lesf2): Likewise.
7408         * soft-fp/letf2.c (__letf2): Likewise.
7409         * soft-fp/unorddf2 (__unorddf2): Likewise.
7410         * soft-fp/unordsf2 (__unordsf2): Likewise.
7411         * soft-fp/unordtf2 (__unordtf2): Likewise.
7413 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
7415         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
7416         make sure gcc doesn't mess around with this.
7418 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
7420         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
7422 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
7424         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
7425         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
7426         at most once per _dl_close_worker.
7428 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
7430         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
7431         __sched_cpucount as const.
7432         * posix/sched_cpucount.c: Adjust.
7434         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
7435         instruction for counting bits.
7436         * sysdeps/x86_64/sched_cpucount.c: New file.
7438 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
7440         * configure.in: Avoid variable named BASH.
7441         * config.make.in: Likewise.
7442         Patch in part by Mike Frysinger.
7444 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
7446         [BZ #4586]
7447         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
7448         pseudo-zeros as zero.
7449         * sysdeps/x86_64/ldbl2mpn.c: New file.
7450         * sysdeps/ia64/ldbl2mpn.c: New file.
7452 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
7454         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
7455         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
7456         Remove unreachable code at the end.
7458 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
7460         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
7461         ldbl-128ibm in comment.
7462         (fpclassifyl): Correct classification of denormals.
7463         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
7464         return value for MIN denormal. Rewrite using long double math too
7465         correctly handle denormals and canonicalize the results.
7467 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
7469         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
7470         (__mpn_construct_long_double): Fix conversion where result ought
7471         to be smaller than __LDBL_MIN__, or the low double should be
7472         denormal.  Fix decision where to negate low double - honor round
7473         to even rules.
7474         * stdio-common/tst-sprintf2.c: Include string.h.
7475         (COMPARE_LDBL): Define.
7476         (TEST): Also test whether a string hexadecimal float representation
7477         can be parsed back to the number.
7478         (main): Add a couple of further tests.
7480 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
7482         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
7483         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
7484         is non-zero, but smaller than 2 * __DBL_MIN__.
7485         * stdio-common/tst-sprintf2.c: New test.
7486         * stdio-common/Makefile (tests): Add tst-sprintf2.
7488         * math/test-misc.c (main): Don't run last batch of tests with
7489         IBM long double format.
7491 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7493         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
7494         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
7495         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
7496         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
7497         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7498         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
7499         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
7500         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
7501         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
7502         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
7504         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
7505         New file.
7506         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
7507         New file.
7508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
7509         New file.
7510         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
7511         New file.
7512         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
7513         New file.
7514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
7515         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
7516         New file.
7517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
7518         New file.
7519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
7520         New file.
7521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
7522         New file.
7523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
7524         New file.
7526 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7528         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
7529         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
7530         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
7531         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
7532         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
7533         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
7534         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
7535         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
7537 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
7539         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
7540         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7541         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
7542         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7543         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
7544         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7545         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
7546         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7548 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
7550         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
7551         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
7552         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
7553         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
7555 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
7557         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
7558         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
7560 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
7562         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
7563         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
7564         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
7565         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
7567 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
7569         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
7570         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
7572 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
7574         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
7575         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
7577         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
7578         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
7579         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
7580         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
7582 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
7584         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
7585         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
7586         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
7587         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
7589 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
7591         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
7592         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
7593         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
7594         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7595         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
7596         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7598 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
7600         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
7601         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
7602         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
7603         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
7605 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
7607         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
7608         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
7609         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
7610         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
7611         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
7612         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
7613         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
7614         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
7615         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
7616         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
7617         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
7618         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
7619         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
7620         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
7621         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
7622         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
7624 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
7626         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
7627         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
7629 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
7631         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
7632         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
7634 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7636         * sysdeps/powerpc/powerpc32/970/Implies: New file.
7637         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
7638         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
7639         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
7640         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
7641         * sysdeps/powerpc/powerpc64/970/Implies: New file.
7642         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
7643         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
7644         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
7645         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
7647 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
7649         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
7651 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
7653         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
7654         branch miss-predicts. Ensure that cache line crossing does not impact
7655         dispatch grouping.
7657 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
7659         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
7660         "../../powerpc32/power4/memcopy.h".
7661         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
7662         "../../powerpc32/power4/wordcopy.c".
7664 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
7666         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
7667         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
7668         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
7669         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
7670         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
7671         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7673 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
7675         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
7677 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
7679         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
7680         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
7681         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
7682         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
7683         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
7684         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
7685         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
7686         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
7688 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
7690         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
7692 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
7694         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
7695         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
7696         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
7697         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
7698         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
7699         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
7700         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
7702 2007-05-29  Roland McGrath  <roland@redhat.com>
7704         * po/Makefile (po-sed-cmd): New variable.
7705         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
7707 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
7709         * crypt/md5-crypt.c: Fix comment.
7711         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
7712         of crashing.  When this is the case or if the reply is malformed,
7713         don't try to close the new file descriptor since it does not
7714         exist.
7715         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
7717 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
7719         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
7720         if __NR_utimensat is not defined.
7722 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
7724         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
7726 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
7728         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
7729         (open): Fix comment typos.  Don't call __open_2 if flags
7730         is a compile time constant without O_CREAT.
7731         (__open64_2): Add nonnull attribute.
7732         (open64): Fix comment typos.  Don't call __open64_2 if flags
7733         is a compile time constant without O_CREAT.
7734         (__openat_2): Add nonnull attribute, fix nonnull attribute
7735         on redirect.
7736         (openat): Fix comment typos.  Don't call __openat_2 if flags
7737         is a compile time constant without O_CREAT.
7738         (__openat64_2): Add nonnull attribute, fix nonnull attribute
7739         on redirect.
7740         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
7741         is a compile time constant without O_CREAT.
7743 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
7745         * Makerules (sysd-rules): Define PTW for ptw-* files.
7746         * Versions: Define GLIBC_2.7 for libc.
7747         * include/stdio.h: Declare __fortify_fail.
7748         * debug/fortify_fail.c: New file.
7749         * debug/Makefile (routines): Add fortify_fail.
7750         * debug/chk_fail.c: Use __fortify_fail.
7751         * debug/stack_chk_fail.c: Likewise.
7752         * io/Versions: Export __open_2, __open64_2, __openat_2, and
7753         __openat64_2 for GLIBC_2.7.
7754         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
7755         * io/open.c: Define *_2 variant of function which checks for O_CREAT
7756         and fails if necessary.
7757         * io/open64.c: Likewise.
7758         * io/openat.c: Likewise.
7759         * io/openat64.c: Likewise.
7760         * sysdeps/unix/sysv/linux/open64.c: Likewise.
7761         * sysdeps/unix/sysv/linux/openat.c: Likewise.
7762         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
7763         * io/bits/fcntl2.h: New file.
7764         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
7765         __openat64_2.
7766         * include/bits/fcntl2.h: New file.
7767         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7768         Add open_2.
7769         * sysdeps/unix/sysv/linux/open_2.c: New file.
7771 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
7773         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
7774         as second parameter to handle_intel.
7776         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
7777         the entry.
7779         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
7780         handling to ...
7781         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
7782         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
7783         cacheinfo.
7784         * sysdeps/x86_64/memcpy.S: Complete rewrite.
7785         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
7786         Patch by Evandro Menezes <evandro.menezes@amd.com>.
7788         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
7790 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
7792         [BZ #4525]
7793         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
7794         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
7795         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
7797         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
7799         [BZ #4514]
7800         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
7801         reinitialize workend at the start of each do_positional format spec
7802         loop, free workstart before do_positional loops.
7803         (printf_unknown): Fix size of work_buffer.
7804         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
7806         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
7807         (public_sET_STATe): If ms->version < 3, put all chunks into
7808         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
7809         chunks.
7811         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
7812         * malloc/hooks.c: Likewise.
7813         * malloc/arena.c: Likewise.
7814         * malloc/malloc.c (do_check_malloc_state): Don't assert
7815         n_mmaps is not greater than n_mmaps_max.  This removes the need
7816         for the previous change.
7818         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
7819         2007-05-07 commit.
7821 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
7823         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
7824         Define for kernel >= 2.6.22.
7826 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
7828         * elf/dl-close.c (_dl_close_worker): When removing object from
7829         global scope, wait for all lookups to finish afterwards.
7830         * elf/dl-open.c (add_to_global): When global scope array must
7831         grow, allocate a new one and free old array only after all
7832         lookups finish.
7833         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
7834         (_dl_lookup_symbol_x): Likewise.
7835         * elf/dl-support.c: Define _dl_wait_lookup_done.
7836         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
7837         _dl_wait_lookup_done.
7839         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
7840         not overlapping with arena.
7842         * malloc/mcheck.c (reallochook): If size==0, free the block.
7844         * rt/tst-shm.c: Use fstat64 instead of fstat.
7846         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
7847         __NR_sync_file_range is not defined.
7849 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
7851         Dummy files to prevent stub versions from being used.
7852         * sysdeps/x86_64/fpu/k_cosl.c: New file.
7853         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
7854         * sysdeps/x86_64/fpu/k_sinl.c: New file.
7855         * sysdeps/x86_64/fpu/k_tanl.c: New file.
7857         * version.h (VERSION): Set to 2.6.90.
7859 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
7861         * version.h (VERSION): Define to 2.6.
7862         * include/features.h (__GLIBC_MINOR__): Define to 6.
7864         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
7866         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
7867         sizes.
7869 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
7871         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
7872         number of mmaps.  n_mmaps_max is the target.
7873         * malloc/hooks.c: Likewise.
7874         * malloc/arena.c: Likewise.
7876 2007-05-12  Andreas Jaeger  <aj@suse.de>
7878         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
7879         getpid.
7881 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
7883         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
7884         adding new variables.
7886         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
7887         optimize.  Completely extend global scope array before making the
7888         new entries visible.
7890 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
7892         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
7893         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
7894         tst-getcpu.
7896         * include/link.h: Move l_version and l_nversion members around to
7897         fill gaps.
7899         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
7901         * sysdeps/unix/sysv/linux/sched_setaffinity.c
7902         (__sched_setaffinity_new): If syscall was successful and
7903         RESET_VGETCPU_CACHE is defined, use it before returning.
7904         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
7906         * io/sys/stat.h: Make sure struct timespec is defined for
7907         __USE_ATFILE.
7909         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
7910         UTIME_OMIT.
7911         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7912         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7913         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
7914         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7915         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
7916         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7917         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
7918         * io/sys/stat.h: Declare utimensat, futimens.
7919         * io/utimensat.c: New file.
7920         * io/futimens.c: New file.
7921         * sysdeps/unix/sysv/linux/utimensat.c: New file.
7922         * sysdeps/unix/sysv/linux/futimens.c: New file.
7923         * io/Makefile (routines): Add utimensat, futimens.
7924         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
7925         * sysdeps/unix/sysv/linux/lutimes.c: New file.
7926         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
7927         available.
7929         * include/sys/cdefs.h: Redefine __nonnull so that test for
7930         incorrect parameters in the libc code itself are not omitted.
7932 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
7934         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
7935         exception in addition to inexact when asked to raise only FE_INEXACT.
7937         [BZ #3427]
7938         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
7939         in *envp.
7941 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
7943         [BZ #4403]
7944         * string/strfry.c (strfry): Make result more random.
7946 2007-05-07  Richard Henderson  <rth@redhat.com>
7948         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
7949         if __NO_LONG_DOUBLE_MATH.
7950         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
7951         available in the compiler, add .arch directive to the assembly.
7953 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
7955         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
7956         compat_symbol to GLIBC_2_1.
7957         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
7958         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
7959         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
7960         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
7961         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
7962         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
7963         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
7964         libc, not libm.
7965         (__isnanl): New compat_symbol.
7967 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
7968             Jakub Jelinek  <jakub@redhat.com>
7970         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
7971         (new_heap): Initialize mprotect_size.
7972         (grow_heap): When growing, only mprotect from mprotect_size till
7973         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
7974         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
7976 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
7977             Peter Bergner  <bergner@us.ibm.com>
7979         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
7980         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
7981         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
7982         * sysdeps/powerpc/fpu/fe_mask.c: New file.
7983         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
7984         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
7985         Call __fe_mask_env() if all FP exceptions disabled.
7986         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
7987         from old FPSCR to new fenv to propagate DFP rounding modes.
7988         Call __fe_mask_env() if FP exceptions previously enabled.
7989         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
7990         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
7991         transitioning from all exceptions disabled to any exception enabled
7992         or visa versa.
7993         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
7994         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
7995         when transitioning from all exceptions disabled to any exception
7996         enabled or visa versa.
7997         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
7998         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
7999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
8000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
8001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
8002         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
8004 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
8006         [BZ #4465]
8007         * posix/unistd.h: Remove __THROW from fdatasync.
8009 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
8011         [BZ #4465]
8012         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
8014 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
8016         * stdio-common/vfprintf.c (process_string_arg): Optimize
8017         ridiculous precision in wide char code printing multi-byte string.
8018         Reported by Jim Meyering <jim@meyering.net>.
8020         [BZ #4131]
8021         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
8022         boundaries to work around systems with overlapping binary loading.
8023         Based on a patch by Suzuki <suzuki@in.ibm.com>.
8025 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
8027         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
8028         __mbsnrtowcs after last change.
8030         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
8031         (get_ident): Likewise.
8033 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
8035         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
8036         with setting the sticky bit.
8037         * math/test-misc.c (main): Add more truncation tests.
8039 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
8041         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
8042         double in the function declaration.
8043         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
8044         double in the function declaration.
8045         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
8046         float in the function declaration.
8047         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
8048         float in the function declaration.
8050         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
8051         denormal operands.  Do not generate FP_EX_DENORM exception.
8052         (FP_UNPACK_RAW_EP): Ditto.
8053         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
8054         undefined _FP_UNPACK_RAW_E.
8055         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
8056         undefined _FP_UNPACK_RAW_EP.
8057         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
8058         undefined _FP_PACK_RAW_E.
8059         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
8060         undefined _FP_PACK_RAW_EP.
8062         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
8063         _FP_FRAC_COPY_2.
8064         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
8065         _FP_FRAC_COPY_4.
8067 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
8068             Jakub Jelinek  <jakub@redhat.com>
8070         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
8071         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
8072         this case.
8073         * soft-fp/op-common.h (FP_TRUNC): Ditto.
8075 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
8077         * math/test-misc.c (main): Add tests for rounding long double
8078         values close to smallest double denormalized value to double.
8080 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
8082         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
8083         condition for truncating to 0.  Set sticky bit for such
8084         truncation.
8086 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
8088         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
8089         fixed length array for ignore.
8091 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
8093         [BZ #4438]
8094         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
8095         stack for large precisions.
8096         * stdio-common/test-vfprintf.c (main): Add test for large
8097         precision.
8099 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
8101         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
8102         for exponent 0.
8103         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
8105         [BZ #4439]
8106         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
8107         account in the size check.
8108         * resolv/tst-inet_ntop.c: New test.
8109         * resolv/Makefile (tests): Add tst-inet_ntop.
8111 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
8112             Jakub Jelinek  <jakub@redhat.com>
8114         [BZ #4349]
8115         * malloc/malloc.c: Keep separate list for first blocks on the bin
8116         lists with a given size.  This helps skipping over list elements
8117         we know won't fit in two places.
8118         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
8120 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
8122         [BZ #4102]
8123         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
8124         label to Teredo tunnel addresses 2001://32.
8126 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
8128         * locale/programs/ld-collate.c (collate_read): Allow order_start
8129         after copy.
8131         * locale/programs/ld-collate.c (collate_read): Fix printing of
8132         error message.
8134         [BZ #3213]
8135         * locale/C-translit.h.in: Add entry for U2044.
8137         [BZ #4342]
8138         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
8139         hexa-decimal floats without exponent.
8140         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
8142 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
8144         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
8145         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
8146         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
8147         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
8148         GLIBC_2.6.
8149         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
8150         Add sched_getcpu.
8152 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
8154         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
8155         of 0 after the out_fail label.
8157 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
8159         [BZ #4406]
8160         * iconv/gconv_charset.h (strip): Allow ':'.
8161         * iconv/iconv_open.c (iconv_open): Adjust comment.
8163 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
8165         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
8166         version.
8168 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
8170         [BZ #4381]
8171         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
8172         alignment of buffer and tmp_buffer.
8173         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
8174         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
8175         alignment of buffer.
8176         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
8177         bigger than INT_MAX.
8178         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
8179         h_errnop arguments.  Fail if buflen is too small.
8180         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
8182 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
8184         [BZ #4405]
8185         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
8186         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
8188 2007-04-22  Roland McGrath  <roland@redhat.com>
8190         * elf/elf.h (NT_PRXFPREG): New macro.
8192 2007-04-19  Andreas Jaeger  <aj@suse.de>
8194         [BZ #3905]
8195         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
8196         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
8197         Added.
8199 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
8201         * include/sys/mman.h: Mark madvise hidden.
8202         * misc/madvise.c: Add libc_hidden_def.
8204 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
8206         * nis/nis_domain_of.c (__nis_domain_of): New function.
8207         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
8208         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
8209         * nis/nis_call.c (rec_dirsearch): Likewise.
8210         (first_shoot): Likewise.  Remove search_parent_first argument.
8211         (struct nis_server_cache): Rename search_parent_first field
8212         to search_parent.
8213         (nis_server_cache_search, nis_server_cache_add): Rename
8214         search_parent_first argument to search_parent.
8215         (__nisfind_server): Likewise.  If search_parent, call
8216         __nis_domain_of.
8218 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
8220         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
8222 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
8224         [BZ #4368]
8225         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
8227 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
8229         [BZ #4364]
8230         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
8232 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
8234         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
8235         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
8236         current number of locales in SUPPORTED.
8237         (create_archive): Initialize serial.
8238         (enlarge_archive): Preserve aliases rather than duplicating
8239         their locrecs.
8241 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
8243         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
8244         after _IO_un_link, not before it.
8246         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
8247         special case handling when wcp == wstartp + 1.  Fix a comment typo.
8248         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
8250 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
8252         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
8253         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
8254         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
8255         Remove __THROW.
8256         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
8257         _IO_file_xsgetn_maybe_mmap): Likewise.
8258         * libio/oldfileops.c (old_do_write): Likewise.
8259         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
8260         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
8261         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
8262         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
8263         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
8264         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
8265         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
8266         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
8267         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
8268         _IO_file_underflow, _IO_file_underflow_mmap,
8269         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
8270         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
8271         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
8272         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
8273         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
8274         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
8275         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
8276         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
8277         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
8278         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
8279         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
8280         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
8281         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
8282         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
8283         _IO_adjust_column_internal, _IO_default_uflow_internal,
8284         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
8285         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
8286         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
8287         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
8288         _IO_file_close_it_internal, _IO_file_underflow_internal,
8289         _IO_file_overflow_internal, _IO_file_attach_internal,
8290         _IO_file_fopen_internal, _IO_file_sync_internal,
8291         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
8292         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
8293         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
8294         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
8295         _IO_seekpos_unlocked): Likewise.
8296         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
8297         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
8299 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
8301         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
8302         argument in xmalloc size computation.
8304 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
8306         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
8307         math_opt_barrier and math_force_eval macros.
8309 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
8311         [BZ #3306]
8312         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
8313         * sysdeps/i386/fpu/math_private.h: New file.
8314         * sysdeps/x86_64/fpu/math_private.h: New file.
8315         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
8316         math_force_eval macros.  Use "+m" constraint on asm rather than
8317         "=m" and "m".
8318         * math/s_nextafter.c (__nextafter): Likewise.
8319         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
8320         Likewise.
8321         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
8322         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
8323         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8324         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
8325         math_opt_barrier and math_force_eval macros.
8326         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
8327         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
8328         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
8329         (__nexttoward): Use math_opt_barrier and
8330         math_force_eval macros.  Use "+m" constraint on asm rather than
8331         "=m" and "m".  Only use asm to force double result if
8332         FLT_EVAL_METHOD is 2.
8333         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
8334         (__nexttowardf): Use math_opt_barrier and
8335         math_force_eval macros.  Use "+m" constraint on asm rather than
8336         "=m" and "m".  Only use asm to force double result if
8337         FLT_EVAL_METHOD is not 0.
8338         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
8339         (__nexttowardf): Use math_opt_barrier and
8340         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
8341         x to float using asm.
8342         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
8343         (__nldbl_nexttowardf): Use math_opt_barrier and
8344         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
8345         x to float using asm.
8346         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
8347         (__nexttowardf): Use math_opt_barrier and math_force_eval
8348         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
8349         * math/bug-nextafter.c (zero, inf): New variables.
8350         (main): Add new tests.
8351         * math/bug-nexttoward.c (zero, inf): New variables.
8352         (main): Add new tests.
8354 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
8356         [BZ #3427]
8357         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
8358         exceptions both in SW and MXCSR.
8359         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
8360         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
8361         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
8362         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8363         in MXCSR if SSE is available.
8364         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
8365         and ldsodefs.h.
8366         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
8367         Fix comment typo.
8368         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
8369         Return 0 rather than 1.
8370         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
8371         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
8372         * math/test-fenv.c (feholdexcept_tests): New function.
8373         (main): Call it.
8375 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
8377         [BZ #3427]
8378         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8379         in SW.
8381 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
8383         [BZ #4344]
8384         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
8385         Reported by David Anderson <davea42@earthlink.net>.
8387 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
8389         * posix/sys/wait.h: Remove unnecessary forward declaration.
8391 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
8393         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
8394         with obj->do_servers after first_shoot.
8396 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
8398         * posix/Makefile (routines): Add sched_cpucount.
8399         (tests): Add tst-cpucount.
8400         * posix/sched_cpucount.c: New file.
8401         * posix/tst-cpucount.c: New file.
8402         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
8403         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
8404         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8405         * posix/sched.h: Define CPU_COUNT.
8407 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
8409         * posix/fnmatch.c (STRUCT): Define.
8410         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
8411         * posix/fnmatch_loop.c (struct STRUCT): New type.
8412         (FCT): Add ends argument.  If ends != NULL and normal * is
8413         seen in the pattern, store current pattern and string pointers
8414         and return.  Adjust recursive calls.
8415         (EXT): Adjust FCT callers.
8416         (STRUCT): Undef at the end of the file.
8417         * posix/Makefile (tests): Add tst-fnmatch2.
8418         * posix/tst-fnmatch2.c: New test.
8420 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
8422         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
8423         and 1 on failure.
8425         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
8426         Change last argument to unsigned int.
8428 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
8430         * scripts/check-local-headers.sh: Filter out sys/capability.h.
8432 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
8434         * config.h.in (HAVE_LIBCAP): Add.
8435         * nscd/selinux.h: Include sys/capability.h rather than non-existent
8436         sys/capabilities.h.
8437         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
8438         free_caps.  Cast away const from 4th cap_set_flag argument.
8440 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
8442         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
8443         GLIBC_2.6.
8444         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8445         Add sync_file_range.
8446         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
8448 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
8450         * sysdeps/powerpc/bits/atomic.h
8451         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
8452         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
8453         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8454         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
8455         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8456         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
8457         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
8458         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8459         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8460         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8461         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
8462         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8463         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8464         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8465         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8466         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
8467         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8468         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
8469         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8470         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
8472 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
8474         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8475         (__cache_line_size): Define the variable here.  Add
8476         attribute_hidden, remove weak_extern.
8477         (__libc_start_main): Set __cache_line_size
8478         unconditionally.
8479         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
8480         (__cache_line_size): Define the variable here.  Add
8481         attribute_hidden, remove weak_extern.
8482         (DL_PLATFORM_AUXV): Set __cache_line_size
8483         unconditionally.
8484         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
8485         weak_extern, add attribute_hidden.
8486         (__elf_machine_runtime_setup): Assume __cache_line_size is always
8487         defined in ld.so.
8488         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
8489         definition.
8490         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
8492 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
8494         [BZ #4276]
8495         * timezone/africa: Update from tzdata2007d.
8496         * timezone/asia: Likewise.
8497         * timezone/australasia: Likewise.
8498         * timezone/backward: Likewise.
8499         * timezone/europe: Likewise.
8500         * timezone/iso3166.tab: Likewise.
8501         * timezone/leapseconds: Likewise.
8502         * timezone/northamerica: Likewise.
8503         * timezone/southamerica: Likewise.
8504         * timezone/zone.tab: Likewise.
8506         * timezone/private.h: Update from tzcode2007d.
8507         * timezone/zdump.c: Likewise.
8508         * timezone/zic.c: Likewise.
8510 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
8512         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
8513         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
8514         variables.
8515         (nis_server_cache_search, nis_server_cache_add): New functions.
8516         (__nisfind_server): Use them.  Add dbp and flags argument, if
8517         call __nisbind_create.
8518         (__nisbind_create): Add server_used and current_ep arguments,
8519         only call __nis_findfastest if server_used is ~0.
8520         (__do_niscall2, __prepare_niscall): Adjust callers.
8521         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
8522         ckey_cache_euid, ckey_cache_lock): New variables.
8523         (get_ckey): New function.
8524         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
8525         __pmap_getnisport.  Save __pmap_getnisport result in
8526         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
8527         key.
8528         * nis/nis_lookup.c (nis_lookup): Likewise.
8529         * nis/nis_table.c (nis_list): Likewise.
8530         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
8531         prototypes.
8533         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
8534         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
8535         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
8536         _nss_nisplus_getservbyport_r): Likewise.
8537         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
8538         _nss_nisplus_getnetbyaddr_r): Likewise.
8539         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
8540         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
8541         _nss_nisplus_getntohost_r): Likewise.
8542         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
8543         _nss_nisplus_getrpcbynumber_r): Likewise.
8545 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
8547         * configure.in (libc_cv_gnu89_inline): Only do compile test.
8548         * configure: Rebuilt.
8550         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
8551         bit-fields.
8552         * soft-fp/extended.h (_FP_UNION_E): Likewise.
8554 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
8556         [BZ #2831]
8557         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
8558         bit-fields.
8560 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
8562         * nscd/gai.c: Include alloca.h.
8563         (__libc_use_alloca): Define.
8565 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
8567         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
8568         smaller scopes.
8569         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
8570         (DL_DST_REQUIRED): Adjust user.
8572         * include/dlfcn.h (struct link_map): New forward decl.
8574         * inet/getnameinfo.c: Include stddef.h.
8575         (getnameinfo): Use offsetof.
8577         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
8579         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
8581         * string/strerror_l.c: Include stdlib.h.
8583         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
8584         * config.make.in (gnu89-inline-CFLAGS): New variable.
8585         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
8586         -std=gnu99.
8587         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
8588         * argp/argp.h: Use it.
8589         * bits/mathinline.h: Likewise.
8590         * bits/sigset.h: Likewise.
8591         * bits/string.h: Likewise.
8592         * ctype/ctype.h: Likewise.
8593         * hurd/hurd.h: Likewise.
8594         * hurd/hurd/fd.h: Likewise.
8595         * hurd/hurd/port.h: Likewise.
8596         * hurd/hurd/signal.h: Likewise.
8597         * hurd/hurd/threadvar.h: Likewise.
8598         * hurd/hurd/userlink.h: Likewise.
8599         * io/sys/stat.h: Likewise.
8600         * libio/bits/stdio.h: Likewise.
8601         * libio/bits/stdio2.h: Likewise.
8602         * mach/lock-intern.h: Likewise.
8603         * mach/mach/mig_support.h: Likewise.
8604         * math/bits/cmathcalls.h: Likewise.
8605         * posix/bits/unistd.h: Likewise.
8606         * socket/bits/socket2.h: Likewise.
8607         * stdlib/bits/stdlib.h: Likewise.
8608         * stdlib/stdlib.h: Likewise.
8609         * string/argz.h: Likewise.
8610         * string/bits/string2.h: Likewise.
8611         * string/bits/string3.h: Likewise.
8612         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
8613         * sysdeps/generic/inttypes.h: Likewise.
8614         * sysdeps/generic/machine-lock.h: Likewise.
8615         * sysdeps/generic/machine-sp.h: Likewise.
8616         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8617         * sysdeps/i386/i486/bits/string.h: Likewise.
8618         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
8619         * sysdeps/mach/alpha/machine-lock.h: Likewise.
8620         * sysdeps/mach/alpha/machine-sp.h: Likewise.
8621         * sysdeps/mach/i386/machine-lock.h: Likewise.
8622         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8623         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
8624         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
8625         * sysdeps/s390/bits/string.h: Likewise.
8626         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
8627         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8628         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8629         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8630         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8631         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
8632         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
8633         * wcsmbs/bits/wchar2.h: Likewise.
8634         * wcsmbs/wchar.h: Likewise.
8635         * stdlib/gmp.h: Likewise.  Include <features.h> to get
8636         __extern_inline definition.
8638 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
8640         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
8641         NULL.
8643         [BZ #3919]
8644         * math/libm-test.inc (log_test): Test -Inf and NaN.
8645         (log10_test, log1p_test, log2_test): Test -Inf.
8646         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
8647         FE_INVALID when argument is qNaN.
8648         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
8649         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
8650         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
8651         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
8652         andb $1, %ah with testb $1, %ah, don't test for parity, instead
8653         testb $4, %ah and jump if non-zero.
8654         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
8655         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
8657         [BZ #4101]
8658         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
8659         ancestors with the same depths.
8660         Patch by Niels Moeller <nisse@lysator.liu.se>.
8661         (filter_doc): Don't crash if argp is NULL.
8662         * argp/Makefile (tests): Add tst-argp2.
8663         * argp/tst-argp2.c: New test.
8665         [BZ #4130]
8666         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
8667         open_not_cancel_2.
8668         (updwtmp_file): Likewise.
8670         [BZ #4181]
8671         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
8672         (inet6_opt_append): Don't check extlen is big enough if extbuf
8673         is NULL.
8674         (inet6_opt_finish): Likewise.
8675         * inet/Makefile (tests): Add test-inet6_opt.
8676         * inet/test-inet6_opt.c: New test.
8678         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
8679         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
8680         NLMSG_ERR.  Instead use a page sized buffer.
8681         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
8682         buffer.
8684 2007-03-14  Richard Henderson  <rth@redhat.com>
8686         * sysdeps/alpha/fpu/s_llround.c: New file.
8687         * sysdeps/alpha/fpu/s_llroundf.c: New file.
8688         * sysdeps/alpha/fpu/s_lround.c: New file.
8689         * sysdeps/alpha/fpu/s_lroundf.c: New file.
8690         * sysdeps/alpha/fpu/s_round.c: New file.
8691         * sysdeps/alpha/fpu/s_roundf.c: New file.
8692         * sysdeps/alpha/fpu/s_trunc.c: New file.
8693         * sysdeps/alpha/fpu/s_truncf.c: New file.
8695         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
8696         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
8697         * sysdeps/alpha/fpu/s_floor.c: Likewise.
8698         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
8699         * sysdeps/alpha/fpu/s_rint.c: Likewise.
8700         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8702         * sysdeps/alpha/fpu/s_fmax.S: New file.
8703         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
8704         * sysdeps/alpha/fpu/s_fmin.S: New file.
8705         * sysdeps/alpha/fpu/s_fminf.S: New file.
8706         * sysdeps/alpha/fpu/s_isnan.c: New file.
8707         * sysdeps/alpha/fpu/s_isnanf.c: New file.
8708         * sysdeps/alpha/fpu/s_llrint.c: New file.
8709         * sysdeps/alpha/fpu/s_llrintf.c: New file.
8710         * sysdeps/alpha/fpu/s_lrint.c: New file.
8711         * sysdeps/alpha/fpu/s_lrintf.c: New file.
8712         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
8713         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
8715         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
8716         (__fdimf, fdimf, __fdim, fdim): Remove.
8717         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
8718         (__isnanf, __isnan, __isnanl): New.
8720 2007-03-13  Richard Henderson  <rth@redhat.com>
8722         * sysdeps/ieee754/ldbl-128/Makefile: New file.
8724 2007-03-13  Richard Henderson  <rth@redhat.com>
8726         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
8727         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
8728         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
8729         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
8730         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
8731         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
8733 2007-03-13  Richard Henderson  <rth@redhat.com>
8735         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
8736         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
8737         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
8738         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
8739         Move to dl-auxv.h; initialize instead of extern weak.
8740         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
8741         weak symbol.
8742         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
8743         Extern instead of initialized.
8745 2007-03-13  Richard Henderson  <rth@redhat.com>
8747         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
8748         __sigsuspend_nocancel.
8750 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
8752         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
8753         172.16/12 address range.
8755 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
8757         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
8758         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
8759         message.
8761 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
8763         [BZ #4069]
8764         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
8765         earlier.
8766         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
8768         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
8769         for x qNaN and y either +-inf or non-integer value.
8770         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
8771         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
8772         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8774 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
8776         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
8777         from sysdep_headers.
8779 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
8781         * time/tzfile.c (find_transition): Instead of a linear search try to
8782         guess the transition index, use a linear search if the result is at
8783         most 10 transitions away from the guess or binary search otherwise.
8785 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
8787         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
8788         memory reallocation.
8790 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
8792         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
8793         and fix some typos.
8794         Optimize use of TOLOWER.
8796         [BZ #3325]
8797         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
8798         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8799         * sysdeps/i386/fpu/e_fmod.S: Likewise.
8801         [BZ #3458]
8802         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
8803         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
8805         [BZ #4076]
8806         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
8807         (open_dir_stream): Likewise.
8808         * io/Makefile (tests): Add bug-ftw5.
8809         * io/bug-ftw5.c: New file.
8811         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
8812         * nscd/servicescache.c (cache_addserv): Likewise.
8814         * nscd/grpcache.c (cache_addgr): In case a record changed on
8815         refresh, adjust key_copy.
8817         [BZ #4074]
8818         * nscd/pwdcache.c (cache_addpw): In case a record changed on
8819         refresh, adjust key_copy.
8821         [BZ #4070]
8822         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
8823         special cases.
8824         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
8826 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
8828         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
8829         optimization.
8831         * stdio-common/vfscanf.c: Small cleanups throughout.
8833 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
8835         [BZ #3325]
8836         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
8837         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8838         * sysdeps/i386/fpu/e_fmod.S: Likewise.
8839         Patch by Jared Casper <jaredcasper@gmail.com>.
8841         * sysdeps/unix/closedir.c: Outside libc don't use locking.
8842         * sysdeps/unix/opendir.c: Likewise.
8843         * sysdeps/unix/readdir.c: Likewise.
8845         [BZ #2211]
8846         * stdio-common/vfscanf.c: Handle localized digits etc for floating
8847         point numbers.
8848         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
8850         * stdio-common/vfscanf.c: Fix problems in width accounting.
8851         * stdio-common/tst-sscanf.c (double_tests): New tests.
8852         (main): Hook them up.
8854         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
8855         More simplifications of floating-point reader.
8857         * stdio-common/Makefile (tests): Add tst-swscanf.
8858         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
8859         testing.
8860         * stdio-common/tst-swscanf.c: New file.
8862 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
8864         [BZ #2633]
8865         * libio/stdio.h: Define struct _IO_FILE in global namespace.
8866         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
8867         Remove using for __jmp_buf_tag.
8868         * locale/locale.h (struct lconv): Also define in std namespace.
8869         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
8871         [BZ #3842]
8872         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
8873         using __libc_enable_secure.
8875         [BZ #3818]
8876         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
8878         [BZ #3745]
8879         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
8880         of names for ellipsises.
8882         [BZ #3348]
8883         * malloc/memusage.sh: Cleanups.
8884         * debug/xtrace.sh: Quoting and trap changes.
8886 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
8888         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
8890         * locale/iso-3166.def: Update entry for Serbia.
8891         * locale/iso-4217.def: Define RSD, remove CSD.
8893         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
8894         and 64-bit operations.
8896         [BZ #4040]
8897         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
8898         16-bit operations.
8900         * nscd/nscd.c (parse_opt): One more conversion to use send instead
8901         of writev.
8903 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
8905         [BZ #3991]
8906         * assert/assert.h (assert): Simplify.
8907         (assert_perror): Likewise.
8908         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
8910         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
8911         reqdata.
8913         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
8914         change: don't pass NULL in place of an integer.
8916 2007-02-02  Bruno Haible  <bruno@clisp.org>
8918         [BZ #3954]
8919         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
8920         Add mapping for U+327E.
8921         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
8922         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8923         mapping of 0xD9 0xE8.
8924         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
8925         mapping of U+327E.
8926         Reported by Jungshik Shin <jungshik@google.com>.
8928         [BZ #3955]
8929         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8930         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
8931         Reported by Jungshik Shin <jungshik@google.com>.
8933 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
8935         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
8936         byte variants.
8938         [BZ #4040]
8939         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
8940         byte variants.  Patch mostly be tom@tommay.net.
8942 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
8944         [BZ #3996]
8945         * posix/glob.c (attribute_hidden): Define if not defined.
8946         (glob): Unescape dirname, filename or username when needed and not
8947         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
8948         is NULL.  Handle unescaped [ in pattern without closing ].
8949         Don't pass GLOB_CHECK down to recursive glob for directories.
8950         (__glob_pattern_type): New function.
8951         (__glob_pattern_p): Implement using __glob_pattern_type.
8952         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8953         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8954         Remove unreachable code.
8955         * posix/globtest.sh: Add a couple of new tests.
8957 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
8959         * po/ru.po: Update from translation team.
8961 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
8963         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
8964         to the list of i486+ CPUs.
8965         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8967 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
8969         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
8970         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
8971         references.
8973 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
8975         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
8977         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
8978         * resolv/res_mkquery.c: Define __res_nopt.
8979         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
8980         try adding EDNS0 record.
8981         * resolv/res_send.c (send_dg): If request failed with FORMERR and
8982         EDNS0 record was send make sure we don't try it again.
8983         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
8984         * include/resolv.h: Declare __res_nopt.
8986 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
8988         [BZ #3944]
8989         * time/strptime_l.c (__strptime_internal): Set have_mon for
8990         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
8991         have been computed from tm_yday and tm_year.  Don't crash
8992         in day_of_the_week or day_of_the_year if not have_mon
8993         and tm_mon contains bogus value.
8994         * time/Makefile (tests): Add tst-strptime3.
8995         * time/tst-strptime3.c: New test.
8997 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
8999         [BZ #3957]
9000         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
9001         bit for RE_HAT_LISTS_NOT_NEWLINE.
9002         (build_charclass_op): Remove bogus comment.
9003         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
9004         * posix/bug-regex27.c: New test.
9005         * posix/bug-regex28.c: New test.
9007 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
9009         * po/sv.po: Update from translation team.
9011 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
9013         * nscd/nscd_helper.c (open_socket): Minor size optimization.
9015 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
9017         * include/locale.h (__uselocale): Add libc_hidden_proto.
9018         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
9020         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
9021         gettimeofday.
9023 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
9025         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
9026         returning.
9027         (PTR_DEMANGLE): Real definition now that it's not the same as
9028         PRT_MANGLE anymore.
9029         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9031         * string/strerror_l.c: New file.
9032         * string/Makefile (routines): Add strerror_l.
9033         * string/string.h: Declare strerror_l.
9034         * string/Versions: Export strerror_l for GLIBC_2.6.
9036 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
9038         * nscd/nscd_helper.c (open_socket): Now takes request type and key
9039         as parameter.  Construct request record.  Try sending request
9040         before the first poll use, it usually succeeds.  Adjust all
9041         callers.
9042         * nscd/nscd-client.h: Define MAXKEYLEN.
9043         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
9045 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
9047         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
9048         from return value.
9049         * nscd/nscd_helper.c: Include string.h.
9050         (__nscd_cache_search): Remove const qualifier from return value.
9051         On strict alignment architectures check hash entry and data head
9052         alignment.
9053         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
9054         mmapped data during GC cycle contains garbage.  If
9055         __nscd_drop_map_ref fails, decrement mapped->counter when returning
9056         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
9057         dropped to 0.
9058         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9059         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
9060         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9061         * nscd/nscd_getai.c (__nscd_getai): Likewise.
9062         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9064 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
9066         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
9068 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
9070         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
9071         names not numbers in cfi_*.
9073 2007-01-26  Andreas Jaeger  <aj@suse.de>
9075         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
9076         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
9077         Correct values of PER_HPUX and PER_OSF4.
9079 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
9081         * elf/dl-minimal.c: Undefine _itoa first.
9082         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
9083         * malloc/mtrace.c: Revert last change.
9084         * posix/wordexp.c: Likewise.
9086 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
9088         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
9089         and __geode__ to the list of i486+ CPUs.
9090         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
9092 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
9094         * stdio-common/_itoa.c: Include <limits.h>.
9095         * stdio-common/_itowa.c: Likewise.
9097 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
9099         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
9100         platforms.
9101         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
9102         64-bit platforms.
9103         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
9104         possible.
9105         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
9106         if possible.
9108         [BZ #3902]
9109         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
9110         * stdio-common/Makefile (tests): Add bug17.
9111         * stdio-common/bug17.c: New file.
9113 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
9115         * iconvdata/brf.c: New file.
9116         * iconvdata/testdata/BRF: New file.
9117         * iconvdata/testdata/BRF..UTF8: New file.
9118         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9119         * iconvdata/Makefile: Add rules to build BRF.
9120         * iconvdata/TESTS: Add BRF entry.
9121         * iconvdata/gconv-modules: Likewise.
9122         * iconvdata/tst-tables.sh: Likewise.
9124 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
9126         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
9127         type `long long int', not `long int'.
9128         (wcstoq): Likewise.
9130 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
9132         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
9133         of values on 64-bit platforms which are too large.
9135 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
9136             Joe Kerian  <jkerian@us.us.ibm.com>
9138         [BZ #2749]
9139         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
9140         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
9141         (__copysignl): Use signbit() for comparison.
9142         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
9143         SET_LDOUBLE_WORDS64.
9145         [BZ #2423, #2749]
9146         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
9147         (__ceill): Remove calls to fegetround(), fesetround().
9148         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9149         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9150         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9152 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
9154         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
9156         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
9158 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
9160         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
9161         demangle pointer.
9162         * csu/libc-start.c: Likewise.
9164 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
9166         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
9167         really work anyway.
9169 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
9171         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
9172         users.
9173         (handle_request): Remove unnecessary tests.
9175         * nscd/cache.c (cache_add): Record the failure to add to the cache.
9177 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
9179         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
9180         workbits in semi-raw fraction.
9182         * math/test-misc.c: Add new tests.
9184 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
9186         * math/basic-test.c: Include test-skeleton.c.
9187         (TEST_TRUNC): Define.
9188         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
9189         (main): Rename to ...
9190         (do_test): ...this.  Run new tests.
9191         (TEST_FUNCTION): Define.
9193 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
9194             Joe Kerian  <jkerian@us.us.ibm.com>
9196         [BZ #2749]
9197         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
9198         handling for high words.
9199         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
9200         and overflow for infinity.
9202 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
9204         * nscd/connections.c (handle_request): Add a __builtin_expect.
9206         * nscd/connections.c (serv2db): Change type into structure which
9207         also says whether this is a request for data.  Renamed to
9208         servinfo.  All users changed.
9209         (handle_request): Much simpler test whether we should search the cache.
9211         * nscd/connections.c (handle_request): Fix thinko in selinux test
9212         invocation.
9214         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
9215         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
9216         it before getting dl_load_lock and then relock.
9217         (_dl_lookup_symbol_x): Pass flags to add_dependency.
9218         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
9219         case we unlocked the scope.
9220         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
9221         _dl_lookup_symbol_x in case we locked the scope.
9222         (_dl_profile_fixup): Likewise.
9223         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
9224         set DL_LOOKUP_SCOPE_LOCK.
9226 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
9228         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
9229         CFLAGS-getsrvbynpt_r.c.
9230         * nscd/getsrvbynm_r.c: New file.
9231         * nscd/getsrvbypt_r.c: New file.
9232         * nscd/nscd_getserv_r.c: New file.
9233         * nscd/servicescache.c: New file.
9234         * nscd/Makefile (routines): Add nscd_getserv_r.
9235         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
9236         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
9237         CFLAGS-getsrvbypt_r.c.
9238         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
9239         table.  Add entries for services database.
9240         * nscd/connections.c (serv2str): Mark as const.  Add entries for
9241         services database.
9242         (dbs): Add .reset_res and servdb initialization.
9243         (serv2db): Add entries for services database.
9244         (verify_persistent_db): Accept dbnr == servdb.
9245         (invalidate_cache): Rewrite database name recognition to use a table.
9246         Call res_init() if .reset_res is set for database.
9247         (handle_request): Add code to handle services database.
9248         * nscd/gai.c: Don't define __getservbyname_r.
9249         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
9250         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
9251         (serv_response_header): Define.
9252         (struct datahead): Add serv_response_header member.
9253         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
9254         using table.
9255         * nscd/nscd.conf: Add entries for services database.
9256         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
9257         Declare serv_iov_disabled.
9258         Declare addservbyname, readdservbyname, addservbyport, and
9259         readdservbyport.
9260         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
9261         (find_db): Fix error message.
9262         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
9263         __nscd_getservbyname_r, and __nscd_getservbyport_r.
9264         * nscd/selinux.c (perms): Add entries for services database.
9265         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
9266         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
9268         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
9269         * nscd/hstcache.c: Likewise.
9270         * nscd/pwdcache.c: Likewise.
9272         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
9273         computation of keylen.
9275         * include/string.h: Only redefine strndupa if this is really for
9276         libc code.
9278 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
9280         * nscd/nscd_gethst_r.c: Minor cleanups.
9282         * nscd/connections.c (handle_request): Check selinux permissions
9283         for all non-admin commands.
9285         * sysdeps/i386/i486/bits/atomic.h: Define
9286         atomic_compare_and_exchange_val_acq,
9287         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
9288         using __sync_* built-ins for gcc >= 4.1.
9289         * sysdeps/x86_64/bits/atomic.h: Likewise.
9291         [BZ #3840]
9292         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
9293         and .oS.d files.
9295 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
9297         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
9298         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
9299         (do_test): Check errno and exit(0) if ENOSYS.
9301 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
9303         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
9304         thousands separators.
9305         * stdlib/Makefile: Add rules to build and run tst-strtod4.
9306         * stdlib/tst-strtod4.c: New test.
9308         [BZ #3855]
9309         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
9310         hexadecimal digit should accept just the initial 0.
9311         * stdlib/tst-strtod2.c (tests): New variable.
9312         (do_test): Run several tests rather than just one.
9314 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
9316         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
9317         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
9319 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
9321         * io/fts.c: Make sure fts_cur is always valid after return from
9322         fts_read.
9323         Patch by Miloslav Trmac <mitr@redhat.com>.
9325 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
9327         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
9328         (R_MIPS_NUM): Bump by 1.
9330 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
9332         * posix/execvp.c: Include alloca.h.
9333         (allocate_scripts_argv): Renamed to...
9334         (scripts_argv): ... this.  Don't allocate buffer here nor count
9335         arguments.
9336         (execvp): Use alloca if possible.
9337         * posix/Makefile: Add rules to build and run tst-vfork3 test.
9338         * posix/tst-vfork3.c: New test.
9340 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
9342         * string/Makefile (tst-strxfrm2-ENV): Define.
9343         * stdlib/Makefile (tst-strtod3-ENV): Define.
9345 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
9347         * posix/getconf.c: Update copyright year.
9348         * nss/getent.c: Likewise.
9349         * iconv/iconvconfig.c: Likewise.
9350         * iconv/iconv_prog.c: Likewise.
9351         * elf/ldconfig.c: Likewise.
9352         * catgets/gencat.c: Likewise.
9353         * csu/version.c: Likewise.
9354         * elf/ldd.bash.in: Likewise.
9355         * elf/sprof.c (print_version): Likewise.
9356         * locale/programs/locale.c: Likewise.
9357         * locale/programs/localedef.c: Likewise.
9358         * nscd/nscd.c (print_version): Likewise.
9359         * debug/xtrace.sh: Likewise.
9360         * malloc/memusage.sh: Likewise.
9361         * malloc/mtrace.pl: Likewise.
9362         * debug/catchsegv.sh: Likewise.
9364 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
9366         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
9367         attempts.
9369 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
9371         * posix/wordexp.c: Remove some unnecessary tests.
9373 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
9375         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
9376         blacklist the group till after we look it up.
9378 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
9380         * include/atomic.h (atomic_forced_read): New macro.
9382 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
9384         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
9386 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
9388         * nss/getXXbyYY_r.c: Include atomic.h.
9389         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
9390         add atomic_write_barrier () in between.
9392         * stdlib/Makefile (tests): Add tst-makecontext.
9393         * stdlib/tst-makecontext.c: New test.
9395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
9396         (__makecontext): Don't realign uc_mcontext.uc_regs.
9398 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
9400         * elf/dl-support.c: Include dl-procinfo.h.
9401         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
9402         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
9403         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
9404         Define.
9405         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
9406         hardcoded constants.
9407         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
9408         PPC_PLATFORM_* macros for array designators.
9410 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
9412         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
9413         names to the beginning.
9414         (_dl_powerpc_platforms): Add "power6x".
9415         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9416         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
9417         (_DL_PLATFORMS_COUNT): Increase.
9418         (_dl_string_platform): Handle power6x case.
9419         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
9420         PPC_FEATURE_POWER6_EXT): Define.
9421         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
9423 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
9425         [BZ #3747]
9426         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
9427         [-2^31 .. 2^31) range.
9428         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
9429         targets.
9430         * stdlib/tst-rand48-2.c: New test.
9431         * stdlib/Makefile (tests): Add tst-rand48-2.
9433 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
9435         * misc/tst-pselect.c (do_test): Fix sigblock argument.
9437 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
9439         * misc/tst-pselect.c (do_test): Make sure the helper process is
9440         terminating when the test is aborted.
9442 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
9444         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
9445         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
9446         Handle relatime mount option.
9448         [BZ #2337]
9449         * libio/Makefile (tests): Add tst-setvbuf1.
9450         * libio/tst-setvbuf1.c: New file.
9452 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
9454         [BZ #2337]
9455         * libio/genops.c (__uflow): Fix a typo.
9456         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
9457         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
9458         the narrow buffer size.
9460 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
9462         [BZ #2337]
9463         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
9464         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
9465         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
9466         in _flags.
9467         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
9468         _IO_wstr_finish): Likewise.
9469         * libio/wmemstream.c (open_wmemstream): Likewise.
9470         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
9471         even for wide streams.
9473 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
9475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
9476         kernel-features.h.
9478 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
9480         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
9481         separators also if no non-zero digits found.
9482         * stdlib/Makefile (tests): Add tst-strtod3.
9484 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
9486         [BZ #3632]
9487         * include/features.h: Fix comment about default value for
9488         _POSIX_C_SOURCE.
9490         [BZ #3664]
9491         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
9492         empty parsed strings.
9493         * stdlib/Makefile (tests): Add tst-strtod2.
9494         * stdlib/tst-strtod2.c: New file.
9496         [BZ #3673]
9497         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
9498         computation.
9499         * stdlib/Makefile (tests): Add tst-atof2.
9500         * stdlib/tst-atof2.c: New file.
9502         [BZ #3674]
9503         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
9504         correctly if removing trailing zero of hex-float.
9505         * stdlib/Makefile (tests): Add tst-atof1.
9506         * stdlib/tst-atof1.c: New file.
9508 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
9510         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
9511         Start searching for next comma at p rather than rest.
9512         * misc/Makefile (tests): Add tst-mntent2.
9513         * misc/tst-mntent2.c: New test.
9515         * misc/getusershell.c (initshells): Check for integer overflows.
9516         Make strings buffer one bigger as fgets always succeeds when second
9517         argument is 1.  Don't use calloc for shells array.  Disallow
9518         / as shell.
9520 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
9522         * malloc/memusage.c: Handle realloc with new size of zero and
9523         non-NULL pointer correctly.
9524         (me): Really write first record twice.
9525         (struct entry): Make format bi-arch safe.
9526         (dest): Write out more realloc statistics.
9527         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
9529 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
9531         * nis/nis_subr.c (nis_getnames): Revert last change.
9533 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
9535         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
9536         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
9537         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
9538         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
9539         ENOTTY.
9540         * io/Makefile: Add rules to build and run tst-ttyname_r test.
9541         * io/tst-ttyname_r.c: New test.
9543 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9545         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
9547 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
9549         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
9550         jump table entries.
9552 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
9554         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
9555         `clone' function to ensure proper unwinding stop of gdb.
9556         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
9558 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
9560         * nscd/nscd.init: Remove obsolete and commented-out -S option
9561         handling.
9563 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
9565         [BZ #3514]
9566         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
9568         [BZ #3515]
9569         * manual/string.texi (strtok): Remove duplicate paragraph.
9571 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9573         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
9574         libgcc not supporting `rflags' unwinding (register # >= 17).
9576 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
9578         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
9579         succeeded.
9581 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
9582             Jakub Jelinek  <jakub@redhat.com>
9583             Jan Kratochvil  <jan.kratochvil@redhat.com>
9585         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
9586         unwind information.
9587         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
9588         'restore_rt' even in the 'signal' directory.
9589         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
9591 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
9593         [BZ #3559]
9594         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
9595         malloc crashed.  Don't allocate memory unnecessarily in each
9596         loop.
9598 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
9600         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
9602 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
9604         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
9606 2006-11-18  Bruno Haible  <bruno@clisp.org>
9608         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
9609         __sysconf only after having tried to call getgroups32.
9611 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
9613         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
9614         addresses for IPv4 queries if they can be mapped.
9616 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
9618         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
9619         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
9620         (signmask): Add .size directive.
9621         (othermask): Add .type directive.
9623 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
9625         * po/nl.po: Update from translation team.
9627         * timezone/zdump.c: Redo fix for BZ #3137.
9629 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
9631         * nss/nss_files/files-alias.c (get_next_alias): Set line back
9632         to first_unused after parsing :include: file.
9634 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
9636         * timezone/africa: Update from tzdata2006o.
9637         * timezone/antarctica: Likewise.
9638         * timezone/asia: Likewise.
9639         * timezone/australasia: Likewise.
9640         * timezone/backward: Likewise.
9641         * timezone/europe: Likewise.
9642         * timezone/iso3166.tab: Likewise.
9643         * timezone/northamerica: Likewise.
9644         * timezone/southamerica: Likewise.
9645         * timezone/zone.tab: Likewise.
9647         * time/tzfile.c (__tzfile_read): Extend to handle new file format
9648         on machines with 64-bit time_t.
9650         * timezone/checktab.awk: Update from tzcode2006o.
9651         * timezone/ialloc.c: Likewise.
9652         * timezone/private.h: Likewise.
9653         * timezone/scheck.c: Likewise.
9654         * timezone/tzfile.h: Likewise.
9655         * timezone/tzselect.ksh: Likewise.
9656         * timezone/zdump.c: Likewise.
9657         * timezone/zic.c: Likewise.
9659         [BZ #3483]
9660         * elf/ldconfig.c (main): Call setlocale and textdomain.
9661         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9663         [BZ #3480]
9664         * manual/argp.texi: Fix typos.
9665         * manual/charset.texi: Likewise.
9666         * manual/errno.texi: Likewise.
9667         * manual/filesys.texi: Likewise.
9668         * manual/lang.texi: Likewise.
9669         * manual/maint.texi: Likewise.
9670         * manual/memory.texi: Likewise.
9671         * manual/message.texi: Likewise.
9672         * manual/resource.texi: Likewise.
9673         * manual/search.texi: Likewise.
9674         * manual/signal.texi: Likewise.
9675         * manual/startup.texi: Likewise.
9676         * manual/stdio.texi: Likewise.
9677         * manual/sysinfo.texi: Likewise.
9678         * manual/syslog.texi: Likewise.
9679         * manual/time.texi: Likewise.
9680         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9682         [BZ #3465]
9683         * sunrpc/clnt_raw.c: Minimal message improvements.
9684         * sunrpc/pm_getmaps.c: Likewise.
9685         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9686         * nis/nis_print_group_entry.c: Likewise.
9687         * locale/programs/repertoire.c: Likewise.
9688         * locale/programs/charmap.c: Likewise.
9689         * malloc/memusage.sh: Likewise.
9690         * elf/dl-deps.c: Likewise.
9691         * locale/programs/ld-collate.c: Likewise.
9692         * libio/vswprintf.c: Likewise.
9693         * malloc/memusagestat.c: Likewise.
9694         * sunrpc/auth_unix.c: Likewise.
9695         * sunrpc/rpc_main.c: Likewise.
9696         * nscd/cache.c: Likewise.
9697         * locale/programs/repertoire.c: Unify output messages.
9698         * locale/programs/charmap.c: Likewise.
9699         * locale/programs/ld-ctype.c: Likewise.
9700         * locale/programs/ld-monetary.c: Likewise.
9701         * locale/programs/ld-numeric.c: Likewise.
9702         * locale/programs/ld-time.c: Likewise.
9703         * elf/ldconfig.c: Likewise.
9704         * nscd/selinux.c: Likewise.
9705         * elf/cache.c: Likewise.
9706         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9708         [BZ #3451]
9709         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
9710         change atomic.
9711         (ceil): Likewise.
9713 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
9715         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
9716         if N is one bigger than return value.
9717         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
9718         and l1 last arguments, if buf is defined, verify the return value
9719         equals to strlen (buf) and verify no byte beyond passed length
9720         is modified.
9722 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
9724         * po/sv.po: Update from translation team.
9726 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
9728         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
9729         noinline attribute.
9731 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
9733         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
9734         noinline attribute.
9736         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
9737         Use __new_sys_siglist instead of _sys_siglist_internal as
9738         second macro argument.
9739         (_old_sys_siglist): Use declare_symbol_alias macro instead of
9740         strong_alias.
9742 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
9744         [BZ #3493]
9745         * posix/unistd.h (sysconf): Remove const attribute.
9747         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
9748         temporary or deprecated addresses.
9749         Patch by Sridhar Samudrala <sri@us.ibm.com>.
9751         * string/Makefile (tests): Add tst-strxfrm2.
9752         * string/tst-strxfrm2.c: New file.
9754 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
9756         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
9757         rather than r->r_brk.
9759 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
9761         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
9762         optimization even if needed > n.
9764         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
9765         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
9766         return false, otherwise return true.
9767         (cache_rpath): Return decompose_rpath return value.
9769 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
9771         * include/libc-symbols.h (declare_symbol): Rename to...
9772         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
9773         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
9774         .size directive.
9775         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
9776         changes.
9777         * sysdeps/gnu/siglist.c: Likewise.
9779 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
9781         * sysdeps/powerpc/fpu/bits/mathinline.h
9782         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
9783         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
9785 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
9787         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9788         Update handling of cache descriptor 0x49 for new models.
9789         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
9790         Likewise.
9792 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
9794         * malloc/memusage.c (dest): Reset not_me back to false after
9795         printing statistics.
9797 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
9799         * configure.in: Work around ld --help change and avoid -z relro
9800         test completely if the architecture doesn't care about security.
9802 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
9804         * po/sv.po: Update from translation team.
9806 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
9808         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
9809         generate compatibility version.
9811 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
9813         * configure.in: Relax -z relro requirement a bit.
9815         * po/sv.po: Update from translation team.
9817 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
9819         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
9820         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
9821         * elf/dl-close.c (_dl_close_worker): Likewise.
9822         * elf/dl-open.c (_dl_open_worker): Likewise.
9823         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
9825 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
9827         * configure.in: Require assembler support for visibility, compiler
9828         support for visibility and aliases, linker support for various -z
9829         options.
9830         * Makeconfig: Remove conditional code which now is unnecessary.
9831         * config.h.in: Likewise.
9832         * config.make.in: Likewise.
9833         * dlfcn/Makefile: Likewise.
9834         * elf/Makefile: Likewise.
9835         * elf/dl-load.c: Likewise.
9836         * elf/rtld.c: Likewise.
9837         * include/libc-symbols.h: Likewise.
9838         * include/stdio.h: Likewise.
9839         * io/Makefile: Likewise.
9840         * io/fstat.c: Likewise.
9841         * io/fstat64.c: Likewise.
9842         * io/fstatat.c: Likewise.
9843         * io/fstatat64.c: Likewise.
9844         * io/lstat.c: Likewise.
9845         * io/lstat64.c: Likewise.
9846         * io/mknod.c: Likewise.
9847         * io/mknodat.c: Likewise.
9848         * io/stat.c: Likewise.
9849         * io/stat64.c: Likewise.
9850         * libio/stdio.c: Likewise.
9851         * nscd/Makefile: Likewise.
9852         * stdlib/Makefile: Likewise.
9853         * stdlib/atexit.c: Likewise.
9854         * sysdeps/generic/ldsodefs.h: Likewise.
9855         * sysdeps/i386/dl-machine.h: Likewise.
9856         * sysdeps/i386/sysdep.h: Likewise.
9857         * sysdeps/i386/i686/memcmp.S: Likewise.
9858         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9859         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9860         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
9862         * Makerules: USE_TLS support is now default.
9863         * tls.make.c: Likewise.
9864         * csu/Versions: Likewise.
9865         * csu/libc-start.c: Likewise.
9866         * csu/libc-tls.c: Likewise.
9867         * csu/version.c: Likewise.
9868         * dlfcn/dlinfo.c: Likewise.
9869         * elf/dl-addr.c: Likewise.
9870         * elf/dl-cache.c: Likewise.
9871         * elf/dl-close.c: Likewise.
9872         * elf/dl-iteratephdr.c: Likewise.
9873         * elf/dl-load.c: Likewise.
9874         * elf/dl-lookup.c: Likewise.
9875         * elf/dl-object.c: Likewise.
9876         * elf/dl-open.c: Likewise.
9877         * elf/dl-reloc.c: Likewise.
9878         * elf/dl-support.c: Likewise.
9879         * elf/dl-sym.c: Likewise.
9880         * elf/dl-sysdep.c: Likewise.
9881         * elf/dl-tls.c: Likewise.
9882         * elf/ldconfig.c: Likewise.
9883         * elf/rtld.c: Likewise.
9884         * elf/tst-tls-dlinfo.c: Likewise.
9885         * elf/tst-tls1.c: Likewise.
9886         * elf/tst-tls10.h: Likewise.
9887         * elf/tst-tls14.c: Likewise.
9888         * elf/tst-tls2.c: Likewise.
9889         * elf/tst-tls3.c: Likewise.
9890         * elf/tst-tls4.c: Likewise.
9891         * elf/tst-tls5.c: Likewise.
9892         * elf/tst-tls6.c: Likewise.
9893         * elf/tst-tls7.c: Likewise.
9894         * elf/tst-tls8.c: Likewise.
9895         * elf/tst-tls9.c: Likewise.
9896         * elf/tst-tlsmod1.c: Likewise.
9897         * elf/tst-tlsmod13.c: Likewise.
9898         * elf/tst-tlsmod13a.c: Likewise.
9899         * elf/tst-tlsmod14a.c: Likewise.
9900         * elf/tst-tlsmod2.c: Likewise.
9901         * elf/tst-tlsmod3.c: Likewise.
9902         * elf/tst-tlsmod4.c: Likewise.
9903         * elf/tst-tlsmod5.c: Likewise.
9904         * elf/tst-tlsmod6.c: Likewise.
9905         * include/errno.h: Likewise.
9906         * include/link.h: Likewise.
9907         * include/tls.h: Likewise.
9908         * locale/global-locale.c: Likewise.
9909         * locale/localeinfo.h: Likewise.
9910         * malloc/arena.c: Likewise.
9911         * malloc/hooks.c: Likewise.
9912         * malloc/malloc.c: Likewise.
9913         * resolv/Versions: Likewise.
9914         * sysdeps/alpha/dl-machine.h: Likewise.
9915         * sysdeps/alpha/libc-tls.c: Likewise.
9916         * sysdeps/generic/ldsodefs.h: Likewise.
9917         * sysdeps/generic/tls.h: Likewise.
9918         * sysdeps/i386/dl-machine.h: Likewise.
9919         * sysdeps/ia64/dl-machine.h: Likewise.
9920         * sysdeps/ia64/libc-tls.c: Likewise.
9921         * sysdeps/mach/hurd/fork.c: Likewise.
9922         * sysdeps/mach/hurd/i386/tls.h: Likewise.
9923         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
9924         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
9925         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
9926         * sysdeps/s390/libc-tls.c: Likewise.
9927         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9928         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9929         * sysdeps/sh/dl-machine.h: Likewise.
9930         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9931         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9932         * sysdeps/x86_64/dl-machine.h: Likewise.
9934         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
9935         split out locking and parameter checking.
9936         (_dl_close): Call _dl_close_worker after locking and checking.
9937         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
9938         _dl_close.
9939         * elf/Makefile: Add rules to build and run tst-thrlock.
9940         * elf/tst-thrlock.c:  New file.
9942         [BZ #3426]
9943         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
9944         reality.
9946         [BZ #3429]
9947         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
9948         we are sure we do not need it anymore for _dl_close.  Also move
9949         the asserts inside the lock region.
9950         Patch mostly by Suzuki <suzuki@in.ibm.com>.
9952 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
9954         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
9955         argument.
9956         (_dl_lookup_symbol_x): Adjust caller.
9958         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
9959         _ns_global_scope.
9960         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
9962         * elf/dl-libc.c: Revert l_scope name changes.
9963         * elf/dl-load.c: Likewise.
9964         * elf/dl-object.c: Likewise.
9965         * elf/rtld.c: Likewise.
9966         * elf/dl-close.c (_dl_close): Likewise.
9967         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
9968         always use __rtld_mrlock_{change,done}.  Always free old scope list
9969         here if not l_scope_mem.
9970         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
9971         change.  Never free scope list here.  Just __rtld_mrlock_lock before
9972         the lookup and __rtld_mrlock_unlock it after the lookup.
9973         * elf/dl-sym.c: Likewise.
9974         * include/link.h (struct r_scoperec): Remove.
9975         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
9976         with l_scope_mem and l_scoperec_lock with l_scope_lock.
9978 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
9980         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
9982 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
9984         * configure.in: Disable building profile libraries by default.
9986 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9988         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
9989         as signed longs, check for x_base + pos overflow.
9990         * sunrpc/Makefile (tests): Add tst-xdrmem2.
9991         * sunrpc/tst-xdrmem2.c: New test.
9993 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
9995         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
9996         _dl_lookup_symbol_x code.
9998 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
10000         * elf/dl-runtime.c: Include sysdep-cancel.h.
10001         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
10002         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
10003         instead of catomic_* macros.
10004         * elf/dl-sym.c: Include sysdep-cancel.h.
10005         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
10006         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
10007         * elf/dl-close.c: Include sysdep-cancel.h.
10008         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
10009         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
10010         * elf/dl-open.c: Include sysdep-cancel.h.
10011         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
10012         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
10014 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
10016         [BZ #3313]
10017         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
10018         fastbin rather than end of fastbin array.
10020 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
10022         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
10023         body macro.
10024         * sysdeps/x86_64/bits/atomic.h
10025         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
10026         (catomic_decrement): Use correct body macro.
10028 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
10030         * include/atomic.h: Add a unique prefix to all local variables
10031         in macros.
10032         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
10034 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
10036         [BZ #3369]
10037         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
10038         and 7.
10040 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
10042         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
10044 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
10046         [BZ #3313]
10047         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
10048         determine highest fast bin to consolidate, always look into all of
10049         them.
10050         (do_check_malloc_state): Only require for empty bins for large
10051         sizes in main arena.
10053         * libio/stdio.h: Add more __wur attributes.
10055         * elf/dl-minimal.c (realloc): Optimize last patch.
10057 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
10059         [BZ #3352]
10060         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
10061         and use memcpy() if it does.
10063 2006-11-12  Andreas Jaeger  <aj@suse.de>
10065         [BZ #2510]
10066         * manual/search.texi (Hash Search Function): Clarify.
10067         (Array Search Function): Clarify.
10069 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
10071         [BZ #2830]
10072         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
10073         shifting.
10074         * math/atest-exp2.c (read_mpn_hex): Likewise.
10075         * math/atest-sincos.c (main): Likewise.
10077 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
10079         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
10080         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
10081         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
10082         version GLIBC_2.6.
10083         * Versions.def: Add GLIBC_2.6 for libc.
10085         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
10087         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
10089 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
10091         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
10093         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
10095         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
10096         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
10098 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
10100         * include/atomic.c: Define catomic_* operations.
10101         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
10102         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
10103         * malloc/memusage.c: Likewise.
10104         * gmon/mcount.c: Likewise.
10105         * elf/dl-close.c: Likewise.
10106         * elf/dl-open.c: Likewise.
10107         * elf/dl-profile.c: Likewise.
10108         * elf/dl-sym.c: Likewise.
10109         * elf/dl-runtime.c: Likewise.
10110         * elf/dl-fptr.c: Likewise.
10111         * resolv/res_libc.c: Likewise.
10113 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
10115         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
10116         components which lack them.
10118         * nis/nis_subr.c (nis_getnames): Make sure that we always return
10119         at least one entry consisting of the parameter concatenated with
10120         the domain.
10122 2006-10-10  Roland McGrath  <roland@frob.com>
10124         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
10125         * sysdeps/mach/hurd/futimes.c: Likewise.
10126         * sysdeps/mach/hurd/lutimes.c: Likewise.
10128 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
10129             Jakub Jelinek  <jakub@redhat.com>
10131         Implement reference counting of scope records.
10132         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
10133         from the list in objects which remain.  Always allocate new scope
10134         record.
10135         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
10136         don't resize, allocate a new one.
10137         * elf/dl-runtime.c: Update reference counters before using a scope
10138         array.
10139         * elf/dl-sym.c: Likewise.
10140         * elf/dl-libc.c: Adjust for l_scope name change.
10141         * elf/dl-load.c: Likewise.
10142         * elf/dl-object.c: Likewise.
10143         * elf/rtld.c: Likewise.
10144         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
10145         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
10146         Add l_scoperec_lock.
10147         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
10148         * sysdeps/generic/rtld-lowlevel.h: New file.
10150         * include/atomic.h: Rename atomic_and to atomic_and_val and
10151         atomic_or to atomic_or_val.  Define new macros atomic_and and
10152         atomic_or which do not return values.
10153         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
10154         Various cleanups.
10155         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10157         * po/sv.po: Update from translation team.
10159 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
10161         * Versions.def: Add GLIBC_2.6 to libpthread.
10163         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
10164         (versioned_symbol): Likewise.
10165         (compat_symbol): Likewise.
10167         * po/tr.po: Update from translation team.
10169 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10171         * nis/Banner: Removed.  It's been integral part forever and the
10172         author info is incomplete anyway.
10173         * libio/Banner: Likewise.
10175         * nis/nis_table.c (nis_list): If __follow_path fails in the new
10176         code, make sure the nis_freeresult call doesn't crash and that the
10177         result is reported correctly.
10179 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
10181         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
10182         when callback is NULL.
10184         * nis/Versions (libnss_nisplus): Add
10185         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
10186         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
10187         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
10188         _nss_create_tablename): Rename to...
10189         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
10190         ... these.  No longer static.
10191         (internal_setgrent): Adjust users.
10192         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
10193         Don't use locking around _nss_grp_create_tablename call.
10194         * nis/nss_nisplus/nisplus-initgroups.c: New file.
10196 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10198         * version.h (VERSION): Bump to 2.5.90 for new development tree.
10200 2006-10-06  Andreas Jaeger  <aj@suse.de>
10202         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
10204 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10206         * po/pl.po: Update from translation team.
10208         * nscd/nscd.c (main): Fix typo in message.
10209         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
10211 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
10213         [BZ #3291]
10214         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
10215         errno.h, signal.h, unistd.h and sysdep-cancel.h.
10216         (__sigprocmask): Define.
10218 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
10220         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
10221         used.
10223 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
10225         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
10226         in oldtotal and newtotal calculation.
10227         * nscd/nscd-client.h (struct mapped_database): Add datasize
10228         field.
10229         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
10230         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
10231         increased.
10232         (__nscd_cache_search): Add checks to make sure we never reference
10233         data beyond the current mapping.
10235 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
10237         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
10238         variables const to avoid compiler warnings.
10240         * io/fts.c (fts_close): Remove redundant checks.
10241         (fts_build): Likewise.
10242         (fts_palloc): Likewise.
10244         * manual/message.texi (Advanced gettext functions,
10245         Using gettextized software): Fix typos.
10247 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
10249         * posix/glob.c (glob_in_dir): Add some comments and asserts to
10250         explain why there are no leaks.
10252 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
10254         * libio/wmemstream.c: Include <wchar.h>.
10255         * libio/bug-wmemstream1.c: Likewise.
10256         * libio/tst-wmemstream1.c: Likewise.
10257         * libio/tst-wmemstream2.c: Likewise.
10259         * version.h (RELEASE): Bump to 2.5.
10260         * README: Regenerated.
10262         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
10264         [BZ #3273]
10265         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
10266         found no group members.
10267         Patch by Petr Baudis.
10269 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
10271         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
10272         assert bootstrap_map.l_tls_modid is zero.
10273         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
10274         if USE___THREAD.
10276 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
10278         * libio/stdio.h: Move open_wmemstream prototype to ...
10279         * wcsmbs/wchar.h: ... here.
10281 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
10283         [BZ #3252]
10284         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
10285         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
10286         __{,l}chown to handle the rest.
10287         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
10288         fchownat syscall and __ASSUME_32BITUIDS case inline, call
10289         __{,l}chown to handle the rest.
10290         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
10291         i386/fchownat.c.
10292         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
10293         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
10295         [BZ #3253]
10296         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10297         time, rather allocate increasingly bigger arrays of pointers, if
10298         possible with alloca, if too large with malloc.
10300 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
10302         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
10304         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
10306 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
10308         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
10309         home addresses.
10310         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
10311         IFA_F_HOMEADDRESS flag for interfaces.
10312         * include/ifaddrs.h (struct in6addrinfo): Define
10313         in6ai_homeaddress.
10315 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
10317         [BZ #3225]
10318         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
10319         PTR_DEMANGLE3): Define.
10320         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
10321         PTR_DEMANGLE3): Likewise.
10322         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
10323         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
10324         Likewise.
10325         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
10327 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
10329         * po/libc.pot: Regenerated.
10330         * po/be.po: Updated.
10331         * po/ca.po: Likewise.
10332         * po/cs.po: Likewise.
10333         * po/da.po: Likewise.
10334         * po/de.po: Likewise.
10335         * po/el.po: Likewise.
10336         * po/en_GB.po: Likewise.
10337         * po/es.po: Likewise.
10338         * po/fi.po: Likewise.
10339         * po/fr.po: Likewise.
10340         * po/gl.po: Likewise.
10341         * po/hr.po: Likewise.
10342         * po/hu.po: Likewise.
10343         * po/ja.po: Likewise.
10344         * po/ko.po: Likewise.
10345         * po/nb.po: Likewise.
10346         * po/nl.po: Likewise.
10347         * po/pl.po: Likewise.
10348         * po/pt_BR.po: Likewise.
10349         * po/ru.po: Likewise.
10350         * po/rw.po: Likewise.
10351         * po/sk.po: Likewise.
10352         * po/sv.po: Likewise.
10353         * po/tr.po: Likewise.
10354         * po/zh_CN.po: Likewise.
10355         * po/zh_TW.po: Likewise.
10357         [BZ #3137]
10358         * iconv/iconv_prog.c (main): Fix spelling in error message.
10359         * iconv/iconvconfig.c (main): Likewise.
10360         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
10361         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
10362         * locale/programs/localedef.c (main): Likewise.
10363         * locale/programs/repertoire.c (repertoire_read): Likewise.
10364         * timezone/zdump.c (main): Likewise.
10365         * nscd/connections.c (handle_request): Fix spelling in log message.
10366         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
10368 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
10370         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
10371         interfaces.
10373 2006-09-20  Andreas Jaeger  <aj@suse.de>
10375         * math/libm-test.inc (lrint_test_upward): Fix typo.
10377 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
10379         [BZ #2592]
10380         * math/libm-test.inc (lrint_test_tonearest): New function.
10381         (lrint_test_towardzero): New function.
10382         (lrint_test_downward): New function.
10383         (lrint_test_upward): New function.
10384         (main): Run these new tests.
10385         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
10386         of values near to 0.
10387         (two52): Use double not long double.
10388         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10389         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10390         (two23): Use float not double.
10391         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10392         (two23): Use float not double.
10393         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10394         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10395         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10396         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10398 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10400         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
10401         Cast sp to unsigned long to avoid compiler warning.
10402         Use __makecontext_ret function instead of a trampoline on the stack.
10403         (__makecontext_ret): New function.
10404         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
10406 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
10408         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
10409         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
10410         bits.
10412 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
10414         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
10415         sure no reference to the unloaded map's search list remains in the
10416         dependency's scope.
10418 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
10420         * elf/Makefile: Add rules to build and run unload7 test.
10421         * elf/unload7.c: New test.
10422         * elf/unload7mod1.c: New file.
10423         * elf/unload7mod2.c: New file.
10425 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
10427         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
10428         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
10429         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10430         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
10431         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10432         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
10433         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10434         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
10435         PTRACE_GETEVENTMSG): Likewise.
10436         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
10437         values.
10439 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
10441         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
10442         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10443         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
10444         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
10446 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
10448         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
10449         write '\0' to the fd.
10450         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
10451         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
10452         Change regs to unsigned long pointer from unsigned int, fix fscr
10453         offset.
10455 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
10457         * io/Makefile (CFLAGS-fstatat.c): Set.
10458         (CFLAGS-fstatat64.c): Likewise.
10459         (CFLAGS-mknodat.c): Likewise.
10461         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
10462         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10463         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
10464         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
10466 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
10467             Steven Munroe  <sjmunroe@us.ibm.com>
10469         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
10470         names to the beginning.  Rename "cell" to "cellbe".
10471         (_dl_powerpc_platforms): New.
10472         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10473         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
10474         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
10475         (_DL_HWCAP_PLATFORM): Define to new mask.
10476         (_dl_platform_string, _dl_string_platform): New functions.
10477         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
10478         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
10480 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
10482         [BZ #2526]
10483         * README.libm: Fix a thinko in sqrt algorithm description.
10485         [BZ #3143]
10486         * manual/string.texi (argz_delete): Fix prototype.
10487         Patch by <alpt@freaknet.org>.
10489 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
10491         [BZ #3138]
10492         * io/test-lfs.c (do_prepare): Give name_len type size_t.
10493         * io/tst-fcntl.c (do_prepare): Likewise.
10494         * posix/tst-exec.c (do_prepare): Likewise.
10495         * posix/tst-preadwrite.c (do_prepare): Likewise.
10496         * posix/tst-spawn.c (do_prepare): Likewise.
10497         * posix/tst-truncate.c (do_prepare): Likewise.
10498         * rt/tst-aio.c (do_prepare): Likewise.
10499         * rt/tst-aio64.c (do_prepare): Likewise.
10500         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
10501         size_t.
10503 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
10505         [BZ #2821]
10506         * time/mktime.c (guess_time_tm): Fix overflow detection.
10507         * time/Makefile (tests): Add bug-mktime1.
10508         * time/bug-mktime1.c: New file.
10510         [BZ #3189, #3188]
10511         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
10512         (mremap): Likewise.
10514 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
10516         [BZ #1006]
10517         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
10518         Ensure relocation doesn't clobber any bits outside of the
10519         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
10520         R_SPARC_HI22 and R_SPARC_H44.
10522         [BZ #2775]
10523         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
10524         (long) (MINSIZE + nb - old_size) is positive.
10526         * malloc/arena.c (grow_heap): When growing bail even if new_size
10527         is negative.
10529         [BZ #3155]
10530         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
10531         stack below r1.
10533 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
10535         * posix/regex_internal.c (re_string_reconstruct): Handle
10536         offset < pstr->valid_raw_len && pstr->offsets_needed case.
10537         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
10538         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10539         re_string_context_at.
10540         * posix/Makefile: Add rules to build and run bug-regex26 test.
10541         * posix/bug-regex26.c: New test.
10543         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
10544         rather than col_sym_free.  Move seqp declaration earlier.
10546         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
10548 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
10550         * nscd/initgrcache.c (addinitgroupsX): Move any_success
10551         decl before first goto out.
10553 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
10555         * Makerules (shlib.lds): If have-hash-style, put .hash section
10556         at the end of the RO segment.
10558 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
10560         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
10561         style hash table format is used.
10563 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
10565         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
10566         randomization rather than before.
10567         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
10569 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
10571         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
10573         * malloc/malloc.c (_int_malloc): Use full list insert and not
10574         shortcut which assumes the list is empty for large requests
10575         too.
10577         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
10579 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
10581         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
10582         and offout arguments to the prototype.
10583         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
10584         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
10585         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
10586         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
10587         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
10588         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
10589         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
10590         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
10592 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
10594         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
10596         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
10597         dlopen parameters.
10599 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
10601         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
10602         only if herrno is NETDB_INTERNAL.  Handle errors other than
10603         ERANGE outside of the loops, handle TRY_AGAIN.
10605         * locale/programs/ld-ctype.c (translit_flatten): Issue error
10606         if other's ctype category was missing.
10607         * locale/programs/ld-collate.c (collate_read): Return if
10608         copy_locale's collate category is missing.
10610 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
10612         [BZ #2684]
10613         * malloc/malloc.c (public_rEALLOc): Try harder by using other
10614         arenas if allocation failed.
10615         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
10617 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
10619         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
10620         waste bins[0..1].
10621         (malloc_state): Reduce bins size by 2.
10622         (_int_malloc): Fix test for large enough buffer for early termination.
10623         When no unsorted block matches perfectly and an exiting block has
10624         to be split, use full list insert and not shortcut which assumes
10625         the list is empty.
10627         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
10628         failure.
10630 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
10632         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
10633         do anything.
10635         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
10636         symbol require exact match (these are PLTs).
10637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10638         (_dl_ppc64_addr_sym_match): Likewise.
10640         [BZ #2683]
10641         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
10642         If symbol has a value use it.
10643         * elf/tst-dladdr1.c: New file.
10644         * elf/Makefile: Add rules to build and run tst-addr1.
10646 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
10648         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
10649         keeps failing and heap growth or new heap creation isn't
10650         successful either.
10651         * malloc/tst-malloc.c (main): Add new tests.
10653 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
10655         [BZ #2734]
10656         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
10657         as in the x86-64 code to use bswap.
10659 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
10661         [BZ #2680]
10662         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
10663         __USE_UNIX98.
10664         * posix/bits/unistd.h: Likewise.
10666 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
10668         [BZ #2751]
10669         * string/strchr.c: Add cast to avoid warning.
10671 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
10673         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
10674         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
10675         limit is needed to avoid the exploding of the address space
10676         requirement for secondary heaps.
10677         * malloc/arena.c (HEAP_MAX_SIZE): Define using
10678         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
10680 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
10682         [BZ #3018]
10683         * Makerules (depfiles): Handle extra-test-objs the same as
10684         extra-objs.
10685         (common-mostlyclean): Likewise.
10686         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
10687         instead.
10688         * elf/Makefile (extra-objs): Likewise.
10689         * stdlib/Makefile (extra-objs): Likewise.
10691 2006-08-14  Eric Blake  <ebb9@byu.net>
10693         [BZ #3044]
10694         * misc/error.h: Assume C89 or better.
10695         * misc/error.c: Likewise.
10697 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
10699         [BZ #3040]
10700         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
10701         __ASSUME_ATFCTS is defined.
10703 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
10705         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
10706         to sort in each call.
10708         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
10709         is empty simply return and use next service.
10710         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
10712         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
10713         tells us when not finding a charmap file is an error.
10714         * locale/programs/charmap.h: Adjust charmap_read prototype.
10715         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
10716         cannot find a charmap.
10717         * locale/programs/localedef.c (main): Adjust charmap_read call.
10719 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
10721         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
10722         sysdeps/posix/pause.c implementation instead.
10724 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
10726         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
10727         to EPERM.
10729 2006-08-13  Andreas Schwab  <schwab@suse.de>
10731         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
10732         Don't clobber caller's LRSAVE.
10733         (_dl_prof_resolve): Likewise.
10735 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
10737         [BZ #1996]
10738         * libio/memstream.c (open_memstream): Allocate initial buffer with
10739         calloc.
10740         * libio/wmemstream.c (open_wmemstream): Likewise.
10741         * libio/strops.c: Pretty printing.
10742         (_IO_str_overflow): Clear uninitialized part of the new buffer.
10743         (enlarge_userbuf): New function.
10744         (_IO_str_seekoff): Call it if seek position is larger than current
10745         buffer.
10746         * libio/wstrops.c: Likewise.
10747         * libio/vasprintf.c: Add comment as to why we do not have to use
10748         calloc instead of malloc to allocate initial buffer.
10749         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
10750         * libio/bug-memstream1.c: New file.
10751         * libio/bug-wmemstream1.c: New file.
10753 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
10755         * libio/wstrops.c: Remove dead macro definitions and comments.
10756         * libio/strops.c: Likewise.
10758         [BZ #2764]
10759         * login/utmpname.c (__utmpname): Remove unnecessary test.
10761 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
10763         [BZ #2832]
10764         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
10765         0s from integers.
10767 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
10769         [BZ #2987]
10770         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
10771         for CPU clocks.
10772         * sysdeps/unix/clock_settime.c: Add support for platform-specific
10773         setting of CPU clocks.
10775 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10777         [BZ #2841]
10778         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
10779         since C99 requires the result to promote to 'int' when uint_least8_t
10780         and uint_least16_t promote to 'int'.
10782 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
10784         [BZ #3013]
10785         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
10786         lenght of one output field, correct bitmask creation.
10787         * locale/programs/ld-time.c: Add alignment.
10789         [BZ #2997]
10790         * misc/error.c: Add space between program name and message if file
10791         name is missing.
10793 2006-08-03  Eric Blake  <ebb9@byu.net>
10795         [BZ #2998]
10796         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
10798 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
10800         * malloc/memusagestat.c: Silence warnings.
10802         * malloc/malloc.c: Dynamically size mmap treshold if the program
10803         frees mmaped blocks.
10804         Patch by Valerie Henson and Arjan van de Ven.
10806 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
10808         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
10809         __USE_GNU.
10811         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
10812         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
10813         (DEF): Don't put the var into .gnu.linkonce.r.* section.
10814         Only provide var definitions in strtol_l (or for *ull*
10815         in strtoll_l).
10817         * stdio-common/bug16.c (tests): New array.
10818         (do_tests): Allow the first hexadecimal digit
10819         to be 1, 2, 4 or 8.  Do 3 additional tests.
10821         * sysdeps/s390/fpu/libm-test-ulps: Update.
10823         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
10824         fchownat syscall if available.
10825         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
10826         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
10827         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
10829 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
10831         * nis/nis_xdr.c: Avoid some function calls.
10833 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
10834             Ulrich Drepper  <drepper@redhat.com>
10836         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
10837         short cut if only one name component is stripped away.
10839 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
10841         * nis/nis_call.c: Minor cleanups throughout.
10842         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
10843         (first_shoot): Add search_parent_first parameter.  Only if it is set
10844         search parent server first.
10845         If directory for table found through cold start cache is not the same
10846         as referenced in the cache, don't use it.
10847         (__nisfind_server): Take additional parameter.  Pass it on to
10848         first_shoot.
10849         (__prepare_niscall): Adjust __nisfind_server call.
10850         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
10851         * nis/nis_table.c: Adjust __nisfind_server call.
10852         * nis/nis_lookup.c: Likewise.
10853         (nis_lookup): Don't loop endlessly if name is reduced to ".".
10855 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
10857         [BZ #2182]
10858         * math/s_cacosh.c: Return values from positive branch.
10859         * math/s_cacoshf.c: Likewise.
10860         * math/s_cacoshl.c: Likewise.
10862         [BZ #2883]
10863         * sysvipc/sys/msg.h: Change return value to ssize_t.
10864         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
10865         * sysvipc/msgrcv.c: Likewise.
10866         * include/sys/msg.h: Likewise.
10868         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
10869         test introduced in patch for bz #661.
10870         (getgrouplist): Simplify code a bit.  Don't allocate one additional
10871         element for NEWGROUPS.
10873         [BZ #2908]
10874         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
10875         'f', use '1' as leading digit not '\1'.
10876         * stdio-common/Makefile (tests): Add bug16.
10877         * stdio-common/bug16.c: New file.
10879         [BZ #2914]
10880         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
10881         and don't try to open it.  The patch introducing the macro
10882         contained a bug and used the same file name as the new file
10883         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
10884         this out completely.
10886         [BZ #2926]
10887         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
10888         Patch by Jerry James <Jerry.James@usu.edu>.
10890         * rt/Makefile (tests): Add tst-clock2.
10891         * rt/tst-clock2.c: New file.
10893         [BZ #2978]
10894         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
10895         function and its parameters and pass it to new thread.
10896         (__gai_notify): Add support for alternative waiting for completion.
10897         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
10898         waiting for completion.
10899         * resolv/getaddrinfo_a.c: Likewise.
10900         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
10901         waiting for completion is used.
10902         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
10903         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
10904         * resolv/gai_error.c: Likewise.
10905         * resolv/gai_sigqueue.c: Likewise.
10907 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
10909         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
10910         errno to EBADF and return MACH_PORT_NULL.
10912 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
10914         [BZ #2980]
10915         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
10917 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
10919         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
10920         walk them instead of the symbol table.
10922 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
10924         [BZ #2098]
10925         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
10926         status of NSS calls, not the number of returned entries.
10928         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
10929         request_key, keyctl.
10931 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10933         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
10935 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
10937         * elf/tst-auditmod1.c: Fix typo in #error.
10939 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10941         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
10943         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
10945 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
10947         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
10948         that the directory is empty even on non-POSIX filesystems.
10950 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10952         * elf/dl-open.c (dl_open_worker): Add branch prediction.
10954         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
10955         the backend NSS module.  If backend setgrent call failed, don't have
10956         internal_setgrent fail.  Just remember this until it is needed.
10957         * nis/nss_compat/compat-pwd.c: Likewise.
10958         * nis/nss_compat/compat-spwd.c: Likewise.
10960 2006-07-30  Roland McGrath  <roland@redhat.com>
10962         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
10963         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
10964         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
10965         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
10967         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
10968         (nanosleep_not_cancel): New macro.
10969         (sigsuspend_not_cancel): new macro.
10970         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
10971         (do_sigsuspend): Define as inline.
10972         (__sigsuspend): Always use do_sigsuspend.
10973         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
10974         * include/signal.h: Declare __sigsuspend_nocancel.
10975         * sysdeps/posix/pause.c
10976         [! NO_CANCELLATION] (__pause_nocancel): New function.
10978         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
10979         * include/time.h (__nanosleep_nocancel): Likewise.
10981 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
10983         * locale/programs/localedef.c (add_to_readlist): Rename local
10984         variables to avoid confusion.
10986         * locale/programs/charmap.c (charmap_read): Emit error message if
10987         charmap couldn't be found or read.
10989 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
10991         * sysdeps/unix/sysv/linux/kernel-features.h: Define
10992         __ASSUME_FUTEX_LOCK_PI.
10993         * include/time.h: Declare __nanosleep_nocancel.
10994         * include/unistd.h: Declare __pause_nocancel.
10996         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
10997         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
10998         get the __stack_chk_fail_local definition when it's needed.
11000 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
11002         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
11003         * dlfcn/bug-atexit3.c: New file.
11004         * dlfcn/bug-atexit3-lib.cc: New file.
11006         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
11007         used when the namespace is not the base namespace.
11009 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
11011         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
11012         (__new_exitfn): Bump it in every successful call.
11013         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
11014         more exit handlers, call them right away.
11015         * stdlib/exit.h: Declare __new_exitfn_called.
11017 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
11019         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
11020         calling registered handler.
11022         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
11023         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11024         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11025         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11026         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11027         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11028         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11029         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11031 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
11033         * elf/dl-lookup.c (dl_new_hash): New functions.
11034         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
11035         value here.  Compute new-style hash value.  Pass new hash value
11036         and reference to variable with the old value to do_lookup_x.
11037         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
11038         old-style hash table.
11039         (_dl_debug_bindings): Pass new hash value and reference to variable
11040         with the old value to do_lookup_x.
11041         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
11042         new-style hash value and change old-style hash value parameter to
11043         be a reference.  Reoganize functions to determine whether
11044         new-style hash table is available.  Only fall back on old-style
11045         table.  If old-style hash value is needed, compute it here.
11046         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
11047         entry.
11048         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
11049         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
11050         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
11051         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
11052         * Makeconfig: If linker supports --hash-style option add it to all
11053         linker command lines to build DSOs.
11054         * config.make.in: Define have-hash-style.
11055         * configure.in: Test whether linker supports --hash-style option.
11057         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
11058         * sysdeps/generic/ldsodefs.h: Adjust prototype.
11060 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
11062         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
11063         auditing.
11065         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
11066         RPATH of main map twice.
11068 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
11070         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
11071         look further, return original strings.
11072         (_nl_find_msg): Do not return found translation if the conversion
11073         failed.  Either signal the string is unusable or that something went
11074         wrong and the original should be used.
11076 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
11078         * string/_strerror.c (__strerror_r): Add __builtin_expect.
11080 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
11082         [BZ #2766]
11083         * misc/insremque.c (insque): Handle prev == NULL.
11084         * misc/Makefile (tests): Add tst-insremque.
11085         * misc/tst-insremque.c: New test.
11087 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
11089         [BZ #2792]
11090         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
11091         conflict with DL_DST_REQUIRED.
11093 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
11095         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
11096         match what Solaris does.
11098 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
11100         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
11101         local_setegid instead of seteuid and setegid.
11102         * sysdeps/generic/local-setxid.h: New file.
11103         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
11105         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
11107         * string/Makefile (tests): Add bug-envz1.
11108         * string/bug-envz1.c: New file.
11110 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
11112         * posix/regex_internal.c (re_string_skip_chars): If no character has
11113         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
11114         to the byte which couldn't be converted.
11115         (re_string_reconstruct): Don't clear valid_raw_len before calling
11116         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
11117         tip_context using re_string_context_at.
11118         * posix/Makefile: Add rules to build and run bug-regex25 test.
11119         * posix/bug-regex25.c: New test.
11121 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
11123         [BZ #2703]
11124         * string/envz.c (envz_strip): Correct erroneously reversed src
11125         and dest parameters to memmove() invocation.
11127 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
11129         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
11130         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
11131         to make sure the database has been already invalidated.
11132         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
11133         after the cache has been invalidated.  Use pthread_mutex_lock rather
11134         than pthread_mutex_trylock if fd != -1.
11135         * nscd/connections.c (invalidate_cache): Add fd argument, write
11136         response to fd if not calling prune_cache, pass fd to prune_cache.
11137         (handle_request): Adjust invalidate_cache caller.
11138         (nscd_run): Pass -1 as fd to prune_cache.
11140 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
11142         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
11143         the correct place.
11145 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
11147         * nscd/nscd.h (struct database_dyn): Add prunelock field.
11148         * nscd/cache.c (prune_cache): Take prunelock before starting the
11149         work.  Just return in case it is already taken.
11150         * nscd/connections.c (dbs): Initialize .prunelock.
11152 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
11154         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
11155         copying.  No need to allocate new array for group members.  Just
11156         move the pointers and update the size.
11158         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
11159         Avoid memory leak in case realloc fails.  Simplification for
11160         better code generation.
11162         Avoid deprecation warning because of libc_hidden_proto for
11163         inet6_option_alloc.
11164         * inet/inet6_option.c (option_alloc): Renamed from
11165         inet6_option_alloc.  Made static.
11166         (inet6_option_alloc): Now a simple wrapper around option_alloc.
11167         (inet6_option_append): Call option_alloc.
11168         * include/netinet/in.h: Remove libc_hidden_proto for
11169         inet6_option_alloc.
11171         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
11172         for cleanup when cb!=NULL [Coverity CID 233].
11174 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
11176         [BZ #2693]
11177         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
11178         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
11179         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
11180         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
11181         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
11182         and inet6_rth_getaddr.
11183         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
11184         array.
11185         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
11186         Mark inet6_option_* interfaces as deprecated.
11187         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
11188         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
11189         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
11190         inet6_rth_segments, and inet6_rth_getaddr.
11191         * inet/inet6_opt.c: New file.
11192         * inet/inet6_rth.c: New file.
11194         * inet/netinet/icmp6.h: Pretty printing.
11196         [BZ #2683]
11197         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
11199 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
11201         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
11202         doing it all here.  When server does not know the answer do not
11203         fail immediate, try parent first.
11205         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
11206         overflow test.
11208 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
11210         * nis/nis_call.c (__prepare_niscall): New function.  Split out
11211         from __do_niscall.
11212         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
11213         and exported.
11214         (__follow_path): New function.  Split out from nis_list.
11215         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
11216         _xdr_nis_result.
11217         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
11218         _xdr_nis_result.
11219         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
11220         and __follow_path.
11221         * nis/Versions: Export __prepare_niscall, __create_ib_request,
11222         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
11223         from libnsl for version GLIBC_PRIVATE.
11224         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
11225         Remove entry parameter from _nss_nisplus_parse_pwent and
11226         _nss_nisplus_parse_grent.
11227         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11228         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
11229         again.  Rewrite getpwent handling to not use nis_first_entry and
11230         nis_next_entry.  Roll out own niscall handling.
11231         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11233         * sunrpc/xdr_rec.c: Fix typo in comment.
11235 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
11237         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
11238         handling.
11240         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
11241         to allocate memory for my_pollfd.  Better initialization of
11242         cb_is_running.  Use TEMP_FAILURE_RETRY.
11244         * malloc/memusage.sh (memusageso): Add quotes.
11245         (memusagestat): Likewise.
11246         * debug/xtrace.sh (pcprofileso): Likewise.
11247         (pcprofiledump): Likewise.
11248         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
11249         replacement.
11250         * malloc/Makefile ($(objpfx)memusage): Likewise.
11252         * nis/nis_callback.c (__nis_create_callback): Calls to
11253         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
11254         asprintf call fails.
11256         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
11257         no uninitialized memory is passed to sendto.
11259 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
11261         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
11262         of snprintf+strdup.  Handle OOM.
11263         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
11264         cb->serv together.  Remove now obsolete free calls.
11265         (__nis_destroy_callback): Remove now obsolete free call.
11267 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
11269         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
11270         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
11271         and ULA respectively). Set precedence for IPv4 address to 10 as
11272         defined in RFC3484 for preferring IPv6.
11273         * posix/gai.conf: Update to match the new default tables.
11275 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
11277         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
11278         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
11279         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
11280         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
11282         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
11283         Removed.
11284         (init_nss_interface): Remove initialization of these variables.
11286 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
11288         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
11289         nis_free_directory forward to avoid duplication.
11291 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
11293         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
11294         rec_dirsearch returning NULL.
11295         (first_shoot): Handle __nis_finddirectory returning NULL.
11296         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
11298         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
11299         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
11301 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
11303         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
11304         pid changed.
11306 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
11308         * include/rpc/pmap_prot.h: Mark all functions as hidden.
11310         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
11311         * nscd/nscd_getgr_r.c: Likewise.
11313         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
11315         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
11316         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
11318         * stdlib/longlong.h (__clz_tab): Mark as hidden.
11320         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
11322         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
11324         * include/rpc/auth.h: Mark xdr_des_block_internal and
11325         xdr_opaque_auth_internal as hidden.
11327         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
11328         hidden.
11330         * include/rpc/xdr.h: Mark all _internal functions as hidden.
11332         * misc/getusershell.c (okshells): Don't use static initializers,
11333         do it dynamically.
11335         * stdlib/fmtmsg.c (keywords): Change type of len element to
11336         uint32_t to not waste space on 64bit machines.
11338         * locale/setlocale.c: Change _nl_category_names into a string.
11339         Add new _nl_category_name_idxs.  Change all users.
11340         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
11341         Declare _nl_category_name_idxs.
11342         * locale/findlocale.c: Adjust for _nl_category_names change.
11343         * locale/loadlocale.c: Likewise.
11344         * locale/newlocale.c: Likewise.
11345         * intl/dcigettext.c: Likewise.
11347         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
11348         (add_alias2): ...here.  New function.
11349         (__gconv_read_conf): Simplify builtin alias handling.
11350         (builtin_aliases): Convert to string to avoid relocations.
11351         * iconv/gconv_builtin.h: Add comment about correct formatting.
11353 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
11355         * resolv/res_debug.c (loc_ntoa): Make error const.
11357 2006-05-14  Andreas Schwab  <schwab@suse.de>
11359         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
11361 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
11363         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
11364         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
11365         sizeof (cpu_set_t).
11367 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
11369         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
11371         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
11373         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
11374         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
11376         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
11377         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
11379         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
11380         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
11381         xdr_cback_data.
11383         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
11384         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11385         xdr_ypupdate_args.
11387         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
11388         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
11390         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
11391         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
11393         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
11394         * include/rpcsvc/nis_callback.h: New file.
11396         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
11397         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
11399         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11400         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11402         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
11403         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
11405         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11406         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11408         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
11409         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11410         xdr_ypdelete_args.
11412         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
11413         __BEGIN_DECLS and __END_DECLS, the header is not installed.
11415         * nis/nis_error.c: Remove table of strings.  Use position
11416         independent mechanism.
11417         * nis/nis_error.h: New file.
11419 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
11421         * locale/programs/ld-time.c (time_finish): If wide era name or
11422         format aren't provided, set both wname and wformat to L"".
11424 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
11426         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
11427         results if the call was succesful.
11429         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
11431         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
11432         as hidden.
11434 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
11436         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
11438 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
11440         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
11441         caller makes sure this is not the case.
11442         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
11444 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
11446         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
11447         calls.
11449         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
11450         [Coverity CID 229, 230]
11452         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
11453         DGETTEXT calls.
11454         (hol_help): Likewise.  [Coverity CID 226, 227]
11456         * string/argz-replace.c (__argz_replace): Unconditionally call
11457         free on SRC.  [Coverity CID 225]
11459         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
11460         the return value of __nis_default_owner and __nis_default_group,
11461         it has been especially allocated.  [Coverity CID 224]
11463         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
11464         searchgroup and searchowner.  Significantly simplified.
11465         (__nis_default_owner): Remove duplication.  Do not locally copy the
11466         string before duplicating it.
11467         (__nis_default_group): Likewise.
11469         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
11470         we must clear the variable before calling __nisfind_server.
11472         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
11473         nis_getnames.  [Coverity CID 223]
11475         * locale/programs/locfile.c (locfile_read): Use alloca instead of
11476         xmalloc to allocate local repertoire name.  [Coverity CID 222]
11478         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
11479         allocate memory for the input to add_bytes.  [Coverity CID 221]
11481         * posix/wordexp.c (w_addword): Free word if realloc fails and it
11482         was allocated here.  [Coverity CID 219, 220]
11484         * posix/getconf.c (print_all): Free confstr data after printing.
11485         [Coverity CID 218]
11487         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
11488         list allocation fails.  [Coverity CID 215]
11490         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
11491         [Coverity CID 213]
11493         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
11494         string is NULL.  [Coverity CID 212]
11495         * argp/Makefile: Add rules to build and run bug-argp1.
11496         * argp/bug-argp1.c: New file.
11498         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
11499         end of string.
11500         * stdlib/canonicalize.c (__realpath): Likewise.
11502         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
11503         pointer.  [Coverity CID 206]
11505         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
11506         in statically linked code.
11507         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
11508         statically built code, be prepared to have no link map.
11509         [Coverity CID 205]
11511         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
11512         dgettext calls. [Coverity CID 204]
11514         * argp/argp-help.c (struct uparams): Remove valid member.  Change
11515         the one user.
11516         (uparam_names): Reduce size.  Avoid relative relocations.
11517         Moved to read-only segment.
11518         (fill_in_uparams): Update for new layout.
11520         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
11521         assumed to always be != NULL. [Coverity CID 202]
11523         * argp/argp-help.c (hol_entry_help): Remove some dead code
11524         [Coverity CID 200].
11526         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
11527         away a few more unconditional yperr2nss calls.
11528         (_nss_nis_getservbyname_r): Likewise.
11530 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
11532         * sysdeps/generic/ldsodefs.h: Remove support for non-core
11533         architectures.
11535         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
11536         that unused memory passed to sendto is nevertheless initialized.
11538         [BZ #2499]
11539         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
11540         possibly unaligned memory accesses.
11542         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
11543         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
11544         and __putlong respectively.  Correct buffer overflow check for
11545         NS_NOTIFY_OP.
11547         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
11549         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
11550         (send_dg): Rewrite error handling to be more compact and avoid
11551         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
11553         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
11555         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
11556         instead of ns_get16.
11557         (res_queriesmatch): Likewise.  Minor optimization.
11559         [BZ #2499]
11560         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
11561         __libc_res_nsend might reallocate the buffer for the answer.  In
11562         this case we have to reload the HP pointer.
11564 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11566         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
11567         some branch prediction hints.
11569         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
11570         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11571         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11572         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11573         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11574         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11575         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11576         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11578 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11580         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
11581         by a GOT relocation to make Scrt1.o position independent.
11582         * sysdeps/s390/s390-64/elf/start.S: Likewise.
11584         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
11585         six system call parameters.
11586         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
11588 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11590         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
11591         malloc&bzero.
11593         * sunrpc/svc_udp.c (BZERO): Remove definition.
11594         (CALLOC): Define.
11595         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
11597         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
11598         (des_SPtrans): Use uint32_t type.
11599         (des_skb): Likewise.
11601         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
11603 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
11605         [BZ #2509]
11606         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
11607         on 32-bit arches.
11609 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11611         * locale/programs/ld-address.c (address_finish): Fix one more
11612         place where the iso639 array might be accessed beyond the limits.
11614 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
11616         * nis/nis_table.c (nis_list): Avoid clearing res twice before
11617         filling it for the first time.
11619         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
11620         Adjust all callers.
11621         Free res object content before returning.
11623         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
11625         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
11626         client->cl_auth.
11628         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
11629         cleanup for initial thread, just the free call on TVP.
11631         * nscd/gai.c (__getline): Define.
11634 See ChangeLog.16 for earlier changes.