Don't define __ASSUME_ACCEPT4 for IA-64.
[glibc.git] / ChangeLog
blob5ff02794b5c96104a7348bdf2c49719292212da9
1 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
3         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
4         __ASSUME_ACCEPT4 for IA-64.
6 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
8         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
10         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
11         (SOCKOP_accept4): Define.
13 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
15         Sun approved the change of the license.
16         * sunrpc/auth_des.c: Replace license text.
17         * sunrpc/auth_none.c: Likewise.
18         * sunrpc/auth_unix.c: Likewise.
19         * sunrpc/authdes_prot.c: Likewise.
20         * sunrpc/authuxprot.c: Likewise.
21         * sunrpc/bindrsvprt.c: Likewise.
22         * sunrpc/clnt_gen.c: Likewise.
23         * sunrpc/clnt_perr.c: Likewise.
24         * sunrpc/clnt_raw.c: Likewise.
25         * sunrpc/clnt_simp.c: Likewise.
26         * sunrpc/clnt_tcp.c: Likewise.
27         * sunrpc/clnt_udp.c: Likewise.
28         * sunrpc/clnt_unix.c: Likewise.
29         * sunrpc/des_crypt.c: Likewise.
30         * sunrpc/des_soft.c: Likewise.
31         * sunrpc/get_myaddr.c: Likewise.
32         * sunrpc/getrpcport.c: Likewise.
33         * sunrpc/key_call.c: Likewise.
34         * sunrpc/key_prot.c: Likewise.
35         * sunrpc/openchild.c: Likewise.
36         * sunrpc/pm_getmaps.c: Likewise.
37         * sunrpc/pm_getport.c: Likewise.
38         * sunrpc/pmap_clnt.c: Likewise.
39         * sunrpc/pmap_prot.c: Likewise.
40         * sunrpc/pmap_prot2.c: Likewise.
41         * sunrpc/pmap_rmt.c: Likewise.
42         * sunrpc/rpc/auth.h: Likewise.
43         * sunrpc/rpc/auth_unix.h: Likewise.
44         * sunrpc/rpc/clnt.h: Likewise.
45         * sunrpc/rpc/des_crypt.h: Likewise.
46         * sunrpc/rpc/key_prot.h: Likewise.
47         * sunrpc/rpc/netdb.h: Likewise.
48         * sunrpc/rpc/pmap_clnt.h: Likewise.
49         * sunrpc/rpc/pmap_prot.h: Likewise.
50         * sunrpc/rpc/pmap_rmt.h: Likewise.
51         * sunrpc/rpc/rpc.h: Likewise.
52         * sunrpc/rpc/rpc_des.h: Likewise.
53         * sunrpc/rpc/rpc_msg.h: Likewise.
54         * sunrpc/rpc/svc.h: Likewise.
55         * sunrpc/rpc/svc_auth.h: Likewise.
56         * sunrpc/rpc/types.h: Likewise.
57         * sunrpc/rpc/xdr.h: Likewise.
58         * sunrpc/rpc_clntout.c: Likewise.
59         * sunrpc/rpc_cmsg.c: Likewise.
60         * sunrpc/rpc_common.c: Likewise.
61         * sunrpc/rpc_cout.c: Likewise.
62         * sunrpc/rpc_dtable.c: Likewise.
63         * sunrpc/rpc_hout.c: Likewise.
64         * sunrpc/rpc_main.c: Likewise.
65         * sunrpc/rpc_parse.c: Likewise.
66         * sunrpc/rpc_parse.h: Likewise.
67         * sunrpc/rpc_prot.c: Likewise.
68         * sunrpc/rpc_sample.c: Likewise.
69         * sunrpc/rpc_scan.c: Likewise.
70         * sunrpc/rpc_scan.h: Likewise.
71         * sunrpc/rpc_svcout.c: Likewise.
72         * sunrpc/rpc_tblout.c: Likewise.
73         * sunrpc/rpc_util.c: Likewise.
74         * sunrpc/rpc_util.h: Likewise.
75         * sunrpc/rpcinfo.c: Likewise.
76         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
77         * sunrpc/rpcsvc/key_prot.x: Likewise.
78         * sunrpc/rpcsvc/klm_prot.x: Likewise.
79         * sunrpc/rpcsvc/mount.x: Likewise.
80         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
81         * sunrpc/rpcsvc/rex.x: Likewise.
82         * sunrpc/rpcsvc/rstat.x: Likewise.
83         * sunrpc/rpcsvc/rusers.x: Likewise.
84         * sunrpc/rpcsvc/sm_inter.x: Likewise.
85         * sunrpc/rpcsvc/spray.x: Likewise.
86         * sunrpc/rpcsvc/yppasswd.x: Likewise.
87         * sunrpc/rtime.c: Likewise.
88         * sunrpc/svc.c: Likewise.
89         * sunrpc/svc_auth.c: Likewise.
90         * sunrpc/svc_authux.c: Likewise.
91         * sunrpc/svc_raw.c: Likewise.
92         * sunrpc/svc_run.c: Likewise.
93         * sunrpc/svc_simple.c: Likewise.
94         * sunrpc/svc_tcp.c: Likewise.
95         * sunrpc/svc_udp.c: Likewise.
96         * sunrpc/svc_unix.c: Likewise.
97         * sunrpc/svcauth_des.c: Likewise.
98         * sunrpc/xcrypt.c: Likewise.
99         * sunrpc/xdr.c: Likewise.
100         * sunrpc/xdr_array.c: Likewise.
101         * sunrpc/xdr_float.c: Likewise.
102         * sunrpc/xdr_mem.c: Likewise.
103         * sunrpc/xdr_rec.c: Likewise.
104         * sunrpc/xdr_ref.c: Likewise.
105         * sunrpc/xdr_sizeof.c: Likewise.
106         * sunrpc/xdr_stdio.c: Likewise.
108         * po/da.po: Update from translation team.
110 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
112         * sysdeps/sh/____longjmp_chk.S: New file.
113         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
114         * sysdeps/sh/sh4/__longjmp.S: Likewise.
116 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
117             Ulrich Drepper  <drepper@redhat.com>
119         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
120         (__nscd_cache_search): Assume each entry in the
121         hash chain needs one hashentry and half of datahead.  Use
122         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
124 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
126         * posix/sys/wait.h: Fix typos.  Pretty printing.
127         * stdlib/stdlib.h: Likewise.  Correct comments.
129         [BZ #10159]
130         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
132         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
133         patch.
135 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
137         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
138         Use it if we absolutely cannot reach any more correct list elements
139         because that many do not fit into the currently mapped database.
141 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
143         * nscd/nscd_helper.c: Include stddef.h.
144         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
145         in a couple of places.  Return NULL if trail is not less than
146         datasize, don't consider dataheads with length smaller than
147         offsetof (struct datahead, data) + datalen.
148         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
149         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
150         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
151         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
152         * nscd/nscd_getai.c (__nscd_getai): Likewise.
153         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
154         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
156         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
157         Rename ...
158         (fallocate64): ... to this.
159         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
160         Rename ...
161         (fallocate64): ... to this.
162         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
163         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
164         fallocate64@@GLIBC_2.10.
165         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
166         fallocate64@@GLIBC_2.11.
167         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
169         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
170         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
172         * nscd/selinux.c (nscd_avc_destroy): Removed.
173         * nscd/selinux.h (nscd_avc_destroy): Likewise.
174         * nscd/nscd.c (termination_handler): Don't call
175         nscd_avc_destroy.
177 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
179         * include/atomic.h: Formatting.
180         (catomic_compare_and_exchange_val_acq): Don't define if already
181         defined by bits/atomic.h.
183 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
185         * math/libm-test.inc (expm1_test): Add test for range error.
187         * Versions.def: Add GLIBC_2.11 for libc.
188         * debug/Makefile (routines): Add longjmp_chk.
189         Add rules to build and run tst-longjmp_chk.
190         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
191         * debug/longjmp_chk.c: New file.
192         * debug/tst-longjmp_chk.c: New file.
193         * include/bits/setjmp2.: New file.
194         * include/stdio.h: Mark __fortify_fail as internal_function.
195         * setjmp/Makefile (headers): Add bits/setjmp2.h.
196         * setjmp/bits/setjmp2.h: New file.
197         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
198         of the aliases.
199         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
200         defined.
201         * sysdeps/i386/____longjmp_chk.S: New file.
202         * sysdeps/x86_64/____longjmp_chk.S: New file.
203         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
204         * sysdeps/x86_64/__longjmp.S: Likewise.
206         * version.h: Bump for 2.11 development.
208         * elf/check-execstack.c: New file.
209         * elf/Makefile: Add rules to build and run check-execstack.
211 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
213         * version.h (VERSION): Bump to 2.10.1.
215         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
216         compatibility functions.
217         * nss/getXXent_r.c: Likewise.
218         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
219         * gshadow/getsgnam_r.c: Likewise.
220         * gshadow/Version: Remove duplicate entries.
222         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
223         for recent processor.
224         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
225         Likewise.
227 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
229         * version.h (VERSION): Bump for 2.10 release.
230         * include/features.h (__GLIBC_MINOR__): Bump to 10.
232         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
233         same place we add ASFLAGS-config.
235 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
237         [BZ #10128]
238         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
239         or FORMERR and the other NOERROR, don't raise an error.
241 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
243         [BZ #10118]
244         * Makeconfig (+asflags): New variable based upon ASFLAG or
245         asflags-cpu.
246         (ASFLAGS): Add override to set ASFLAGS to +asflags.
247         * config.make.in (asflags-cpu): Add variable based upon
248         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
249         the assembler.
250         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
251         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
252         recognizes power6 instruction set due to passing -mcpu=power6 from
253         --with-cpu=power6 when compiling .S files.
254         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
255         Likewise.
256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
257         Likewise.
258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
259         Likewise.
261 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
263         * string/stratcliff.c (do_test): Test for zero length
264         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
265         at the end of the page.
267 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
269         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
271         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
272         count is zero.
274         * po/da.po: Update from translation team.
276 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
278         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
279         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
281 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
283         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
284         and READ_IMPLIES_EXEC.
286 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
288         * po/da.po: Update from translation team.
290 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
292         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
293         comment change.
295 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
297         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
298         to MAP_ANON in PROT_NONE mmap64 call.
299         (open_archive): Likewise.
300         (file_data_available_p): Use mmap64 instead of mremap.
301         (enlarge_archive): Likewise.  Update head if ah->addr changed.
302         Attempt to reserve address space after mmap64 region.
304 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
306         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
307         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
308         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
310         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
311         atanh should set ERANGE.
313         [BZ #10087]
314         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
315         result of lookup to make call to implement STT_GNU_IFUNC.
316         (_dl_profile_fixup): Likewise.
317         Patch by H.J. Lu <hjl.tools@gmail.com>.
319         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
320         warning.
322         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
323         from definition.
325         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
326         label if it is not used.
328         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
329         of gmon_hist_hdr and gmon_hdr structures and use them.
330         * elf/sprof.c: Likewise.
332         * elf/dl-load.c (open_verify): Add temporary variable to avoid
333         warning.
335         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
337         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
338         to avoid cast.
340         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
341         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
342         to avoid warnings.
343         (iruserok_af): Use ss_family instead of casts.
345         * gmon/gmon.c (write_hist): Define real-type variant of
346         gmon_hist_hdr structure and use it.
347         (write_gmon): Likewise for gmon_hdr.
349         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
350         function if we are not going to define it.
351         * sysdeps/unix/sysv/linux/writev.c: Likewise.
353         * inet/inet6_option.c (option_alloc): Add temporary variable to
354         avoid warning.
356         * libio/strfile.h (struct _IO_streambuf): Use correct type and
357         name of VTable element.
358         * libio/iovsprintf.c: Avoid casts to avoid warnings.
359         * libio/iovsscanf.c: Likewise.
360         * libio/vasprintf.c: Likewise.
361         * libio/vsnprintf.c: Likewise.
362         * stdio-common/isoc99_vsscanf.c: Likewise.
363         * stdlib/strfmon_l.c: Likewise.
364         * debug/vasprintf_chk.c: Likewise.
365         * debug/vsnprintf_chk.c: Likewise.
366         * debug/vsprintf_chk.c: Likewise.
368         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
369         function pointers.
371 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
373         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
375 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
377         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
379         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
380         * sysdeps/i386/fpu/s_tanf.S: Likewise.
381         * sysdeps/i386/fpu/s_tanl.S: Likewise.
382         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
383         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
384         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
385         * math/libm-test.inc: Add tests for errno after tan calls with
386         Â±Inf.
388         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
389         errno value vor pow(+-0,neg).
390         * math/libm-test.inc (pow_test): Add tests for errno value for
391         pole errors.
393         * math/w_fmod.c: Also handle x=±Inf as error.
394         * math/w_fmodf.c: Likewise.
395         * math/w_fmodl.c: Likewise.
396         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
397         x=±Inf or y=0.
399         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
400         * sysdeps/i386/fpu/s_cosf.S: Likewise.
401         * sysdeps/i386/fpu/s_cosl.S: Likewise.
402         * sysdeps/i386/fpu/s_sin.S: Likewise.
403         * sysdeps/i386/fpu/s_sinf.S: Likewise.
404         * sysdeps/i386/fpu/s_sinl.S: Likewise.
405         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
406         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
407         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
408         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
409         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
410         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
411         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
412         * math/libm-test.inc: Add tests for errno after sin/cos calls with
413         Â±Inf.
415         * stdlib/strtod_l.c (round_and_return): We have to set errno to
416         ERANGE for underflows.
417         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
419         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
420         the 2001 revision.
422         * libio/tst-widetext.input: Remove surrogates.
424         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
426         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
427         for lgamma should set errno to ERANGE, not EDOM.
428         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
430 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
432         [BZ #10093]
433         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
434         UTF-16 surrogates.
436         * locale/programs/locarchive.c (enlarge_archive): Conserve address
437         space when temporarily mapping the whole content of the old file.
439         [BZ #10100]
440         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
441         not zero.
443 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
445         * iconvdata/sjis.c (BODY): Don't advance inptr before
446         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
447         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
448         two byte chars.
450 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
452         * locale/locarchive.h (struct locarhandle): Rename len field to
453         mmaped and add new reserved field.
454         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
455         (create_archive): Reserve address space and then map file into it.
456         (open_archive): Likewise.
457         (file_data_available_p): New function.
458         (compare_from_file): New function.
459         (close_archive): Adjust to member name changes.
460         (add_locale): Before comparing locale data, check it is mapped.
461         Otherwise fall back to reading from the file.
463 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
465         * stdio-common/psiginfo.c: Include <errno.h>.
467 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
469         [BZ #9920]
470         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
471         to get consistency between 32 and 64 bit architectures.
473         [BZ #10052]
474         * sysdeps/unix/make-syscalls.sh: Add rule to create target
475         directory for dummy syscall rules.
476         Patch by Chris Steinbroner <hesh@pobox.com>.
478 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
480         [BZ #10092]
481         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
482         MNT_EXPIRE.
484 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
486         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
487         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
489 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
491         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
492         data from vector to temporary buffer and call PWRITEV after it
493         instead of vice versa.
494         * sysdeps/posix/preadv.c: Fix up comment.
495         * misc/preadv.c: Likewise.
496         * misc/preadv64.c: Likewise.
497         * misc/pwritev.c: Likewise.
498         * misc/pwritev64.c: Likewise.
499         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
501 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
503         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
505         * shadow/Makefile (tests): Add tst-shadow.
506         * shadow/tst-shadow.c: New file.
508         [BZ #9955]
509         * gshadow/Makefile: New file.
510         * gshadow/Versions: New file.
511         * gshadow/fgetsgent.c: New file.
512         * gshadow/fgetsgent_r.c: New file.
513         * gshadow/getsgent.c: New file.
514         * gshadow/getsgent_r.c: New file.
515         * gshadow/getsgnam.c: New file.
516         * gshadow/getsgnam_r.c: New file.
517         * gshadow/gshadow.h: New file.
518         * gshadow/putsgent.c: New file.
519         * gshadow/sgetsgent.c: New file.
520         * gshadow/sgetsgent_r.c: New file.
521         * gshadow/tst-gshadow.c: New file.
522         * include/gshadow.h: New file.
523         * Makeconfig (all-subdirs): Add gshadow.
524         * Makefile (installed-headers): Add gshadow/gshadow.h.
525         * nss/Makefile (databases): Add sgrp.
526         * nss/Versions: Add gshadow functions as private exports.
527         * nss/nsswitch.conf: Add gshadow entry.
528         * nss/sgrp-lookup.c: New file.
529         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
530         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
531         * nss/nss_files/files-sgrp.c: New file.
532         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
533         * sysdeps/unix/sysv/linux/paths.h: Likewise.
535 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
537         * stdio-common/printf.h: Add missing const to register_printf_modifier.
538         * stdio-common/reg-modifier.c: Likewise.
540 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
542         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
543         is no FPU.
545 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
547         [BZ #10086]
548         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
549         headers up to 2.6.30.
551         * po/ca.po: Update from translation team.
553 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
555         [BZ #10069]
556         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
557         an object that uses static TLS if the TLS modid is higher than the
558         reserve we always allocate.  At least for multi-threaded code.
560 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
562         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
563         Numerically stable check for valid width.
565         * locale/programs/locarchive.c (open_archive): Map the entire file
566         and not just the administrative data.
567         (add_locale): When we find a hash sum match compare the content
568         to be sure.
570         * malloc/malloc.c (malloc_info): Output address space information.
572 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
574         * malloc/malloc.c (malloc_info): Also output system memory information.
576         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
577         architectures have preadv/pwritev in 2.6.30.
579         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
580         * sysdeps/posix/readv.c: Likewise.
581         Reported by Markus Armbruster <armbru@redhat.com>.
583         * malloc/hooks.c (top_check): Force hook value into register.
585 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
587         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
588         calls to _dl_relocate_object.
590 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
592         [BZ #9957]
593         * malloc/malloc.c (force_reg): Define.
594         (sYSMALLOc): Load hook variable into variable
595         before test and force into register.
596         (sYSTRIm): Likewise.
597         (public_mALLOc): Force hook value into register.
598         (public_fREe): Likewise.
599         (public_rEALLOc): Likewise.
600         (public_mEMALIGn): Likewise.
601         (public_vALLOc): Likewise.
602         (public_pVALLOc): Likewise.
603         (public_cALLOc): Likewise.
604         (__posix_memalign): Likewise.
605         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
606         before test and force into register.
607         * malloc/hooks.c (top_check): Likewise.
608         (public_sET_STATe): Pretty printing.
610         * resolv/res_send.c (send_dg): Don't just ignore the result we got
611         in case we only receive one reply in single-request mode.
613 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
615         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
616         are dlopened in statically linked program even for __LM_ID_CALLER.
618 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
620         * resolv/res_send.c (send_dg): Don't switch into single-request
621         mode if we already are in it.
623 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
625         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
626         are always at least 4 bytes in the returned line.
628 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
630         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
631         __libc_use_alloca (8192), if the stack is too small use 512 bytes
632         instead of 8K.  Stop searching in /proc/stat after hitting first
633         line not starting with cpu.
634         (next_line): Truncate too long
635         lines at buffer size * 3/4 instead of pretending there were line
636         breaks inside of large lines.
638 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
640         * sysdeps/x86_64/mp_clz_tab.c: New file.
642 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
643             Ulrich Drepper  <drepper@redhat.com>
645         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
646         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
647         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
649 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
651         * sysdeps/sh/libc-tls.c: New file.
653         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
655 2009-04-14  Roland McGrath  <roland@redhat.com>
657         * elf/elf.h: Add various missing ARM constants, to match binutils.
659 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
661         Optimizations from GMP.
662         * sysdeps/x86_64/add_n.S: New file.
663         * sysdeps/x86_64/addmul_1.S: New file.
664         * sysdeps/x86_64/lshift.S: New file.
665         * sysdeps/x86_64/mul_1.S: New file.
666         * sysdeps/x86_64/rshift.S: New file.
667         * sysdeps/x86_64/sub_n.S: New file.
668         * sysdeps/x86_64/submul_1.S: New file.
670 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
672         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
673         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
674         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
675         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
677 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
679         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
680         preadv/pwritev.
682 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
684         * sysdeps/x86-64/strrchr.S: New file.
686 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
688         * stdio-common/printf.h (struct printf_info): Add user element.
689         New types printf_arginfo_size_function, printf_va_arg_function.
690         Declare register_printf_specifier, register_printf_modifier,
691         register_printf_type.
692         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
693         (union printf_arg): Add pa_user element.
694         Adjust __printf_arginfo_table type.
695         Add __printf_va_arg_table, __printf_modifier_table,
696         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
697         declarations.
698         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
699         If registered arginfo call failed try normal specifier.
700         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
701         function.
702         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
703         * stdio-common/Versions: Export register_printf_modifier,
704         register_printf_type, and register_printf_specifier for GLIBC_2.10.
705         * stdio-common/reg-modifier.c: New file.
706         * stdio-common/reg-type.c: New file.
707         * stdio-common/reg-printf.c (__register_printf_specifier): New
708         function.  Mostly the old __register_printf_function function but
709         uses locking and type of third parameter changed.
710         (__register_printf_function): Implement using
711         __register_printf_specifier.
712         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
713         calls to arginfo functions.  Allocate enough memory for user-defined
714         types.  Call new va_arg functions to get user-defined types.
715         Try installed handlers even for existing format specifiers first.
717 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
719         * sysdeps/x86_64/rawmemchr.S: New file.
721         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
722         Simplified code and possible copy problem fixed.
724         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
725         function if it is not defined.  Add some necessary casts.
726         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
728         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
729         have preadv/pwritev in 2.6.30.
731 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
733         * malloc/malloc.c (malloc_info): New function.
734         * malloc/malloc.h: Declare it.
735         * malloc/Versions: Export malloc_info for GLIBC_2.10.
737         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
738         to avoid PLT slot.
740         * malloc/malloc.c (_int_realloc): Add parameter with old block
741         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
742         Adjust all callers.
743         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
745 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
747         * sysdeps/x86_64/strchrnul.S: New file.
749         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
750         depending libcrypt on -lfreebl3.
752         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
753         preadv/pwritev in 2.6.30.
755         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
756         instead of __strcasecmp.
758         * string/stratcliff.c (do_test): Add memchr tests..
759         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
760         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
761         first read quad word.
763 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
765         * string/strverscmp.c (__strverscmp): Fix last cleanups.
766         * string/tst-svc.input: Add new test case.
767         * string/tst-svc.expect: Adjust.
768         * string/Makefile: Don't ignore tst-svc error.
770         * sysdeps/x86_64/memchr.S: New file.
772         * resolv/resolv.h (RES_SNGLKUP): Define.
773         * resolv/res_init.c (res_setoptions): Recognize single-request option.
774         * resolv/res_send.c (send_dg): If we sent two requests at once and
775         only get one reply before timeout switch to mode where we send the
776         second request only after the first answer has been received.
778 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
780         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
781         * sysdeps/x86_64/strchr.S: Likewise.
783 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
785         * configure.in: We need to test for the compiler earlier.
787         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
788         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
789         GLIBC_2.10.
790         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
791         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
792         and pwritev.
793         * misc/preadv.c: New file.
794         * misc/preadv64.c: New file.
795         * misc/pwritev.c: New file.
796         * misc/pwritev64.c: New file.
797         * sysdeps/posx/preadv.c: New file.
798         * sysdeps/posx/preadv64.c: New file.
799         * sysdeps/posx/pwritev.c: New file.
800         * sysdeps/posx/pwritev64.c: New file.
801         * sysdeps/unix/sysv/linux/preadv.c: New file.
802         * sysdeps/unix/sysv/linux/preadv64.c: New file.
803         * sysdeps/unix/sysv/linux/pwritev.c: New file.
804         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
805         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
806         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
808         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
809         compatibility code.
810         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
812         * sysdeps/unix/sysv/linux/kernel-features.h: Define
813         __ASSUME_COMPLETE_READV_WRITEV.
814         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
815         with modern kernels.
816         * sysdeps/unix/sysv/linux/writev.c: Likewise.
818         * sysdeps/posix/readv.c: Since read is a cancellation point we have
819         to free a possible malloced buffer in case of cancellation.
820         * sysdeps/posix/writev.c: Likewise for write.
822 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
824         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
826         * configure.in: Recognize --enable-nss-crypt.
827         * config.make.in: Add nss-crypt entry.
828         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
829         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
830         and include path for NSS directory to compiler for md5-crypt,
831         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
832         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
833         function implementation, use NSS.  Introduce wrappers around the
834         hash function calls.  Little code size optimization.
835         * crypt/sha256-crypt.c: Likewise.
836         * crypt/sha512-crypt.c: Likewise.
837         * scripts/check-local-headers.sh: Ignore nss3 directory.
839         * configure.in: Rename pic_default to libc_cv_pic_default.
840         * config.make.in: Likewise.
842 2009-04-01  Roland McGrath  <roland@redhat.com>
844         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
845         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
846         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
847         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
848         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
849         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
850         (R_SPARC_NUM): Update.
851         From Dave Miller <davem@davemloft.net>.
853 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
855         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
857 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
859         * elf/dl-open.c: Keep track of used name spaces and only iterate over
860         those which are used.
861         * elf/dl-addr.c: Likewise.
862         * elf/dl-caller.c: Likewise.
863         * elf/dl-fini.c: Likewise.
864         * elf/dl-iteratephdr.c: Likewise.
865         * elf/dl-libc.c: Likewise.
866         * elf/dl-load.c: Likewise.
867         * elf/dl-support.c: Likewise.
868         * elf/dl-sym.c: Likewise.
869         * elf/rtld.c: Likewise.
870         * sysdeps/generic/ldsodefs.h: Likewise.
872         * elf/dl-load.c: Remove support for systems without MAP_ANON.
873         * elf/dl-minimal.c: Likewise.
874         * elf/dl-misc.c: Likewise.
875         * elf/rtld.c: Likewise.
876         * sysdeps/generic/ldsodefs.h: Likewise.
878 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
880         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
881         Avoid reuse of complex expression.
883         * po/fr.po: Update from translation team.
885 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
887         * include/dirent.h: Yet more changes to match sort function type
888         change.
889         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
890         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
891         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
893 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
895         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
897 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
899         * nscd/connections.c (restart): Try to preserve the process name
900         by reading the /proc/self/exe symlink and using the return name.
901         Patch by Jeff Bastian <jbastian@redhat.com>.
903 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
905         [BZ #9733]
906         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
907         if we are not loading a new audit library.
908         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
909         Only use profiling trampoline for auditing if we are not relocating
910         an audit library.
911         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
912         * elf/rtld.c: Likewise.
913         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
915         * elf/rtld.c (dl_main): Extend help message for --audit option.
917         [BZ #9759]
918         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
919         alphasort64, versionsort, and versionsort64 to POSIX 2008.
920         * dirent/alphasort.c: Adjust implementation to type change.
921         * dirent/alphasort64.c: Likewise.
922         * dirent/scandir.c: Likewise.
923         * dirent/versionsort.c: Likewise.
924         * dirent/versionsort64.c: Likewise.
925         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
926         declaration.
927         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
928         declaration.
930         [BZ #9880]
931         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
932         correctly.  Set segleft member in output as required.
933         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
934         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
936         [BZ #9881]
937         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
938         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
939         * inet/Makefile (tests): Add tst-inet6_rth.
940         * inet/tst-inet6_rth.c: New file.
942         [BZ #5807]
943         * string/strlen.c (strlen): Fix omission in the expression to test
944         for NUL bytes.
946 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
948         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
950         * elf/dl-runtime.c (reloc_offset): Define.
951         (reloc_index): Define.
952         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
953         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
954         computing index from reloc_offset.
955         (_dl_call_pltexit): Likewise.
956         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
957         the relocation index to _dl_fixup.
958         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
959         _dl_call_pltexit.
960         * sysdeps/x86_64/dl-runtime.c: New file.
962         [BZ #9893]
963         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
964         alignment of La_x86_64_regs.  Store xmm parameters.
965         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
967         [BZ #9913]
968         * string/strverscmp.c (__strverscmp): Fix case of different digits
969         in fractional part of string.
970         Patch by Jingyu Liu <jyliu@fortinet.com>.
971         * string/Makefile (tests): Add tst-svc2.
972         * string/tst-svc2.c: New file.
974         * string/strverscmp.c (__strverscmp): Optimize size of tables.
976         * locale/iso-639.def: Add Min Nan.
978 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
980         [BZ #9948]
981         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
983 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
985         * elf/dl-sysdep.c (auxvars): Compress data structure.
987         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
988         STT_GNU_IFUNC handling.
989         (elf_machine_rela): Likewise.
991 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
993         * config.h.in (USE_MULTIARCH): Define.
994         * configure.in: Handle --enable-multi-arch.
995         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
996         (_dl_fixup_profile): Likewise.
997         * elf/do-lookup.c (dl_lookup_x): Likewise.
998         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
999         * elf/elf.h (STT_GNU_IFUNC): Define.
1000         * include/libc-symbols.h (libc_ifunc): Define.
1001         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
1002         framework in init-arch.h to get CPUID values.
1003         * sysdeps/x86_64/multiarch/Makefile: New file.
1004         * sysdeps/x86_64/multiarch/init-arch.c: New file.
1005         * sysdeps/x86_64/multiarch/init-arch.h: New file.
1006         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
1008         * config.make.in (experimental-malloc): Define.
1009         * configure.in: Handle --enable-experimental-malloc.
1010         * malloc/Makefile: Handle experimental-malloc flag.
1011         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
1012         * malloc/arena.c: Likewise.
1013         * malloc/hooks.c: Likewise.
1014         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
1016 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
1018         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
1019         prediction.  A few size optimizations.
1021 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
1023         * time/tzset.c: Optimize a bit for size.
1025 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
1027         * include/stdio.h (fmemopen): Add libc_hidden_proto.
1028         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
1030         * elf/sprof.c: Avoid warning about multi-line comment.
1032 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
1034         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
1035         DST name.
1036         * time/tst-posixtz.c: Add tests for quoted timezone names.
1038 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
1040         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
1041         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
1042         200809L instead of 200112L.
1043         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
1044         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
1046         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
1047         instead of __quick_exit_funcs to __run_exit_handlers.
1048         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
1049         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
1050         (__cxa_at_quick_exit): Remove attribute_hidden.
1051         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
1052         to __run_exit_handlers.
1053         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
1054         attribute_hidden.
1056 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
1058         * po/id.po: Update from translation team.
1060 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
1062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
1063         .machine push; .machine "power6" and .machine pop around mtfsf
1064         insns outside of _ARCH_PWR6 define.
1065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1066         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1067         Likewise.
1068         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1069         Likewise.
1070         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
1071         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
1072         relax_fenv_state): Likewise.
1074 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
1076         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
1077         cxa_at_quick_exit.
1078         (static-only-routines): Add at_quick_exit.
1079         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
1080         GLIBC_2.10.
1081         * stdlib/quick_exit.c: New file.
1082         * stdlib/at_quick_exit.c: New file.
1083         * stdlib/cxa_at_quick_exit.c: New file.
1084         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
1085         it appropriately.
1086         (__internal_atexit): New function.
1087         (__new_exitfn): Now takes parameter to point to the list to use.
1088         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
1089         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
1090         (exit): ...here.  Just call __run_exit_handlers appropriately.
1091         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
1092         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
1093         * stdlib/on_exit.c: Adjust call to __new_exitfn.
1094         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
1096         * po/id.po: Update from translation team.
1098 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
1100         * po/ru.po: Update from translation team.
1102 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
1104         * po/nl.po: Update from translation team.
1106 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
1108         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
1109         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1110         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1111         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1112         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1113         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1114         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1116         * po/pl.po: Update from translation team.
1118 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
1120         [BZ #7083]
1121         * sysdeps/unix/sysv/linux/fallocate.c: New file.
1122         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
1123         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
1124         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
1125         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
1126         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
1127         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
1128         for GLIBC_2.10.
1129         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1130         Add fallocate and fallocate64.
1132         * io/fcntl.h: Pretty printing.
1134 2009-03-02  Richard Guenther  <rguenther@suse.de>
1136         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
1137         attribute also for non-C99 inline semantics variant.
1139 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1141         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
1142         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
1143         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
1144         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
1145         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
1146         Likewise.
1147         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
1148         Likewise.
1150 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
1152         * po/cs.po: Update from translation team.
1154 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
1156         * po/bg.po: Update from translation team.
1157         * po/sv.po: Likewise.
1158         * po/fi.po: Likewise.
1159         * po/vi.po: Likewise.
1161 2009-02-27  Roland McGrath  <roland@redhat.com>
1163         * Makeconfig (%.v.i): Depend on Makeconfig.
1164         Exclude % lines from initial #-comment removal.
1166 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
1168         * po/ko.po: Update from translation team.
1170 2009-02-26  Roland McGrath  <roland@redhat.com>
1172         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
1173         avoids unused warning.
1175 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
1176             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1178         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
1179         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
1180         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
1181         and asm/user.h.  Include asm/ptrace.h.
1182         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
1183         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1184         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
1185         Undefine.
1186         (start_thread): Don't undefine.
1187         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
1188         Define.
1190 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
1192         * wctype/wctype.h: The *_l functions are in POSIX 2008.
1193         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
1194         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
1195         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
1196         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
1197         200112L to 200809L.
1198         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
1199         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1200         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
1201         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1202         _SC_THREAD_ROBUST_PRIO_PROTECT.
1203         * posix/unistd.h: fexecve is in POSIX 2008.
1204         * time/time.h: strftime_l is in POSIX 2008.
1205         * io/sys/stat.h: futimens is in POSIX 2008.
1206         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
1207         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
1208         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
1209         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
1210         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
1211         open_memstream, and vdprintf are in POSIX 2008.
1213 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
1215         * include/features.h: Define macros for XPG7/POSIX 2008.
1216         * ctype/ctype.h: The *_l functions are in POSIX 2008.
1217         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
1218         POSIX 2008.
1219         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
1220         * locale/xlocale.h: Define locale_t type.
1221         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
1222         in POSIX 2008.  Don't define locale_t here.
1223         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
1224         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
1225         UTIME_OMIT only with __USE_ATFILE.
1226         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
1227         * stdio-common/psiginfo.c: New file.
1228         * stdio-common/psiginfo-data.h: New file.
1229         * stdio-common/psiginfo-define.h: New file.
1230         * stdio-common/Makefile (routines): Add psiginfo.
1231         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
1232         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1233         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1234         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1235         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1236         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1237         * io/sys/stat.h: Move mknodat definition into same conditional as
1238         mknod.
1239         * time/sys/time.h: futimesat is not among the functions accepted
1240         into the POSIX standard.
1242         * include/features.h: If no feature selection given and we select
1243         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
1244         * posix/Versions: Export __posix_getopt.
1245         * posix/getopt.c (_getopt_initialize): Take additional parameter.
1246         Use it to alternatively initialize __posixly_correct.
1247         (_getopt_internal_r): Take addition parameter.  Pass on to
1248         _getopt_initialize.
1249         (_getopt_internal): Take addition parameter.  Pass on to
1250         _getopt_internal_r.
1251         (getopt): Pass additional zero to _getopt_internal.
1252         (__posix_getopt): New function.
1253         * posix/getopt.h: Add redirection for getopt.
1254         * posix/getopt1.c (getopt_long): Pass additional zero to
1255         _getopt_internal.
1256         (getopt_long_only): Likewise.
1257         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
1258         (_getopt_long_only_r): Likewise.
1259         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
1260         _getopt_internal_r.
1262 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
1264         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
1265         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1266         * sysdeps/posix/sysconf.c (__sysconf): Handle
1267         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
1268         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1270 2009-02-24  Roland McGrath  <roland@redhat.com>
1272         [BZ #9895]
1273         * README.template: Reworded not to use substituted version number.
1274         Renamed to ...
1275         * README: ... here (no longer generated).
1276         * Makefile (README): Target removed.
1278 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
1280         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
1281         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
1282         instead.
1284         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
1286         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
1288 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
1290         * po/bg.po: Update from translation team.
1292 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
1294         * stdlib/monetary.h: Uglify function parameter names.
1295         * sunrpc/rpc/pmap_clnt.h: Likewise.
1296         * sunrpc/rpc/svc.h: Likewise.
1297         * sunrpc/rpc/xdr.h: Likewise.
1298         * sunrpc/rpc/clnt.h: Likewise.
1299         * resolv/netdb.h: Likewise.
1300         * resolv/arpa/nameser.h: Likewise.
1301         * resolv/resolv.h: Likewise.
1302         * argp/argp.h: Likewise.
1303         * locale/langinfo.h: Likewise.
1304         * io/sys/stat.h: Likewise.
1305         * posix/spawn.h: Likewise.
1306         * nis/rpcsvc/nislib.h: Likewise.
1307         * malloc/obstack.h: Likewise.
1308         * sysdeps/ia64/bits/link.h: Likewise.
1309         * sysdeps/i386/bits/link.h: Likewise.
1310         * sysdeps/s390/bits/link.h: Likewise.
1311         * sysdeps/powerpc/bits/link.h: Likewise.
1312         * sysdeps/x86_64/bits/link.h: Likewise.
1313         * sysdeps/sparc/bits/link.h: Likewise.
1314         * sysdeps/sh/bits/link.h: Likewise.
1315         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
1316         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
1317         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
1318         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
1320 2008-12-01  Fredrik Unger  <fred@tree.se>
1322         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
1323         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
1324         _FP_UNPACK_RAW_2, fix up first argument.
1326 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
1328         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
1329         (GET_NPROCS_PARSER): Change parameters and use next_line.
1330         (__get_nprocs): Rewrite to not use stdio routines.
1331         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
1332         Change parameters and use next_line.
1334 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
1336         [BZ #5381]
1337         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
1338         Change mempool_alloc prototype.
1339         * nscd/mem.c (gc): Don't handle mem_in_flight.
1340         (mempool_alloc): Third parameter now only indicates whether this is the
1341         first call (to allocate data) or not.  If it is, get db rdlock.
1342         Release it on error.  Don't handle mem_in_flight.
1343         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
1344         Adjust third parameter of mempool_alloc calls.
1345         Nothing to do here in case mempool_alloc fails.
1346         Avoid local variable shadowing parameter.  No need to get db rdlock
1347         before calling cache_add.
1348         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
1349         no mem_in_flight array anymore.
1350         * nscd/connections.c: Remove definition and handling of mem_in_flight.
1351         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
1352         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
1353         in case mempool_alloc fails. No need to get db rdlock before calling
1354         cache_add.
1355         * nscd/hstcache.c (cache_addhst): Likewise.
1356         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1357         * nscd/servicescache.c (cache_addserv): Likewise.
1358         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
1360 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
1362         * po/lt.po: Update from translation team.
1364 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
1366         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
1367         defined, allow additional data to be added using the optional
1368         MORE_ELF_HEADER_DATA macro.
1369         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
1370         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
1372 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
1374         * include/atomic.h: Define catomic_and if not already defined.
1375         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
1376         * sysdeps/i386/i486/bits/atomic.h: Likewise.
1378 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
1380         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
1381         Change all callers.
1382         (_int_realloc): Likewise.  Third argument is now padded size
1383         All _int_* functions are now static.
1385         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
1386         * malloc/arena.c: Likewise.
1387         * include/malloc.h: Remove now unnecessary declarations of the _int_*
1388         functions.
1390         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
1391         easily.
1393         * malloc/malloc.c: Add branch prediction for use of the hooks.
1395         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
1397 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1399         [BZ #7095]
1400         * bits/confname.h: Add SUSv7 macros for getconf environments.
1401         * bits/environments.h: Likewise.
1402         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
1403         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
1404         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
1405         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
1406         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
1407         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
1408         * posix/getconf.c: Likewise.
1409         * posix/sysconf.c: Likewise.
1410         * sysdeps/posix/sysconf.c: Likewise.
1411         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
1412         environments.
1414 2009-01-16  Petr Baudis  <pasky@suse.cz>
1416         [BZ #9753]
1417         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
1418         even if we currently have zero nscount.
1420 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1422         [BZ #9781]
1423         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
1424         the input line is too long.
1426         * po/Makefile (libc.pot): Add f_print as function taking c-format
1427         parameter.
1429         * debug/xtrace.sh: Unify translatable messages.
1430         * elf/ldd.bash.in: Likewise.
1431         * elf/sprof.c: Likewise.
1432         * locale/programs/locale.c: Likewise.
1433         * malloc/memusage.sh: Likewise.
1434         * nss/getent.c: Likewise.
1436 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
1438         * debug/pcprofiledump.c (print_version,
1439         argp_program_version_hook): New function.
1440         * elf/ldconfig.c (more_help): New function.
1441         (argp): Use it.
1442         * elf/sln.c (usage): New function.
1443         (main): Support --help and --version.
1444         * malloc/memusagestat.c (print_version): New function.
1445         (argp_program_version_hook): New variable.
1446         * nscd/nscd.c (more_help): New function.
1447         (argp): Use it.
1448         * posix/getconf.c (main): Send --version output to stdout.
1449         Support --help.
1450         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
1451         arguments.  All callers changed.
1452         (print_version): New function.
1453         (parseargs): Support --help and --version.
1454         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
1455         changed.
1456         (print_version): New function.
1457         (main): Use getopt_long.  Support --help and --version.
1458         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
1459         --version.
1461 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1463         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
1464         (update_data): Fix handling of wrapping back
1465         to the beginning of the buffer.
1467         [BZ #9823]
1468         * stdio-common/psignal.c (psignal): Fix test for empty string.
1470 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
1472         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
1473         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
1474         move _null_auth to .rodata.
1476         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
1477         value of 24.
1479         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
1481         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
1482         today than when the original code was written.  Use larger
1483         buffers.  This also makes it unnecessary to have stat information,
1484         if this causes extra efforts.
1485         (__opendir): In case O_DIRECTORY works, don't call fstat just for
1486         __alloc_dir.
1488 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
1490         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
1491         is set.
1492         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
1493         * sysdeps/sh/sh4/__longjmp.S: Likewise.
1494         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
1495         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
1496         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
1497         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1499 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
1501         * po/ru.po: Update from translation team.
1503 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
1505         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
1506         Add _tid slot to maintain consistency with kernel.
1508 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
1510         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
1511         incomplete characters at end of input buffer.
1512         * libio/Makefile (tests): Add tst-fgetwc.
1513         * libio/tst-fgetwc.c: New file.
1514         * libio/tst-fgetwc.input: New file.
1516 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
1518         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
1520 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
1522         [BZ #9793]
1523         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
1524         *OUTBUFSTART unless the whole output fit into the buffer.
1525         * iconv/Makefile (tests): Add tst-iconv4.
1526         * iconv/tst-iconv4.c: New file.
1528 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
1530         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
1531         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1533 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
1535         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
1536         newer linker scripts.
1538 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
1540         [BZ #7040]
1541         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
1542         inotify_rm_watch should have type int.
1544 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
1546         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1547         Make aligned_restore_vmx a local symbol.
1548         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
1549         Likewise.
1551 2009-01-30  Andreas Jaeger  <aj@suse.de>
1553         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
1554         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
1555         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
1556         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
1557         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
1558         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
1559         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
1561 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
1563         [BZ #9726]
1564         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
1565         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
1567 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
1569         [BZ #9726]
1570         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1571         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1572         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1573         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1575 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
1577         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
1578         memcpy instead of memcmp.
1579         (_dl_setup_pointer_guard): Likewise.
1581 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
1583         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
1584         manipulated brk, use malloc_printerr.
1585         * misc/sbrk.c (__sbrk): Better error handling for nonsense
1586         requests.
1588 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
1590         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
1591         rindex): For C++ add inlines so that they can be recognized as
1592         builtins.
1593         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
1595 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
1596             Jakub Jelinek  <jakub@redhat.com>
1598         * string/string.h: Define correct C++ prototypes for gcc 4.4.
1599         * wcsmbs/wchar.h: Likewise.
1601 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
1603         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
1604         (stackinfo_sub_sp): Define.
1606 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
1608         [BZ #9750]
1609         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
1610         * include/alloca.h (alloca_account): Define.
1611         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
1612         (stackinfo_sub_sp): Define.
1614         * nscd/connections.c (nscd_init): If database file access fails
1615         check whether this is due to permission problems and bail in that
1616         case.
1618         [BZ #9741]
1619         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
1620         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
1622 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1624         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
1625         Add "t" to clobber list.
1626         (INTERNAL_SYSCALL_NCS): Likewise.
1628 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
1630         * nss/getent.c (print_networks): Don't print comma between aliases.
1632 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
1634         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
1636         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
1637         the hash table.
1638         * misc/Makefile (tests): Add bug-hsearch1.
1639         * misc/bug-hsearch1.c: New file.
1641 2009-01-22  Roland McGrath  <roland@redhat.com>
1643         * Makeconfig (%.v.i): Strip trailing # comments,
1644         not only whole-line comments.
1646 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
1648         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
1649         one parameter.  If non-NULL use it to initialize return value.
1650         (_dl_setup_pointer_guard): New function.
1651         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1652         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
1653         * elf/rtld.c (security_init): Pass _dl_random to
1654         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
1655         pointer_chk_guard.
1656         * elf/dl-sysdep.c (_dl_random): New variable.
1657         (_dl_sysdep_start): Handle AT_RANDOM.
1658         (_dl_show_auxv): Likewise.
1659         * elf/dl-support.c (_dl_random): New variable.
1660         (_dl_aux_init): Handle AT_RANDOM.
1661         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
1662         to _dl_setup_stack_chk_guard.
1664         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
1666 2009-01-10  Roland McGrath  <roland@redhat.com>
1668         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
1670 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
1672         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
1674         [BZ #9706]
1675         * nss/nss_files/files-parse.c (strtou32): New function.
1676         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
1677         across 32-bit and 64-bit platforms.
1678         (INT_FIELD_MAYBE_NULL): Likewise.
1680 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
1682         [BZ #9720]
1683         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
1684         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
1685         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
1686         Likewise.
1688 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
1690         [BZ #697]
1691         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
1692         being NULL also if there are no backreferences.
1693         * posix/rxspencer/tests: Add testcases.
1695 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
1697         [BZ #9697]
1698         * posix/bug-regex17.c: Add testcases.
1699         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
1700         handling.
1702 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1704         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
1705         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
1706         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
1707         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
1708         for elf subdir.
1709         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
1710         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
1711         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
1712         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
1713         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
1714         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1716 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
1718         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
1719         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
1720         re_string_skip_chars, re_string_reconstruct): Likewise.
1721         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
1723 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
1725         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
1726         adjust the buffer alignment.
1728 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1730         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
1731         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
1732         net/route.h.
1734         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
1735         flavor to description only when flavor is not NULL.
1737         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
1738         mutex after SIGIO/SIGURG lookup loop.
1740 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1742         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
1744 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
1746         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
1747         handling.
1749 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
1751         * sysdeps/unix/sysv/linux/kernel-features.h
1752         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
1754         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
1755         if no output is written.
1757         * version.h: Bump to 2.10 development.
1759         * posix/getconf.c: Update copyright year.
1760         * nss/getent.c: Likewise.
1761         * iconv/iconvconfig.c: Likewise.
1762         * iconv/iconv_prog.c: Likewise.
1763         * elf/ldconfig.c: Likewise.
1764         * catgets/gencat.c: Likewise.
1765         * csu/version.c: Likewise.
1766         * elf/ldd.bash.in: Likewise.
1767         * elf/sprof.c (print_version): Likewise.
1768         * locale/programs/locale.c: Likewise.
1769         * locale/programs/localedef.c: Likewise.
1770         * nscd/nscd.c (print_version): Likewise.
1771         * debug/xtrace.sh: Likewise.
1772         * malloc/memusage.sh: Likewise.
1773         * malloc/mtrace.pl: Likewise.
1774         * debug/catchsegv.sh: Likewise.
1776 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
1778         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
1779         script.
1781 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
1783         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
1784         gethostbyname4_r function call succeeded, just leave the loop.
1786         [BZ #9694]
1787         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
1788         very end.
1789         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
1790         * wctype/Makefile (tests): Add bug-wctypeh.
1791         * wctype/bug-wctypeh.c: New file.
1793         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
1794         LOCALDOMAIN is defined.
1795         * nscd/nscd_getai.c (__nscd_getai): Likewise.
1797         * sysdeps/x86_64/bits/select.h: New file.
1799         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
1801 2008-12-21  Bruno Haible  <bruno@clisp.org>
1803         [BZ #9677]
1804         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
1805         if no output is written.
1807 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
1809         * login/utmp_file.c (pututline_file): Replace call to dup2 with
1810         libc internal symbol __dup2 to avoid access through the PLT.
1812 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
1814         [BZ #6545]
1815         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
1816         available only for __USE_GNU.
1818         * inet/Makefile (tests): Add tst-getni2.
1819         * inet/tst-getni2.c: New file.
1821         [BZ #7080]
1822         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
1823         NULL when NI_NAMEREQD is set.
1824         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1825         * inet/Makefile (tests): Add tst-getni1.
1826         * inet/tst-getni1.c: New file.
1828 2008-12-03  Petr Baudis  <pasky@suse.cz>
1830         [BZ #7067]
1831         * nscd/connections.c (invalidate_cache): Use prune_run_lock
1832         instead of prune_lock.
1833         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
1834         * nscd/nscd.h (database_dyn): Add prune_run_cache.
1836 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
1838         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
1839         use.
1841         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
1842         handling.
1844         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
1845         after reading name server list.
1847         [BZ #7058]
1848         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
1849         handling for host name aliases.
1851 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
1853         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
1854         instead of doing things manually.
1856 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
1858         * posix/regex_internal.h (build_wcs_upper_buffer):
1859         Return type is reg_error_t.
1861 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
1863         * posix/globtest.sh: Use mktemp to create temporary file and
1864         directory.
1866         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
1867         sets correctly.
1868         (__CPU_CLR_S): Likewise.
1869         (__CPU_ISSET_S): Likewise.
1871 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
1872             Ulrich Drepper  <drepper@redhat.com>
1874         * scripts/firstversion.awk: Use custom comparison function to compare
1875         version numbers.
1876         * scripts/versions.awk: Use sort invocation which can handle
1877         multi-digit sub-version numbers.
1879 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
1881         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
1882         * locale/iso-639.def: Add Chhattisgarhi entry.
1884 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
1886         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
1887         ESRCH return value.
1888         (_nss_dns_gethostbyname4_r): Likewise.
1889         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
1890         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
1891         gethostbyname4_r, we don't have a separate IPv6 status, so copy
1892         the no_data variable.
1894         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
1895         information at the correct index.
1897         * socket/sys/socket.h: Declare accept4.
1898         * socket/accept4.c: New file.
1899         * sysdeps/unix/sysv/linux/accept4.c: New file.
1900         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
1901         * socket/Makefile (routines): Add accept4.
1902         * socket/Versions: Export accept4 with version GLIBC_2.10.
1903         * socket/paccept.c: Removed.
1904         * sysdeps/unix/sysv/linux/paccept.c: Removed.
1905         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
1906         * Versions.def: Define GLIBC_2.10 for libc.
1907         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
1909         * nscd/connections.c: Use accept4.
1911         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
1913 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
1915         * resolv/res_send.c (send_dg): Create sockets with non-blocking
1916         flag already set.
1918         * stdlib/setenv.c (unsetenv): Don't search environment if it does
1919         not exist.
1920         * stdlib/Makefile (tests): Add tst-unsetenv1.
1921         * stdlib/tst-unsetenv1.c: New file.
1923 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
1925         * login/utmp_file.c (file_writable): New variable.
1926         (setutent_file): Don't try to open file for writing.
1927         (pututline_file): Before writing, make descriptor writable if
1928         necessary.
1930 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
1932         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
1933         to IPv4 or IPv6 if an interface has been found.
1935 2008-11-26  Roland McGrath  <roland@redhat.com>
1937         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
1938         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
1940         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
1941         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
1942         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
1944         * elf/elf.h (NT_386_IOPERM): New macro.
1945         (NT_PPC_VSX): New macro.
1947 2008-11-25  Roland McGrath  <roland@redhat.com>
1949         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
1950         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
1951         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
1952         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
1953         Subdirectories moved to ports repository.
1954         * configure.in (base_machine): Remove alpha case.
1956 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
1958         * sysdeps/mach/strerror_l.c: New file.
1960 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
1962         [BZ #6411]
1963         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
1964         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
1965         magic numbers.
1966         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
1967         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
1968         (relax_fenv_state): Same as above.
1969         (FPSCR_29): Reserve bit in ISA 2.05.
1970         (FPSCR_NI): Provide define for compat.
1971         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
1972         magic numbers.
1973         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
1974         magic numbers.
1975         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
1976         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
1977         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
1978         access to hwcap to account for hwcap size increase to uint64_t.
1979         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
1980         Likewise.
1981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
1982         (*setcontext): Likewise.
1983         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1984         New file.
1985         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1986         New file.
1987         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1988         (*setcontext): dynamically select mtfsf insn based on
1989         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1990         increase to uint64_t.
1991         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1992         (*swapcontext): dynamically select mtfsf insn based on
1993         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
1994         increase to uint64_t.
1995         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1996         New file.
1997         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1998         New file.
1999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2000         (*setcontext): dynamically select mtfsf insn based on
2001         PPC_FEATURE_HAS_DFP.
2002         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2003         (*swapcontext): dynamically select mtfsf insn based on
2004         PPC_FEATURE_HAS_DFP.
2006 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
2008         * version.h: Bump for 2.9 release.
2009         * include/features.h (__GLIBC_MINOR__): Bump to 9.
2011         [BZ #7029]
2012         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
2013         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
2014         all the rounding.
2016 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
2018         [BZ #7009]
2019         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
2020         unknown request types for now.
2022 2008-11-11  Roland McGrath  <roland@redhat.com>
2024         * sysdeps/x86_64/configure: New file.
2026         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
2027         * configure: Regenerated.
2029 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2031         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
2032         correct instruction to remove the stack frame.
2034 2008-11-03  Michael Matz  <matz@suse.de>
2036         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
2037         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
2039 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
2041         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
2042         Remove.
2044         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
2045         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
2046         of the thread variable instead of void *.
2047         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
2048         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
2049         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2050         __libc_tsd_define arguments.
2051         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
2052         __libc_tsd_address arguments.  Remove union hack.
2053         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
2054         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
2055         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
2056         Adjust __libc_tsd_{set,get} arguments.
2057         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2058         __libc_tsd_define arguments.
2059         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
2060         arguments.
2061         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
2062         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
2063         (LOCALE): Adjust __libc_tsd_define arguments.
2064         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
2065         arguments.
2066         (LOCALE): Adjust __libc_tsd_define arguments.
2067         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
2068         arguments.
2069         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
2070         arguments.
2072 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
2074         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
2075         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2077 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
2079         [BZ #6966]
2080         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
2082 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
2083             Ulrich Drepper  <drepper@redhat.com>
2085         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
2086         definition for GCC 3.1 and later.
2088 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
2090         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
2091         refetch dtv, as it might have changed.
2092         * elf/Makefile: Add rules to build and run tst-tls18.
2093         * elf/tst-tls18.c: New test.
2094         * elf/tst-tlsmod18a.c: New file.
2096 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
2098         [BZ #6875]
2099         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
2101 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
2103         [BZ #6867]
2104         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
2106         [BZ #6919]
2107         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
2108         Fix length of copy operation.
2110 2008-10-02  Pierre Habouzit <madcoder@debian.org>
2112         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
2113         and fix its calling convention.
2115 2008-10-07  Andreas Schwab  <schwab@suse.de>
2117         [BZ #6942]
2118         * resolv/res_send.c (send_vc): Fix last change.
2119         (send_dg): Align here as well.
2121 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
2123         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
2124         return value in case rlimit is RLIM_INFINITY.
2126         [BZ #6947]
2127         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
2128         for UL_SETFSIZE.
2129         * resource/Makefile (tests): Add bug-ulimit1.
2130         * resource/bug-ulimit1.c: New file.
2132         [BZ #6974]
2133         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
2134         without dot.  Properly terminate the string with a null byte.
2135         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
2137         [BZ #6980]
2138         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
2139         negative sizees.
2140         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
2141         negative __size.
2143         [BZ #6995]
2144         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
2146 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
2148         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
2149         abort if there is no initgroups_dyn function.
2151         * resolv/res_send.c (send_dg): On timeout, only return nonzero
2152         result if any of the queries really provided an answer.
2154 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
2156         * po/lt.po: Update from translation team.
2158 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
2160         * po/id.po: Update from translation team.
2162 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
2164         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
2165         Fix tests for existence of second reply.
2167 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
2169         * po/id.po: New file.
2170         Contributed by the Indonesian translation team.
2172 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
2174         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
2175         initialization.
2177 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
2179         * elf/Makefile: Add rules to build and run tst-tls17.
2180         * elf/tst-tls17.c: New test.
2181         * elf/tst-tlsmod17a.c: New file.
2182         * elf/tst-tlsmod17b.c: Likewise.
2184 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
2186         * stdlib/divmod_1.c: Use correct type for dummy variable.
2187         * stdlib/mod_1.c: Likewise.
2189 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
2191         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
2193 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
2195         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
2196         __nonnull order for C++.
2197         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
2198         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
2200 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
2202         * stdlib/longlong.h: Update from GCC.
2204 2008-10-09  Jakub Jelinek <jakub@redhat.com>
2205             David S. Miller  <davem@davemloft.net>
2207         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
2208         make sure any registers used with 64-bit 'branch-on-register'
2209         instructions have their top 32-bits clear.
2210         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
2211         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
2213 2008-09-18  Andreas Schwab  <schwab@suse.de>
2215         [BZ #6942]
2216         * resolv/res_send.c (send_vc): Fix use of unaligned address.
2217         Properly handle partial reads.
2219 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
2221         * elf/elf.h (STO_MIPS_PLT): New.
2222         (R_MIPS_COPY): New.
2223         (R_MIPS_JUMP_SLOT): New.
2224         (R_MIPS_NUM): Redefine to 128.
2225         (DT_MIPS_PLTGOT): New.
2226         (DT_MIPS_RWPLT): New.
2227         (DT_MIPS_NUM): Redefine to 0x35.
2229 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
2231         * timezone/africa: Update from tzdata2008f.
2232         * timezone/asia: Likewise.
2233         * timezone/australasia: Likewise.
2234         * timezone/europe: Likewise.
2235         * timezone/leapseconds: Likewise.
2236         * timezone/northamerica: Likewise.
2237         * timezone/southamerica: Likewise.
2238         * timezone/zone.tab: Likewise.
2240 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
2242         * nscd/connections.c: Disable use of paccept for now.
2244 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
2246         * socket/Versions: Remove paccept export for GLIBC_2.9.
2247         * socket/Makefile (routines): Remove paccept.
2248         * socket/sys/socket.h: Remove paccept declaration.
2250         * po/sv.po: Update from translation team.
2252 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
2254         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
2255         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2257 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
2259         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
2260         Patch by Olivier Fourdan <ofourdan@redhat.com>.
2262 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
2264         * sunrpc/rpc/svc.h: Declare svcfd_create.
2265         Patch by Michael Solberg <msolberg@redhat.com>.
2267 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
2268             Ulrich Drepper  <drepper@redhat.com>
2270         * malloc/malloc.c (public_vALLOc): Try other arenas in case
2271         _int_valloc fails.
2272         (public_pVALLOc): Likewise.
2274 2008-09-02  Andreas Jaeger  <aj@suse.de>
2276         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
2277         commit.
2279 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
2281         [BZ #6860]
2282         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
2284 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
2286         * Makefile (check-data): Check data directory in add-ons.
2287         * elf/Makefile (check-data): Likewise.
2289 2008-08-18  Roland McGrath  <roland@redhat.com>
2291         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
2292         * configure: Regenerated.
2293         * config.make.in (cflags-cpu): New substituted variable.
2294         (with-cpu): Variable removed.
2295         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
2297 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
2299         [BZ #6845]
2300         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
2301         __signbitl definition and __LONG_DOUBLE_128__ guard from:
2302         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
2303         redundant.  Functions which call floating point assembler operations
2304         should go into a sysdeps powerpc/fpu directory.
2306 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
2308         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
2309         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2311 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
2313         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
2315         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
2316         change related to AT_EXECFN.  We cannot use that string.
2317         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
2318         _dl_execfn member.
2319         * elf/dl-support.c: Remove _dl_execfn variable.
2320         (_dl_aux_init): Remove handling of AT_EXECFN.
2321         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
2322         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
2324 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
2326         [BZ #6544]
2327         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
2328         byte gets added to writes and seeks from the end use the length of
2329         the buffer and not the currently terminating NUL byte.
2331         [BZ #6634]
2332         * login/utmp_file.c (getutent_r_file): Take additional parameter.
2333         Set to true if locking failed.
2334         (getutid_r_file): Adjust caller.
2335         (pututline_file): Likewise.  Return NULL in this case.
2336         Patch mostly by halesh.s@gmail.com.
2338 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
2340         [BZ #6589]
2341         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
2342         Define.
2343         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
2345 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
2347         [BZ #6839]
2348         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
2349         macro since it is now available in elf/dynamic-link.h.
2351 2008-08-12  Roland McGrath  <roland@frob.com>
2353         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
2354         in case used outside of libc.
2355         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
2357 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
2359         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
2360         directly instead of going through dn_comp.
2362 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
2364         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2365         Fix asm constraints.
2367 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
2369         [BZ #6790]
2370         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
2371         (IPV6_PMTUDISC_PROBE): Likewise.
2373 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
2375         [BZ #6791]
2376         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
2378 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
2379             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2381         [BZ #6817]
2382         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
2383         Added the members 'vsx' and 'arch_2_06'.
2384         (_dl_powerpc_platforms): Add the member 'power7'.
2385         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
2386         to reflect the changes required by VSX and ISA 2.06.
2387         Modify _DL_PLATFORMS_COUNT to reflect the addition of
2388         'power7'.
2389         Defined PPC_PLATFORM_POWER7.
2390         (_dl_string_platform): Add support for POWER7.
2391         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
2392         capability and ISA 2.06.
2394 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
2396         [BZ #6824]
2397         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
2398         macro to detect use of 128 bit long double.
2399         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
2401 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
2403         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
2405         [BZ #5794]
2406         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
2407         parameters.
2408         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2409         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2411 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
2413         * nscd/connections.c (main_loop_poll): Pass a buffer which is
2414         guaranteed to be large enough to read inotify event.  Ignore
2415         EAGAIN error.  Better error message.  Add branch predicition.
2416         (main_loop_epoll): Likewise.
2418 2008-08-02  Roland McGrath  <roland@frob.com>
2420         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2421         Add memory clobbers.
2423 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
2425         * manual/arith.texi: Avoid @strong{Note:}.
2426         * manual/creature.texi: Likewise.
2427         * manual/filesys.texi: Likewise.
2428         * manual/math.texi: Likewise.
2429         * manual/memory.texi: Likewise.
2430         * manual/resource.texi: Likewise.
2431         * manual/syslog.texi: Likewise.
2432         * manual/time.texi: Likewise.
2434         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
2435         to prevent warning.
2437 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
2439         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
2440         new epoll_create1 interface.
2441         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2442         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
2443         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2445         * include/arpa/nameser.h (NS_GET16): Use const pointer.
2446         (NS_GET32): Likewise.
2448         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
2449         syscalls, too.
2451         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
2452         use the AT_EXECFN value if it is no absolute path.
2453         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
2454         __ASSUME_AT_EXECFN.
2456         * Versions.def: Add GLIBC_2.9 to libresolv.
2457         * include/resolv.h: Remove hidden proto declarations for __ns_*
2458         functions.  Add them for __dn_count_labels and __p_secstodate.
2459         * include/arpa/nameser.h: Add a number of hidden proto declarations.
2460         Define ns_msg_getflags macro here.
2461         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
2462         and __p_secstodate.
2463         * resolv/Versions: Export functions from <arpa/nameser.h> from
2464         libresolv in version GLIBC_2.9.
2465         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
2466         hidden definitions.
2467         * resolv/ns_netint.c: Likewise.
2468         * resolv/ns_parse.c: Likewise.
2469         * resolv/ns_print.c: Likewise.
2470         * resolv/ns_samedomain.c: Likewise.
2471         * resolv/ns_ttl.c: Likewise.
2472         * resolv/arpa/nameser_compat.h: Likewise.
2473         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
2474         function calls.
2475         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
2476         instead of ns_get16.
2477         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
2478         __ns_get32 instead of ns_get16 and ns_get32 respectively.
2479         (gaih_getanswer_slice): Likewise.
2480         * resolv/Makefile (libresolv-routines): Add ns_date.
2481         * resolv/ns_date.c: New file.
2483         * elf/Makefile (check-localplt.out): Also check libresolv and
2484         libcrypt.
2486 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
2488         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2489         __ASSUME_O_CLOEXEC.
2491 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
2493         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
2494         buffer passed to NSS functions.
2496         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
2498         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
2499         Define.
2501         * misc/syslog.c (openlog_internal): Fix compile problem.
2503 2008-07-28  Roland McGrath  <roland@redhat.com>
2505         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
2507 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
2509         * io/ftw.c (add_object): Remove inline to avoid warning.
2511         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
2513         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
2514         Use it instead of locally defined resplen2 variable.
2515         (res_nsend): Adjust for __libc_res_nsend interface change.
2516         (send_vc): Initialize *resplen2 if necessary.  Read length of
2517         package into an appropriately aligned variable.  Store converted length
2518         in new variable and use it appropriately.
2519         Add branch prediction help.
2520         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
2521         and pass it on to __libc_res_nsend.  Adjust all callers.
2522         (__libc_res_nsearch): Likewise.
2523         (__libc_res_nqeurydomain): Likewise.
2524         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
2525         change.
2526         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
2527         Define resplen2 variable and pass it to __libc_res_nsearch and then
2528         to gaih_getanswer.
2529         (getanswer_r): In case of incorrect DNS data don't overread buffer.
2530         Add branch prediction.
2531         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
2532         (gaih_getanswer): Don't decode second slice if first one failed due
2533         to a too small buffer.  Don't let not found status of second
2534         decoder shadow results of the first.
2535         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
2536         and __libc_res_nquery interface changes
2537         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
2538         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
2539         __libc_res_nsearch, and __libc_res_nsend.
2540         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
2541         change.
2542         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
2543         __libc_res_nsearch interface changes.
2545 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
2547         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
2549         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
2550         file descriptors with close-on-exec set.
2551         (exec_comm_child): Fix the case where the write end of the pipe is
2552         STDOUT_FILENO already.  In case it is, clear close-on-exec.
2554         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
2555         * io/pipe2.c: Likewise.
2556         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
2557         instead of __ASSUME_PACCEPT.
2558         * include/unistd.h: Declare __have_pipe2.
2559         * libio/iopopen.c: Implement "e" flag.
2560         * libio/Makefile (tests): Add tst-popen1.
2561         * libio/tst-popen1.c: New file.
2563         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
2564         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2566 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
2568         [BZ #6771]
2569         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
2570         success call of _IO_SEEKOFF or calls which failed because the
2571         descriptor is for a pipe.
2573         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
2574         magic number.
2576         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
2578         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
2579         F_SETFD use if we know fopen set the flag.
2581         * login/utmp_file.c (setutent_file): Minor optimization in case
2582         O_CLOEXEC is available.
2584 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
2586         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
2587         * elf/Makefile: Use pie-ccflag variable.
2588         * nscd/Makefile: Likewise.
2589         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
2591 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
2593         [BZ #6724]
2594         * Versions.def: Add GLIBC_2.9 version tag for libutil.
2595         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
2596         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
2597         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
2598         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
2599         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
2600         utmp32, utmpx32 and login32.
2601         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
2602         versions of struct utmp functions to libc and libutil.
2603         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
2604         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
2605         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
2606         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
2607         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
2608         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
2609         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
2610         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
2611         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
2612         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
2613         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
2614         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
2615         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
2616         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
2617         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
2618         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
2619         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
2620         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
2621         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
2622         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
2623         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
2624         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
2626 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
2628         * scripts/gen-as-const.awk: Generate more widely usable code by
2629         using 64-bit arithmetic.
2631         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
2632         the same treatment as narrow output code in last patch.
2634         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
2636         [BZ #6763]
2637         * elf/dl-load.c (local_strdup): Remove inline.
2638         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
2639         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
2640         part of the object.
2642         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
2644 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
2646         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
2647         the new syscalls, too.
2649         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
2650         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
2652         [BZ #6698]
2653         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
2654         parameter for end of buffer.  If temporary copy is too large use
2655         malloc.
2656         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
2657         interface change.
2658         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
2659         string rewrite when allocating buffer.
2661         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
2662         syscalls, too.
2664         * nscd/connections.c (nscd_init): Clean up fcntl call.
2666         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
2667         SOCK_NONBLOCK if possible.
2669         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
2670         SOCK_CLOEXEC if available.
2672         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
2673         __libc_clntudp_bufcreate_internal.
2674         * include/sys/socket.h: Declare __have_sock_cloexec.
2675         * socket/Makefile (aux): Add have_sock_cloexec.
2676         * socket/have_sock_cloexec.c: New file.
2677         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
2678         __libc_clntudp_bufcreate.
2679         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
2680         which takes an additional parameter.  Create socket with non-blocking
2681         mode and close-on-exec flag set, if wanted.
2682         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
2683         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
2684         instead of clntudp_create.  The socket has already the close-on-exec
2685         flag set if SOCK_CLOEXEC is defined.
2687 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
2689         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2690         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
2691         appropriate.
2692         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
2693         non-blocking mode by using socket, paccept, and inotify_init1.
2695         * Versions.def (glibc): Add GLIBC_2.9.
2696         * io/Makefile (routines): Add dup3 and pipe2.
2697         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
2698         * io/dup3.c: New file.
2699         * io/pipe2.c: New file.
2700         * posix/unistd.h: Declare dup3 and pipe2.
2701         * socket/Makefile (routines): Add paccept.
2702         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
2703         * socket/paccept.c: New file.
2704         * socket/sys/socket.h: Declare paccept.
2705         * sysdeps/unix/syscalls.list: Add entry for dup3.
2706         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
2707         epoll_create2 and inotify_init1.
2708         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
2709         * sysdeps/unix/sysv/linux/paccept.c: New file.
2710         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
2711         possible.
2712         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
2713         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
2714         inotify_init1, and pipe2 entries.
2715         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
2716         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
2717         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
2718         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
2719         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
2720         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
2721         SOCK_NONBLOCK.
2722         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
2723         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
2724         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
2725         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
2726         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
2727         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
2728         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
2729         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
2730         EPOLL_NONBLOCK.  Declare epoll_create2.
2731         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
2732         EFD_NONBLOCK.
2733         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
2734         IN_NONBLOCK.  Declare inotify_init1.
2735         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
2736         SFD_NONBLOCK.
2737         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
2738         TFD_NONBLOCK.
2740         * elf/elf.h: Define AT_EXECFN.
2741         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
2742         LD_ORIGIN_PATH.
2743         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
2744         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
2745         if __ASSUME_AT_EXECFN is defined.
2746         (_dl_aux_init): Handle AT_EXECFN.
2747         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
2748         for 2.6.27 and up.
2749         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
2750         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
2751         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
2752         _dl_execfn if available and avoid compatibility code if
2753         __ASSUME_AT_EXECFN is defined.
2755         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
2756         _dl_discover_osversion only for older kernels.
2758 2008-07-22  Roland McGrath  <roland@frob.com>
2760         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
2762 2008-07-21  Roland McGrath  <roland@frob.com>
2764         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
2765         returned too much data out of line.
2767 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
2769         * locale/setlocale.c (setname): Remove inline to avoid compiler
2770         warning.
2772         [BZ #6712]
2773         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
2775 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
2777         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
2778         doesn't manage to write anything, fail.
2780         * malloc/hooks.c (__malloc_check_init): Remove printf.
2782 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2784         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
2786 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
2788         * nscd/connections.c (main_loop_poll): Fix handling of read errors
2789         from inotify.
2790         (main_loop_epoll): Likewise.
2792 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
2794         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
2796         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
2797         if DEBUG is defined.
2799         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
2800         query.  Adjust buffer size computation for padding.
2802 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
2804         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
2805         * stdio-common/tst-setvbuf1.c: New file.
2806         * stdio-common/tst-setvbuf1.expect: New file.
2808         [BZ #6719]
2809         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
2810         when selecting fully-buffered stream.
2811         Patch by Wang Xin <wxinee@gmail.com>.
2813 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2815         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
2816         (__open_2): New function.
2817         (__open64_2): New alias to __open_2.
2818         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
2819         (__openat_2): New function.
2820         (__openat64_2): New alias to __openat_2.
2822 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
2824         [BZ #6723]
2825         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2827 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2829         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
2830         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
2831         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
2832         __hurd_dfail.
2833         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2834         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2835         * sysdeps/mach/hurd/send.c (__send): Likewise.
2836         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
2837         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
2839 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2841         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
2842         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2843         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2844         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
2845         * hurd/get-host.c (_hurd_get_host_config): Likewise.
2846         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
2848 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
2850         [BZ #6657]
2851         * time/strptime_l.c: Don't clear s.era_cnt after successful match
2852         of %EY.
2853         Patch by Petr Baudis.
2855 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
2857         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
2858         Patch by Peter Jones <pjones@redhat.com>.
2860 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
2862         [BZ #6654]
2863         * stdlib/canonicalize.c (__realpath): readlink can write too much
2864         into the buffer on platforms without PATH_MAX.
2866 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
2868         [BZ #6653]
2869         * posix/tst-regex.c (main): Rename to...
2870         (do_test): ... this. Remove cmdline option processing.
2871         (TIMEOUT): Define.
2872         (TEST_FUNCTION): Define.
2873         (CMDLINE_OPTIONS): Define.
2875 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
2877         [BZ #5210]
2878         * configure.in: Add -Werror to -fstack-protector test to catch
2879         unsupported architectures.
2880         Patch by Gilles Esponasse <g.esp@free.fr>.
2882 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
2884         * stdlib/tst-setcontext.c: Set back_in_main before exit if
2885         getcontext returns ENOSYS.
2887 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
2889         * nscd/connections.c (main_loop_poll): Fix test for read error.
2890         (main_loop_epoll): Likewise.
2892 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
2894         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
2895         better place so it is not called when nscd is used.
2897         * nscd/connections.c: Also recognize and handle changes to the
2898         resolver configuration file.
2900 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
2902         * time/strftime.c: Pass reference to tzset_called around to handle
2903         recursive calls.
2905         [BZ #6612]
2906         * time/strftime.c (__strftime_internal): Call tzset() only
2907         when printing timezone-dependent values.
2908         Based on a patch by Petr Baudis <pasky@suse.cz>.
2910         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
2911         unconditionally use second gaih_getanswer_slice result.
2913         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
2914         (getaddrinfo): RES must always be non-NULL.
2916 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
2918         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
2919         cr[34] registers.
2920         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2921         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2922         Likewise.
2923         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
2924         register.
2926 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
2928         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
2929         fields.
2930         * nscd/connections.c (inotify_fd): New variable.
2931         (nscd_init): Try to open an inotify descriptor.
2932         If successful, watch files for databases using inotify instead of
2933         having prune threads stat the files.
2934         (nscd_run_prune): Recognize clear_cache flag being set and call
2935         prune_cache appropriately.
2936         (main_loop_poll): Add inotify descriptor to wait set and handle the
2937         reported changes.
2938         (main_loop_epoll): Likewise.
2939         * nscd/cache.c (prune_cache): Don't stat files for databases if
2940         inotify is used.
2941         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
2942         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
2944         * nscd/grpcache.c (cache_addgr): Correctly compute size of
2945         fixed-size portion of the record.
2946         * nscd/servicescache.c (cache_addserv): Likewise.
2947         * nscd/pwdcache.c (cache_addpw): Likewise.
2948         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2950 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
2952         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
2953         out we don't use uninitialized memory.
2955         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
2956         the client.
2958 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
2960         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
2961         ignore T_DNAME messages.
2962         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
2964 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
2966         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
2967         Avoid segfault if first GETC returns eof/'\0'/'\n'.
2969 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
2971         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
2972         instead of portstr to nscd_getserv_r.  Patch by
2973         Roman Kagan <rkagan@mail.ru>.
2975 2008-05-26  Jim Meyering  <meyering@redhat.com>
2977         Remove more useless "if" tests before "free".
2978         * include/inline-hashtab.h (htab_delete): Likewise.
2979         * libio/freopen.c (freopen): Likewise.
2980         * libio/freopen64.c (freopen64): Likewise.
2981         * locale/programs/ld-collate.c (collate_read): Likewise.
2982         * misc/fstab.c (libc_freeres_fn): Likewise.
2983         * posix/glob.c (globfree): Likewise.
2985 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
2987         * string/Makefile (strop-tests): Add memmem.
2988         * string/test-memmem.c: New file.
2989         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
2990         (test_init): Size buf1 according to BUF1PAGES.
2992 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
2994         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
2995         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
2996         (CFLAGS-scanf17.c): New.
2997         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
2998         * stdio-common/scanf15.c (main): Likewise.
2999         * stdio-common/scanf16.c: New file.
3000         * stdio-common/scanf17.c: New file.
3002 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
3004         * resolv/res_send.c (send_dg): If we already have one of two
3005         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
3006         use the one answer insted of failing.
3008 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
3010         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
3011         being executed on PowerPC as the expected result exceeds IBM
3012         long double 128 __LDBL_MAX__.
3014 2008-05-21  Roland McGrath  <roland@redhat.com>
3016         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
3018         * Makefile (check-data): Use $(abi-name) before other guesses.
3019         Look in $(add-ons) dirs before scripts/data/.
3020         * elf/Makefile (check-data): Likewise.
3022         * scripts/soversions.awk: Grok ABI line.
3023         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
3024         Emit definition for abi-name variable.
3026 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
3028         * string/endian.h: Define new fixed-size hto* and *toh macros only
3029         if [__USE_BSD].
3031         * iconvdata/Depend: Add localedata.
3033 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3035         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
3037 2008-05-08  David S. Miller  <davem@davemloft.net>
3039         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
3040         HIDDEN_JUMPTARGET.
3041         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3042         (__SYSCALL_CLOBBERS): Remove %g* registers.
3043         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3044         (__SYSCALL_CLOBBERS): Likewise.
3045         * scripts/data/localplt-sparc-linux-gnu.data: New file.
3046         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
3048 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
3050         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3051         (CALL_ERRNO_LOCATION): Define.
3052         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3053         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3054         (CALL_ERRNO_LOCATION): Define.
3055         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3056         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
3057         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
3059 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
3061         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
3062         variable.
3064 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
3066         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
3067         (FIRST_FRAME_POINTER): Define.
3069 2008-05-09  David S. Miller  <davem@davemloft.net>
3071         * sysdeps/sparc/sparc64/backtrace.c: New file.
3073 2008-05-14  David S. Miller  <davem@davemloft.net>
3075         * sysdeps/sparc/machine-gmon.h: New file.
3076         * sysdeps/sparc/sparc-mcount.S: Likewise.
3077         * sysdeps/sparc/Makefile: Add sparc-mcount target to
3078         sysdep_routines in gmon directory.
3080 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
3082         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
3084 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
3086         * resolv/res_query.c (__libc_res_nquery): In case one of two
3087         answer was too short don't try to read that answer's header.
3089         * resolv/res_send.c (send_dg): In case of timeout and there are
3090         two queries and one has been answered, return value indicating
3091         success.
3093 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
3095         * nscd/cache.c (cache_add): Take additional parameter specifying
3096         whether this is in response of a cache refill.  Check alignment
3097         of package data.  Revamp waking of pruning thread.
3098         (prune_cache): Small optimization.
3099         * nscd/nscd.h: Adjust cache_add prototypes.
3100         * nscd/aicache.c: Adjust cache_add calls.
3101         * nscd/grpcache.c: Likewise.
3102         * nscd/hstcache.c: Likewise.
3103         * nscd/initgrcache.c: Likewise.
3104         * nscd/pwdcache.c: Likewise.
3105         * nscd/servicescache.c: Likewise.
3106         * nscd/connections.c (restart): Really disable cache use before
3107         exec attempt.  If it fails, reenable cache.
3108         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
3109         time to max to be able to notice concurrent cache additions.  Unlock
3110         prune_lock while performing gc.  Afterwards compute wakeup time with
3111         current wakeup_time value in mind.
3113 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
3115         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
3117         * nscd/mem.c (gc): Correctly determine highest used array element
3118         in mark.
3120         * nscd/mem.c (markrange): Add assert to check entries are all
3121         aligned.  Small cleanup in bitmap use.
3123         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
3124         blockoff of type nscd_ssize_t.
3125         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
3126         (mempoll_alloc): Record block offset and not address.
3128         * nscd/mem.c (gc): Fix test for stack overuse.
3130         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
3131         more asserts.
3133         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
3134         entry is available, believe it.
3136         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
3137         no answers return NSS_STATUS_NOTFOUND.
3138         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
3139         buffer does not have any content.
3141 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
3143         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
3145         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
3146         lookup, don't assign canon unconditionally.
3148 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3150         * string/Makefile (distribute): Add str-two-way.h.
3152 2008-03-29  Eric Blake  <ebb9@byu.net>
3154         Rewrite string searches to O(n) rather than O(n^2).
3155         * string/str-two-way.h: New file.  For linear fixed-allocation
3156         string searching.
3157         * string/memmem.c: New implementation.
3158         * string/strstr.c: New implementation.
3159         * string/strcasestr.c: New implementation.
3161 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
3163         * posix/regcomp.c (optimize_utf8): Add a note on why we test
3164         opr.ctx_type.
3165         (calc_first): Initialize constraint field.
3166         (duplicate_node_closure): Use it instead of special casing ANCHORS.
3167         Use search_duplicated_node to avoid loops.  Fix grammar.
3168         (duplicate_node): Merge constraint field for all node types.
3169         (calc_eclosure_iter): Look at constraint field for all node types.
3170         * posix/regex_internal.c (create_cd_newstate): Don't look at
3171         create_cd_newstate.
3173 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3175         [BZ #6428]
3176         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
3178         [BZ #6442]
3179         * string/endian.h: Add macros for fixed-size endian conversion.
3180         * bits/byteswap.h: Allow inclusion from <endian.h>.
3181         * sysdeps/i386/bits/byteswap.h: Likewise.
3182         * sysdeps/ia64/bits/byteswap.h: Likewise.
3183         * sysdeps/s390/bits/byteswap.h: Likewise.
3184         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3185         * string/Makefile (tests): Add tst-endian.
3186         * string/tst-endian.c: New file.
3188         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
3189         Patch by Reuben Thomas.
3191 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
3193         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
3195 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3197         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
3199         [BZ #6461]
3200         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
3201         Add missing braces.
3202         (BODY for __gconv_transform_internal_ascii): Likewise.
3204         [BZ #6472]
3205         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
3206         to be treated like link-local addresses.
3207         (match_prefix): Don't treat IPv4 loopback address special when
3208         converting to v4 mapped addressed.
3210         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
3211         if necessary.
3212         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
3213         * posix/tst-rfc3484-2.c: Likewise.
3214         * posix/tst-rfc3484-3.c: Likewise.
3216         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
3217         and SCTP.
3219         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
3221         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
3223         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
3225 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
3227         * po/lt.po: New file.  From Lituanian translation team.
3229 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
3231         Introduce TLS descriptors for i386 and x86_64.
3232         * include/inline-hashtab.h: New file, copied from 2005's
3233         libiberty, with fix for memory leak imported afterwards by
3234         Glauber de Oliveira Costa.
3235         * elf/tlsdeschtab.h: New file.
3236         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
3237         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
3238         (CHECK_STATIC_TLS): Move to...
3239         * elf/dynamic-link.h: ... this file.
3240         (TRY_STATIC_TLS): New macro.
3241         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
3242         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
3243         R_386_TLS_DESC): Define.
3244         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
3245         binutils.
3246         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
3247         R_X86_64_TLSDESC): Define.
3248         (R_386_NUM, R_X86_64_NUM): Adjust.
3249         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
3250         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3251         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3252         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
3253         release tlsdesc_table.
3254         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
3255         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
3256         (elf_machine_rel): Handle R_386_TLS_DESC.
3257         (elf_machine_rela): Likewise.
3258         (elf_machine_lazy_rel): Likewise.
3259         (elf_machine_lazy_rela): Likewise.
3260         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
3261         * sysdeps/i386/dl-tlsdesc.S: New file.
3262         * sysdeps/i386/dl-tlsdesc.h: New file.
3263         * sysdeps/i386/tlsdesc.c: New file.
3264         * sysdeps/i386/tlsdesc.sym: New file.
3265         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
3266         tlsdesc_table.
3267         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
3268         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3269         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3270         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
3271         release tlsdesc_table.
3272         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
3273         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
3274         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
3275         (elf_machine_rel): Handle R_X86_64_TLSDESC.
3276         (elf_machine_rela): Likewise.
3277         (elf_machine_lazy_rel): Likewise.
3278         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
3279         (__tls_get_addr): Do not declare for non-shared compiles.
3280         * sysdeps/x86_64/dl-tlsdesc.S: New file.
3281         * sysdeps/x86_64/dl-tlsdesc.h: New file.
3282         * sysdeps/x86_64/tlsdesc.c: New file.
3283         * sysdeps/x86_64/tlsdesc.sym: New file.
3284         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
3285         tlsdesc_table for both 32- and 64-bit structs.
3287 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
3289         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
3290         its own function.  This reduces the frame setup costs and more.
3292 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
3294         [BZ #3406]
3295         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
3296         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
3298 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
3300         * io/openat.c (__openat_2): Also pass fd to __openat.
3301         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
3302         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
3304         * string/tester.c (test_memcmp): Add a few more tests.
3305         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
3307 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
3309         * nscd/cache.c (cache_add): Before returning with failure and this
3310         is the first use of the record, mark it as unusable.
3311         * nscd/aicache.c: Don't touch the dataset after cache_add returns
3312         reporting a failure.
3313         * nscd/grpcache.c: Likewise
3314         * nscd/hstcache.c: Likewise.
3315         * nscd/initgrcache.c: Likewise.
3316         * nscd/pwdcache.c: Likewise.
3317         * nscd/servicescache.c: Likewise.
3319 2008-05-10  Roland McGrath  <roland@redhat.com>
3321         [BZ #6505]
3322         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
3324 2008-05-08  David S. Miller  <davem@davemloft.net>
3326         * misc/truncate64.c (truncate64): Use __truncate not truncate.
3328         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
3329         (__ieee754_y0l): Likewise.
3330         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
3331         (__ieee754_y1l): Likewise.
3332         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
3333         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
3334         frexpl and ldexpl.  math_private.h provides them and the latter
3335         is not even used.
3336         (__log1pl): Use __frexpl.
3338 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
3340         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
3341         prototypes.
3342         * include/arpa/nameser_compat.h: Define T_UNSPEC.
3343         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
3344         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
3345         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
3346         af==AF_UNSPEC.
3347         (_nss_nis_gethostbyname4_r): New function.
3348         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3349         Change to also handle af==AF_UNSPEC.
3350         (get_tablename): New function.  Use it to avoid duplication.
3351         (_nss_nisplus_gethostbyname4_r): New function.
3352         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
3353         available.
3354         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
3355         * nss/nss.h: Define struct gaih_addrtuple.
3356         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
3357         af==AF_UNSPEC.
3358         (_nss_files_gethostbyname4_r): New function.
3359         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
3360         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
3361         calls.
3362         * resolv/res_query.c (__libc_res_nquery): Take two additional
3363         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
3364         look up IPv4 and IPv6.
3365         Change all callers.
3366         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
3367         for an additional query and answer buffer.  Pass to send_vc and
3368         send_dg.
3369         (send_vc): Send possibly two requests and receive two answers.
3370         (send_dg): Likewise.
3371         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
3372         __libc_res_nquery.
3373         (_nss_dns_gethostbyname4_r): New function.
3374         (gaih_getanswer_slice): Likewise.
3375         (gaih_getanswer): Likewise.
3376         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
3377         __libc_res_nquery call.
3378         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
3379         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
3380         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
3381         available.
3383 2008-05-05  David S. Miller  <davem@davemloft.net>
3385         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
3386         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
3388 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3390         Fix termios bit macros.
3391         Move *DLY definitions where they belong, in termios.h.
3392         Add *[0-3] definitions.
3393         Fixes confusion between VT and FF.
3394         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
3395         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
3396         are already defined to avoid collision with termios.h.
3397         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
3398         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
3399         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
3400         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
3401         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
3402         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
3403         VTDLY, VT0, VT1): New macros.
3404         [__USE_GNU] (OLCUC): Change value of macro.
3405         [__USE_XOPEN] (OFILL): New macro.
3406         [__USE_BSD] (CRTSCTS): Change value.
3407         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
3408         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
3409         (B7200, B14400, B28800, B76800): New macros.
3411 2008-05-01  David S. Miller  <davem@davemloft.net>
3413         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
3414         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
3415         (gen-as-const-headers): Add it.
3416         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
3417         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
3418         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
3419         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
3421         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
3422         six system call parameters.
3423         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
3425 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
3427         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
3428         RUSAGE_LWP.
3429         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
3430         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
3432 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
3434         * stdlib/tst-setcontext.c: Include unistd.h.
3436 2008-04-25  David S. Miller  <davem@davemloft.net>
3438         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
3439         Pass "union semun" properly in to sys_ipc, it must be passed
3440         by value, not by reference.
3442 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
3444         * nscd/Makefile (nscd-cflags): Set back to -fpie.
3445         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
3446         * nscd/connections.c (mem_in_flight): Likewise.
3448         * nscd/nscd.h (dbs): Make hidden.
3450         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
3451         Avoid returning -1, return 0 instead.
3453 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
3455         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
3457 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
3459         [BZ #5209]
3460         * sysdeps/unix/sysv/linux/times.c: New file.
3462         [BZ #5381]
3463         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
3464         mem_in_flight_list variables.  Add new parameter to mempool_alloc
3465         prototype.
3466         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
3467         appropriate mem_in_flight element.
3468         (gc): Take allocations which have not yet been committed to the
3469         database into account.
3470         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
3471         Reset mem_in_flight before returning.
3472         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
3473         cue it up in mem_in_flight_list.
3474         * nscd/aicache.c: Adjust mempool_alloc call.
3475         * nscd/grpcache.c: Likewise.
3476         * nscd/hstcache.c: Likewise.
3477         * nscd/initgrcache.c: Likewise.
3478         * nscd/pwdcache.c: Likewise.
3479         * nscd/servicescache.c: Likewise.
3480         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
3481         of -fpie.
3483         * nscd/connections.c (handle_request): Provide better error message
3484         in case SELinux forbids the service.
3486         * version.h (VERSION): Bump to 2.8.90.
3488 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
3490         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
3492 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
3494         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
3495         Also use for 32-bit.
3496         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
3497         __nextafter instead of nextafter to avoid local PLT.
3498         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
3499         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3501         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
3503         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
3504         __fe_nomask_env.
3505         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
3506         <fenv_libc.h> instead of <fenv.h>.
3507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
3508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
3510         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
3512         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
3513         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
3514         function from fegetexcept and make old name weak alias.
3515         * include/fenv.h: Declare __fegetexcept.
3516         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
3517         fegetexcept.
3518         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
3519         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
3520         to fetestexcept.
3521         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
3522         instead of frexpl to avoid local PLT.
3523         * math/s_significandl.c (__significandl): Use __ilogbl instead of
3524         ilogbl to avoid local PLT.
3525         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
3526         instead of ldexpl to avoid local PLT.
3527         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3528         __roundl not roundl to avoid local PLT.
3529         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
3530         local PLTs.  Use __sincosl instead of separate sinl and cosl
3531         calls.
3532         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3534         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
3535         version for ppc64 to 2.4.21 since without it makecontext will fail.
3537         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
3538         to the ABI in use.
3539         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
3540         .__tls_get_addr.
3541         [__powerpc64__] (TLS_GD): Likewise.
3543 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
3545         [BZ #4997]
3546         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
3547         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
3548         mantissa.
3549         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3550         Likewise.  Also account for when x is an odd number between 2^52
3551         and 2^53-1.
3552         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
3553         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3554         * math/libm-test.inc (lround_test, llround_test): Added test cases to
3555         detect aforementioned erroneous conditions.
3557 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
3559         * configure.in: Check for -fno-section-anchors in addition to
3560         -fno-toplevel-reorder.
3562 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
3564         * include/features.h (__GLIBC_MINOR__): Bump to 8.
3566         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
3567         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3568         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3569         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3570         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3571         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3573 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
3575         [BZ #5443]
3576         * time/era.c: Transform __libc_setlocale_lock into rwlock.
3577         * time/alt_digit.c: Likewise.
3578         * wcsmbs/wcsmbsload.c: Likewise.
3580 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
3582         * version.h (VERSION): Bump to 2.8.
3584         * timzeone/asia: Update from tzdata2008b.
3585         * timezone/backward: Likewise.
3586         * timezone/europe: Likewise.
3587         * timezone/northamerica: Likewise.
3588         * timezone/southamerica: Likewise.
3589         * timezone/iso3166.tab: Likewise.
3590         * timezone/leapseconds: Likewise.
3591         * timezone/zone.tab: Likewise.
3592         * timezone/private.h: Update from tzcode2008a.
3593         * timezone/zdump.c: Likewise.
3594         * timezone/zic.c: Likewise.
3596 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
3598         [BZ #5741]
3599         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
3600         Define additonal Data Cache Block instruction macros.
3601         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
3602         Replace dcbst with dcbf and sync with sync/isync.
3604 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
3606         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
3607         Always set ELF_RTYPE_CLASS_PLT.
3608         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
3610 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
3612         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
3613         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
3614         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
3615         For ISA 2.01 and later replace mftb with mfspr 268.
3617 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
3619         [BZ #5768]
3620         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
3621         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
3623 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
3625         [BZ #5768]
3626         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
3627         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
3628         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
3629         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
3631 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
3633         * stdlib/tst-makecontext.c (othervar): New variable.
3634         (cf): Test sign extending the argument to long.
3636 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
3638         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
3639         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
3640         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
3641         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
3642         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
3643         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
3644         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
3646 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
3648         * elf/Makefile (tests): Substitute tests-vis-yes here.
3649         (tests-vis-yes): Delete.
3650         (modules-name, modules-vis-yes): Similarly.
3652 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
3654         [BZ #4407]
3655         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3656         Preserve sign in signgamp when x is zero.
3658 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
3660         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
3661         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
3662         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
3663         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
3664         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
3665         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
3667 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
3669         [BZ #4314]
3670         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
3671         buffers.
3673         [BZ #5209]
3674         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
3675         a reserved error value.
3677         * stdlib/tst-makecontext.c: Change parameter to cf to negative
3678         value to check for correct sign extension.
3680         [BZ #5436]
3681         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3682         Copy 64-bit parameter values even though this is not required in
3683         the standard.
3685         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
3686         PC save.
3688 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
3690         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
3691         PC save.
3693 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
3695         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
3697 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
3699         [BZ #5998]
3700         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
3701         in line-buffered stream failed.
3702         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3704 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
3706         [BZ #6024]
3707         * scripts/abi-versions.awk: If the version specified by
3708         --enable-oldest-abi is older than the first version for this
3709         architecture, use the default version.
3711         * locale/programs/ld-collate.c (collate_read): Ignore script lines
3712         as well when ignoring the whole category.
3714 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
3716         [BZ #6042]
3717         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
3718         ETHERTYPE_* definitions.
3719         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
3721 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
3723         * stdlib/mbtowc.c (__no_r_state): Remove.
3724         (mbtowc): New static state variable.  Use it instead of
3725         __no_r_state.
3726         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
3727         (__wctomb_state): New hidden variable.
3728         (wctomb): Use __wctomb_state instead of __no_r_state.
3729         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
3730         (__wctomb_state): New extern decl.
3731         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
3733 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
3735         [BZ #5475]
3736         * resolv/res_init.c: Handle scope IDs in resolv.conf.
3738 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
3740         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
3742 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
3744         * po/nl.po: Update from translation team.
3746 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
3748         [BZ #6007]
3749         * string/strfry.c: Handle empty strings again.
3751 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
3753         [BZ #5443]
3754         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
3755         before looking for translation.
3756         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
3757         * locale/freelocale.c: Likewise.
3758         * locale/newlocale.c: Likewise.
3759         * locale/setlocale.c: Likewise.
3760         Based partially on a patch by ryo@np.css.fujitsu.com.
3762 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
3764         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
3765         acquiring wrlock.  Do conv_tab allocation while holding lock.
3766         * intl/Makefile: Add rules to build and run tst-gettext6.
3767         * intl/tst-gettext6.c: New test.
3768         * intl/tst-gettext6.sh: New file.
3770 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
3772         * po/nl.po: Update from translation team.
3774         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
3775         provided through st_blksize, try the default size before giving up.
3777 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
3779         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
3781         [BZ #5939]
3782         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
3784         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
3785         error message.  POSIX today does not require the messages to be in
3786         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
3788         [BZ #5979]
3789         * sunrpc/auth_unix.c: Unify printed strings.
3790         * sunrpc/clnt_tcp.c: Likewise.
3791         * sunrpc/clnt_udp.c: Likewise.
3792         * sunrpc/clnt_unix.c: Likewise.
3793         * sunrpc/svc_tcp.c: Likewise.
3794         * sunrpc/svc_udp.c: Likewise.
3795         * sunrpc/svc_unix.c: Likewise.
3796         * sunrpc/xdr.c: Likewise.
3797         * sunrpc/xdr_array.c: Likewise.
3798         * sunrpc/xdr_rec.c: Likewise.
3799         * sunrpc/xdr_ref.c: Likewise.
3800         * locale/programs/ld-time.c (time_finish): Unify messages.
3801         * locale/programs/locfile.c (handle_copy): Fix typo.
3802         * nscd/nscd.c (options): Fix typo.
3804         [BZ #5995]
3805         * stdlib/strtod_l.c: Use correct sign for result in one more
3806         underflow case.
3807         Patch by Eric Blake <ebb9@byu.net>.
3809 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
3811         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
3812         and creat system calls.
3813         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
3814         call.
3815         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
3816         system calls.
3817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
3818         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3819         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3821 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
3823         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
3824         <linux/limits.h> has defined it.
3825         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
3826         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
3827         headers.
3828         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
3829         it instead of ARG_MAX.
3831 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
3833         * posix/gai.conf: Fix comment for scope nullbits.
3834         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
3835         default to 128 bits for v4 mapped addresses.
3837 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3839         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
3840         ptrace call to get the ieee_instruction_pointer from the kernel.
3841         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
3842         ptrace call to set the ieee_instructtion_pointer.
3843         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
3844         Add comment that ieee_instruction_pointer is always 0.
3846 2008-03-09  Andreas Jaeger  <aj@suse.de>
3848         [BZ #5857]
3849         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
3850         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
3851         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
3853         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
3854         (rint_test): Likewise.
3856 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
3858         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
3859         call.
3860         (__nisfind_server): Similar for open readColdStartFile call.
3861         Patch partially by Jim Meyering.
3862         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
3863         around internal_setent call.
3865         * po/vi.po: New Vietnamese translation.
3867         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
3868         ADJ_OFFSET_SS_READ.
3870         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
3871         remove CLONE_STOPPED.
3873 2008-02-10  Jim Meyering  <meyering@redhat.com>
3875         Remove useless "if" before "free":
3876         * elf/ldconfig.c (parse_conf_include): Likewise.
3877         * gmon/gmon.c (weak_alias): Likewise.
3878         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
3879         * inet/rcmd.c (__validuser2_sa): Likewise.
3880         * intl/bindtextdom.c (set_binding_values): Likewise.
3881         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
3882         * libio/genops.c (save_for_backup): Likewise.
3883         * libio/wgenops.c (save_for_wbackup): Likewise.
3884         * locale/programs/ld-collate.c (collate_read): Likewise.
3885         * locale/programs/linereader.c (get_string): Likewise.
3886         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
3887         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
3888         * resolv/res_debug.c (do_section): Likewise.
3889         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
3890         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
3891         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3892         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
3893         * time/tzset.c (tzset_internal): Likewise.
3895 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
3897         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
3898         of ASSEMBLER.
3900 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
3902         [BZ #5903]
3903         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
3904         not stream for output file.  Open output file here.
3905         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
3906         and output file name.
3907         (process_fd): Likewise.
3908         (process_file): Likewise.
3909         (main): Adjust callers of changed functions.
3910         * iconv/iconv_prog.h: Adjust prototype.
3912 2008-03-09  Andreas Jaeger  <aj@suse.de>
3914         [BZ #5753]
3915         * sysdeps/ia64/ieee754.h: Use protected namespace
3916         __BIG_ENDIAN/__LITTLE_ENDIAN.
3917         * sysdeps/ieee754/ieee754.h: Likewise.
3918         Patch by Aurelien Jarno <aurelien@aurel32.net>.
3920 2008-03-08  Roland McGrath  <roland@frob.com>
3922         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
3923         ignore a signal that came from a machine exception, treat it as a
3924         fatal core-dump signal instead.
3925         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3927         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3928         Clear DF bit in thread state's eflags.
3929         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3931 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
3933         [BZ #5774]
3934         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
3935         of NAN(...) sequence.
3936         * stdlib/Makefile (tests): Add tst-strtod6.
3937         * stdlib/tst-strtod6.c: New file.
3939         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
3941         [BZ #5762]
3942         * posix/getopt.c (_getopt_internal_r): Clarify error message by
3943         putting offending option character in quotes.  Clean up error
3944         messages.
3945         * po/be.po: Adjust msgstr in translation file.
3946         * po/bg.po: Likewise.
3947         * po/ca.po: Likewise.
3948         * po/cs.po: Likewise.
3949         * po/da.po: Likewise.
3950         * po/de.po: Likewise.
3951         * po/es.po: Likewise.
3952         * po/fr.po: Likewise.
3953         * po/hr.po: Likewise.
3954         * po/ko.po: Likewise.
3955         * po/nl.po: Likewise.
3956         * po/rw.po: Likewise.
3957         * po/sk.po: Likewise.
3958         * po/sv.po: Likewise.
3959         * po/tr.po: Likewise.
3960         * po/zh_CN.po: Likewise.
3961         * po/zh_TW.po: Likewise.
3963         [BZ #5760]
3964         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
3965         Patch by Roland Bless <roland@bless.de>.
3967         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
3968         .o file.
3969         * elf/Makefile (routines): Add dl-sysdep.
3970         (elide-routines.os): Likewise.
3972 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
3974         [BZ #5786]
3975         * elf/dl-sysdep.c: Undefine ROUND after use.
3976         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
3977         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
3978         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
3979         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
3980         to ...
3981         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
3982         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
3983         if necessary.
3984         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
3986         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
3987         _dl_tls_get_addr_soft element.
3988         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
3989         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
3990         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
3991         GLRO.
3992         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
3993         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
3994         of internal_function.
3996         * stdlib/Makefile (aux): Add tens_in_limb.
3997         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
3998         * stdlib/tens_in_limb.c: ...here.  New file.
4000         [BZ #5778]
4001         * sysdeps/unix/sysv/linux/pathconf.h: Declare
4002         __statfs_chown_restricted.
4003         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
4004         for _PC_CHOWN_RESTRICTED.
4005         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
4006         Implement __statfs_chown_restricted.
4007         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
4008         _POSIX_CHOWN_RESTRICTED value to zero.
4009         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
4010         defined to zero.
4012         * sysdeps/x86_64/rtld-memset.c: New file.
4014 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
4016         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
4018         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
4019         Barcelona machine.  Make default fall through branch of
4020         __x86_64_preferred_memory_instruction check as the integer code path.
4022 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
4024         * sysdeps/x86_64/cacheinfo.c
4025         (__x86_64_preferred_memory_instruction): New variable.
4026         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4028         * sysdeps/x86_64/memset.S: Rewrite.
4030 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
4032         * include/stdio.h (__asprintf_chk, __dprintf_chk,
4033         __obstack_printf_chk): New prototypes.
4034         (__vasprintf_chk, __vdprintf_chk,
4035         __obstack_vprintf_chk): Likewise.
4036         Add libc_hidden_proto.
4037         * libio/obprintf.c
4038         (_IO_obstack_jumps): No longer static, add attribute_hidden.
4039         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
4040         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4041         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
4042         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
4043         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4044         __obstack_vprintf_chk): New prototypes.
4045         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
4046         obstack_vprintf): New inlines.
4047         * debug/dprintf_chk.c: New file.
4048         * debug/vdprintf_chk.c: New file.
4049         * debug/asprintf_chk.c: New file.
4050         * debug/vasprintf_chk.c: New file.
4051         * debug/obprintf_chk.c: New file.
4052         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
4053         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
4054         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
4055         @@GLIBC_2.8.
4056         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
4057         vdprintf_chk and obprintf_chk, set CFLAGS for them.
4058         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
4059         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
4060         libc_hidden_proto.
4061         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
4062         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
4063         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
4064         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
4065         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
4066         @@GLIBC_2.8.
4067         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
4068         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
4069         obstack_vprintf_chk.
4070         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
4071         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
4072         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
4073         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
4074         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
4075         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
4077 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
4079         [BZ #5779]
4080         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
4081         Patch by Roy Marples <roy@marples.name>.
4083         [BZ #5736]
4084         * malloc/malloc.c: Fix typo in comment.
4086         [BZ #5627]
4087         * locale/iso-639.def: Add Shuswap.
4089 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
4091         [BZ #5790]
4092         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
4093         overwrite *h_errnop/*errnop values from getanswer_r in case of
4094         failure.
4096 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
4098         [BZ #5818]
4099         * nscd/connections.c (dbs): Add initializers for .suggested_module.
4100         (verify_persistent_db): Remove one unnecessary test and add a new one
4101         for bad configuration.
4102         (nscd_init): Improve error reported when persistent database cannot
4103         be reused.
4104         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
4105         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
4106         .suggested_module and .max_db_size and case config file says the
4107         values are zero.
4108         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
4110         [BZ #5854]
4111         * nis/ypclnt.c (yp_order): Fix handling of return value of
4112         do_ypcall_tr call.
4113         Patch by Jeff Moyer <jmoyer@redhat.com>.
4115         * po/fr.po: Update from translation team.
4117 2008-02-22  Andreas Jaeger  <aj@suse.de>,
4118             Carlos O'Donell <carlos@systemhalted.org>
4120         [BZ #5012]
4121         * FAQ.in: Describe why glibc needs to be compiled with
4122         optimization.
4124 2008-02-19  Roland McGrath  <roland@redhat.com>
4126         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
4128 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
4130         [BZ #5737]
4131         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
4132         __USE_MISC is defined.
4134 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
4136         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
4137         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
4138         sys/timerfd.h.
4139         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
4140         timerfd_gettime, timerfd_settime.
4141         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
4142         timerfd_gettime, timerfd_settime for GLIBC_2.8.
4144 2008-02-08  Roland McGrath  <roland@redhat.com>
4146         * elf/elf.h (NT_PPC_SPE): New macro.
4148 2008-02-06  Roland McGrath  <roland@redhat.com>
4150         * Makerules ($(common-objpfx)sysd-rules):
4151         Depend on $(sysdep-makeconfigs).
4153 2008-01-31  Roland McGrath  <roland@redhat.com>
4155         [BZ #5442]
4156         * configure.in: Use -print-file-name if it yields a directory,
4157         for each of include and include-fixed.
4158         * configure: Regenerated.
4160         * Makeconfig (sysd-rules-targets): New variable.
4161         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
4162         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
4164 2008-01-30  Roland McGrath  <roland@redhat.com>
4166         * manual/libc.texinfo: Update back-cover text.
4168         * elf/elf.h (NT_386_TLS): New macro.
4170 2008-01-29  Roland McGrath  <roland@redhat.com>
4172         * Makeconfig (sysd-rules-patterns): New variable.
4173         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
4174         (check-inhibit-asm): New canned sequence, replaces ...
4175         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
4176         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
4177         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
4178         (CFLAGS-rtld): Variable removed.
4180 2008-01-24  Roland McGrath  <roland@redhat.com>
4182         * configure.in: Let configure fragments set base_os.
4183         * configure: Regenerated.
4185 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
4187         * po/ko.po: Update from translation team.
4189 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
4191         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
4193 2008-01-12  Andreas Jaeger  <aj@suse.de>
4195         [BZ #5040]
4196         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
4197         Add EPOLLRDHUP.
4199 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4201         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
4202         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
4203         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
4205 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
4207         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
4208         * elf/dl-close.c (_dl_close): Check for it.
4209         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
4210         (_dl_allocate_static_tls): Likewise.
4211         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
4212         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
4213         to it.
4214         * elf/tst-tls16.c: New file.
4215         * elf/tst-tlsmod16a.c: New file.
4216         * elf/tst-tlsmod16b.c: New file.
4217         * elf/Makefile: Add rules to build and run tst-tls16.
4219 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
4221         [BZ #5628]
4222         * bits/shm.h: Fix comment describing shmid_ds.
4223         * sysdeps/gnu/bits/shm.h: Likewise.
4224         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
4225         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
4226         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
4227         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
4228         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
4229         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
4230         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
4231         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
4232         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
4234         [BZ #5607]
4235         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
4236         prototypes.
4237         * conform/data/limits.h-data: Adjust limits changed in v6 and add
4238         additional suffixes.
4239         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
4240         Add optional functions mq_timedreceive and mq_timedsend.
4241         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
4242         * conform/data/pthread.h-data: Fix prototype of
4243         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
4244         * conform/data/semaphore.h-data: Allow time.h definitions.
4245         * conform/data/signal.h-data: Likewise.
4246         * conform/data/stdio.h-data: getw and putw are not required in v6.
4247         * conform/data/stdlib.h-data: Change setstate prototype.
4248         * conform/data/string.h-data: Fix strerror_r prototype.
4249         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
4250         * conform/data/unistd.h-data: pthread_atfork not required in v6.
4251         Fix readlink prototype.
4252         * conform/data/netinet/in.h-data: Add const to in6addr_any and
4253         in6addr_loopback.
4254         * inet/netinet/in.h: Cleanup namespace.
4255         * posix/regex.h: Likewise.
4256         * resolv/netdb.h: Likewise.
4257         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
4258         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4259         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4260         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
4261         of names of in in6_addr.
4262         (default_precedence): Likewise.
4263         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
4264         NULL definition.
4266 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
4268         * conform/data/fmtmsg.h-data: Add missing allows.
4269         * conform/data/ftw.h-data: Likewise.
4270         * conform/data/inttypes.h-data: Likewise.
4271         * conform/data/math.h-data: Likewise.
4272         * conform/data/signal.h-data: Likewise.
4273         * conform/data/net/if.h-data: Likewise.
4274         * conform/data/netinet/in.h-data: Likewise.
4275         * conform/data/sys/socket.h-data: Likewise.
4277         [BZ #5614]
4278         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
4279         (__strtok_r): Simplify.
4280         * string/tester.c (test_strtok_r): Add test case for futile search
4281         with single-character seach string.
4283 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
4285         * po/ko.po: Update from translation team.
4287 2008-01-11  Andreas Jaeger  <aj@suse.de>
4289         [BZ #5600]
4290         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
4291         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
4292         kernel header.
4294 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
4296         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
4297         native interface lookup in all the relevant places.
4299 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
4300             Ulrich Drepper  <drepper@redhat.com>
4302         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
4303         field.  Use sockaddr_in6 for source_addr.
4304         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
4305         (match_prefix): Likewise.
4306         (get_label): Likewise.
4307         (get_precedence): Likewise.
4308         (rfc3484_sort): Change to use indirect access to results array.
4309         Adjust to use of sockaddr_in6.  Replace service_order test with
4310         simple index comparison.
4311         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
4312         service_order field.  Adjust qsort_t calls.  Access sorted result
4313         array indirectly through order array.
4314         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
4315         * posix/tst-rfc3484-2.c: Likewise.
4316         * posix/tst-rfc3484-3.c: Likewise.
4318 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
4320         [BZ #5541]
4321         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
4322         pollfd structures.
4323         Patch by André Cruz.
4325         [BZ #5545]
4326         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
4327         (clnt_spcreateerror): Likewise.
4329         [BZ #5553]
4330         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
4331         (public_mEMALIGn): Likewise.
4332         Patch mostly by Daniel Jacobowitz.
4334 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
4336         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
4337         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
4338         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
4339         * stdlib/tst-makecontext2.c: New test.
4341 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
4343         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
4344         defined.
4345         (REINIT_PARAMS): Likewise.  Undefine before end of file.
4346         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
4347         transliteration hooks and REINIT_PARAMS afterwards.
4348         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
4349         status.
4350         (REINIT_PARAMS): Define.
4351         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
4352         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
4353         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
4354         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
4355         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
4356         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
4357         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
4358         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
4359         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
4360         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
4361         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
4362         * iconvdata/tst-iconv7.c: New test.
4364 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
4366         * libio/stdio.h (vscanf): Fix definition for loser compilers.
4368 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
4370         [BZ #5112]
4371         * nscd/connections.c (restart): Fix condition.
4373 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
4375         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
4376         __ctype_toupper_loc): Add __THROW.
4378 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
4380         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
4381         recognition of interface family.
4383         * posix/getconf.c: Update copyright year.
4384         * nss/getent.c: Likewise.
4385         * iconv/iconvconfig.c: Likewise.
4386         * iconv/iconv_prog.c: Likewise.
4387         * elf/ldconfig.c: Likewise.
4388         * catgets/gencat.c: Likewise.
4389         * csu/version.c: Likewise.
4390         * elf/ldd.bash.in: Likewise.
4391         * elf/sprof.c (print_version): Likewise.
4392         * locale/programs/locale.c: Likewise.
4393         * locale/programs/localedef.c: Likewise.
4394         * nscd/nscd.c (print_version): Likewise.
4395         * debug/xtrace.sh: Likewise.
4396         * malloc/memusage.sh: Likewise.
4397         * malloc/mtrace.pl: Likewise.
4398         * debug/catchsegv.sh: Likewise.
4400 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
4402         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
4403         second lookup.
4405 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
4407         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
4408         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4410 2007-12-17  Roland McGrath  <roland@redhat.com>
4412         * inet/ether_line.c (ether_line): Remove unused variable.
4414 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4416         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
4417         and winp.
4418         * login/openpty.c (openpty): Likewise.
4419         * login/pty.h (openpty, forkpty): Likewise.
4420         * manual/terminal.texi (openpty, forkpty): Likewise.
4422 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
4424         * malloc/malloc.c (public_cALLOc): For arenas other than
4425         main_arena, count all bytes inside the mprotect_size range of the
4426         heap as uninitialized.
4428 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
4430         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
4431         executable stacks.
4433         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
4434         mTRIm for all of them.
4435         (mTRIm): Additionally iterate over all free blocks and use madvise
4436         to free memory for all those blocks which contain at least one
4437         memory page.
4438         * malloc/tst-trim1.c: New file.
4439         * malloc/Makefile (tests): Add tst-trim1.
4441         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
4443 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
4445         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4446         First cast argument to long
4447         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
4448         Return long.
4449         (__vdso_clock_gettime): Likewise.
4450         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
4451         return long.
4453 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
4455         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
4456         * locale/nl_langinfo_l.c: Real implementation, copied from
4457         nl_langinfo.c.
4458         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
4460 2007-12-01  Jim Meyering  <meyering@redhat.com>
4462         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4463         that would inhibit utf8-optimization of a regexp containing line-
4464         or buffer-anchors, e.g., `^', `$'.
4466 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
4468         * time/bug-getdate1.c (do_test): Don't use century values which
4469         aren't valid on 32-bit systems.
4471 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
4473         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
4474         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
4475         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
4476         __strcat_g, __strncat_g): Add __asm__.
4478 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
4480         [BZ #5477]
4481         * io/fchmodat.c: Fix typo in stub_warning use.
4482         Patch by Petr Salinger.
4484 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
4486         * iconvdata/hp-thai8.c: New file.
4487         * iconvdata/Makefile: Add rules for hp-thai8.c.
4488         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
4489         * iconvdata/gconv-modules: Likewise.
4491         [BZ #5464]
4492         * iconvdata/hp-greek8.c: New file.
4493         * iconvdata/Makefile: Add rules for hp-greek8.c.
4494         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
4495         * iconvdata/gconv-modules: Likewise.
4497         [BZ #5463]
4498         * iconvdata/hp-turkish8.c: New file.
4499         * iconvdata/Makefile: Add rules for hp-turkish8.c.
4500         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
4501         * iconvdata/gconv-modules: Likewise.
4503         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
4504         (shrink_heap): ... this new function.
4505         (heap_trim): Call shrink_heap instead of grow_heap.
4507         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
4508         case don't call alloc_perturb.
4510 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
4512         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
4513         possible.
4514         * sysdeps/unix/sysv/linux/kernel-features.h
4515         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
4516         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
4518 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
4520         [BZ #5424]
4521         * stdio-common/vfprintf.c: Do not overflow when adding to done.
4522         * stdio-common/Makefile (tests): Add bug22.
4523         * stdio-common/bug22.c: New file.
4525         [BZ #5451]
4526         * time/getdate.c: Fix filling in default values.
4527         * time/bug-getdate1.c: New file.
4528         * time/Makefile: Add rules to build and run bug-getdate1.
4530         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
4531         * iconvdata/ebcdic-es.c: Likewise.
4532         * iconvdata/ebcdic-es-a.c: Likewise.
4533         * iconvdata/ebcdic-uk.c: Likewise.
4534         * iconvdata/iso8859-16.c: Likewise.
4535         * iconvdata/viscii.c: Likewise.
4536         * iconvdata/iso8859-9e.c: Likewise.
4537         * iconvdata/Makefile: Adjust appropriately.
4539         [BZ #5428]
4540         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
4541         __need_wint_t.
4543 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
4545         [BZ #5427]
4546         * iconvdata/hp-roman9.c: New file.
4547         * iconvdata/Makefile: Add rules for hp-roman9.c.
4548         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
4549         * iconvdata/gconv-modules: Likewise.
4551         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
4552         * iconvdata/Makefile: Adjust appropriately.
4554         [BZ #5441]
4555         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
4556         structure, it's allocated with alloca.
4557         * stdio-common/Makefile (tests): Add bug21.
4558         * stdio-common/bug21.c: New file.
4560 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
4562         [BZ #5452]
4563         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
4564         keyword for gcc's braced-groups.
4566 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
4568         [BZ #5454]
4569         * inet/ether_line.c: Strip hostname of whitespaces.
4570         * inet/Makefile (tests): Add tst-ether_line.
4571         * inet/tst-ether_line.c: New file.
4573 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
4575         [BZ #5439]
4576         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
4578         [BZ #5435]
4579         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
4581         * stdlib/tst-setcontext.c: Catch the case where the links gets
4582         messed up and we do not reach main again.
4584         * po/ca.po: Update from translation team.
4586 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
4588         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
4589         * posix/regex.h (REG_ENOSYS): Likewise.
4590         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
4592 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
4594         * nscd/nscd.h (MAX_STACK_USE): Define.
4595         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
4596         (gc): Initialize stack_used based on allocation in prune_cache.
4597         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
4598         Clear array before use.
4600         * nscd/aicache.c (addhstaiX): Update statistics counter in case
4601         memory allocation failed.
4602         * nscd/hstcache.c (cache_addhst): Likewise.
4603         * nscd/grpcache.c (cache_addgr): Likewise.
4604         * nscd/servicescache.c (cache_addserv): Likewise.
4605         * nscd/pwdcache.c (cache_addpw): Likewise.
4606         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4608 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
4610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
4611         and creat system calls.
4613         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
4615 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4617         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
4618         Add netiucv/iucv.h.
4619         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
4620         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
4621         protocol.
4622         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
4623         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
4624         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
4626 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4628         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
4629         strncat): Define as macros to avoid compile errors.
4631         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
4632         creat entries.
4634 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
4636         [BZ #5382]
4637         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
4638         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
4639         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
4640         overflow it.
4641         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4643         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
4644         Return zero in case the thread library is not NPTL.
4646         [BZ #5375]
4647         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
4648         initializing interface list.
4650         [BZ #5378]
4651         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
4652         use result of nss_getgrgid_r if nothing was found.  For other
4653         error return with a failure.
4654         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4656         * locale/programs/ld-collate.c (collate_read): Fix loop to match
4657         macro name.
4659 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
4661         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
4662         (get_scope): For IPv4 scope, use scopes table.
4663         (fini): Free scopes table if necessary.
4664         (free_scopelist): New function.
4665         (scopecmp): New function.
4666         (gaiconf_init): Also handle scopev4 entries.
4667         * posix/tst-rfc3484.c (do_test): Initialize scopes.
4668         * posix/tst-rfc3484-2.c (do_test): Likewise.
4669         * posix/gai.conf: Document scopev4 defaults.
4670         * posix/Makefile (tests): Add tst-rfc3484-3.
4671         * posix/tst-rfc3484-3.c: New file.
4673         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
4674         Teredo tunnels.
4675         * posix/gai.conf: Update for current default tables.
4677 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
4679         * po/tr.po: Update from translation team.
4681 2007-11-18  Roland McGrath  <roland@frob.com>
4683         * manual/arith.texi (Remainder Functions): Spelling fix.
4684         From Shaun Silk <genix@mysoul.com.au>.
4686         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
4688 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
4690         * po/zh_CN.po: Update from translation team.
4692         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
4693         Add sys/signalfd.h and sys/eventfd.h.
4695 2007-11-15  Bruno Haible  <bruno@clisp.org>
4697         [BZ #5346]
4698         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
4699         union.
4700         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
4701         (DCIGETTEXT): Change the allocation of the 'search' variable so that
4702         it needs only fixed stack space. Delay the initialization of
4703         msgid_len until it is needed.
4705 2007-11-15  Andreas Jaeger  <aj@suse.de>
4707         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
4708         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
4710 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
4712         * po/ko.po: Update from translation team.
4714 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
4716         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
4717         significantly.  The device type is also part of the ifinfomsg data.
4719         * po/sv.po: Update from translation team.
4720         * po/nl.po: Likewise.
4722         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
4723         to wake up in 24 hours.
4725         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
4727 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
4729         * po/cs.po: Update from translation team.
4730         * po/pl.po: Likewise.
4732         * include/ifaddrs.h: Remove in6ai_temporary.
4733         (struct in6addrinfo): Add index element.
4734         Declare __check_native.
4735         * inet/Makefile (aux): Add check_native.
4736         * sysdeps/unix/sysv/linux/check_native.c: New file.
4737         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
4738         IFA_F_TEMPORARY.  Pass back ifa_index.
4739         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
4740         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
4741         call __check_native if necessary.
4742         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
4743         to sort addresses.  Pass information about the results.
4744         * posix/tst-rfc3484.c: Adjust for addition of index field and change
4745         of rfc3484_sort interface.
4746         * posix/tst-rfc3484-2.c: Likewise.
4748         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
4749         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
4750         for _quicksort.
4751         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
4752         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
4753         on as third parameter to compare function and _quicksort.
4754         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
4755         to the compare function.
4756         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
4757         * Versions.def: Add GLIBC_2.8 for libc.
4759         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
4760         * posix/tst-rfc3484-2.c: Likewise.
4762         * include/kernel-features.h: Moved to...
4763         * sysdeps/mach/hurd/kernel-features.h: ...here.
4765 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
4767         * sysdeps/i386/i586/memcpy_chk.S: New file.
4768         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
4769         * sysdeps/i386/i586/memset_chk.S: Likewise.
4771 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
4773         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
4774         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
4775         list of interfaces.  Also store prefix length.
4776         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
4777         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
4778         prefix if source and destination address are in the same subnet.
4779         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
4780         Always look for matching record in in6ai list.
4781         Correct source_addr_len value for IPv6->IPv4 converted records.
4783 2007-11-11  Roland McGrath  <roland@frob.com>
4785         * include/kernel-features.h: New file.
4787 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
4789         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
4790         complications for 64-bit platforms.
4792         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
4793         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
4794         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
4795         open64_2.
4796         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
4797         entries.
4798         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4799         * sysdeps/wordsize-64/alphasort.c: New file.
4800         * sysdeps/wordsize-64/alphasort64.c: New file.
4801         * sysdeps/wordsize-64/fseeko.c: New file.
4802         * sysdeps/wordsize-64/fseeko64.c: New file.
4803         * sysdeps/wordsize-64/ftello.c: New file.
4804         * sysdeps/wordsize-64/ftello64.c: New file.
4805         * sysdeps/wordsize-64/ftw.c: New file.
4806         * sysdeps/wordsize-64/ftw64.c: New file.
4807         * sysdeps/wordsize-64/iofgetpos.c: New file.
4808         * sysdeps/wordsize-64/iofgetpos64.c: New file.
4809         * sysdeps/wordsize-64/iofopen.c: New file.
4810         * sysdeps/wordsize-64/iofopen64.c: New file.
4811         * sysdeps/wordsize-64/iofsetpos.c: New file.
4812         * sysdeps/wordsize-64/iofsetpos64.c: New file.
4813         * sysdeps/wordsize-64/lockf.c: New file.
4814         * sysdeps/wordsize-64/lockf64.c: New file.
4815         * sysdeps/wordsize-64/mkostemp.c: New file.
4816         * sysdeps/wordsize-64/mkostemp64.c: New file.
4817         * sysdeps/wordsize-64/mkstemp.c: New file.
4818         * sysdeps/wordsize-64/mkstemp64.c: New file.
4819         * sysdeps/wordsize-64/scandir.c: New file.
4820         * sysdeps/wordsize-64/scandir64.c: New file.
4821         * sysdeps/wordsize-64/tmpfile.c: New file.
4822         * sysdeps/wordsize-64/tmpfile64.c: New file.
4823         * sysdeps/wordsize-64/versionsort.c: New file.
4824         * sysdeps/wordsize-64/versionsort64.c: New file.
4825         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
4826         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
4827         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
4828         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
4829         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
4830         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
4831         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
4832         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
4833         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
4834         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
4835         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
4836         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
4838         * crypt/sha256-crypt.c: Fix a comment.
4839         * crypt/sha512-crypt.c: Likewise.
4841 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
4843         * sysdeps/x86_64/memset.S: Add sfence after movnti.
4845 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
4847         [BZ #5277]
4848         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
4849         because output buffer is too small break, don't loop.
4850         * iconvdata/Makefile (tests): Add bug-iconv6.
4851         * iconvdata/bug-iconv6.c: New file.
4853 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
4855         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
4856         with size_t type.
4857         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
4858         size_t.  Add casts where needed.
4860         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
4861         old headers, don't call avc_has_perm if we don't have the
4862         permission information.
4864 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
4866         * elf/rtld.c (dl_main): Use the page size to find the map start.
4868 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
4870         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
4871         Patch by Szymon Siwek <sls@poczta.wp.pl>.
4873         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
4874         when the lookup call failed.
4876         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
4877         Add prune_cond and wakeup_time.
4878         (CACHE_PRUNE_INTERNAL): Define.
4879         Update declarations of prune_cache and setup_thread.
4880         * nscd/connections.c (dbs): Update initializers.
4881         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
4882         (nscd_init): Default number of threads is now 4.
4883         (invalidate_cache): Take lock before calling prune_cache.
4884         (handle_request): If SELinux forbids the request, say so.
4885         (readylist_cond): Use static initializer.
4886         (nscd_run_prune): New function.  Used only by pruning threads.
4887         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
4888         here.
4889         (fd_ready): Update nscd_run reference.
4890         (start_threads): No need to initialize readylist_cond.
4891         Start pruning threads separately.
4892         * nscd/nscd_setup_thread.c: Change return value type to int and always
4893         return 0.
4894         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
4895         to int and return nonzero value if we can use the TID address hack.
4896         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
4897         the database is later than the new entry's timeout, update the
4898         wakeup time and wake the cleanup thread.
4899         (prune_cache): Return seconds the next entry in the database is still
4900         valid.  Remove locking for pruning here.
4901         * nscd/nscd.conf: Document default number of threads.
4903 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
4905         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
4906         stack is properly aligned for the target function.
4907         Correct unwind info.
4909         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
4910         when using auditing libraries.
4912 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
4914         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
4915         _nss_dns_getnetbyaddr2_r.
4916         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
4917         extra parameter to getanswer_r.
4918         (_nss_dns_getnetbyaddr_r): Now a wrapper around
4919         _nss_dns_getnetbyaddr2_r.
4921         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
4922         gethstbynm3_r.
4923         * nscd/gethstbynm2_r.c: Remove.
4924         * nscd/gethstbynm3_r.c: New file.
4925         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
4926         __gethostbyaddr_r.
4927         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
4928         __gethostbyaddr_r compatibility wrapper.
4929         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
4930         determining timeout of entry.
4931         (lookup): Take new parameter and pass it to __gethostbyname3_r and
4932         __gethostbyaddr2_r.
4933         (addhstbyX): Pass reference to variable for TTL to lookup and
4934         cache_addhst.
4935         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
4936         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
4937         and __nss_next2.  Remove __nss_services_lookup.
4938         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
4939         Add compat wrapper.
4940         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
4941         __nss_next2.
4942         * nss/getXXent_r.c: Likewise.
4943         * nss/getnssent_r.c: Likewise.
4944         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
4945         does not exist in module, try the optional second name.
4946         (__nss_next2): New function.
4947         (__nss_next): Now wrapper around __nss_next2.
4948         * nss/nsswitch.h: Adjust __nss_lookup prototype.
4949         Declare __nss_next2.
4950         Adjust definition of db_lookup_function type.
4951         * nss/service-lookup.c: Define NO_COMPAT.
4952         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
4953         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
4954         * inet/ether_ntoh.c: Likewise.
4955         * sunrpc/netname.c: Likewise.
4956         * sunrpc/publickey.c: Likewise.
4957         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
4958         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
4959         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4960         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4961         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4963         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
4965         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
4967 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
4969         [BZ #5204]
4970         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
4971         * crypt/sha512c-test.c: Likewise.
4973         [BZ #5225]
4974         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
4975         to keep track of end of %[ format string element.
4976         * stdio-common/Makefile (tests): Add bug20.
4977         * stdio-common/bug20.c: New file.
4979         [BZ #5222]
4980         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
4981         path elements in counting mode.
4983 2007-10-27  Andreas Jaeger  <aj@suse.de>
4985         [BZ #5040]
4986         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
4988         [BZ #3112]
4989         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
4990         (__cleanup): Free shared library when exiting.
4991         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
4992         (__cleanup): Free shared library when exiting.
4994 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
4996         [BZ #2549]
4997         * math/libm-test.inc (check_float_internal): Support
4998         denormalized return.
5000 2007-10-23  Andreas Jaeger  <aj@suse.de>
5002         [BZ #5208]
5003         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
5004         __LONG_LONG_PAIR to handle little endian byte order.
5005         Suggested by abhishekrai@google.com
5007 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
5009         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
5011 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
5013         * nscd/cache.c (prune_cache): Move test for modified file outside
5014         of locking.
5016 2007-10-21  Andreas Jaeger  <aj@suse.de>
5018         * manual/texinfo.tex: Update to latest version.
5020         * manual/sysinfo.texi (System Parameters): Fix Formatting.
5022         * manual/arith.texi (Status bit operations): Fix formatting.
5024         * manual/errno.texi (Error Messages): Fix formatting.
5026         * manual/sysinfo.texi (System Parameters): Fix formatting.
5028         * manual/libc.texinfo: Update VERSION and UPDATED.
5030 2007-10-19  Roland McGrath  <roland@redhat.com>
5032         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
5034 2007-10-06  David S. Miller  <davem@davemloft.net>
5036         * configure.in: Add sparcv9v2 and sparc64v2.
5037         * scripts/config.sub: Likewise.
5038         * configure: Regenerate.
5039         * elf/elf.h (HWCAP_SPARC_N2): New.
5040         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
5041         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
5042         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
5043         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
5044         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
5045         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
5046         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
5048 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
5050         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
5051         even if the poll result indicates there is data to read.
5052         Patch by Jeff Moyer <jmoyer@redhat.com>.
5054 2007-10-18  Roland McGrath  <roland@redhat.com>
5056         * elf/elf.h (NT_PPC_VMX): New macro.
5058 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5060         * version.h (VERSION): Set to 2.7.90.
5062 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
5064         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
5065         weak_alias.
5067 2007-10-17  Roland McGrath  <roland@frob.com>
5069         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
5070         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
5072 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5074         * version.h (VERSION): Bump to 2.7.
5075         * include/features.h (__GLIBC_MINOR__): Bump to 7.
5077         [BZ #5186]
5078         * time/tzset.c (__tz_convert): Don't force testing for a change of
5079         TZ if not called from localtime.  But then also see whether the
5080         file changed, in case __use_tzfile is set.
5082         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
5083         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5084         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5085         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5086         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5087         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5088         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
5089         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5091 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
5093         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
5094         and admin selects to be able to replace the gai.conf file, lock
5095         data structures around the qsort call.
5097 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5099         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
5100         new memset.
5101         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
5102         too high for the improvements.  Implement bzero unconditionally for
5103         use in libc.
5105 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5106             Jakub Jelinek  <jakub@redhat.com>
5108         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
5109         even when time_t is 32-bit.
5110         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
5111         timezone data read by __tzfile_default.  Ensure __tzname[0] is
5112         always set after the search.
5114 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
5116         * time/tzfile.c (__tzfile_read): Help the compiler recognize
5117         unreachable code on 32-bit machines.
5119 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5121         [BZ #5184]
5122         * time/strftime_l.c: Include stdbool.h.
5123         (my_strftime): New wrapper, old function renamed to...
5124         (__strftime_internal): ... new function.  Add tzset_called
5125         argument, pass it down to recursive calls, don't call tzset ()
5126         if already true, set to true after call to tzset ().
5128 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
5130         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
5131         into account when copying TZ string.
5133 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5135         * time/tzfile.c (__tzfile_compute): For use_last case set i to
5136         num_transition rather than num_transitions - 1.
5138 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5140         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
5141         PIC indirect jump.
5143         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
5144         a local label rather than HIDDEN_JUMPTARGET.
5146 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
5148         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
5149         (init_cacheinfo): Initialize it.
5150         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
5151         Always define bzero.
5152         Remove non-glibc code.
5153         * sysdeps/x86_64/bzero.S: Make an empty file.
5155 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
5157         * sysdeps/x86_64/cacheinfo.c
5158         (__x86_64_preferred_memory_instruction): New.
5159         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5161         * sysdeps/x86_64/memset.S: Rewrite.
5163 2007-10-15  Roland McGrath  <roland@redhat.com>
5165         * po/libc.pot: Regenerated.
5167 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
5169         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
5170         pointers.
5172         [BZ #3425]
5173         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
5174         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
5175         address record to T_A/T_AAAA requests.
5177 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
5179         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
5181         * posix/glob.c: Add some branch prediction throughout.
5183         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
5184         read from nscd.
5186         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
5187         service_order.
5188         (rfc3484_sort): Make sure that even if qsort doesn't support
5189         stable sorting out sorting here is stable by comparing service_order.
5190         (getaddrinfo): Initialize service_order.
5191         * posix/tst-rfc3484.c (do_test): Adjust for addition of
5192         service_order field to sorting structure.
5193         * posix/tst-rfc3484-2.c (do_test): Likewise.
5195         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
5196         * time/tzset.c (tzset_internal): Break TZ string parsing out into
5197         __tzset_parse_tz and updating of daylight, timezone, tzname into
5198         update_vars.
5199         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
5200         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
5201         happens in __tz_compute.
5202         * time/tzfile.c (__tzfile_read): Also read TZ string.
5203         (find_transition): Fold into __tzfile_compute.
5204         (__tzfile_compute): For times beyond the last transition try to
5205         use the TZ string.
5206         * timezone/tst-timezone.c: Information in daylight and tzname does
5207         change for Asia/Tokyo timezone with more concrete information.
5208         Remove the test.
5210         * include/stdio.h: Add libc_hidden_proto for ftello.
5211         * libio/ftello.c: Add libc_hidden_def.
5213         [BZ #1140]
5214         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
5215         on the specified time and not the last entries in the file.  Move
5216         code to determine tzname[] to...
5217         (find_transition): ...here.  Add ugly guess for times before the
5218         first transition.
5220 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
5222         [BZ #3195]
5223         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
5224         no entry.
5225         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
5226         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5227         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5228         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
5230         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
5231         read mechanism when there are no group members and avoid no-op
5232         read syscall in this case.
5234         [BZ #3242]
5235         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
5236         (__readall): If reading failed due to EAGAIN error wait a bit
5237         and possibly try again.
5238         (__readvall): Likewise.
5240 2007-10-13  Bruno Haible  <bruno@clisp.org>
5242         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
5243         when we cannot recode the message.
5245 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
5247         [BZ #4359]
5248         * libio/__freading.c (__freading): Don't return true for
5249         write-only streams.  For read/write streams, check whether we
5250         performed a read operation already.
5251         * libio/Makefile (tests): Add tst-ext2.
5252         * libio/tst-ext2.c: New file.
5254 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
5256         * locale/programs/repertoire.c (repertoire_read): Always free
5257         memory for repertoire file name [Coverity CID 270].
5259         * elf/cache.c (save_aux_cache): Free memory allocated for
5260         temporary file name [Coverity CID 267].
5262 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
5264         * misc/Makefile (headers): Add bits/error.h.
5266 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
5268         * posix/fnmatch_loop.c: Take rule index returned as part of
5269         findidx return value into account when accessing weights.
5270         * posix/regcomp.c: Likewise.
5271         * posix/regexec.c: Likewise.
5273         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
5274         (skip_to): Fix problems with parameter of elifdef/elifndef.
5276 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
5278         * iconv/gconv_simple.c: Add some branch prediction.
5280 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
5282         * locale/programs/ld-collate.c (collate_read): If ignore_content
5283         and nowtok is tok_define, eat any tok_eol tokens.
5285 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
5287         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
5288         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
5290         * inet/netinet/in.h: Don't include bits/socket.h.
5291         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
5292         macro.
5293         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
5295 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
5297         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
5298         and tok_elifndef.
5299         * locale/programs/locfile-kw.gperf: Likewise.
5300         * locale/programs/ld-collate.c: Implement primitive preprocessor.
5302 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
5304         * stdio-common/printf-parse.h: Include string.h and wchar.h.
5305         (__find_specwc): Change into __extern_always_inline function.
5306         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
5307         (__parse_one_specmb): Remove ps argument.
5308         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
5309         Adjust __find_specmb and __parse_one_specmb callers.
5310         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
5311         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
5312         Removed.
5313         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
5314         caller.
5316 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
5318         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
5319         with some Pentium Ds.
5321 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
5323         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
5324         __read not read.
5325         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
5326         __write not write.
5328 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
5330         [BZ #181]
5331         * locale/C-time.c: Set week_1stday data to 19971201.
5332         * locale/programs/ld-time.c (time_finish): Default for
5333         first_workday is Monday.
5335         [BZ #2633]
5336         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
5338         [BZ #5103]
5339         * posix/glob.c (glob): Recognize patterns starting \/.
5340         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
5341         (main): Add test for pattern starting \/.
5343         * misc/error.h: Use __const instead of const.
5344         * misc/bits/error.h: Likewise.
5346 2007-10-07  Andreas Jaeger  <aj@suse.de>
5348         * include/bits/error.h: New file.
5350         * misc/bits/error.h (error_at_line): Fix prototype.
5352 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
5354         [BZ #3924]
5355         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
5356         more little bugs in creating the stack frame when pltexit has to
5357         be called.
5359         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
5360         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
5362         [BZ #4407]
5363         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
5364         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5365         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5366         * math/libm-test.inc: Add test for this case.
5368         [BZ #5010]
5369         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
5370         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
5371         map service succeeded.
5372         (svc_is_mapped): New function.
5373         (svc_unregister): Use it before trying to unmap service.
5375 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
5377         * timezone/zic.c: Update from tzcode2007h.
5379         [BZ #5063]
5380         * timezone/africa: Update from tzdata2007h.
5381         * timezone/antarctica: Likewise.
5382         * timezone/asia: Likewise.
5383         * timezone/australasia: Likewise.
5384         * timezone/europe: Likewise.
5385         * timezone/leapseconds: Likewise.
5386         * timezone/northamerica: Likewise.
5387         * timezone/southamerica: Likewise.
5388         * timzeone/zone.tab: Likewise.
5390         [BZ #5104]
5391         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
5393         [BZ #5113]
5394         * string/bits/string2.h (__strdup): Cast parameters to calloc to
5395         avoid warning with -Wconversion.
5396         (__strndup): Likewise.
5397         Half the patch by Christian Iseli <christian.iseli@licr.org>.
5399         [BZ #5112]
5400         * nscd/connections.c (restart): Don't resync if database is
5401         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
5403         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
5404         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
5406         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
5407         evetnfd_read, eventfd_write.
5408         * sysdeps/unix/sysv/linux/eventfd.c: New file.
5409         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
5410         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
5411         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
5412         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
5413         eventfd_write for GLIBC_2.7.
5415         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
5416         * sysdeps/unix/sysv/linux/signalfd.c: New file.
5417         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
5418         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
5420 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
5422         * stdlib/msort.c: Include stdint.h.
5423         (struct msort_param): New type.
5424         (msort_with_tmp): Use struct msort_param pointer for unchanging
5425         parameters.  Add optimized handling for several common sizes
5426         and indirect sorting mode.
5427         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
5428         sorting.
5429         Suggested by Belazougui Djamel .
5431         * stdlib/Makefile (tests): Add tst-qsort2.
5432         * stdlib/tst-qsort2.c: New test.
5434 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
5436         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
5437         for dup2 in case another thread races with the current one.  Retry
5438         in this case.
5440         * misc/error.h: Remove support for use outside of libc.  We have to
5441         include <features.h> now.  Include <bits/error.h> if possible.
5442         * misc/bits/error.h: New file.
5444 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
5446         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
5447         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
5448         __extern_always_inline functions unconditionally, drop macros.
5450         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
5451         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
5452         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
5454         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
5455         add __artificial__ attribute.
5457 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
5459         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
5460         backward to forward direction.
5462         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
5464         [BZ #645]
5465         * locale/programs/ld-collate.c (collate_finish): Compare against last
5466         used section which is known to have rules defined.
5467         (collate_read): After order_start, correctly record order of sections
5468         and queue sections up.
5470 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
5472         [BZ #5071]
5473         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
5474         the same number of pages.
5475         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
5477         * locale/programs/ld-collate.c (collate_read): After initial copy
5478         statement, continue in state 0.
5480         * include/stdio_ext.h (__fsetlocking): Define as macro.
5482 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
5484         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
5485         of section order.
5487         * po/pt_BR.po: Fix typo.
5489 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
5491         * iconvdata/Makefile (modules): Add ISO8859-9E.
5492         (distribute): Add iso8859-9e.c.
5493         (gen-8bit-gap-modules): Add iso8859-9e.
5494         * iconvdata/iso8859-9e.c: New file.
5495         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
5496         * iconvdata/TESTS: Likewise.
5497         * iconvdata/tst-tables.sh: Likewise.
5499         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5501         * locale/iso-639.def: Add several new entries.
5503 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
5505         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
5506         void * pointers instead of struct link_map **.
5507         (_dl_scope_free): Change argument type to void *.
5508         * include/link.h (struct link_map): Change type of l_reldeps
5509         to struct link_map_reldeps, move l_reldepsact into that
5510         struct too.
5511         * elf/dl-deps.c: Include atomic.h.
5512         (_dl_map_object_deps): Only change l->l_initfini when it is
5513         fully populated, use _dl_scope_free for freeing it.  Optimize
5514         removal of libs from reldeps by using l_reserved flag, when
5515         some removal is needed, allocate a new list instead of
5516         reallocating and free the old with _dl_scope_free.  Adjust
5517         for l_reldeps and l_reldepsact changes.
5518         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
5519         searching in l_initfini and l_reldeps without holding dl_load_lock.
5520         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
5521         l_reldepsact changes.
5522         * elf/dl-close.c (_dl_close_worker): Likewise.
5523         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
5525 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
5527         * iconvdata/Makefile (modules): Add KOI8-RU.
5528         (distribute): Add koi8-ru.c.
5529         (gen-8bit-gap-modules): Add koi8-ru.
5530         * iconvdata/koi8-ru.c: New file.
5531         * iconvdata/gconv-modules: Add entries for KOI8-RU.
5532         * iconvdata/TESTS: Likewise.
5533         * iconvdata/tst-tables.sh: Likewise.
5535         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5537 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
5539         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
5540         with __warning__/__error__ attributes.
5541         (__warnattr): Define.
5542         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
5543         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
5544         __warnattr.
5545         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
5546         of __*_chk if compile time detectable overflow is found.
5547         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
5548         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
5549         with __warnattr.
5550         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
5551         instead of __*_chk if compile time detectable overflow is found.
5552         (__gets_alias): Rename to...
5553         (__gets_warn): ... this.  Add __warnattr.
5554         (gets): Call __gets_warn instead of __gets_alias.
5555         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
5556         aliases with __warnattr.
5557         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
5558         time detectable overflow is found.
5559         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
5560         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
5561         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
5562         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
5563         __getdomainname_chk_warn): New aliases with __warnattr.
5564         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
5565         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
5566         __*_chk_warn instead of __*_chk if compile time detectable overflow
5567         is found.
5568         (__getgroups_chk): Rename argument to __listlen from listlen.
5569         (__getwd_alias): Rename to...
5570         (__getwd_warn): ... this.  Add __warnattr.
5571         (getwd): Call __getwd_warn instead of __getwd_alias.
5572         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
5573         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
5574         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
5575         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
5576         __wcsnrtombs_chk_warn): New aliases with __warnattr.
5577         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
5578         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
5579         compile time detectable overflow is found.
5580         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
5581         to use __*_chk or not.
5582         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
5583         in comparisons which function should be called and in __*_chk*
5584         arguments.  Call __*_chk_warn instead of __*_chk if compile time
5585         detectable overflow is found.
5586         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
5587         __*_chk argument.
5588         * debug/tst-chk1.c (do_test): Add a few more tests.
5590 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
5592         [BZ #5058]
5593         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
5594         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
5595         (_nl_unload_domain): Finalize conversions_lock.
5596         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
5597         handling table of known conversions.
5599 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
5601         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
5602         close_not_cancel_no_status instead of close.
5604 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
5606         [BZ #5028]
5607         * posix/regcomp.c (lookup_collation_sequence_value): Check that
5608         nrules != 0 for multibyte chars.
5610 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
5612         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
5613         Provide better error message in case the type is unknown.
5615         [BZ #4963]
5616         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
5617         * string/stratcliff.c: Make usable to test wide char functions.
5618         * wcsmbs/wcsatcliff.c: New file.
5619         * wcsmbs/Makefiel (tests): Add wcsatcliff.
5621         [BZ #4972]
5622         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
5623         (distribute): Add mac-centraleurope.c.
5624         (gen-8bit-gap-modules): Add mac-centraleurope.
5625         * iconvdata/mac-centraleurope.c: New file.
5626         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
5627         * iconvdata/TESTS: Likewise.
5628         * iconvdata/tst-tables.sh: Likewise.
5630         [BZ #5043]
5631         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
5633 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
5635         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
5636         from __x86_64_core_cache_size_half.
5637         (init_cacheinfo): Compute shared cache size for AMD processors with
5638         shared L3 correctly.
5639         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
5640         name change.
5641         Patch in large parts by Evandro Menezes.
5643 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
5645         * elf/dl-lookup.c (add_dependency): Handle failing memory
5646         allocation for dependency list.  Remove unnecessary check.
5648         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
5649         open/close when determining source addresses.
5651         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
5652         sha512-crypt, and sha512.
5653         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
5654         (distribute): Add sha256.h and sha512.h.
5655         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
5656         and call the appropriate code.
5657         * crypt/sha256-crypt.c: New file.
5658         * crypt/sha256.c: New file.
5659         * crypt/sha256.h: New file.
5660         * crypt/sha256c-test.c: New file.
5661         * crypt/sha256test.c: New file.
5662         * crypt/sha512-crypt.c: New file.
5663         * crypt/sha512.c: New file.
5664         * crypt/sha512.h: New file.
5665         * crypt/sha512c-test.c: New file.
5666         * crypt/sha512test.c: New file.
5668 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
5670         * misc/bits/syslog.h (syslog): Remove extraneous argument from
5671         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
5672         __syslog_chk.
5674 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
5676         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
5677         %as in fscanf format strings.
5679         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
5680         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
5681         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
5682         Likewise.
5683         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
5684         Likewise.
5686         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
5687         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
5688         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
5689         * elf/dl-sym.c (do_sym): Likewise.
5690         * include/link.h (struct link_map): Add l_serial field.
5691         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
5692         * elf/dl-lookup.c (add_dependency): Add flags argument.
5693         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
5694         flags, use THREAD_GSCOPE_RESET_FLAG before and
5695         THREAD_GSCOPE_SET_FLAG after
5696         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
5697         Don't dereference map until it has been found on some list.
5698         If map->l_serial changed, return -1.
5700 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
5702         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
5703         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
5704         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
5705         libc_hidden_proto.
5706         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
5707         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
5708         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
5709         add libc_hidden_proto.
5710         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5711         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5712         conformance requested.
5713         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
5714         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5715         conformance requested.
5716         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5717         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
5718         conformance requested.
5719         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
5720         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
5721         ISO C99 or POSIX conformance requested.
5722         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
5723         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
5724         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
5725         and __isoc99_vsscanf@@GLIBC_2.7.
5726         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
5727         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
5728         (tests): Add scanf14.
5729         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
5730         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
5731         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
5732         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
5733         CFLAGS-isoc99_scanf.c): Add $(exceptions).
5734         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
5735         from using internal headers.
5736         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
5737         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
5738         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
5739         and __isoc99_vswscanf@@GLIBC_2.7.
5740         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
5741         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
5742         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
5743         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
5744         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
5745         * stdio-common/isoc99_scanf.c: New file.
5746         * stdio-common/isoc99_vsscanf.c: New file.
5747         * stdio-common/isoc99_vscanf.c: New file.
5748         * stdio-common/isoc99_vfscanf.c: New file.
5749         * stdio-common/isoc99_fscanf.c: New file.
5750         * stdio-common/isoc99_sscanf.c: New file.
5751         * wcsmbs/isoc99_fwscanf.c: New file.
5752         * wcsmbs/isoc99_vswscanf.c: New file.
5753         * wcsmbs/isoc99_swscanf.c: New file.
5754         * wcsmbs/isoc99_wscanf.c: New file.
5755         * wcsmbs/isoc99_vwscanf.c: New file.
5756         * wcsmbs/isoc99_vfwscanf.c: New file.
5757         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
5758         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
5759         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
5760         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
5761         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
5762         * stdio-common/scanf14.c: New test.
5763         * stdio-common/scanf15.c: New test.
5764         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
5765         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
5766         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
5767         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
5768         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
5769         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
5770         __nldbl___isoc99_scanf@@GLIBC_2.7,
5771         __nldbl___isoc99_fscanf@@GLIBC_2.7,
5772         __nldbl___isoc99_sscanf@@GLIBC_2.7,
5773         __nldbl___isoc99_vscanf@@GLIBC_2.7,
5774         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
5775         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
5776         __nldbl___isoc99_wscanf@@GLIBC_2.7,
5777         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
5778         __nldbl___isoc99_swscanf@@GLIBC_2.7,
5779         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
5780         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
5781         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
5782         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
5783         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
5784         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
5785         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
5786         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
5787         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5788         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
5789         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
5790         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
5791         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
5792         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
5793         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
5794         functions.
5795         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
5796         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
5797         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
5798         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
5799         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
5800         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
5801         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
5802         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
5803         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
5804         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
5805         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
5806         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
5808         * stdio-common/Makefile (tests): Add scanf13.
5809         (scanf13-ENV): New.
5810         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
5811         m modifier followed by l.
5812         (STRING_ARG): Add width argument.
5813         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
5814         <case L_('C')>: Handle %mlc and %mC.
5815         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
5816         arguments.
5817         * stdio-common/scanf13.c: New test.
5819         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
5820         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
5822 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
5824         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
5825         type and __THROW marker of splice, vmsplice, and tee.
5826         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5827         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5828         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5829         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5830         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5831         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5832         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5833         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
5834         as cancellation points.
5836 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
5838         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
5839         parse more than three parts of the version number.
5841 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
5843         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
5844         modifier.  Patch by Jakub Jelinek.
5846 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
5848         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
5849         call_fallocate in misc subdir.
5850         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
5851         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
5852         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
5853         instead of __fallocate64.
5854         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
5856 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
5858         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
5859         * rt/Makefile (headers): Add bits/mqueue2.h.
5860         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
5861         optimizing with GCC and __va_arg_pack_len is defined.
5862         * rt/bits/mqueue2.h: New file.
5863         * rt/mq_open.c (__mq_open): Renamed from mq_open.
5864         (mq_open): New strong_alias.
5865         (__mq_open_2): New function.
5866         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
5867         (mq_open): New strong_alias.
5868         (__mq_open_2): New function.
5869         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
5870         * Versions.def (librt): Add GLIBC_2.7 version.
5871         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
5872         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
5874         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
5875         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
5876         is defined rather than when not C++.
5877         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
5878         __openat64_alias): New redirects.
5879         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
5880         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
5881         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
5882         (open, open64, openat, openat64): Rewrite as __extern_always_inline
5883         functions instead of function-like macros.
5885 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
5887         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
5888         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
5889         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
5891 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
5893         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
5894         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
5896 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
5898         * inet/tst-network.c: Increment ERRORS for failing tests.
5900 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
5902         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
5903         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
5904         implement as __extern_always_inline function.
5905         (vsyslog): Define as __extern_always_inline function unconditionally.
5906         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
5907         When __va_arg_pack is defined, implement as __extern_always_inline
5908         functions.
5909         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5910         __extern_always_inline functions unconditionally.
5911         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
5912         bits/stdio2.h will be included.
5913         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
5914         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
5915         implement as __extern_always_inline functions.
5916         (vswprintf, vwprintf, vfwprintf): Define as
5917         __extern_always_inline functions unconditionally.
5918         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
5920 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
5922         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
5923         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
5924         attribute.
5925         * include/features.h (__USE_EXTERN_INLINES): Define only when
5926         __extern_inline is defined.
5927         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
5928         is defined instead of when not __cplusplus.
5929         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
5930         is defined instead of when not __cplusplus.
5931         * socket/sys/socket.h: Include bits/socket2.h when
5932         __extern_always_inline is defined instead of when not __cplusplus.
5933         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
5934         is defined instead of when not __cplusplus.
5935         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
5936         is defined instead of when not __cplusplus.
5937         * string/string.h: Include bits/string3.h when __extern_always_inline
5938         is defined instead of when not __cplusplus.
5939         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
5940         is defined instead of when not __cplusplus.
5941         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
5942         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
5943         is not defined.
5944         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
5945         defined __extern_always_inline instead of !defined __cplusplus.
5946         * libio/bits/stdio-ldbl.h: Likewise.
5947         * wcsmbs/bits/wchar-ldbl.h: Likewise.
5948         * misc/bits/syslog.h (syslog): Don't define for C++.
5949         (vsyslog): Use __extern_always_inline function for C++ instead of
5950         a macro.
5951         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
5952         whenever that macro is defined.
5953         (vprintf): Don't provide the inline for C++.
5954         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
5955         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
5956         define the macros for C++.
5957         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5958         __extern_always_inline functions for C++.
5959         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
5960         stat64, lstat64, fstat64, fstatat64): Don't define if not
5961         __USE_EXTERN_INLINES.
5962         * wcsmbs/bits/wchar2.h: Fix #error message.
5963         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
5964         (vswprintf, vwprintf, vfwprintf): Define using
5965         __extern_always_inline functions for C++.
5966         * string/bits/string3.h: Don't #undef macros if __cplusplus.
5967         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
5968         strncpy, strcat, strncat): Define as __extern_always_inline
5969         functions instead of macros for C++.
5970         * math/bits/cmathcalls.h: Guard __extern_inline routines with
5971         defined __extern_inline.
5972         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
5973         to __extern_inline whenever that macro is defined.
5974         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5975         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5976         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
5977         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
5978         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5979         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5980         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5981         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5982         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
5983         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
5984         prototypes.  Only provide __extern_inline routines if
5985         __USE_EXTERN_INLINES.
5986         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
5987         tests.
5988         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
5989         For now avoid some *printf tests in C++.  Skip all testing
5990         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
5991         is not.
5992         * debug/tst-chk4.cc: New file.
5993         * debug/tst-chk5.cc: New file.
5994         * debug/tst-chk6.cc: New file.
5995         * debug/tst-lfschk4.cc: New file.
5996         * debug/tst-lfschk5.cc: New file.
5997         * debug/tst-lfschk6.cc: New file.
5998         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
5999         prototypes in C++.
6000         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
6001         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
6002         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
6004 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
6006         * po/cs.po: Update from translation team.
6008 2007-09-11  Roland McGrath  <roland@redhat.com>
6010         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
6011         compiling.
6013 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6015         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
6017 2007-09-05  Roland McGrath  <roland@redhat.com>
6019         * manual/signal.texi (Signaling Another Process): Typo fix.
6020         From Karl Berry <karl@freefriends.org>.
6022 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
6024         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
6025         zero if not defined.
6026         (make_request): Recognize optimistic addresses and treat them like
6027         deprecated addresses.
6028         Reported by Neil Horman <nhorman@redhat.com>.
6030 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
6032         * nscd/connections.c (send_ro_fd): Also transfer file size.
6033         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
6034         file size don't call fstat.
6036         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
6037         ahead and map the file.  This should always be correct and we can
6038         catch problems later.
6040 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
6042         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
6043         prototypes.
6044         (__fread_alias, __fread_unlocked_alias): New aliases.
6045         (fread): New extern inline.
6046         (fread_unlocked): Likewise.  Undef macro before definition of
6047         the inline function.
6048         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
6049         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
6050         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
6051         and __fread_unlocked_chk@@GLIBC_2.7.
6052         * debug/fread_chk.c: New file.
6053         * debug/fread_u_chk.c: New file.
6054         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
6056 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
6058         * sysdeps/unix/sysv/linux/syscalls.list
6059         (personality): Change caller to EXTRA.
6061 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
6063         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
6064         to keep gcc quiet.
6065         * iconvdata/iso-2022-cn.c (BODY): Likewise.
6067         * locale/programs/ld-collate.c (collate_output): Avoid warning if
6068         NDEBUG is defined.
6070         * Makerules: Use -p option with mkdir.
6072         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
6073         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
6074         (_xdr_directory_obj): Likewise.
6075         (xdr_entry_obj): Likewise.
6076         (xdr_group_obj): Likewise.
6077         (xdr_link_obj): Likewise.
6078         (xdr_table_obj): Likewise.
6079         (_xdr_nis_result): Likewise.
6080         (_xdr_ns_request): Likewise.
6081         (_xdr_ib_request): Likewise.
6082         (_xdr_nis_taglist): Likewise.
6083         (xdr_cback_data): Likewise.
6084         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
6085         (xdr_ypresp_maplist): Likewise.
6087         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
6089         * posix/regex_internal.h: Prevent some declarations and definitions
6090         to be seen when used in tests.
6092         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
6093         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
6095         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
6097         * config.make.in (datarootdir): Add to shut up configure.
6099         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
6100         associativity for fully-associative caches.
6102         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
6103         requests.  Fill on more associativity values for L2.
6104         Patch mostly by Evandro Menezes.
6106 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
6108         * sysdeps/unix/sysv/linux/x86_64/init-first.c
6109         (_libc_vdso_platform_setup): Avoid using exported variable by using
6110         alias.
6112         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
6114         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
6115         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
6116         defined.
6118 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
6120         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
6121         align stack for call if pltexit is to be used.
6123         [BZ #3924]
6124         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
6125         align for function call in case pltexit has to be called later.
6127         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
6128         implicit atomic operation when storing function pointer.
6129         (_dl_runtime_profile): Likewise.
6131 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
6133         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
6134         NIS_NOTFOUND.
6136 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
6138         [BZ #4566]
6139         * string/strtok.c: Fix typo in comment.
6141         [BZ #4582]
6142         * debug/segfault.c: Fix typos in comments.
6144         [BZ #4588]
6145         * stdio-common/tempnam.c: Fix comment, it is not checked that
6146         TMPDIR points to a writable directory.
6148         [BZ #4726]
6149         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
6150         memory allocated for the name server address.
6152         [BZ #4946]
6153         * nscd/connections.c (handle_request): Using sendfile always
6154         requires that mmap is used for the database.
6155         Patch by Petr Baudis <pasky@suse.cz>.
6157         [BZ #4905]
6158         * nscd/hstcache.c (cache_addhst): When reloading an entry which
6159         suddenly has two or more addresses, ignore it and remove the old
6160         entry.
6162         [BZ #4814]
6163         * resolv/res_hconf.c: Prepare for compiling outside libc.
6164         * nscd/res_hconf.c: New file.
6165         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
6166         the new file.
6167         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
6168         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
6170         * nscd/hstcache.c (cache_addhst): Minimal optimization.
6172         [BZ #4925]
6173         * debug/pcprofiledump.c: Turn on internationalization by calling
6174         setlocale.  Patch mostly by Benno Schulenberg.
6176         [BZ #4936]
6177         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
6178         the state.
6179         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
6180         * iconvdata/bug-iconv5.c: New file.
6182 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
6184         [BZ #4896]
6185         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
6186         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
6187         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
6188         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
6189         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
6190         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
6191         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
6192         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
6194 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
6196         [BZ #4937]
6197         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
6198         lookup loop.  Suggested by John Reiser.
6200 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
6202         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
6204 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
6206         * csu/libc-start.c: Don't handle VDSO_SETUP here.
6207         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
6208         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
6209         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
6210         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
6211         to...
6212         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
6214 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
6216         * po/nl.po: Update from translation team.
6218 2007-08-16  Andreas Jaeger  <aj@suse.de>
6220         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
6221         Reported by Peter Festner <peter.festner@ewetel.net>.
6223 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
6225         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
6227 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
6229         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
6230         to check for undefined symbols.
6232         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
6233         If the syscall fails, set errno to the actual returned error number
6234         rather than EINVAL.
6235         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
6236         arguments are incorrect, set errno to EINVAL, if the syscall
6237         fails, set errno to the actual returned error number.
6239         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
6240         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
6242         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
6243         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
6244         file.
6245         (ASI_PNF, ASI_BLK_P): Don't define.
6246         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
6247         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
6248         file.
6249         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
6250         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
6251         file.
6253 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
6255         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
6256         FE_UNDERFLOW on Niagara CPUs.
6258         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
6259         exceptions.
6261 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
6263         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
6264         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
6265         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
6266         flush should be used or not inside of the function.
6267         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
6269         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
6270         __thread_start): Use HIDDEN_JUMPTARGET.
6271         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
6272         __thread_start): Likewise.
6273         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
6275         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
6276         Add libc_hidden_proto.
6277         (STRTOF): Add libc_hidden_proto.
6278         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
6279         (strtold_l, wcstold_l): Use them as second argument for
6280         long_double_symbol.
6282 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
6284         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
6286 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6288         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
6290 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
6292         * po/bg.po: New file.  From the translation team.
6294 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
6296         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
6297         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
6298         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
6299         when each feature was introduced.
6301         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
6302         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
6303         (CHECK_HASH): New macro.
6304         (PREPARE_VERSION): Use it.
6306         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
6307         prototype if not __ASSUME_PSELECT.
6308         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
6309         prototype if not __ASSUME_PPOLL.
6311         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
6313         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
6314         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
6315         is defined.
6317 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
6319         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6320         (_libc_vdso_platform_setup): If vDSO is not available point
6321         __vdso_gettimeofday to the vsyscall.
6322         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
6323         __vdso_gettimeofday instead of vsyscall.
6325 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
6327         * nscd/servicescache.c: Include kernel-features.h.
6328         * nscd/gai.c: Likewise.
6329         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
6330         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
6331         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
6332         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
6333         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
6334         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
6335         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
6336         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
6337         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6339 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
6341         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
6342         and _dl_get_origin defines anymore.
6344         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
6345         Build fix for systems which might lack POSIX timer support.
6347         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6348         (_libc_vdso_platform_setup): Mangle function pointers before storing
6349         them.
6350         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
6351         Demangle vdso pointer before use.
6352         (INTERNAL_VSYSCALL): Likewise.
6354         * elf/cache.c (primes): Mark as const.
6355         Noted by Roland McGrath.
6357 2007-08-01  Andreas Jaeger  <aj@suse.de>
6358             Jakub Jelinek  <jakub@redhat.com>
6360         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
6361         (options): Add option.
6362         (parse_opt): Handle option.
6363         (manual_link): Adjust process_file caller.  Call implicit_soname.
6364         (search_dir): Formatting.  Use and populate auxiliary cache.
6365         (main): Load and save auxiliary cache.
6366         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
6367         stat64 from fstat64 to caller.
6368         (implicit_soname): New function.
6369         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
6370         leave *soname as NULL.
6371         * elf/cache.c: Include libgen.h.
6372         (print_entry, print_cache, compare, save_cache, add_to_cache):
6373         Formatting and cleanups.
6374         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
6375         aux_cache_file): New structures.
6376         (AUX_CACHEMAGIC): Define.
6377         (primes): New array.
6378         (aux_hash_size, aux_hash): New variables.
6379         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
6380         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
6381         load_aux_cache, save_aux_cache): New functions.
6382         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
6383         (init_aux_cache, search_aux_cache, add_to_aux_cache,
6384         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
6385         (process_file): Adjust prototype.
6387 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
6389         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
6390         with __need_size_t.
6392 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
6394         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
6395         r_found_version structure as second parameter.
6396         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
6397         (_dl_vdso_vsym): Change type of second parameter accordingly.
6398         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
6399         (_libc_vdso_platform_setup): Adjust.
6400         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6401         (_libc_vdso_platform_setup): Likewise.
6403         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
6404         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
6405         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
6406         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
6407         * csu/libc-start.c: Pretty printing.
6408         Use VDSO_SETUP if defined.
6409         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
6410         and let generic code call into _libc_vdso_platform_setup.
6411         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
6412         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
6413         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
6414         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
6415         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
6416         for GLIBC_PRIVATE.
6417         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
6418         (sysdep_rountines): Add dl-vdso.
6420         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
6421         of routines.
6423         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
6424         attribute_hidden to __vdso_gettimeofday prototype.
6426 2007-08-12  Roland McGrath  <roland@redhat.com>
6428         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
6429         From: Karl Berry <karl@freefriends.org>.
6431 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
6433         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
6434         an atime update for the files we read.
6436 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
6438         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
6440         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
6441         instead of mkstemp.
6443         * misc/Makefile (routines): Add mkostemp and mkostemp64.
6444         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
6445         * misc/mkostemp.c: New file.
6446         * misc/mkostemp64.c: New file.
6447         * stdlib/stdlib.h: Declare the new functions.
6448         * sysdeps/posix/tempname.c: Add new parameter which is added to
6449         the flags for open.  Remove __GT_BIGFILE handling.
6450         * stdio-common/tempname.c: Likewise.
6451         * include/stdio.h: Adjust __gen_tempname prototype.
6452         Renumber __GT_* constants.
6453         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
6454         * misc/mkdtemp.c: Likewise.
6455         * misc/mkstemp.c: Likewise.
6456         * misc/mkstemp64.c: Likewise.
6457         * misc/mktemp.c: Likewise.
6458         * stdio-common/tempnam.c: Likewise.
6459         * stdio-common/tmpfile.c: Likewise.
6460         * stdio-common/tmpfile64.c: Likewise.
6461         * stdio-common/tmpnam.c: Likewise.
6462         * stdio-common/tmpnam_r.c: Likewise.
6464 2007-08-10  Roland McGrath  <roland@frob.com>
6466         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
6467         New macros.
6468         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
6469         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6471 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
6473         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
6474         possible.
6475         * nss/nss_files/files-alias.c (internal_setent): Likewise.
6476         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
6477         * nss/nss_files/files-have_o_cloexec.c: New file.
6479         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
6480         available.
6482 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
6484         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
6485         ___new_wcstold_l): New weak aliases.
6486         (strtold_l, wcstold_l): Use them as second argument for
6487         long_double_symbol.
6489 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
6491         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
6492         register in test for error.
6494         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
6495         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
6497         * po/sv.po: Update from translation team.
6499 2007-08-06  Roland McGrath  <roland@redhat.com>
6501         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
6502         Remove __strto*_l inlines.
6503         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
6504         * stdlib/strtod.c: Add libc_hidden_def.
6505         * stdlib/strtod_l.c: Likewise.
6506         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
6507         for __new_strtold and __new_wcstold.
6508         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
6509         __STRTOF, STRTOF.
6510         * stdlib/strtol.c: Add libc_hidden_def.
6511         * stdlib/strtol_l.c: Likewise.
6512         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
6513         strtoq.
6515         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
6517         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
6518         * scripts/data/localplt-generic.data: ... here.
6519         * elf/Makefile (check-data): Get generic file if no other.
6520         ($(objpfx)check-localplt.out): Make target unconditional.
6522         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
6523         Use ElfW(Nhdr).
6525 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
6527         * po/zh_CN.po: Updated translation from translation team.
6529 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
6531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
6532         Don't use CGOTSETUP and CGOTRESTORE macros.
6534 2007-08-04  Roland McGrath  <roland@redhat.com>
6536         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
6538 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
6540         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
6541         __extension__ around the whole statement expression.
6543 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
6545         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
6546         elements during initialization.
6548         * po/pl.po: Updated translation from translation team.
6549         * po/tr.po: Likewise.
6550         * po/nl.po: Likewise.
6552 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
6554         * rt/aio.h: Add __nonnull attributes.
6556 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
6558         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
6559         * stdlib/Makefile (tests): Add tst-strtod5.
6560         (tst-strtod5-ENV): New.
6561         * stdlib/tst-strtod5.c: New file.
6563         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
6564         failed.
6565         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
6566         on failure.
6568         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
6569         allocated.
6571 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
6573         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
6574         numbers.
6576 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
6578         * io/Makefile (aux): Add have_o_cloexec.
6579         * include/fcntl.h: Declare __have_o_cloexec.
6580         * io/have_o_cloexec.c: New file.
6581         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
6582         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
6583         fcntl call if not necessary.
6584         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
6585         of local variable.
6587         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
6588         Avoid memset, add explicit initialization.
6589         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
6590         to the end and change into zero-sized array.
6591         Move lock member to fill a hole on 64-bit platforms.
6593         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
6594         inline functions.
6595         * include/stdlib.h: Add __strto*_internal prototypes here.
6596         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
6597         inline functions.
6598         * include/wchar.h: Add __wcsto*_internal prototypes.
6599         * sysdeps/generic/inttypes.h: No need to protect the declaration
6600         of the __strto*_internal and __wcsto*_internal members here.
6602         * rt/mqueue.h: Change const to __const and add nonnull attributes.
6604 2007-08-02  Roland McGrath  <roland@redhat.com>
6606         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
6607         $(inst_bindir)/getconf if possible.
6609         * posix/Makefile ($(objpfx)getconf.speclist): New target.
6610         (generated): Add it.
6611         ($(inst_libexecdir)/getconf): Use it.
6613 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
6615         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
6616         /proc is faster and sufficient.  /sys is still needed for
6617         __get_nprocs_conf.
6619 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
6621         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
6622         syscall as __fallocate64.
6623         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
6624         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
6626 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
6628         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
6629         value.
6631         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
6632         if off_t is different rank from size_t.
6634         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
6635         uw_frame_state_for): Avoid type punning warnings.
6636         * sysdeps/generic/unwind-dw2-fde-glibc.c
6637         (_Unwind_IteratePhdrCallback): Likewise.
6638         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
6639         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
6640         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
6641         pointers.
6643 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
6645         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
6646         total processors using sysfs.
6647         (__get_nprocs): Use sysfs to determine which processors are online.
6649 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
6651         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
6652         syscall arguments count.
6654         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
6656 2007-07-30  Roland McGrath  <roland@redhat.com>
6658         * manual/libc.texinfo: Update copyrights, formatting magic, and
6659         @dircategory.  From Karl Berry <karl@freefriends.org>.
6661 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
6663         [BZ #4860]
6664         * io/Makefile (headers): Add bits/fcntl2.h.
6666         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
6667         using gcc builtin.
6668         (__CPU_EQUAL_S): Likewise.
6670         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
6671         (tests): Add tst-cpuset.
6672         * posix/sched_cpualloc.c: New file.
6673         * posix/sched_cpufree.c: New file.
6674         * posix/tst-cpuset.c: New file.
6675         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
6676         GLIBC_2.7.
6677         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
6678         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
6679         macros.  Define CPU_*_S macros.
6681 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
6683         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
6684         entry.
6686         [BZ #4858]
6687         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
6688         #.0g and value rounded to 1.0.
6689         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
6691 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
6693         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
6694         for int_frac_digits and frac_digits.
6696         * login/logout.c (logout): Avoid aliasing violation.
6697         * login/logwtmp.c (logwtmp): Likewise.
6699         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
6701         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
6702         to avoid warning.
6703         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
6704         warning.
6705         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
6706         warning.
6707         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
6708         to avoid warnings.
6710         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
6711         void **.
6712         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
6714         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
6715         char * to avoid warning.
6716         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
6718         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
6720         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
6721         allocate_arrays): Cast second argument to charmap_find_symbol
6722         to char * to avoid warnings.
6724         * locale/programs/repertoire.c (repertoire_new_char): Change
6725         from_nr, to_nr and cnt to unsigned long, adjust printf format
6726         string.
6728         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
6729         Cast second argument to new_element to char * to avoid warnings.
6731         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
6733         * intl/gettextP.h (struct loaded_domain): Change plural to const
6734         struct expression *.
6735         * intl/plural-eval.c (plural_eval): Change first argument to
6736         const struct expression *.
6737         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
6738         argument to const struct expression **.
6739         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
6740         prototypes.
6741         * intl/loadmsgcat (_nl_unload_domain): Cast away const
6742         in call to __gettext_free_exp.
6744         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
6745         unitialized wstring/wpattern var warnings.
6747         * posix/runtests.c (struct a_test): Make data field const char *.
6749         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
6750         vars if not LDBL_MANT_DIG >= 106.
6752         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
6754         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
6755         __find_specmb to avoid warning.
6757         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
6759         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
6760         to avoid warnings.
6762         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
6763         initializer.
6765         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
6766         tv var when it will be actually used.
6768         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
6769         to avoid warnings.
6771         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
6772         char array resp. pointer.
6773         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
6774         char array.
6775         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
6776         to const unsigned char **.
6777         (ucs4_to_cns11643): Change second argument to unsigned char *.
6778         * iconvdata/euc-tw.c (BODY): Change endp type to
6779         const unsigned char *.
6780         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
6781         to unsigned char *.
6782         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
6783         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
6784         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
6785         types to unsigned char pointers/arrays instead of char.
6786         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
6787         to unsigned char *.
6788         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
6789         * iconvdata/jis0212.h: Include assert.h.
6790         (ucs4_to_jisx0212): Change second argument to unsigned char *.
6791         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
6792         of trying to handle that.
6793         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
6794         shut up a warning.
6795         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
6796         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
6797         two dimensional const unsigned char arrays.
6798         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
6799         Initialize endp to inptr to shut up a warning.
6801 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
6803         [BZ #4772]
6804         * time/strptime_l.c (__strptime_internal): Silently ignore
6805         strftime modifiers and field width in recursive calls.
6807         * include/time.h (enum ptime_locale_status): Remove.
6808         (__strptime_internal): Remove decided and era_cnt arguments,
6809         add statep argument.
6810         * time/strptime_l.c (__strptime_internal): Remove decided
6811         and era_cnt arguments, add statep argument.  Don't recompute
6812         any fields in recursive calls, only update caller's tm
6813         and state, if recursive call fails, don't change tm nor
6814         any state.
6815         (get_alt_number): Adjust.
6816         (recursive): Adjust caller.
6817         (strptime): Likewise.
6818         * time/strptime.c (strptime): Likewise.
6820 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
6822         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
6823         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
6824         if from and to charsets are the same.
6825         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
6826         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
6827         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
6829 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
6831         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
6832         Don't define wint_t when __need_mbstate_t unless it
6833         is necessary.
6834         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
6835         in the typedef if possible.
6836         * wctype/wctype.h (wint_t): Define by including
6837         wchar.h with __need_wint_t instead of including stddef.h
6838         with __need_wint_t and as fallback definining it ourselves.
6839         * iconv/gconv.h (__need_wint_t): Define before including
6840         wchar.h.
6841         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
6842         or _GLIBCPP_USE_WCHAR_T.
6843         (__need_wchar_t): Don't define
6844         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6845         (__need_wint_t): Don't define before including stddef.h,
6846         define before including wchar.h only if _LIBC or
6847         _GLIBCPP_USE_WCHAR_T.
6848         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6849         * sysdeps/mach/hurd/_G_config.h: Likewise.
6850         * sysdeps/generic/_G_config.h: Likewise.
6851         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
6852         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
6853         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
6854         if _LIBC or _GLIBCPP_USE_WCHAR_T.
6856 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
6858         * sysdeps/posix/posix_fallocate64.c: Undefine
6859         __posix_fallocate64_l64 before alias handling.
6860         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
6861         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
6862         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
6863         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
6865         * io/tst-posix_fallocate.c: Include <fcntl.h>.
6867 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
6869         * locale/programs/ld-collate.c (atwc): New variable.
6870         (add_to_tablewc): New toplevel function, moved from collate_output.
6871         (collate_output): Remove add_to_tablewc nested function.
6873         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
6874         (name_insert): New function.
6875         (write_output): Remove hash_table and hash_size vars and name_insert
6876         nested function.
6878 2007-07-24  Roland McGrath  <roland@redhat.com>
6880         * Makerules (install-others-programs-nosubdir): New target.
6881         (install-no-libc.a-nosubdir): Depend on it.
6883         * iconv/Makefile (install-others-programs): Set this instead of
6884         install-others.
6885         * login/Makefile (install-others-programs): Likewise.
6886         * posix/Makefile (install-others-programs): Likewise.
6888         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
6889         dependencies.
6891 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
6893         * io/Makefile (tests): Add tst-posix_fallocate.
6894         * io/tst-posix_fallocate.c: New file.
6896         * sysdeps/unix/sysv/linux/kernel-features.h: Define
6897         __ASSUME_FALLOCATE.
6899 2007-07-22  Roland McGrath  <roland@frob.com>
6901         * hurd/getdport.c: Add missing copyright year update.
6903         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
6904         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
6906 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
6908         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
6910         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
6911         O_CLOEXEC is needed.
6912         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
6913         Avoid additional fcntl to set O_CLOEXEC if not needed.
6914         * nis/nss_compat/compat-initgroups.c: Likewise.
6915         * nis/nss_compat/compat-pwd.c: Likewise.
6916         * nis/nss_compat/compat-spwd.c: Likewise.
6918 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6920         [BZ #3665]
6921         * manual/errno.texi: Change ECANCELED value to 119.
6923         [BZ #4610]
6924         * mach/lock-intern.h: Include <sys/cdefs.h>.
6926         [BZ #4178]
6927         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
6928         reading A.
6930         [BZ #4126]
6931         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
6932         to __sigsuspend.
6934         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
6936 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
6938         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
6939         `__ASSEMBLER__'.
6940         * sysdeps/mach/hurd/i386/tls.h: Likewise.
6942 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
6944         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
6945         descriptor received from nscd.
6947         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
6949         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
6950         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6951         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6952         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6953         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6954         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6956 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
6958         [BZ #4816]
6959         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
6961         [BZ #4813]
6962         * login/forkpty.c (forkpty): Close master and slave fds on
6963         fork failure.  Patch by
6964         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
6966 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
6968         * include/features.h (__USE_ISOC95): New define.
6969         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
6970         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
6971         for -std=iso9899:199409.
6972         * CONFORMANCE: Remove comments about unsupported AMD1.
6974 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
6976         * sysdeps/ia64/sched_cpucount.c: New file.
6977         * sysdeps/powerpc/sched_cpucount.c: New file.
6979         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
6980         __BEGIN_DECLS/__END_DECLS around the prototype.
6981         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
6982         pointer to const cpu_set_t.
6984         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
6985         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
6986         __need_size_t and include stddef.h.
6987         * sysvipc/sys/msg.h: Likewise.
6988         * posix/sched.h: Likewise.
6989         * hurd/hurd/signal.h (__need_size_t): Define.
6991         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
6992         neither does signal.h in pedantic ISO C namespaces.  stdio.h
6993         no longer defines wint_t or wchar_t.
6995         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
6996         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
6997         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
6998         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
6999         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
7000         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
7001         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
7002         * debug/printf_chk.c (__printf_chk): Likewise.
7003         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
7004         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
7006         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
7007         Define.
7009         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
7010         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
7012 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
7014         [BZ #4792]
7015         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
7016         * malloc/malloc.h (realloc): Likewise.
7018         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
7019         if one of proc_file_chain streams has that fileno.
7020         * stdio-common/Makefile (tests): Add tst-popen2.
7021         * stdio-common/tst-popen2.c: New test.
7023 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
7025         * elf/ldconfig.c: Allow GPLv2 or any later version.
7026         * elf/readlib.c: Likewise.
7027         * elf/chroot_canon.c: Likewise.
7028         * elf/cache.c: Likewise.
7029         * nscd/mem.c: Likewise.
7030         * nscd/getpwuid_r.c: Likewise.
7031         * nscd/grpcache.c: Likewise.
7032         * nscd/aicache.c: Likewise.
7033         * nscd/getsrvbynm_r.c: Likewise.
7034         * nscd/nscd.c: Likewise.
7035         * nscd/servicescache.c: Likewise.
7036         * nscd/getsrvbypt_r.c: Likewise.
7037         * nscd/initgrcache.c: Likewise.
7038         * nscd/gethstbyad_r.c: Likewise.
7039         * nscd/gethstbynm2_r.c: Likewise.
7040         * nscd/getgrnam_r.c: Likewise.
7041         * nscd/nscd_setup_thread.c: Likewise.
7042         * nscd/getpwnam_r.c: Likewise.
7043         * nscd/gai.c: Likewise.
7044         * nscd/connections.c: Likewise.
7045         * nscd/dbg_log.c: Likewise.
7046         * nscd/cache.c: Likewise.
7047         * nscd/hstcache.c: Likewise.
7048         * nscd/nscd_conf.c: Likewise.
7049         * nscd/getgrgid_r.c: Likewise.
7050         * nscd/pwdcache.c: Likewise.
7051         * catgets/gencat.c: Likewise.
7052         * locale/programs/linereader.h: Likewise.
7053         * locale/programs/locarchive.c: Likewise.
7054         * locale/programs/ld-paper.c: Likewise.
7055         * locale/programs/locfile-kw.h: Likewise.
7056         * locale/programs/ld-address.c: Likewise.
7057         * locale/programs/xmalloc.c: Likewise.
7058         * locale/programs/ld-time.c: Likewise.
7059         * locale/programs/localedef.c: Likewise.
7060         * locale/programs/simple-hash.c: Likewise.
7061         * locale/programs/xstrdup.c: Likewise.
7062         * locale/programs/ld-numeric.c: Likewise.
7063         * locale/programs/locfile-kw.gperf: Likewise.
7064         * locale/programs/ld-collate.c: Likewise.
7065         * locale/programs/charmap-kw.gperf: Likewise.
7066         * locale/programs/charmap.h: Likewise.
7067         * locale/programs/charmap-kw.h: Likewise.
7068         * locale/programs/config.h: Likewise.
7069         * locale/programs/locfile.c: Likewise.
7070         * locale/programs/ld-ctype.c: Likewise.
7071         * locale/programs/charmap.c: Likewise.
7072         * locale/programs/ld-messages.c: Likewise.
7073         * locale/programs/repertoire.h: Likewise.
7074         * locale/programs/locale.c: Likewise.
7075         * locale/programs/ld-name.c: Likewise.
7076         * locale/programs/linereader.c: Likewise.
7077         * locale/programs/locfile.h: Likewise.
7078         * locale/programs/3level.h: Likewise.
7079         * locale/programs/ld-monetary.c: Likewise.
7080         * locale/programs/ld-measurement.c: Likewise.
7081         * locale/programs/charmap-dir.c: Likewise.
7082         * locale/programs/ld-identification.c: Likewise.
7083         * locale/programs/localedef.h: Likewise.
7084         * locale/programs/charmap-dir.h: Likewise.
7085         * locale/programs/repertoire.c: Likewise.
7086         * locale/programs/simple-hash.h: Likewise.
7087         * locale/programs/ld-telephone.c: Likewise.
7088         * locale/programs/locale-spec.c: Likewise.
7089         * locale/programs/locfile-token.h: Likewise.
7090         * posix/getconf.c: Likewise.
7091         * iconv/dummy-repertoire.c: Likewise.
7092         * iconv/iconv_charmap.c: Likewise.
7093         * iconv/iconvconfig.c: Likewise.
7094         * iconv/iconv_prog.c: Likewise.
7095         * malloc/memusagestat.c: Likewise.
7096         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
7098 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7100         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
7101         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
7102         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
7103         check for the first argument.
7105 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
7107         [BZ #4775]
7108         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
7109         (__tgmath_real_type): Fix if expr is const int or other const
7110         qualified integral type.
7111         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
7112         expressions and handle const qualified arguments.
7113         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
7114         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
7115         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
7116         statement expressions.
7117         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
7118         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
7119         (__TGMATH_UNARY_IMAG): Define.
7120         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
7121         * math/Makefile (tests): Add test-tgmath2.
7122         (CFLAGS-test-tgmath2.c): Add.
7123         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
7124         count_cfloat, count_cldouble): New variables.
7125         (NCCALLS): Define.
7126         (main): Check number of complex calls as well.
7127         (F(compile_test)): Add complex tests and tests with const qualified
7128         arguments.
7129         (y, z, ccount): Define.
7130         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
7131         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
7132         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
7133         F(cproj)): New functions.
7134         * math/test-tgmath2.c: New test.
7136 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
7138         [BZ #4776]
7139         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
7140         RPATH etc. as "/" rather than "", don't segfault on empty paths,
7141         instead output ".".
7142         * dlfcn/Makefile (distribute): Add glreflib3.c.
7143         (module-names): Add glreflib3.
7144         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
7145         glreflib1.so.
7146         (LDFLAGS_glreflib3.so): New.
7147         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
7148         glreflib1.so.
7149         * dlfcn/glreflib3.c: New file.
7151         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
7152         returned -1, return NULL.
7153         * intl/explodename.c (_nl_explode_name): Return -1 if
7154         _nl_normalize_codeset failed.
7156 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
7158         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
7159         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
7160         and avoid branch misspredicts for > 31 bytes memset case.
7161         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
7162         Remove toc ref to __cache_line_size.
7164         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
7165         to get ISA-V2.0 branch hints.
7166         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
7167         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
7168         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
7169         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
7170         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
7171         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
7172         Remove toc ref to __cache_line_size.
7174         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
7175         Include math_ldbl_opt.h.
7177 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
7179         [BZ #4773]
7180         * time/strptime_l.c (__strptime_internal): Implement greedy
7181         matching of weekday and month names.
7183 2007-07-09  Roland McGrath  <roland@redhat.com>
7185         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
7186         (ELF_NOTE_ABI): Use it.
7187         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
7189 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
7191         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
7192         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7194 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
7196         [BZ #4745]
7197         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
7198         in loop to look for conversion specifier to avoid testing of
7199         wrong errno value.
7200         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
7201         * stdio-common/bug18.c: New file.
7202         * stdio-common/bug18a.c: New file.
7203         * stdio-common/bug19.c: New file.
7204         * stdio-common/bug19a.c: New file.
7206 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
7208         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
7209         running awk script.
7211 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
7213         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
7214         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
7215         Return NULL if mmap failed instead of asserting it does not.
7216         (calloc): Check for integer overflow.
7218         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
7219         than LONG_MAX / 10.
7221 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
7223         [BZ #4702]
7224         * nis/nss-default.c: Include errno.h.
7225         (init): Preserve errno.
7227 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
7229         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
7231 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
7233         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
7235 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7237         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
7239 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7241         * sysdeps/s390/dl-procinfo.c: New file.
7242         * sysdeps/s390/dl-procinfo.h: New file.
7243         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
7245 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
7247         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
7248         in PT_NOTE segments with multiple notes.
7249         * elf/readelflib.c (process_elf_file): Likewise.
7251 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
7253         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
7254         ISO C compliant.
7256 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
7258         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
7260 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
7262         * include/link.h: Don't include rtld-lowlevel.h.
7263         (struct link_map): Remove l_scope_lock.
7264         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
7265         (_dl_scope_free_list): New field (variable) in _rtld_global.
7266         (DL_LOOKUP_SCOPE_LOCK): Remove.
7267         (_dl_scope_free): New prototype.
7268         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
7269         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
7270         (_dl_profile_fixup): Likewise.
7271         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
7272         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
7273         THREAD_GSCOPE_RESET_FLAG around it.
7274         * elf/dl-close.c (_dl_close_worker): Don't use
7275         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
7276         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
7277         scopes were queued or if l_scope_mem has been abandoned.
7278         * elf/dl-open.c (_dl_scope_free): New function.
7279         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
7280         * elf/dl-support.c (_dl_scope_free_list): New variable.
7281         * elf/dl-lookup.c (add_dependency): Remove flags argument.
7282         Remove DL_LOOKUP_SCOPE_LOCK handling.
7283         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
7284         handling.
7285         * elf/dl-object.c (_dl_new_object): Don't use
7286         __rtld_mrlock_initialize.
7288 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
7290         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
7291         to fill in holes
7292         (rtld_global_ro): Likewise.
7294 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7296         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
7297         Move PT_LOAD checking to...
7298         (_dl_addr_inside_object): ... here, new function.
7299         * elf/dl-sym.c (do_sym): If not l_contiguous,
7300         call _dl_addr_inside_object.
7301         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7302         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7303         * elf/dl-open.c (dl_open_worker): Likewise.
7304         (_dl_addr_inside_object): New function if IS_IN_rtld.
7305         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
7306         holes are present or are PROT_NONE protected.
7307         * include/link.h (struct link_map): Add l_contiguous field.
7308         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
7310 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7311             Tomas Janousek  <tjanouse@redhat.com>
7312             Ulrich Drepper  <drepper@redhat.com>
7314         [BZ #4647]
7315         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
7316         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
7317         socket.
7318         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
7319         unused member a bitmap.
7320         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
7321         servers are configured.
7323 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7325         * elf/rtld.c (dl_main): Don't call init_tls more than once.
7327 2007-06-17  Andreas Schwab  <schwab@suse.de>
7329         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
7331 2007-06-16  Andreas Jaeger  <aj@suse.de>
7333         [BZ #4125]
7334         * sysdeps/unix/sysv/linux/sys/ptrace.h
7335         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
7336         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
7337         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
7338         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
7339         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
7340         Define.
7341         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7342         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7343         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7344         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7346 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
7348         [BZ #4599]
7349         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
7350         determining whether there are IPv4/IPv6 addresses, ignore loopback
7351         addresses.
7353 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
7355         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
7356         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
7357         as the return type.  Change type of "r" variable to CMPtype.
7358         * soft-fp/eqsf2.c (__eqsf2): Likewise.
7359         * soft-fp/eqtf2.c (__eqtf2): Likewise.
7360         * soft-fp/gedf2.c (__gedf2): Likewise.
7361         * soft-fp/gesf2.c (__gesf2): Likewise.
7362         * soft-fp/getf2.c (__getf2): Likewise.
7363         * soft-fp/ledf2.c (__ledf2): Likewise.
7364         * soft-fp/lesf2.c (__lesf2): Likewise.
7365         * soft-fp/letf2.c (__letf2): Likewise.
7366         * soft-fp/unorddf2 (__unorddf2): Likewise.
7367         * soft-fp/unordsf2 (__unordsf2): Likewise.
7368         * soft-fp/unordtf2 (__unordtf2): Likewise.
7370 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
7372         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
7373         make sure gcc doesn't mess around with this.
7375 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
7377         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
7379 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
7381         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
7382         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
7383         at most once per _dl_close_worker.
7385 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
7387         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
7388         __sched_cpucount as const.
7389         * posix/sched_cpucount.c: Adjust.
7391         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
7392         instruction for counting bits.
7393         * sysdeps/x86_64/sched_cpucount.c: New file.
7395 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
7397         * configure.in: Avoid variable named BASH.
7398         * config.make.in: Likewise.
7399         Patch in part by Mike Frysinger.
7401 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
7403         [BZ #4586]
7404         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
7405         pseudo-zeros as zero.
7406         * sysdeps/x86_64/ldbl2mpn.c: New file.
7407         * sysdeps/ia64/ldbl2mpn.c: New file.
7409 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
7411         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
7412         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
7413         Remove unreachable code at the end.
7415 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
7417         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
7418         ldbl-128ibm in comment.
7419         (fpclassifyl): Correct classification of denormals.
7420         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
7421         return value for MIN denormal. Rewrite using long double math too
7422         correctly handle denormals and canonicalize the results.
7424 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
7426         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
7427         (__mpn_construct_long_double): Fix conversion where result ought
7428         to be smaller than __LDBL_MIN__, or the low double should be
7429         denormal.  Fix decision where to negate low double - honor round
7430         to even rules.
7431         * stdio-common/tst-sprintf2.c: Include string.h.
7432         (COMPARE_LDBL): Define.
7433         (TEST): Also test whether a string hexadecimal float representation
7434         can be parsed back to the number.
7435         (main): Add a couple of further tests.
7437 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
7439         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
7440         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
7441         is non-zero, but smaller than 2 * __DBL_MIN__.
7442         * stdio-common/tst-sprintf2.c: New test.
7443         * stdio-common/Makefile (tests): Add tst-sprintf2.
7445         * math/test-misc.c (main): Don't run last batch of tests with
7446         IBM long double format.
7448 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7450         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
7451         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
7452         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
7453         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
7454         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7455         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
7456         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
7457         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
7458         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
7459         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7460         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
7461         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
7462         New file.
7463         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
7464         New file.
7465         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
7466         New file.
7467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
7468         New file.
7469         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
7470         New file.
7471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
7472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
7473         New file.
7474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
7475         New file.
7476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
7477         New file.
7478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
7479         New file.
7480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
7481         New file.
7483 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7485         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
7486         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
7487         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
7488         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
7489         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
7490         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
7491         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
7492         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
7494 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
7496         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
7497         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7498         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
7499         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7500         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
7501         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7502         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
7503         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7505 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
7507         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
7508         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
7509         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
7510         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
7512 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
7514         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
7515         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
7517 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
7519         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
7520         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
7521         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
7522         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
7524 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
7526         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
7527         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
7529 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
7531         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
7532         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
7534         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
7535         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
7536         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
7537         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
7539 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
7541         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
7542         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
7543         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
7544         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
7546 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
7548         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
7549         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
7550         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
7551         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7552         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
7553         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7555 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
7557         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
7558         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
7559         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
7560         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
7562 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
7564         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
7565         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
7566         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
7567         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
7568         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
7569         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
7570         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
7571         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
7572         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
7573         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
7574         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
7575         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
7576         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
7577         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
7578         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
7579         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
7581 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
7583         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
7584         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
7586 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
7588         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
7589         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
7591 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7593         * sysdeps/powerpc/powerpc32/970/Implies: New file.
7594         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
7595         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
7596         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
7597         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
7598         * sysdeps/powerpc/powerpc64/970/Implies: New file.
7599         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
7600         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
7601         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
7602         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
7604 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
7606         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
7608 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
7610         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
7611         branch miss-predicts. Ensure that cache line crossing does not impact
7612         dispatch grouping.
7614 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
7616         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
7617         "../../powerpc32/power4/memcopy.h".
7618         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
7619         "../../powerpc32/power4/wordcopy.c".
7621 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
7623         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
7624         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
7625         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
7626         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
7627         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
7628         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7630 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
7632         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
7634 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
7636         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
7637         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
7638         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
7639         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
7640         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
7641         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
7642         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
7643         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
7645 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
7647         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
7649 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
7651         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
7652         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
7653         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
7654         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
7655         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
7656         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
7657         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
7659 2007-05-29  Roland McGrath  <roland@redhat.com>
7661         * po/Makefile (po-sed-cmd): New variable.
7662         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
7664 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
7666         * crypt/md5-crypt.c: Fix comment.
7668         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
7669         of crashing.  When this is the case or if the reply is malformed,
7670         don't try to close the new file descriptor since it does not
7671         exist.
7672         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
7674 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
7676         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
7677         if __NR_utimensat is not defined.
7679 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
7681         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
7683 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
7685         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
7686         (open): Fix comment typos.  Don't call __open_2 if flags
7687         is a compile time constant without O_CREAT.
7688         (__open64_2): Add nonnull attribute.
7689         (open64): Fix comment typos.  Don't call __open64_2 if flags
7690         is a compile time constant without O_CREAT.
7691         (__openat_2): Add nonnull attribute, fix nonnull attribute
7692         on redirect.
7693         (openat): Fix comment typos.  Don't call __openat_2 if flags
7694         is a compile time constant without O_CREAT.
7695         (__openat64_2): Add nonnull attribute, fix nonnull attribute
7696         on redirect.
7697         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
7698         is a compile time constant without O_CREAT.
7700 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
7702         * Makerules (sysd-rules): Define PTW for ptw-* files.
7703         * Versions: Define GLIBC_2.7 for libc.
7704         * include/stdio.h: Declare __fortify_fail.
7705         * debug/fortify_fail.c: New file.
7706         * debug/Makefile (routines): Add fortify_fail.
7707         * debug/chk_fail.c: Use __fortify_fail.
7708         * debug/stack_chk_fail.c: Likewise.
7709         * io/Versions: Export __open_2, __open64_2, __openat_2, and
7710         __openat64_2 for GLIBC_2.7.
7711         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
7712         * io/open.c: Define *_2 variant of function which checks for O_CREAT
7713         and fails if necessary.
7714         * io/open64.c: Likewise.
7715         * io/openat.c: Likewise.
7716         * io/openat64.c: Likewise.
7717         * sysdeps/unix/sysv/linux/open64.c: Likewise.
7718         * sysdeps/unix/sysv/linux/openat.c: Likewise.
7719         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
7720         * io/bits/fcntl2.h: New file.
7721         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
7722         __openat64_2.
7723         * include/bits/fcntl2.h: New file.
7724         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7725         Add open_2.
7726         * sysdeps/unix/sysv/linux/open_2.c: New file.
7728 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
7730         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
7731         as second parameter to handle_intel.
7733         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
7734         the entry.
7736         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
7737         handling to ...
7738         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
7739         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
7740         cacheinfo.
7741         * sysdeps/x86_64/memcpy.S: Complete rewrite.
7742         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
7743         Patch by Evandro Menezes <evandro.menezes@amd.com>.
7745         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
7747 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
7749         [BZ #4525]
7750         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
7751         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
7752         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
7754         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
7756         [BZ #4514]
7757         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
7758         reinitialize workend at the start of each do_positional format spec
7759         loop, free workstart before do_positional loops.
7760         (printf_unknown): Fix size of work_buffer.
7761         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
7763         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
7764         (public_sET_STATe): If ms->version < 3, put all chunks into
7765         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
7766         chunks.
7768         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
7769         * malloc/hooks.c: Likewise.
7770         * malloc/arena.c: Likewise.
7771         * malloc/malloc.c (do_check_malloc_state): Don't assert
7772         n_mmaps is not greater than n_mmaps_max.  This removes the need
7773         for the previous change.
7775         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
7776         2007-05-07 commit.
7778 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
7780         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
7781         Define for kernel >= 2.6.22.
7783 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
7785         * elf/dl-close.c (_dl_close_worker): When removing object from
7786         global scope, wait for all lookups to finish afterwards.
7787         * elf/dl-open.c (add_to_global): When global scope array must
7788         grow, allocate a new one and free old array only after all
7789         lookups finish.
7790         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
7791         (_dl_lookup_symbol_x): Likewise.
7792         * elf/dl-support.c: Define _dl_wait_lookup_done.
7793         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
7794         _dl_wait_lookup_done.
7796         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
7797         not overlapping with arena.
7799         * malloc/mcheck.c (reallochook): If size==0, free the block.
7801         * rt/tst-shm.c: Use fstat64 instead of fstat.
7803         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
7804         __NR_sync_file_range is not defined.
7806 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
7808         Dummy files to prevent stub versions from being used.
7809         * sysdeps/x86_64/fpu/k_cosl.c: New file.
7810         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
7811         * sysdeps/x86_64/fpu/k_sinl.c: New file.
7812         * sysdeps/x86_64/fpu/k_tanl.c: New file.
7814         * version.h (VERSION): Set to 2.6.90.
7816 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
7818         * version.h (VERSION): Define to 2.6.
7819         * include/features.h (__GLIBC_MINOR__): Define to 6.
7821         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
7823         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
7824         sizes.
7826 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
7828         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
7829         number of mmaps.  n_mmaps_max is the target.
7830         * malloc/hooks.c: Likewise.
7831         * malloc/arena.c: Likewise.
7833 2007-05-12  Andreas Jaeger  <aj@suse.de>
7835         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
7836         getpid.
7838 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
7840         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
7841         adding new variables.
7843         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
7844         optimize.  Completely extend global scope array before making the
7845         new entries visible.
7847 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
7849         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
7850         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
7851         tst-getcpu.
7853         * include/link.h: Move l_version and l_nversion members around to
7854         fill gaps.
7856         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
7858         * sysdeps/unix/sysv/linux/sched_setaffinity.c
7859         (__sched_setaffinity_new): If syscall was successful and
7860         RESET_VGETCPU_CACHE is defined, use it before returning.
7861         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
7863         * io/sys/stat.h: Make sure struct timespec is defined for
7864         __USE_ATFILE.
7866         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
7867         UTIME_OMIT.
7868         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7869         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7870         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
7871         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7872         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
7873         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7874         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
7875         * io/sys/stat.h: Declare utimensat, futimens.
7876         * io/utimensat.c: New file.
7877         * io/futimens.c: New file.
7878         * sysdeps/unix/sysv/linux/utimensat.c: New file.
7879         * sysdeps/unix/sysv/linux/futimens.c: New file.
7880         * io/Makefile (routines): Add utimensat, futimens.
7881         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
7882         * sysdeps/unix/sysv/linux/lutimes.c: New file.
7883         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
7884         available.
7886         * include/sys/cdefs.h: Redefine __nonnull so that test for
7887         incorrect parameters in the libc code itself are not omitted.
7889 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
7891         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
7892         exception in addition to inexact when asked to raise only FE_INEXACT.
7894         [BZ #3427]
7895         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
7896         in *envp.
7898 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
7900         [BZ #4403]
7901         * string/strfry.c (strfry): Make result more random.
7903 2007-05-07  Richard Henderson  <rth@redhat.com>
7905         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
7906         if __NO_LONG_DOUBLE_MATH.
7907         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
7908         available in the compiler, add .arch directive to the assembly.
7910 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
7912         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
7913         compat_symbol to GLIBC_2_1.
7914         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
7915         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
7916         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
7917         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
7918         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
7919         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
7920         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
7921         libc, not libm.
7922         (__isnanl): New compat_symbol.
7924 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
7925             Jakub Jelinek  <jakub@redhat.com>
7927         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
7928         (new_heap): Initialize mprotect_size.
7929         (grow_heap): When growing, only mprotect from mprotect_size till
7930         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
7931         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
7933 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
7934             Peter Bergner  <bergner@us.ibm.com>
7936         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
7937         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
7938         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
7939         * sysdeps/powerpc/fpu/fe_mask.c: New file.
7940         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
7941         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
7942         Call __fe_mask_env() if all FP exceptions disabled.
7943         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
7944         from old FPSCR to new fenv to propagate DFP rounding modes.
7945         Call __fe_mask_env() if FP exceptions previously enabled.
7946         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
7947         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
7948         transitioning from all exceptions disabled to any exception enabled
7949         or visa versa.
7950         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
7951         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
7952         when transitioning from all exceptions disabled to any exception
7953         enabled or visa versa.
7954         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
7955         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
7956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
7957         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
7958         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
7959         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
7961 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
7963         [BZ #4465]
7964         * posix/unistd.h: Remove __THROW from fdatasync.
7966 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
7968         [BZ #4465]
7969         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
7971 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
7973         * stdio-common/vfprintf.c (process_string_arg): Optimize
7974         ridiculous precision in wide char code printing multi-byte string.
7975         Reported by Jim Meyering <jim@meyering.net>.
7977         [BZ #4131]
7978         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
7979         boundaries to work around systems with overlapping binary loading.
7980         Based on a patch by Suzuki <suzuki@in.ibm.com>.
7982 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
7984         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
7985         __mbsnrtowcs after last change.
7987         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
7988         (get_ident): Likewise.
7990 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
7992         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
7993         with setting the sticky bit.
7994         * math/test-misc.c (main): Add more truncation tests.
7996 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
7998         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
7999         double in the function declaration.
8000         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
8001         double in the function declaration.
8002         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
8003         float in the function declaration.
8004         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
8005         float in the function declaration.
8007         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
8008         denormal operands.  Do not generate FP_EX_DENORM exception.
8009         (FP_UNPACK_RAW_EP): Ditto.
8010         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
8011         undefined _FP_UNPACK_RAW_E.
8012         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
8013         undefined _FP_UNPACK_RAW_EP.
8014         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
8015         undefined _FP_PACK_RAW_E.
8016         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
8017         undefined _FP_PACK_RAW_EP.
8019         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
8020         _FP_FRAC_COPY_2.
8021         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
8022         _FP_FRAC_COPY_4.
8024 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
8025             Jakub Jelinek  <jakub@redhat.com>
8027         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
8028         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
8029         this case.
8030         * soft-fp/op-common.h (FP_TRUNC): Ditto.
8032 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
8034         * math/test-misc.c (main): Add tests for rounding long double
8035         values close to smallest double denormalized value to double.
8037 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
8039         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
8040         condition for truncating to 0.  Set sticky bit for such
8041         truncation.
8043 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
8045         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
8046         fixed length array for ignore.
8048 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
8050         [BZ #4438]
8051         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
8052         stack for large precisions.
8053         * stdio-common/test-vfprintf.c (main): Add test for large
8054         precision.
8056 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
8058         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
8059         for exponent 0.
8060         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
8062         [BZ #4439]
8063         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
8064         account in the size check.
8065         * resolv/tst-inet_ntop.c: New test.
8066         * resolv/Makefile (tests): Add tst-inet_ntop.
8068 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
8069             Jakub Jelinek  <jakub@redhat.com>
8071         [BZ #4349]
8072         * malloc/malloc.c: Keep separate list for first blocks on the bin
8073         lists with a given size.  This helps skipping over list elements
8074         we know won't fit in two places.
8075         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
8077 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
8079         [BZ #4102]
8080         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
8081         label to Teredo tunnel addresses 2001://32.
8083 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
8085         * locale/programs/ld-collate.c (collate_read): Allow order_start
8086         after copy.
8088         * locale/programs/ld-collate.c (collate_read): Fix printing of
8089         error message.
8091         [BZ #3213]
8092         * locale/C-translit.h.in: Add entry for U2044.
8094         [BZ #4342]
8095         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
8096         hexa-decimal floats without exponent.
8097         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
8099 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
8101         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
8102         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
8103         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
8104         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
8105         GLIBC_2.6.
8106         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
8107         Add sched_getcpu.
8109 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
8111         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
8112         of 0 after the out_fail label.
8114 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
8116         [BZ #4406]
8117         * iconv/gconv_charset.h (strip): Allow ':'.
8118         * iconv/iconv_open.c (iconv_open): Adjust comment.
8120 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
8122         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
8123         version.
8125 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
8127         [BZ #4381]
8128         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
8129         alignment of buffer and tmp_buffer.
8130         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
8131         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
8132         alignment of buffer.
8133         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
8134         bigger than INT_MAX.
8135         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
8136         h_errnop arguments.  Fail if buflen is too small.
8137         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
8139 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
8141         [BZ #4405]
8142         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
8143         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
8145 2007-04-22  Roland McGrath  <roland@redhat.com>
8147         * elf/elf.h (NT_PRXFPREG): New macro.
8149 2007-04-19  Andreas Jaeger  <aj@suse.de>
8151         [BZ #3905]
8152         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
8153         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
8154         Added.
8156 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
8158         * include/sys/mman.h: Mark madvise hidden.
8159         * misc/madvise.c: Add libc_hidden_def.
8161 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
8163         * nis/nis_domain_of.c (__nis_domain_of): New function.
8164         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
8165         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
8166         * nis/nis_call.c (rec_dirsearch): Likewise.
8167         (first_shoot): Likewise.  Remove search_parent_first argument.
8168         (struct nis_server_cache): Rename search_parent_first field
8169         to search_parent.
8170         (nis_server_cache_search, nis_server_cache_add): Rename
8171         search_parent_first argument to search_parent.
8172         (__nisfind_server): Likewise.  If search_parent, call
8173         __nis_domain_of.
8175 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
8177         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
8179 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
8181         [BZ #4368]
8182         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
8184 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
8186         [BZ #4364]
8187         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
8189 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
8191         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
8192         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
8193         current number of locales in SUPPORTED.
8194         (create_archive): Initialize serial.
8195         (enlarge_archive): Preserve aliases rather than duplicating
8196         their locrecs.
8198 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
8200         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
8201         after _IO_un_link, not before it.
8203         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
8204         special case handling when wcp == wstartp + 1.  Fix a comment typo.
8205         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
8207 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
8209         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
8210         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
8211         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
8212         Remove __THROW.
8213         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
8214         _IO_file_xsgetn_maybe_mmap): Likewise.
8215         * libio/oldfileops.c (old_do_write): Likewise.
8216         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
8217         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
8218         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
8219         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
8220         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
8221         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
8222         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
8223         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
8224         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
8225         _IO_file_underflow, _IO_file_underflow_mmap,
8226         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
8227         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
8228         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
8229         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
8230         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
8231         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
8232         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
8233         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
8234         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
8235         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
8236         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
8237         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
8238         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
8239         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
8240         _IO_adjust_column_internal, _IO_default_uflow_internal,
8241         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
8242         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
8243         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
8244         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
8245         _IO_file_close_it_internal, _IO_file_underflow_internal,
8246         _IO_file_overflow_internal, _IO_file_attach_internal,
8247         _IO_file_fopen_internal, _IO_file_sync_internal,
8248         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
8249         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
8250         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
8251         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
8252         _IO_seekpos_unlocked): Likewise.
8253         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
8254         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
8256 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
8258         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
8259         argument in xmalloc size computation.
8261 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
8263         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
8264         math_opt_barrier and math_force_eval macros.
8266 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
8268         [BZ #3306]
8269         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
8270         * sysdeps/i386/fpu/math_private.h: New file.
8271         * sysdeps/x86_64/fpu/math_private.h: New file.
8272         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
8273         math_force_eval macros.  Use "+m" constraint on asm rather than
8274         "=m" and "m".
8275         * math/s_nextafter.c (__nextafter): Likewise.
8276         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
8277         Likewise.
8278         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
8279         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
8280         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8281         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
8282         math_opt_barrier and math_force_eval macros.
8283         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
8284         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
8285         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
8286         (__nexttoward): Use math_opt_barrier and
8287         math_force_eval macros.  Use "+m" constraint on asm rather than
8288         "=m" and "m".  Only use asm to force double result if
8289         FLT_EVAL_METHOD is 2.
8290         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
8291         (__nexttowardf): Use math_opt_barrier and
8292         math_force_eval macros.  Use "+m" constraint on asm rather than
8293         "=m" and "m".  Only use asm to force double result if
8294         FLT_EVAL_METHOD is not 0.
8295         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
8296         (__nexttowardf): Use math_opt_barrier and
8297         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
8298         x to float using asm.
8299         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
8300         (__nldbl_nexttowardf): Use math_opt_barrier and
8301         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
8302         x to float using asm.
8303         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
8304         (__nexttowardf): Use math_opt_barrier and math_force_eval
8305         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
8306         * math/bug-nextafter.c (zero, inf): New variables.
8307         (main): Add new tests.
8308         * math/bug-nexttoward.c (zero, inf): New variables.
8309         (main): Add new tests.
8311 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
8313         [BZ #3427]
8314         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
8315         exceptions both in SW and MXCSR.
8316         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
8317         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
8318         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
8319         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8320         in MXCSR if SSE is available.
8321         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
8322         and ldsodefs.h.
8323         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
8324         Fix comment typo.
8325         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
8326         Return 0 rather than 1.
8327         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
8328         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
8329         * math/test-fenv.c (feholdexcept_tests): New function.
8330         (main): Call it.
8332 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
8334         [BZ #3427]
8335         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8336         in SW.
8338 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
8340         [BZ #4344]
8341         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
8342         Reported by David Anderson <davea42@earthlink.net>.
8344 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
8346         * posix/sys/wait.h: Remove unnecessary forward declaration.
8348 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
8350         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
8351         with obj->do_servers after first_shoot.
8353 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
8355         * posix/Makefile (routines): Add sched_cpucount.
8356         (tests): Add tst-cpucount.
8357         * posix/sched_cpucount.c: New file.
8358         * posix/tst-cpucount.c: New file.
8359         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
8360         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
8361         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8362         * posix/sched.h: Define CPU_COUNT.
8364 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
8366         * posix/fnmatch.c (STRUCT): Define.
8367         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
8368         * posix/fnmatch_loop.c (struct STRUCT): New type.
8369         (FCT): Add ends argument.  If ends != NULL and normal * is
8370         seen in the pattern, store current pattern and string pointers
8371         and return.  Adjust recursive calls.
8372         (EXT): Adjust FCT callers.
8373         (STRUCT): Undef at the end of the file.
8374         * posix/Makefile (tests): Add tst-fnmatch2.
8375         * posix/tst-fnmatch2.c: New test.
8377 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
8379         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
8380         and 1 on failure.
8382         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
8383         Change last argument to unsigned int.
8385 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
8387         * scripts/check-local-headers.sh: Filter out sys/capability.h.
8389 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
8391         * config.h.in (HAVE_LIBCAP): Add.
8392         * nscd/selinux.h: Include sys/capability.h rather than non-existent
8393         sys/capabilities.h.
8394         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
8395         free_caps.  Cast away const from 4th cap_set_flag argument.
8397 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
8399         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
8400         GLIBC_2.6.
8401         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8402         Add sync_file_range.
8403         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
8405 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
8407         * sysdeps/powerpc/bits/atomic.h
8408         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
8409         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
8410         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8411         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
8412         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8413         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
8414         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
8415         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8416         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8417         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8418         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
8419         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8420         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8421         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8422         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8423         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
8424         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8425         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
8426         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8427         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
8429 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
8431         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8432         (__cache_line_size): Define the variable here.  Add
8433         attribute_hidden, remove weak_extern.
8434         (__libc_start_main): Set __cache_line_size
8435         unconditionally.
8436         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
8437         (__cache_line_size): Define the variable here.  Add
8438         attribute_hidden, remove weak_extern.
8439         (DL_PLATFORM_AUXV): Set __cache_line_size
8440         unconditionally.
8441         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
8442         weak_extern, add attribute_hidden.
8443         (__elf_machine_runtime_setup): Assume __cache_line_size is always
8444         defined in ld.so.
8445         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
8446         definition.
8447         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
8449 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
8451         [BZ #4276]
8452         * timezone/africa: Update from tzdata2007d.
8453         * timezone/asia: Likewise.
8454         * timezone/australasia: Likewise.
8455         * timezone/backward: Likewise.
8456         * timezone/europe: Likewise.
8457         * timezone/iso3166.tab: Likewise.
8458         * timezone/leapseconds: Likewise.
8459         * timezone/northamerica: Likewise.
8460         * timezone/southamerica: Likewise.
8461         * timezone/zone.tab: Likewise.
8463         * timezone/private.h: Update from tzcode2007d.
8464         * timezone/zdump.c: Likewise.
8465         * timezone/zic.c: Likewise.
8467 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
8469         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
8470         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
8471         variables.
8472         (nis_server_cache_search, nis_server_cache_add): New functions.
8473         (__nisfind_server): Use them.  Add dbp and flags argument, if
8474         call __nisbind_create.
8475         (__nisbind_create): Add server_used and current_ep arguments,
8476         only call __nis_findfastest if server_used is ~0.
8477         (__do_niscall2, __prepare_niscall): Adjust callers.
8478         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
8479         ckey_cache_euid, ckey_cache_lock): New variables.
8480         (get_ckey): New function.
8481         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
8482         __pmap_getnisport.  Save __pmap_getnisport result in
8483         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
8484         key.
8485         * nis/nis_lookup.c (nis_lookup): Likewise.
8486         * nis/nis_table.c (nis_list): Likewise.
8487         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
8488         prototypes.
8490         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
8491         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
8492         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
8493         _nss_nisplus_getservbyport_r): Likewise.
8494         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
8495         _nss_nisplus_getnetbyaddr_r): Likewise.
8496         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
8497         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
8498         _nss_nisplus_getntohost_r): Likewise.
8499         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
8500         _nss_nisplus_getrpcbynumber_r): Likewise.
8502 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
8504         * configure.in (libc_cv_gnu89_inline): Only do compile test.
8505         * configure: Rebuilt.
8507         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
8508         bit-fields.
8509         * soft-fp/extended.h (_FP_UNION_E): Likewise.
8511 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
8513         [BZ #2831]
8514         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
8515         bit-fields.
8517 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
8519         * nscd/gai.c: Include alloca.h.
8520         (__libc_use_alloca): Define.
8522 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
8524         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
8525         smaller scopes.
8526         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
8527         (DL_DST_REQUIRED): Adjust user.
8529         * include/dlfcn.h (struct link_map): New forward decl.
8531         * inet/getnameinfo.c: Include stddef.h.
8532         (getnameinfo): Use offsetof.
8534         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
8536         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
8538         * string/strerror_l.c: Include stdlib.h.
8540         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
8541         * config.make.in (gnu89-inline-CFLAGS): New variable.
8542         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
8543         -std=gnu99.
8544         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
8545         * argp/argp.h: Use it.
8546         * bits/mathinline.h: Likewise.
8547         * bits/sigset.h: Likewise.
8548         * bits/string.h: Likewise.
8549         * ctype/ctype.h: Likewise.
8550         * hurd/hurd.h: Likewise.
8551         * hurd/hurd/fd.h: Likewise.
8552         * hurd/hurd/port.h: Likewise.
8553         * hurd/hurd/signal.h: Likewise.
8554         * hurd/hurd/threadvar.h: Likewise.
8555         * hurd/hurd/userlink.h: Likewise.
8556         * io/sys/stat.h: Likewise.
8557         * libio/bits/stdio.h: Likewise.
8558         * libio/bits/stdio2.h: Likewise.
8559         * mach/lock-intern.h: Likewise.
8560         * mach/mach/mig_support.h: Likewise.
8561         * math/bits/cmathcalls.h: Likewise.
8562         * posix/bits/unistd.h: Likewise.
8563         * socket/bits/socket2.h: Likewise.
8564         * stdlib/bits/stdlib.h: Likewise.
8565         * stdlib/stdlib.h: Likewise.
8566         * string/argz.h: Likewise.
8567         * string/bits/string2.h: Likewise.
8568         * string/bits/string3.h: Likewise.
8569         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
8570         * sysdeps/generic/inttypes.h: Likewise.
8571         * sysdeps/generic/machine-lock.h: Likewise.
8572         * sysdeps/generic/machine-sp.h: Likewise.
8573         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8574         * sysdeps/i386/i486/bits/string.h: Likewise.
8575         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
8576         * sysdeps/mach/alpha/machine-lock.h: Likewise.
8577         * sysdeps/mach/alpha/machine-sp.h: Likewise.
8578         * sysdeps/mach/i386/machine-lock.h: Likewise.
8579         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8580         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
8581         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
8582         * sysdeps/s390/bits/string.h: Likewise.
8583         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
8584         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8585         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8586         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8587         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8588         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
8589         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
8590         * wcsmbs/bits/wchar2.h: Likewise.
8591         * wcsmbs/wchar.h: Likewise.
8592         * stdlib/gmp.h: Likewise.  Include <features.h> to get
8593         __extern_inline definition.
8595 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
8597         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
8598         NULL.
8600         [BZ #3919]
8601         * math/libm-test.inc (log_test): Test -Inf and NaN.
8602         (log10_test, log1p_test, log2_test): Test -Inf.
8603         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
8604         FE_INVALID when argument is qNaN.
8605         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
8606         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
8607         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
8608         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
8609         andb $1, %ah with testb $1, %ah, don't test for parity, instead
8610         testb $4, %ah and jump if non-zero.
8611         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
8612         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
8614         [BZ #4101]
8615         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
8616         ancestors with the same depths.
8617         Patch by Niels Moeller <nisse@lysator.liu.se>.
8618         (filter_doc): Don't crash if argp is NULL.
8619         * argp/Makefile (tests): Add tst-argp2.
8620         * argp/tst-argp2.c: New test.
8622         [BZ #4130]
8623         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
8624         open_not_cancel_2.
8625         (updwtmp_file): Likewise.
8627         [BZ #4181]
8628         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
8629         (inet6_opt_append): Don't check extlen is big enough if extbuf
8630         is NULL.
8631         (inet6_opt_finish): Likewise.
8632         * inet/Makefile (tests): Add test-inet6_opt.
8633         * inet/test-inet6_opt.c: New test.
8635         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
8636         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
8637         NLMSG_ERR.  Instead use a page sized buffer.
8638         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
8639         buffer.
8641 2007-03-14  Richard Henderson  <rth@redhat.com>
8643         * sysdeps/alpha/fpu/s_llround.c: New file.
8644         * sysdeps/alpha/fpu/s_llroundf.c: New file.
8645         * sysdeps/alpha/fpu/s_lround.c: New file.
8646         * sysdeps/alpha/fpu/s_lroundf.c: New file.
8647         * sysdeps/alpha/fpu/s_round.c: New file.
8648         * sysdeps/alpha/fpu/s_roundf.c: New file.
8649         * sysdeps/alpha/fpu/s_trunc.c: New file.
8650         * sysdeps/alpha/fpu/s_truncf.c: New file.
8652         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
8653         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
8654         * sysdeps/alpha/fpu/s_floor.c: Likewise.
8655         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
8656         * sysdeps/alpha/fpu/s_rint.c: Likewise.
8657         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8659         * sysdeps/alpha/fpu/s_fmax.S: New file.
8660         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
8661         * sysdeps/alpha/fpu/s_fmin.S: New file.
8662         * sysdeps/alpha/fpu/s_fminf.S: New file.
8663         * sysdeps/alpha/fpu/s_isnan.c: New file.
8664         * sysdeps/alpha/fpu/s_isnanf.c: New file.
8665         * sysdeps/alpha/fpu/s_llrint.c: New file.
8666         * sysdeps/alpha/fpu/s_llrintf.c: New file.
8667         * sysdeps/alpha/fpu/s_lrint.c: New file.
8668         * sysdeps/alpha/fpu/s_lrintf.c: New file.
8669         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
8670         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
8672         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
8673         (__fdimf, fdimf, __fdim, fdim): Remove.
8674         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
8675         (__isnanf, __isnan, __isnanl): New.
8677 2007-03-13  Richard Henderson  <rth@redhat.com>
8679         * sysdeps/ieee754/ldbl-128/Makefile: New file.
8681 2007-03-13  Richard Henderson  <rth@redhat.com>
8683         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
8684         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
8685         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
8686         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
8687         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
8688         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
8690 2007-03-13  Richard Henderson  <rth@redhat.com>
8692         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
8693         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
8694         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
8695         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
8696         Move to dl-auxv.h; initialize instead of extern weak.
8697         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
8698         weak symbol.
8699         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
8700         Extern instead of initialized.
8702 2007-03-13  Richard Henderson  <rth@redhat.com>
8704         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
8705         __sigsuspend_nocancel.
8707 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
8709         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
8710         172.16/12 address range.
8712 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
8714         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
8715         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
8716         message.
8718 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
8720         [BZ #4069]
8721         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
8722         earlier.
8723         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
8725         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
8726         for x qNaN and y either +-inf or non-integer value.
8727         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
8728         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
8729         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8731 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
8733         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
8734         from sysdep_headers.
8736 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
8738         * time/tzfile.c (find_transition): Instead of a linear search try to
8739         guess the transition index, use a linear search if the result is at
8740         most 10 transitions away from the guess or binary search otherwise.
8742 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
8744         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
8745         memory reallocation.
8747 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
8749         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
8750         and fix some typos.
8751         Optimize use of TOLOWER.
8753         [BZ #3325]
8754         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
8755         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8756         * sysdeps/i386/fpu/e_fmod.S: Likewise.
8758         [BZ #3458]
8759         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
8760         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
8762         [BZ #4076]
8763         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
8764         (open_dir_stream): Likewise.
8765         * io/Makefile (tests): Add bug-ftw5.
8766         * io/bug-ftw5.c: New file.
8768         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
8769         * nscd/servicescache.c (cache_addserv): Likewise.
8771         * nscd/grpcache.c (cache_addgr): In case a record changed on
8772         refresh, adjust key_copy.
8774         [BZ #4074]
8775         * nscd/pwdcache.c (cache_addpw): In case a record changed on
8776         refresh, adjust key_copy.
8778         [BZ #4070]
8779         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
8780         special cases.
8781         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
8783 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
8785         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
8786         optimization.
8788         * stdio-common/vfscanf.c: Small cleanups throughout.
8790 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
8792         [BZ #3325]
8793         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
8794         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8795         * sysdeps/i386/fpu/e_fmod.S: Likewise.
8796         Patch by Jared Casper <jaredcasper@gmail.com>.
8798         * sysdeps/unix/closedir.c: Outside libc don't use locking.
8799         * sysdeps/unix/opendir.c: Likewise.
8800         * sysdeps/unix/readdir.c: Likewise.
8802         [BZ #2211]
8803         * stdio-common/vfscanf.c: Handle localized digits etc for floating
8804         point numbers.
8805         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
8807         * stdio-common/vfscanf.c: Fix problems in width accounting.
8808         * stdio-common/tst-sscanf.c (double_tests): New tests.
8809         (main): Hook them up.
8811         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
8812         More simplifications of floating-point reader.
8814         * stdio-common/Makefile (tests): Add tst-swscanf.
8815         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
8816         testing.
8817         * stdio-common/tst-swscanf.c: New file.
8819 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
8821         [BZ #2633]
8822         * libio/stdio.h: Define struct _IO_FILE in global namespace.
8823         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
8824         Remove using for __jmp_buf_tag.
8825         * locale/locale.h (struct lconv): Also define in std namespace.
8826         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
8828         [BZ #3842]
8829         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
8830         using __libc_enable_secure.
8832         [BZ #3818]
8833         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
8835         [BZ #3745]
8836         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
8837         of names for ellipsises.
8839         [BZ #3348]
8840         * malloc/memusage.sh: Cleanups.
8841         * debug/xtrace.sh: Quoting and trap changes.
8843 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
8845         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
8847         * locale/iso-3166.def: Update entry for Serbia.
8848         * locale/iso-4217.def: Define RSD, remove CSD.
8850         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
8851         and 64-bit operations.
8853         [BZ #4040]
8854         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
8855         16-bit operations.
8857         * nscd/nscd.c (parse_opt): One more conversion to use send instead
8858         of writev.
8860 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
8862         [BZ #3991]
8863         * assert/assert.h (assert): Simplify.
8864         (assert_perror): Likewise.
8865         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
8867         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
8868         reqdata.
8870         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
8871         change: don't pass NULL in place of an integer.
8873 2007-02-02  Bruno Haible  <bruno@clisp.org>
8875         [BZ #3954]
8876         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
8877         Add mapping for U+327E.
8878         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
8879         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8880         mapping of 0xD9 0xE8.
8881         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
8882         mapping of U+327E.
8883         Reported by Jungshik Shin <jungshik@google.com>.
8885         [BZ #3955]
8886         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8887         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
8888         Reported by Jungshik Shin <jungshik@google.com>.
8890 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
8892         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
8893         byte variants.
8895         [BZ #4040]
8896         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
8897         byte variants.  Patch mostly be tom@tommay.net.
8899 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
8901         [BZ #3996]
8902         * posix/glob.c (attribute_hidden): Define if not defined.
8903         (glob): Unescape dirname, filename or username when needed and not
8904         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
8905         is NULL.  Handle unescaped [ in pattern without closing ].
8906         Don't pass GLOB_CHECK down to recursive glob for directories.
8907         (__glob_pattern_type): New function.
8908         (__glob_pattern_p): Implement using __glob_pattern_type.
8909         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8910         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8911         Remove unreachable code.
8912         * posix/globtest.sh: Add a couple of new tests.
8914 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
8916         * po/ru.po: Update from translation team.
8918 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
8920         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
8921         to the list of i486+ CPUs.
8922         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8924 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
8926         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
8927         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
8928         references.
8930 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
8932         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
8934         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
8935         * resolv/res_mkquery.c: Define __res_nopt.
8936         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
8937         try adding EDNS0 record.
8938         * resolv/res_send.c (send_dg): If request failed with FORMERR and
8939         EDNS0 record was send make sure we don't try it again.
8940         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
8941         * include/resolv.h: Declare __res_nopt.
8943 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
8945         [BZ #3944]
8946         * time/strptime_l.c (__strptime_internal): Set have_mon for
8947         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
8948         have been computed from tm_yday and tm_year.  Don't crash
8949         in day_of_the_week or day_of_the_year if not have_mon
8950         and tm_mon contains bogus value.
8951         * time/Makefile (tests): Add tst-strptime3.
8952         * time/tst-strptime3.c: New test.
8954 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
8956         [BZ #3957]
8957         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
8958         bit for RE_HAT_LISTS_NOT_NEWLINE.
8959         (build_charclass_op): Remove bogus comment.
8960         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
8961         * posix/bug-regex27.c: New test.
8962         * posix/bug-regex28.c: New test.
8964 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
8966         * po/sv.po: Update from translation team.
8968 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
8970         * nscd/nscd_helper.c (open_socket): Minor size optimization.
8972 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
8974         * include/locale.h (__uselocale): Add libc_hidden_proto.
8975         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
8977         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
8978         gettimeofday.
8980 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
8982         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
8983         returning.
8984         (PTR_DEMANGLE): Real definition now that it's not the same as
8985         PRT_MANGLE anymore.
8986         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8988         * string/strerror_l.c: New file.
8989         * string/Makefile (routines): Add strerror_l.
8990         * string/string.h: Declare strerror_l.
8991         * string/Versions: Export strerror_l for GLIBC_2.6.
8993 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
8995         * nscd/nscd_helper.c (open_socket): Now takes request type and key
8996         as parameter.  Construct request record.  Try sending request
8997         before the first poll use, it usually succeeds.  Adjust all
8998         callers.
8999         * nscd/nscd-client.h: Define MAXKEYLEN.
9000         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
9002 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
9004         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
9005         from return value.
9006         * nscd/nscd_helper.c: Include string.h.
9007         (__nscd_cache_search): Remove const qualifier from return value.
9008         On strict alignment architectures check hash entry and data head
9009         alignment.
9010         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
9011         mmapped data during GC cycle contains garbage.  If
9012         __nscd_drop_map_ref fails, decrement mapped->counter when returning
9013         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
9014         dropped to 0.
9015         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9016         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
9017         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9018         * nscd/nscd_getai.c (__nscd_getai): Likewise.
9019         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9021 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
9023         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
9025 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
9027         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
9028         names not numbers in cfi_*.
9030 2007-01-26  Andreas Jaeger  <aj@suse.de>
9032         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
9033         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
9034         Correct values of PER_HPUX and PER_OSF4.
9036 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
9038         * elf/dl-minimal.c: Undefine _itoa first.
9039         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
9040         * malloc/mtrace.c: Revert last change.
9041         * posix/wordexp.c: Likewise.
9043 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
9045         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
9046         and __geode__ to the list of i486+ CPUs.
9047         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
9049 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
9051         * stdio-common/_itoa.c: Include <limits.h>.
9052         * stdio-common/_itowa.c: Likewise.
9054 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
9056         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
9057         platforms.
9058         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
9059         64-bit platforms.
9060         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
9061         possible.
9062         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
9063         if possible.
9065         [BZ #3902]
9066         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
9067         * stdio-common/Makefile (tests): Add bug17.
9068         * stdio-common/bug17.c: New file.
9070 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
9072         * iconvdata/brf.c: New file.
9073         * iconvdata/testdata/BRF: New file.
9074         * iconvdata/testdata/BRF..UTF8: New file.
9075         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9076         * iconvdata/Makefile: Add rules to build BRF.
9077         * iconvdata/TESTS: Add BRF entry.
9078         * iconvdata/gconv-modules: Likewise.
9079         * iconvdata/tst-tables.sh: Likewise.
9081 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
9083         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
9084         type `long long int', not `long int'.
9085         (wcstoq): Likewise.
9087 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
9089         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
9090         of values on 64-bit platforms which are too large.
9092 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
9093             Joe Kerian  <jkerian@us.us.ibm.com>
9095         [BZ #2749]
9096         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
9097         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
9098         (__copysignl): Use signbit() for comparison.
9099         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
9100         SET_LDOUBLE_WORDS64.
9102         [BZ #2423, #2749]
9103         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
9104         (__ceill): Remove calls to fegetround(), fesetround().
9105         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9106         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9107         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9109 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
9111         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
9113         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
9115 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
9117         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
9118         demangle pointer.
9119         * csu/libc-start.c: Likewise.
9121 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
9123         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
9124         really work anyway.
9126 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
9128         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
9129         users.
9130         (handle_request): Remove unnecessary tests.
9132         * nscd/cache.c (cache_add): Record the failure to add to the cache.
9134 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
9136         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
9137         workbits in semi-raw fraction.
9139         * math/test-misc.c: Add new tests.
9141 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
9143         * math/basic-test.c: Include test-skeleton.c.
9144         (TEST_TRUNC): Define.
9145         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
9146         (main): Rename to ...
9147         (do_test): ...this.  Run new tests.
9148         (TEST_FUNCTION): Define.
9150 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
9151             Joe Kerian  <jkerian@us.us.ibm.com>
9153         [BZ #2749]
9154         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
9155         handling for high words.
9156         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
9157         and overflow for infinity.
9159 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
9161         * nscd/connections.c (handle_request): Add a __builtin_expect.
9163         * nscd/connections.c (serv2db): Change type into structure which
9164         also says whether this is a request for data.  Renamed to
9165         servinfo.  All users changed.
9166         (handle_request): Much simpler test whether we should search the cache.
9168         * nscd/connections.c (handle_request): Fix thinko in selinux test
9169         invocation.
9171         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
9172         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
9173         it before getting dl_load_lock and then relock.
9174         (_dl_lookup_symbol_x): Pass flags to add_dependency.
9175         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
9176         case we unlocked the scope.
9177         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
9178         _dl_lookup_symbol_x in case we locked the scope.
9179         (_dl_profile_fixup): Likewise.
9180         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
9181         set DL_LOOKUP_SCOPE_LOCK.
9183 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
9185         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
9186         CFLAGS-getsrvbynpt_r.c.
9187         * nscd/getsrvbynm_r.c: New file.
9188         * nscd/getsrvbypt_r.c: New file.
9189         * nscd/nscd_getserv_r.c: New file.
9190         * nscd/servicescache.c: New file.
9191         * nscd/Makefile (routines): Add nscd_getserv_r.
9192         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
9193         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
9194         CFLAGS-getsrvbypt_r.c.
9195         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
9196         table.  Add entries for services database.
9197         * nscd/connections.c (serv2str): Mark as const.  Add entries for
9198         services database.
9199         (dbs): Add .reset_res and servdb initialization.
9200         (serv2db): Add entries for services database.
9201         (verify_persistent_db): Accept dbnr == servdb.
9202         (invalidate_cache): Rewrite database name recognition to use a table.
9203         Call res_init() if .reset_res is set for database.
9204         (handle_request): Add code to handle services database.
9205         * nscd/gai.c: Don't define __getservbyname_r.
9206         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
9207         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
9208         (serv_response_header): Define.
9209         (struct datahead): Add serv_response_header member.
9210         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
9211         using table.
9212         * nscd/nscd.conf: Add entries for services database.
9213         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
9214         Declare serv_iov_disabled.
9215         Declare addservbyname, readdservbyname, addservbyport, and
9216         readdservbyport.
9217         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
9218         (find_db): Fix error message.
9219         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
9220         __nscd_getservbyname_r, and __nscd_getservbyport_r.
9221         * nscd/selinux.c (perms): Add entries for services database.
9222         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
9223         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
9225         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
9226         * nscd/hstcache.c: Likewise.
9227         * nscd/pwdcache.c: Likewise.
9229         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
9230         computation of keylen.
9232         * include/string.h: Only redefine strndupa if this is really for
9233         libc code.
9235 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
9237         * nscd/nscd_gethst_r.c: Minor cleanups.
9239         * nscd/connections.c (handle_request): Check selinux permissions
9240         for all non-admin commands.
9242         * sysdeps/i386/i486/bits/atomic.h: Define
9243         atomic_compare_and_exchange_val_acq,
9244         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
9245         using __sync_* built-ins for gcc >= 4.1.
9246         * sysdeps/x86_64/bits/atomic.h: Likewise.
9248         [BZ #3840]
9249         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
9250         and .oS.d files.
9252 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
9254         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
9255         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
9256         (do_test): Check errno and exit(0) if ENOSYS.
9258 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
9260         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
9261         thousands separators.
9262         * stdlib/Makefile: Add rules to build and run tst-strtod4.
9263         * stdlib/tst-strtod4.c: New test.
9265         [BZ #3855]
9266         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
9267         hexadecimal digit should accept just the initial 0.
9268         * stdlib/tst-strtod2.c (tests): New variable.
9269         (do_test): Run several tests rather than just one.
9271 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
9273         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
9274         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
9276 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
9278         * io/fts.c: Make sure fts_cur is always valid after return from
9279         fts_read.
9280         Patch by Miloslav Trmac <mitr@redhat.com>.
9282 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
9284         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
9285         (R_MIPS_NUM): Bump by 1.
9287 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
9289         * posix/execvp.c: Include alloca.h.
9290         (allocate_scripts_argv): Renamed to...
9291         (scripts_argv): ... this.  Don't allocate buffer here nor count
9292         arguments.
9293         (execvp): Use alloca if possible.
9294         * posix/Makefile: Add rules to build and run tst-vfork3 test.
9295         * posix/tst-vfork3.c: New test.
9297 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
9299         * string/Makefile (tst-strxfrm2-ENV): Define.
9300         * stdlib/Makefile (tst-strtod3-ENV): Define.
9302 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
9304         * posix/getconf.c: Update copyright year.
9305         * nss/getent.c: Likewise.
9306         * iconv/iconvconfig.c: Likewise.
9307         * iconv/iconv_prog.c: Likewise.
9308         * elf/ldconfig.c: Likewise.
9309         * catgets/gencat.c: Likewise.
9310         * csu/version.c: Likewise.
9311         * elf/ldd.bash.in: Likewise.
9312         * elf/sprof.c (print_version): Likewise.
9313         * locale/programs/locale.c: Likewise.
9314         * locale/programs/localedef.c: Likewise.
9315         * nscd/nscd.c (print_version): Likewise.
9316         * debug/xtrace.sh: Likewise.
9317         * malloc/memusage.sh: Likewise.
9318         * malloc/mtrace.pl: Likewise.
9319         * debug/catchsegv.sh: Likewise.
9321 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
9323         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
9324         attempts.
9326 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
9328         * posix/wordexp.c: Remove some unnecessary tests.
9330 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
9332         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
9333         blacklist the group till after we look it up.
9335 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
9337         * include/atomic.h (atomic_forced_read): New macro.
9339 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
9341         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
9343 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
9345         * nss/getXXbyYY_r.c: Include atomic.h.
9346         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
9347         add atomic_write_barrier () in between.
9349         * stdlib/Makefile (tests): Add tst-makecontext.
9350         * stdlib/tst-makecontext.c: New test.
9352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
9353         (__makecontext): Don't realign uc_mcontext.uc_regs.
9355 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
9357         * elf/dl-support.c: Include dl-procinfo.h.
9358         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
9359         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
9360         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
9361         Define.
9362         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
9363         hardcoded constants.
9364         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
9365         PPC_PLATFORM_* macros for array designators.
9367 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
9369         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
9370         names to the beginning.
9371         (_dl_powerpc_platforms): Add "power6x".
9372         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9373         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
9374         (_DL_PLATFORMS_COUNT): Increase.
9375         (_dl_string_platform): Handle power6x case.
9376         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
9377         PPC_FEATURE_POWER6_EXT): Define.
9378         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
9380 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
9382         [BZ #3747]
9383         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
9384         [-2^31 .. 2^31) range.
9385         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
9386         targets.
9387         * stdlib/tst-rand48-2.c: New test.
9388         * stdlib/Makefile (tests): Add tst-rand48-2.
9390 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
9392         * misc/tst-pselect.c (do_test): Fix sigblock argument.
9394 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
9396         * misc/tst-pselect.c (do_test): Make sure the helper process is
9397         terminating when the test is aborted.
9399 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
9401         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
9402         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
9403         Handle relatime mount option.
9405         [BZ #2337]
9406         * libio/Makefile (tests): Add tst-setvbuf1.
9407         * libio/tst-setvbuf1.c: New file.
9409 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
9411         [BZ #2337]
9412         * libio/genops.c (__uflow): Fix a typo.
9413         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
9414         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
9415         the narrow buffer size.
9417 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
9419         [BZ #2337]
9420         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
9421         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
9422         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
9423         in _flags.
9424         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
9425         _IO_wstr_finish): Likewise.
9426         * libio/wmemstream.c (open_wmemstream): Likewise.
9427         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
9428         even for wide streams.
9430 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
9432         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
9433         kernel-features.h.
9435 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
9437         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
9438         separators also if no non-zero digits found.
9439         * stdlib/Makefile (tests): Add tst-strtod3.
9441 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
9443         [BZ #3632]
9444         * include/features.h: Fix comment about default value for
9445         _POSIX_C_SOURCE.
9447         [BZ #3664]
9448         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
9449         empty parsed strings.
9450         * stdlib/Makefile (tests): Add tst-strtod2.
9451         * stdlib/tst-strtod2.c: New file.
9453         [BZ #3673]
9454         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
9455         computation.
9456         * stdlib/Makefile (tests): Add tst-atof2.
9457         * stdlib/tst-atof2.c: New file.
9459         [BZ #3674]
9460         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
9461         correctly if removing trailing zero of hex-float.
9462         * stdlib/Makefile (tests): Add tst-atof1.
9463         * stdlib/tst-atof1.c: New file.
9465 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
9467         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
9468         Start searching for next comma at p rather than rest.
9469         * misc/Makefile (tests): Add tst-mntent2.
9470         * misc/tst-mntent2.c: New test.
9472         * misc/getusershell.c (initshells): Check for integer overflows.
9473         Make strings buffer one bigger as fgets always succeeds when second
9474         argument is 1.  Don't use calloc for shells array.  Disallow
9475         / as shell.
9477 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
9479         * malloc/memusage.c: Handle realloc with new size of zero and
9480         non-NULL pointer correctly.
9481         (me): Really write first record twice.
9482         (struct entry): Make format bi-arch safe.
9483         (dest): Write out more realloc statistics.
9484         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
9486 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
9488         * nis/nis_subr.c (nis_getnames): Revert last change.
9490 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
9492         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
9493         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
9494         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
9495         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
9496         ENOTTY.
9497         * io/Makefile: Add rules to build and run tst-ttyname_r test.
9498         * io/tst-ttyname_r.c: New test.
9500 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9502         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
9504 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
9506         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
9507         jump table entries.
9509 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
9511         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
9512         `clone' function to ensure proper unwinding stop of gdb.
9513         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
9515 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
9517         * nscd/nscd.init: Remove obsolete and commented-out -S option
9518         handling.
9520 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
9522         [BZ #3514]
9523         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
9525         [BZ #3515]
9526         * manual/string.texi (strtok): Remove duplicate paragraph.
9528 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9530         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
9531         libgcc not supporting `rflags' unwinding (register # >= 17).
9533 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
9535         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
9536         succeeded.
9538 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
9539             Jakub Jelinek  <jakub@redhat.com>
9540             Jan Kratochvil  <jan.kratochvil@redhat.com>
9542         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
9543         unwind information.
9544         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
9545         'restore_rt' even in the 'signal' directory.
9546         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
9548 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
9550         [BZ #3559]
9551         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
9552         malloc crashed.  Don't allocate memory unnecessarily in each
9553         loop.
9555 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
9557         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
9559 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
9561         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
9563 2006-11-18  Bruno Haible  <bruno@clisp.org>
9565         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
9566         __sysconf only after having tried to call getgroups32.
9568 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
9570         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
9571         addresses for IPv4 queries if they can be mapped.
9573 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
9575         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
9576         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
9577         (signmask): Add .size directive.
9578         (othermask): Add .type directive.
9580 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
9582         * po/nl.po: Update from translation team.
9584         * timezone/zdump.c: Redo fix for BZ #3137.
9586 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
9588         * nss/nss_files/files-alias.c (get_next_alias): Set line back
9589         to first_unused after parsing :include: file.
9591 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
9593         * timezone/africa: Update from tzdata2006o.
9594         * timezone/antarctica: Likewise.
9595         * timezone/asia: Likewise.
9596         * timezone/australasia: Likewise.
9597         * timezone/backward: Likewise.
9598         * timezone/europe: Likewise.
9599         * timezone/iso3166.tab: Likewise.
9600         * timezone/northamerica: Likewise.
9601         * timezone/southamerica: Likewise.
9602         * timezone/zone.tab: Likewise.
9604         * time/tzfile.c (__tzfile_read): Extend to handle new file format
9605         on machines with 64-bit time_t.
9607         * timezone/checktab.awk: Update from tzcode2006o.
9608         * timezone/ialloc.c: Likewise.
9609         * timezone/private.h: Likewise.
9610         * timezone/scheck.c: Likewise.
9611         * timezone/tzfile.h: Likewise.
9612         * timezone/tzselect.ksh: Likewise.
9613         * timezone/zdump.c: Likewise.
9614         * timezone/zic.c: Likewise.
9616         [BZ #3483]
9617         * elf/ldconfig.c (main): Call setlocale and textdomain.
9618         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9620         [BZ #3480]
9621         * manual/argp.texi: Fix typos.
9622         * manual/charset.texi: Likewise.
9623         * manual/errno.texi: Likewise.
9624         * manual/filesys.texi: Likewise.
9625         * manual/lang.texi: Likewise.
9626         * manual/maint.texi: Likewise.
9627         * manual/memory.texi: Likewise.
9628         * manual/message.texi: Likewise.
9629         * manual/resource.texi: Likewise.
9630         * manual/search.texi: Likewise.
9631         * manual/signal.texi: Likewise.
9632         * manual/startup.texi: Likewise.
9633         * manual/stdio.texi: Likewise.
9634         * manual/sysinfo.texi: Likewise.
9635         * manual/syslog.texi: Likewise.
9636         * manual/time.texi: Likewise.
9637         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9639         [BZ #3465]
9640         * sunrpc/clnt_raw.c: Minimal message improvements.
9641         * sunrpc/pm_getmaps.c: Likewise.
9642         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9643         * nis/nis_print_group_entry.c: Likewise.
9644         * locale/programs/repertoire.c: Likewise.
9645         * locale/programs/charmap.c: Likewise.
9646         * malloc/memusage.sh: Likewise.
9647         * elf/dl-deps.c: Likewise.
9648         * locale/programs/ld-collate.c: Likewise.
9649         * libio/vswprintf.c: Likewise.
9650         * malloc/memusagestat.c: Likewise.
9651         * sunrpc/auth_unix.c: Likewise.
9652         * sunrpc/rpc_main.c: Likewise.
9653         * nscd/cache.c: Likewise.
9654         * locale/programs/repertoire.c: Unify output messages.
9655         * locale/programs/charmap.c: Likewise.
9656         * locale/programs/ld-ctype.c: Likewise.
9657         * locale/programs/ld-monetary.c: Likewise.
9658         * locale/programs/ld-numeric.c: Likewise.
9659         * locale/programs/ld-time.c: Likewise.
9660         * elf/ldconfig.c: Likewise.
9661         * nscd/selinux.c: Likewise.
9662         * elf/cache.c: Likewise.
9663         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9665         [BZ #3451]
9666         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
9667         change atomic.
9668         (ceil): Likewise.
9670 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
9672         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
9673         if N is one bigger than return value.
9674         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
9675         and l1 last arguments, if buf is defined, verify the return value
9676         equals to strlen (buf) and verify no byte beyond passed length
9677         is modified.
9679 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
9681         * po/sv.po: Update from translation team.
9683 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
9685         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
9686         noinline attribute.
9688 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
9690         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
9691         noinline attribute.
9693         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
9694         Use __new_sys_siglist instead of _sys_siglist_internal as
9695         second macro argument.
9696         (_old_sys_siglist): Use declare_symbol_alias macro instead of
9697         strong_alias.
9699 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
9701         [BZ #3493]
9702         * posix/unistd.h (sysconf): Remove const attribute.
9704         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
9705         temporary or deprecated addresses.
9706         Patch by Sridhar Samudrala <sri@us.ibm.com>.
9708         * string/Makefile (tests): Add tst-strxfrm2.
9709         * string/tst-strxfrm2.c: New file.
9711 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
9713         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
9714         rather than r->r_brk.
9716 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
9718         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
9719         optimization even if needed > n.
9721         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
9722         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
9723         return false, otherwise return true.
9724         (cache_rpath): Return decompose_rpath return value.
9726 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
9728         * include/libc-symbols.h (declare_symbol): Rename to...
9729         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
9730         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
9731         .size directive.
9732         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
9733         changes.
9734         * sysdeps/gnu/siglist.c: Likewise.
9736 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
9738         * sysdeps/powerpc/fpu/bits/mathinline.h
9739         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
9740         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
9742 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
9744         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9745         Update handling of cache descriptor 0x49 for new models.
9746         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
9747         Likewise.
9749 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
9751         * malloc/memusage.c (dest): Reset not_me back to false after
9752         printing statistics.
9754 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
9756         * configure.in: Work around ld --help change and avoid -z relro
9757         test completely if the architecture doesn't care about security.
9759 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
9761         * po/sv.po: Update from translation team.
9763 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
9765         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
9766         generate compatibility version.
9768 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
9770         * configure.in: Relax -z relro requirement a bit.
9772         * po/sv.po: Update from translation team.
9774 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
9776         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
9777         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
9778         * elf/dl-close.c (_dl_close_worker): Likewise.
9779         * elf/dl-open.c (_dl_open_worker): Likewise.
9780         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
9782 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
9784         * configure.in: Require assembler support for visibility, compiler
9785         support for visibility and aliases, linker support for various -z
9786         options.
9787         * Makeconfig: Remove conditional code which now is unnecessary.
9788         * config.h.in: Likewise.
9789         * config.make.in: Likewise.
9790         * dlfcn/Makefile: Likewise.
9791         * elf/Makefile: Likewise.
9792         * elf/dl-load.c: Likewise.
9793         * elf/rtld.c: Likewise.
9794         * include/libc-symbols.h: Likewise.
9795         * include/stdio.h: Likewise.
9796         * io/Makefile: Likewise.
9797         * io/fstat.c: Likewise.
9798         * io/fstat64.c: Likewise.
9799         * io/fstatat.c: Likewise.
9800         * io/fstatat64.c: Likewise.
9801         * io/lstat.c: Likewise.
9802         * io/lstat64.c: Likewise.
9803         * io/mknod.c: Likewise.
9804         * io/mknodat.c: Likewise.
9805         * io/stat.c: Likewise.
9806         * io/stat64.c: Likewise.
9807         * libio/stdio.c: Likewise.
9808         * nscd/Makefile: Likewise.
9809         * stdlib/Makefile: Likewise.
9810         * stdlib/atexit.c: Likewise.
9811         * sysdeps/generic/ldsodefs.h: Likewise.
9812         * sysdeps/i386/dl-machine.h: Likewise.
9813         * sysdeps/i386/sysdep.h: Likewise.
9814         * sysdeps/i386/i686/memcmp.S: Likewise.
9815         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9816         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9817         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
9819         * Makerules: USE_TLS support is now default.
9820         * tls.make.c: Likewise.
9821         * csu/Versions: Likewise.
9822         * csu/libc-start.c: Likewise.
9823         * csu/libc-tls.c: Likewise.
9824         * csu/version.c: Likewise.
9825         * dlfcn/dlinfo.c: Likewise.
9826         * elf/dl-addr.c: Likewise.
9827         * elf/dl-cache.c: Likewise.
9828         * elf/dl-close.c: Likewise.
9829         * elf/dl-iteratephdr.c: Likewise.
9830         * elf/dl-load.c: Likewise.
9831         * elf/dl-lookup.c: Likewise.
9832         * elf/dl-object.c: Likewise.
9833         * elf/dl-open.c: Likewise.
9834         * elf/dl-reloc.c: Likewise.
9835         * elf/dl-support.c: Likewise.
9836         * elf/dl-sym.c: Likewise.
9837         * elf/dl-sysdep.c: Likewise.
9838         * elf/dl-tls.c: Likewise.
9839         * elf/ldconfig.c: Likewise.
9840         * elf/rtld.c: Likewise.
9841         * elf/tst-tls-dlinfo.c: Likewise.
9842         * elf/tst-tls1.c: Likewise.
9843         * elf/tst-tls10.h: Likewise.
9844         * elf/tst-tls14.c: Likewise.
9845         * elf/tst-tls2.c: Likewise.
9846         * elf/tst-tls3.c: Likewise.
9847         * elf/tst-tls4.c: Likewise.
9848         * elf/tst-tls5.c: Likewise.
9849         * elf/tst-tls6.c: Likewise.
9850         * elf/tst-tls7.c: Likewise.
9851         * elf/tst-tls8.c: Likewise.
9852         * elf/tst-tls9.c: Likewise.
9853         * elf/tst-tlsmod1.c: Likewise.
9854         * elf/tst-tlsmod13.c: Likewise.
9855         * elf/tst-tlsmod13a.c: Likewise.
9856         * elf/tst-tlsmod14a.c: Likewise.
9857         * elf/tst-tlsmod2.c: Likewise.
9858         * elf/tst-tlsmod3.c: Likewise.
9859         * elf/tst-tlsmod4.c: Likewise.
9860         * elf/tst-tlsmod5.c: Likewise.
9861         * elf/tst-tlsmod6.c: Likewise.
9862         * include/errno.h: Likewise.
9863         * include/link.h: Likewise.
9864         * include/tls.h: Likewise.
9865         * locale/global-locale.c: Likewise.
9866         * locale/localeinfo.h: Likewise.
9867         * malloc/arena.c: Likewise.
9868         * malloc/hooks.c: Likewise.
9869         * malloc/malloc.c: Likewise.
9870         * resolv/Versions: Likewise.
9871         * sysdeps/alpha/dl-machine.h: Likewise.
9872         * sysdeps/alpha/libc-tls.c: Likewise.
9873         * sysdeps/generic/ldsodefs.h: Likewise.
9874         * sysdeps/generic/tls.h: Likewise.
9875         * sysdeps/i386/dl-machine.h: Likewise.
9876         * sysdeps/ia64/dl-machine.h: Likewise.
9877         * sysdeps/ia64/libc-tls.c: Likewise.
9878         * sysdeps/mach/hurd/fork.c: Likewise.
9879         * sysdeps/mach/hurd/i386/tls.h: Likewise.
9880         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
9881         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
9882         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
9883         * sysdeps/s390/libc-tls.c: Likewise.
9884         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9885         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9886         * sysdeps/sh/dl-machine.h: Likewise.
9887         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9888         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9889         * sysdeps/x86_64/dl-machine.h: Likewise.
9891         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
9892         split out locking and parameter checking.
9893         (_dl_close): Call _dl_close_worker after locking and checking.
9894         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
9895         _dl_close.
9896         * elf/Makefile: Add rules to build and run tst-thrlock.
9897         * elf/tst-thrlock.c:  New file.
9899         [BZ #3426]
9900         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
9901         reality.
9903         [BZ #3429]
9904         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
9905         we are sure we do not need it anymore for _dl_close.  Also move
9906         the asserts inside the lock region.
9907         Patch mostly by Suzuki <suzuki@in.ibm.com>.
9909 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
9911         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
9912         argument.
9913         (_dl_lookup_symbol_x): Adjust caller.
9915         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
9916         _ns_global_scope.
9917         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
9919         * elf/dl-libc.c: Revert l_scope name changes.
9920         * elf/dl-load.c: Likewise.
9921         * elf/dl-object.c: Likewise.
9922         * elf/rtld.c: Likewise.
9923         * elf/dl-close.c (_dl_close): Likewise.
9924         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
9925         always use __rtld_mrlock_{change,done}.  Always free old scope list
9926         here if not l_scope_mem.
9927         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
9928         change.  Never free scope list here.  Just __rtld_mrlock_lock before
9929         the lookup and __rtld_mrlock_unlock it after the lookup.
9930         * elf/dl-sym.c: Likewise.
9931         * include/link.h (struct r_scoperec): Remove.
9932         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
9933         with l_scope_mem and l_scoperec_lock with l_scope_lock.
9935 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
9937         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
9939 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
9941         * configure.in: Disable building profile libraries by default.
9943 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9945         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
9946         as signed longs, check for x_base + pos overflow.
9947         * sunrpc/Makefile (tests): Add tst-xdrmem2.
9948         * sunrpc/tst-xdrmem2.c: New test.
9950 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
9952         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
9953         _dl_lookup_symbol_x code.
9955 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9957         * elf/dl-runtime.c: Include sysdep-cancel.h.
9958         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
9959         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
9960         instead of catomic_* macros.
9961         * elf/dl-sym.c: Include sysdep-cancel.h.
9962         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
9963         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
9964         * elf/dl-close.c: Include sysdep-cancel.h.
9965         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
9966         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
9967         * elf/dl-open.c: Include sysdep-cancel.h.
9968         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
9969         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
9971 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9973         [BZ #3313]
9974         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
9975         fastbin rather than end of fastbin array.
9977 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
9979         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
9980         body macro.
9981         * sysdeps/x86_64/bits/atomic.h
9982         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
9983         (catomic_decrement): Use correct body macro.
9985 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9987         * include/atomic.h: Add a unique prefix to all local variables
9988         in macros.
9989         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
9991 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
9993         [BZ #3369]
9994         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
9995         and 7.
9997 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
9999         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
10001 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
10003         [BZ #3313]
10004         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
10005         determine highest fast bin to consolidate, always look into all of
10006         them.
10007         (do_check_malloc_state): Only require for empty bins for large
10008         sizes in main arena.
10010         * libio/stdio.h: Add more __wur attributes.
10012         * elf/dl-minimal.c (realloc): Optimize last patch.
10014 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
10016         [BZ #3352]
10017         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
10018         and use memcpy() if it does.
10020 2006-11-12  Andreas Jaeger  <aj@suse.de>
10022         [BZ #2510]
10023         * manual/search.texi (Hash Search Function): Clarify.
10024         (Array Search Function): Clarify.
10026 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
10028         [BZ #2830]
10029         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
10030         shifting.
10031         * math/atest-exp2.c (read_mpn_hex): Likewise.
10032         * math/atest-sincos.c (main): Likewise.
10034 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
10036         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
10037         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
10038         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
10039         version GLIBC_2.6.
10040         * Versions.def: Add GLIBC_2.6 for libc.
10042         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
10044         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
10046 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
10048         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
10050         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
10052         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
10053         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
10055 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
10057         * include/atomic.c: Define catomic_* operations.
10058         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
10059         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
10060         * malloc/memusage.c: Likewise.
10061         * gmon/mcount.c: Likewise.
10062         * elf/dl-close.c: Likewise.
10063         * elf/dl-open.c: Likewise.
10064         * elf/dl-profile.c: Likewise.
10065         * elf/dl-sym.c: Likewise.
10066         * elf/dl-runtime.c: Likewise.
10067         * elf/dl-fptr.c: Likewise.
10068         * resolv/res_libc.c: Likewise.
10070 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
10072         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
10073         components which lack them.
10075         * nis/nis_subr.c (nis_getnames): Make sure that we always return
10076         at least one entry consisting of the parameter concatenated with
10077         the domain.
10079 2006-10-10  Roland McGrath  <roland@frob.com>
10081         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
10082         * sysdeps/mach/hurd/futimes.c: Likewise.
10083         * sysdeps/mach/hurd/lutimes.c: Likewise.
10085 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
10086             Jakub Jelinek  <jakub@redhat.com>
10088         Implement reference counting of scope records.
10089         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
10090         from the list in objects which remain.  Always allocate new scope
10091         record.
10092         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
10093         don't resize, allocate a new one.
10094         * elf/dl-runtime.c: Update reference counters before using a scope
10095         array.
10096         * elf/dl-sym.c: Likewise.
10097         * elf/dl-libc.c: Adjust for l_scope name change.
10098         * elf/dl-load.c: Likewise.
10099         * elf/dl-object.c: Likewise.
10100         * elf/rtld.c: Likewise.
10101         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
10102         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
10103         Add l_scoperec_lock.
10104         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
10105         * sysdeps/generic/rtld-lowlevel.h: New file.
10107         * include/atomic.h: Rename atomic_and to atomic_and_val and
10108         atomic_or to atomic_or_val.  Define new macros atomic_and and
10109         atomic_or which do not return values.
10110         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
10111         Various cleanups.
10112         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10114         * po/sv.po: Update from translation team.
10116 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
10118         * Versions.def: Add GLIBC_2.6 to libpthread.
10120         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
10121         (versioned_symbol): Likewise.
10122         (compat_symbol): Likewise.
10124         * po/tr.po: Update from translation team.
10126 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10128         * nis/Banner: Removed.  It's been integral part forever and the
10129         author info is incomplete anyway.
10130         * libio/Banner: Likewise.
10132         * nis/nis_table.c (nis_list): If __follow_path fails in the new
10133         code, make sure the nis_freeresult call doesn't crash and that the
10134         result is reported correctly.
10136 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
10138         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
10139         when callback is NULL.
10141         * nis/Versions (libnss_nisplus): Add
10142         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
10143         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
10144         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
10145         _nss_create_tablename): Rename to...
10146         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
10147         ... these.  No longer static.
10148         (internal_setgrent): Adjust users.
10149         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
10150         Don't use locking around _nss_grp_create_tablename call.
10151         * nis/nss_nisplus/nisplus-initgroups.c: New file.
10153 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10155         * version.h (VERSION): Bump to 2.5.90 for new development tree.
10157 2006-10-06  Andreas Jaeger  <aj@suse.de>
10159         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
10161 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10163         * po/pl.po: Update from translation team.
10165         * nscd/nscd.c (main): Fix typo in message.
10166         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
10168 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
10170         [BZ #3291]
10171         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
10172         errno.h, signal.h, unistd.h and sysdep-cancel.h.
10173         (__sigprocmask): Define.
10175 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
10177         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
10178         used.
10180 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
10182         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
10183         in oldtotal and newtotal calculation.
10184         * nscd/nscd-client.h (struct mapped_database): Add datasize
10185         field.
10186         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
10187         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
10188         increased.
10189         (__nscd_cache_search): Add checks to make sure we never reference
10190         data beyond the current mapping.
10192 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
10194         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
10195         variables const to avoid compiler warnings.
10197         * io/fts.c (fts_close): Remove redundant checks.
10198         (fts_build): Likewise.
10199         (fts_palloc): Likewise.
10201         * manual/message.texi (Advanced gettext functions,
10202         Using gettextized software): Fix typos.
10204 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
10206         * posix/glob.c (glob_in_dir): Add some comments and asserts to
10207         explain why there are no leaks.
10209 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
10211         * libio/wmemstream.c: Include <wchar.h>.
10212         * libio/bug-wmemstream1.c: Likewise.
10213         * libio/tst-wmemstream1.c: Likewise.
10214         * libio/tst-wmemstream2.c: Likewise.
10216         * version.h (RELEASE): Bump to 2.5.
10217         * README: Regenerated.
10219         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
10221         [BZ #3273]
10222         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
10223         found no group members.
10224         Patch by Petr Baudis.
10226 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
10228         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
10229         assert bootstrap_map.l_tls_modid is zero.
10230         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
10231         if USE___THREAD.
10233 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
10235         * libio/stdio.h: Move open_wmemstream prototype to ...
10236         * wcsmbs/wchar.h: ... here.
10238 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
10240         [BZ #3252]
10241         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
10242         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
10243         __{,l}chown to handle the rest.
10244         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
10245         fchownat syscall and __ASSUME_32BITUIDS case inline, call
10246         __{,l}chown to handle the rest.
10247         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
10248         i386/fchownat.c.
10249         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
10250         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
10252         [BZ #3253]
10253         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10254         time, rather allocate increasingly bigger arrays of pointers, if
10255         possible with alloca, if too large with malloc.
10257 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
10259         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
10261         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
10263 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
10265         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
10266         home addresses.
10267         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
10268         IFA_F_HOMEADDRESS flag for interfaces.
10269         * include/ifaddrs.h (struct in6addrinfo): Define
10270         in6ai_homeaddress.
10272 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
10274         [BZ #3225]
10275         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
10276         PTR_DEMANGLE3): Define.
10277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
10278         PTR_DEMANGLE3): Likewise.
10279         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
10280         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
10281         Likewise.
10282         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
10284 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
10286         * po/libc.pot: Regenerated.
10287         * po/be.po: Updated.
10288         * po/ca.po: Likewise.
10289         * po/cs.po: Likewise.
10290         * po/da.po: Likewise.
10291         * po/de.po: Likewise.
10292         * po/el.po: Likewise.
10293         * po/en_GB.po: Likewise.
10294         * po/es.po: Likewise.
10295         * po/fi.po: Likewise.
10296         * po/fr.po: Likewise.
10297         * po/gl.po: Likewise.
10298         * po/hr.po: Likewise.
10299         * po/hu.po: Likewise.
10300         * po/ja.po: Likewise.
10301         * po/ko.po: Likewise.
10302         * po/nb.po: Likewise.
10303         * po/nl.po: Likewise.
10304         * po/pl.po: Likewise.
10305         * po/pt_BR.po: Likewise.
10306         * po/ru.po: Likewise.
10307         * po/rw.po: Likewise.
10308         * po/sk.po: Likewise.
10309         * po/sv.po: Likewise.
10310         * po/tr.po: Likewise.
10311         * po/zh_CN.po: Likewise.
10312         * po/zh_TW.po: Likewise.
10314         [BZ #3137]
10315         * iconv/iconv_prog.c (main): Fix spelling in error message.
10316         * iconv/iconvconfig.c (main): Likewise.
10317         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
10318         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
10319         * locale/programs/localedef.c (main): Likewise.
10320         * locale/programs/repertoire.c (repertoire_read): Likewise.
10321         * timezone/zdump.c (main): Likewise.
10322         * nscd/connections.c (handle_request): Fix spelling in log message.
10323         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
10325 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
10327         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
10328         interfaces.
10330 2006-09-20  Andreas Jaeger  <aj@suse.de>
10332         * math/libm-test.inc (lrint_test_upward): Fix typo.
10334 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
10336         [BZ #2592]
10337         * math/libm-test.inc (lrint_test_tonearest): New function.
10338         (lrint_test_towardzero): New function.
10339         (lrint_test_downward): New function.
10340         (lrint_test_upward): New function.
10341         (main): Run these new tests.
10342         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
10343         of values near to 0.
10344         (two52): Use double not long double.
10345         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10346         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10347         (two23): Use float not double.
10348         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10349         (two23): Use float not double.
10350         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10351         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10352         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10353         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10355 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10357         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
10358         Cast sp to unsigned long to avoid compiler warning.
10359         Use __makecontext_ret function instead of a trampoline on the stack.
10360         (__makecontext_ret): New function.
10361         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
10363 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
10365         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
10366         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
10367         bits.
10369 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
10371         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
10372         sure no reference to the unloaded map's search list remains in the
10373         dependency's scope.
10375 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
10377         * elf/Makefile: Add rules to build and run unload7 test.
10378         * elf/unload7.c: New test.
10379         * elf/unload7mod1.c: New file.
10380         * elf/unload7mod2.c: New file.
10382 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
10384         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
10385         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
10386         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10387         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
10388         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10389         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
10390         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10391         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
10392         PTRACE_GETEVENTMSG): Likewise.
10393         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
10394         values.
10396 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
10398         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
10399         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10400         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
10401         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
10403 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
10405         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
10406         write '\0' to the fd.
10407         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
10408         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
10409         Change regs to unsigned long pointer from unsigned int, fix fscr
10410         offset.
10412 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
10414         * io/Makefile (CFLAGS-fstatat.c): Set.
10415         (CFLAGS-fstatat64.c): Likewise.
10416         (CFLAGS-mknodat.c): Likewise.
10418         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
10419         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10420         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
10421         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
10423 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
10424             Steven Munroe  <sjmunroe@us.ibm.com>
10426         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
10427         names to the beginning.  Rename "cell" to "cellbe".
10428         (_dl_powerpc_platforms): New.
10429         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10430         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
10431         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
10432         (_DL_HWCAP_PLATFORM): Define to new mask.
10433         (_dl_platform_string, _dl_string_platform): New functions.
10434         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
10435         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
10437 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
10439         [BZ #2526]
10440         * README.libm: Fix a thinko in sqrt algorithm description.
10442         [BZ #3143]
10443         * manual/string.texi (argz_delete): Fix prototype.
10444         Patch by <alpt@freaknet.org>.
10446 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
10448         [BZ #3138]
10449         * io/test-lfs.c (do_prepare): Give name_len type size_t.
10450         * io/tst-fcntl.c (do_prepare): Likewise.
10451         * posix/tst-exec.c (do_prepare): Likewise.
10452         * posix/tst-preadwrite.c (do_prepare): Likewise.
10453         * posix/tst-spawn.c (do_prepare): Likewise.
10454         * posix/tst-truncate.c (do_prepare): Likewise.
10455         * rt/tst-aio.c (do_prepare): Likewise.
10456         * rt/tst-aio64.c (do_prepare): Likewise.
10457         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
10458         size_t.
10460 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
10462         [BZ #2821]
10463         * time/mktime.c (guess_time_tm): Fix overflow detection.
10464         * time/Makefile (tests): Add bug-mktime1.
10465         * time/bug-mktime1.c: New file.
10467         [BZ #3189, #3188]
10468         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
10469         (mremap): Likewise.
10471 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
10473         [BZ #1006]
10474         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
10475         Ensure relocation doesn't clobber any bits outside of the
10476         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
10477         R_SPARC_HI22 and R_SPARC_H44.
10479         [BZ #2775]
10480         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
10481         (long) (MINSIZE + nb - old_size) is positive.
10483         * malloc/arena.c (grow_heap): When growing bail even if new_size
10484         is negative.
10486         [BZ #3155]
10487         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
10488         stack below r1.
10490 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
10492         * posix/regex_internal.c (re_string_reconstruct): Handle
10493         offset < pstr->valid_raw_len && pstr->offsets_needed case.
10494         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
10495         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10496         re_string_context_at.
10497         * posix/Makefile: Add rules to build and run bug-regex26 test.
10498         * posix/bug-regex26.c: New test.
10500         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
10501         rather than col_sym_free.  Move seqp declaration earlier.
10503         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
10505 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
10507         * nscd/initgrcache.c (addinitgroupsX): Move any_success
10508         decl before first goto out.
10510 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
10512         * Makerules (shlib.lds): If have-hash-style, put .hash section
10513         at the end of the RO segment.
10515 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
10517         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
10518         style hash table format is used.
10520 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
10522         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
10523         randomization rather than before.
10524         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
10526 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
10528         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
10530         * malloc/malloc.c (_int_malloc): Use full list insert and not
10531         shortcut which assumes the list is empty for large requests
10532         too.
10534         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
10536 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
10538         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
10539         and offout arguments to the prototype.
10540         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
10541         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
10542         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
10543         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
10544         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
10545         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
10546         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
10547         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
10549 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
10551         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
10553         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
10554         dlopen parameters.
10556 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
10558         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
10559         only if herrno is NETDB_INTERNAL.  Handle errors other than
10560         ERANGE outside of the loops, handle TRY_AGAIN.
10562         * locale/programs/ld-ctype.c (translit_flatten): Issue error
10563         if other's ctype category was missing.
10564         * locale/programs/ld-collate.c (collate_read): Return if
10565         copy_locale's collate category is missing.
10567 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
10569         [BZ #2684]
10570         * malloc/malloc.c (public_rEALLOc): Try harder by using other
10571         arenas if allocation failed.
10572         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
10574 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
10576         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
10577         waste bins[0..1].
10578         (malloc_state): Reduce bins size by 2.
10579         (_int_malloc): Fix test for large enough buffer for early termination.
10580         When no unsorted block matches perfectly and an exiting block has
10581         to be split, use full list insert and not shortcut which assumes
10582         the list is empty.
10584         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
10585         failure.
10587 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
10589         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
10590         do anything.
10592         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
10593         symbol require exact match (these are PLTs).
10594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10595         (_dl_ppc64_addr_sym_match): Likewise.
10597         [BZ #2683]
10598         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
10599         If symbol has a value use it.
10600         * elf/tst-dladdr1.c: New file.
10601         * elf/Makefile: Add rules to build and run tst-addr1.
10603 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
10605         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
10606         keeps failing and heap growth or new heap creation isn't
10607         successful either.
10608         * malloc/tst-malloc.c (main): Add new tests.
10610 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
10612         [BZ #2734]
10613         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
10614         as in the x86-64 code to use bswap.
10616 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
10618         [BZ #2680]
10619         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
10620         __USE_UNIX98.
10621         * posix/bits/unistd.h: Likewise.
10623 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
10625         [BZ #2751]
10626         * string/strchr.c: Add cast to avoid warning.
10628 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
10630         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
10631         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
10632         limit is needed to avoid the exploding of the address space
10633         requirement for secondary heaps.
10634         * malloc/arena.c (HEAP_MAX_SIZE): Define using
10635         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
10637 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
10639         [BZ #3018]
10640         * Makerules (depfiles): Handle extra-test-objs the same as
10641         extra-objs.
10642         (common-mostlyclean): Likewise.
10643         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
10644         instead.
10645         * elf/Makefile (extra-objs): Likewise.
10646         * stdlib/Makefile (extra-objs): Likewise.
10648 2006-08-14  Eric Blake  <ebb9@byu.net>
10650         [BZ #3044]
10651         * misc/error.h: Assume C89 or better.
10652         * misc/error.c: Likewise.
10654 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
10656         [BZ #3040]
10657         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
10658         __ASSUME_ATFCTS is defined.
10660 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
10662         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
10663         to sort in each call.
10665         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
10666         is empty simply return and use next service.
10667         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
10669         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
10670         tells us when not finding a charmap file is an error.
10671         * locale/programs/charmap.h: Adjust charmap_read prototype.
10672         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
10673         cannot find a charmap.
10674         * locale/programs/localedef.c (main): Adjust charmap_read call.
10676 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
10678         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
10679         sysdeps/posix/pause.c implementation instead.
10681 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
10683         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
10684         to EPERM.
10686 2006-08-13  Andreas Schwab  <schwab@suse.de>
10688         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
10689         Don't clobber caller's LRSAVE.
10690         (_dl_prof_resolve): Likewise.
10692 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
10694         [BZ #1996]
10695         * libio/memstream.c (open_memstream): Allocate initial buffer with
10696         calloc.
10697         * libio/wmemstream.c (open_wmemstream): Likewise.
10698         * libio/strops.c: Pretty printing.
10699         (_IO_str_overflow): Clear uninitialized part of the new buffer.
10700         (enlarge_userbuf): New function.
10701         (_IO_str_seekoff): Call it if seek position is larger than current
10702         buffer.
10703         * libio/wstrops.c: Likewise.
10704         * libio/vasprintf.c: Add comment as to why we do not have to use
10705         calloc instead of malloc to allocate initial buffer.
10706         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
10707         * libio/bug-memstream1.c: New file.
10708         * libio/bug-wmemstream1.c: New file.
10710 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
10712         * libio/wstrops.c: Remove dead macro definitions and comments.
10713         * libio/strops.c: Likewise.
10715         [BZ #2764]
10716         * login/utmpname.c (__utmpname): Remove unnecessary test.
10718 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
10720         [BZ #2832]
10721         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
10722         0s from integers.
10724 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
10726         [BZ #2987]
10727         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
10728         for CPU clocks.
10729         * sysdeps/unix/clock_settime.c: Add support for platform-specific
10730         setting of CPU clocks.
10732 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10734         [BZ #2841]
10735         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
10736         since C99 requires the result to promote to 'int' when uint_least8_t
10737         and uint_least16_t promote to 'int'.
10739 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
10741         [BZ #3013]
10742         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
10743         lenght of one output field, correct bitmask creation.
10744         * locale/programs/ld-time.c: Add alignment.
10746         [BZ #2997]
10747         * misc/error.c: Add space between program name and message if file
10748         name is missing.
10750 2006-08-03  Eric Blake  <ebb9@byu.net>
10752         [BZ #2998]
10753         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
10755 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
10757         * malloc/memusagestat.c: Silence warnings.
10759         * malloc/malloc.c: Dynamically size mmap treshold if the program
10760         frees mmaped blocks.
10761         Patch by Valerie Henson and Arjan van de Ven.
10763 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
10765         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
10766         __USE_GNU.
10768         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
10769         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
10770         (DEF): Don't put the var into .gnu.linkonce.r.* section.
10771         Only provide var definitions in strtol_l (or for *ull*
10772         in strtoll_l).
10774         * stdio-common/bug16.c (tests): New array.
10775         (do_tests): Allow the first hexadecimal digit
10776         to be 1, 2, 4 or 8.  Do 3 additional tests.
10778         * sysdeps/s390/fpu/libm-test-ulps: Update.
10780         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
10781         fchownat syscall if available.
10782         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
10783         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
10784         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
10786 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
10788         * nis/nis_xdr.c: Avoid some function calls.
10790 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
10791             Ulrich Drepper  <drepper@redhat.com>
10793         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
10794         short cut if only one name component is stripped away.
10796 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
10798         * nis/nis_call.c: Minor cleanups throughout.
10799         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
10800         (first_shoot): Add search_parent_first parameter.  Only if it is set
10801         search parent server first.
10802         If directory for table found through cold start cache is not the same
10803         as referenced in the cache, don't use it.
10804         (__nisfind_server): Take additional parameter.  Pass it on to
10805         first_shoot.
10806         (__prepare_niscall): Adjust __nisfind_server call.
10807         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
10808         * nis/nis_table.c: Adjust __nisfind_server call.
10809         * nis/nis_lookup.c: Likewise.
10810         (nis_lookup): Don't loop endlessly if name is reduced to ".".
10812 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
10814         [BZ #2182]
10815         * math/s_cacosh.c: Return values from positive branch.
10816         * math/s_cacoshf.c: Likewise.
10817         * math/s_cacoshl.c: Likewise.
10819         [BZ #2883]
10820         * sysvipc/sys/msg.h: Change return value to ssize_t.
10821         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
10822         * sysvipc/msgrcv.c: Likewise.
10823         * include/sys/msg.h: Likewise.
10825         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
10826         test introduced in patch for bz #661.
10827         (getgrouplist): Simplify code a bit.  Don't allocate one additional
10828         element for NEWGROUPS.
10830         [BZ #2908]
10831         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
10832         'f', use '1' as leading digit not '\1'.
10833         * stdio-common/Makefile (tests): Add bug16.
10834         * stdio-common/bug16.c: New file.
10836         [BZ #2914]
10837         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
10838         and don't try to open it.  The patch introducing the macro
10839         contained a bug and used the same file name as the new file
10840         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
10841         this out completely.
10843         [BZ #2926]
10844         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
10845         Patch by Jerry James <Jerry.James@usu.edu>.
10847         * rt/Makefile (tests): Add tst-clock2.
10848         * rt/tst-clock2.c: New file.
10850         [BZ #2978]
10851         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
10852         function and its parameters and pass it to new thread.
10853         (__gai_notify): Add support for alternative waiting for completion.
10854         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
10855         waiting for completion.
10856         * resolv/getaddrinfo_a.c: Likewise.
10857         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
10858         waiting for completion is used.
10859         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
10860         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
10861         * resolv/gai_error.c: Likewise.
10862         * resolv/gai_sigqueue.c: Likewise.
10864 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
10866         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
10867         errno to EBADF and return MACH_PORT_NULL.
10869 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
10871         [BZ #2980]
10872         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
10874 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
10876         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
10877         walk them instead of the symbol table.
10879 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
10881         [BZ #2098]
10882         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
10883         status of NSS calls, not the number of returned entries.
10885         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
10886         request_key, keyctl.
10888 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10890         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
10892 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
10894         * elf/tst-auditmod1.c: Fix typo in #error.
10896 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10898         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
10900         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
10902 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
10904         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
10905         that the directory is empty even on non-POSIX filesystems.
10907 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10909         * elf/dl-open.c (dl_open_worker): Add branch prediction.
10911         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
10912         the backend NSS module.  If backend setgrent call failed, don't have
10913         internal_setgrent fail.  Just remember this until it is needed.
10914         * nis/nss_compat/compat-pwd.c: Likewise.
10915         * nis/nss_compat/compat-spwd.c: Likewise.
10917 2006-07-30  Roland McGrath  <roland@redhat.com>
10919         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
10920         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
10921         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
10922         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
10924         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
10925         (nanosleep_not_cancel): New macro.
10926         (sigsuspend_not_cancel): new macro.
10927         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
10928         (do_sigsuspend): Define as inline.
10929         (__sigsuspend): Always use do_sigsuspend.
10930         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
10931         * include/signal.h: Declare __sigsuspend_nocancel.
10932         * sysdeps/posix/pause.c
10933         [! NO_CANCELLATION] (__pause_nocancel): New function.
10935         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
10936         * include/time.h (__nanosleep_nocancel): Likewise.
10938 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
10940         * locale/programs/localedef.c (add_to_readlist): Rename local
10941         variables to avoid confusion.
10943         * locale/programs/charmap.c (charmap_read): Emit error message if
10944         charmap couldn't be found or read.
10946 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
10948         * sysdeps/unix/sysv/linux/kernel-features.h: Define
10949         __ASSUME_FUTEX_LOCK_PI.
10950         * include/time.h: Declare __nanosleep_nocancel.
10951         * include/unistd.h: Declare __pause_nocancel.
10953         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
10954         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
10955         get the __stack_chk_fail_local definition when it's needed.
10957 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
10959         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
10960         * dlfcn/bug-atexit3.c: New file.
10961         * dlfcn/bug-atexit3-lib.cc: New file.
10963         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
10964         used when the namespace is not the base namespace.
10966 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
10968         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
10969         (__new_exitfn): Bump it in every successful call.
10970         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
10971         more exit handlers, call them right away.
10972         * stdlib/exit.h: Declare __new_exitfn_called.
10974 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
10976         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
10977         calling registered handler.
10979         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
10980         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10981         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10982         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10983         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10984         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10985         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10986         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10988 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
10990         * elf/dl-lookup.c (dl_new_hash): New functions.
10991         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
10992         value here.  Compute new-style hash value.  Pass new hash value
10993         and reference to variable with the old value to do_lookup_x.
10994         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
10995         old-style hash table.
10996         (_dl_debug_bindings): Pass new hash value and reference to variable
10997         with the old value to do_lookup_x.
10998         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
10999         new-style hash value and change old-style hash value parameter to
11000         be a reference.  Reoganize functions to determine whether
11001         new-style hash table is available.  Only fall back on old-style
11002         table.  If old-style hash value is needed, compute it here.
11003         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
11004         entry.
11005         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
11006         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
11007         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
11008         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
11009         * Makeconfig: If linker supports --hash-style option add it to all
11010         linker command lines to build DSOs.
11011         * config.make.in: Define have-hash-style.
11012         * configure.in: Test whether linker supports --hash-style option.
11014         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
11015         * sysdeps/generic/ldsodefs.h: Adjust prototype.
11017 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
11019         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
11020         auditing.
11022         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
11023         RPATH of main map twice.
11025 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
11027         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
11028         look further, return original strings.
11029         (_nl_find_msg): Do not return found translation if the conversion
11030         failed.  Either signal the string is unusable or that something went
11031         wrong and the original should be used.
11033 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
11035         * string/_strerror.c (__strerror_r): Add __builtin_expect.
11037 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
11039         [BZ #2766]
11040         * misc/insremque.c (insque): Handle prev == NULL.
11041         * misc/Makefile (tests): Add tst-insremque.
11042         * misc/tst-insremque.c: New test.
11044 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
11046         [BZ #2792]
11047         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
11048         conflict with DL_DST_REQUIRED.
11050 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
11052         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
11053         match what Solaris does.
11055 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
11057         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
11058         local_setegid instead of seteuid and setegid.
11059         * sysdeps/generic/local-setxid.h: New file.
11060         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
11062         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
11064         * string/Makefile (tests): Add bug-envz1.
11065         * string/bug-envz1.c: New file.
11067 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
11069         * posix/regex_internal.c (re_string_skip_chars): If no character has
11070         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
11071         to the byte which couldn't be converted.
11072         (re_string_reconstruct): Don't clear valid_raw_len before calling
11073         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
11074         tip_context using re_string_context_at.
11075         * posix/Makefile: Add rules to build and run bug-regex25 test.
11076         * posix/bug-regex25.c: New test.
11078 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
11080         [BZ #2703]
11081         * string/envz.c (envz_strip): Correct erroneously reversed src
11082         and dest parameters to memmove() invocation.
11084 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
11086         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
11087         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
11088         to make sure the database has been already invalidated.
11089         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
11090         after the cache has been invalidated.  Use pthread_mutex_lock rather
11091         than pthread_mutex_trylock if fd != -1.
11092         * nscd/connections.c (invalidate_cache): Add fd argument, write
11093         response to fd if not calling prune_cache, pass fd to prune_cache.
11094         (handle_request): Adjust invalidate_cache caller.
11095         (nscd_run): Pass -1 as fd to prune_cache.
11097 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
11099         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
11100         the correct place.
11102 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
11104         * nscd/nscd.h (struct database_dyn): Add prunelock field.
11105         * nscd/cache.c (prune_cache): Take prunelock before starting the
11106         work.  Just return in case it is already taken.
11107         * nscd/connections.c (dbs): Initialize .prunelock.
11109 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
11111         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
11112         copying.  No need to allocate new array for group members.  Just
11113         move the pointers and update the size.
11115         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
11116         Avoid memory leak in case realloc fails.  Simplification for
11117         better code generation.
11119         Avoid deprecation warning because of libc_hidden_proto for
11120         inet6_option_alloc.
11121         * inet/inet6_option.c (option_alloc): Renamed from
11122         inet6_option_alloc.  Made static.
11123         (inet6_option_alloc): Now a simple wrapper around option_alloc.
11124         (inet6_option_append): Call option_alloc.
11125         * include/netinet/in.h: Remove libc_hidden_proto for
11126         inet6_option_alloc.
11128         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
11129         for cleanup when cb!=NULL [Coverity CID 233].
11131 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
11133         [BZ #2693]
11134         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
11135         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
11136         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
11137         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
11138         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
11139         and inet6_rth_getaddr.
11140         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
11141         array.
11142         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
11143         Mark inet6_option_* interfaces as deprecated.
11144         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
11145         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
11146         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
11147         inet6_rth_segments, and inet6_rth_getaddr.
11148         * inet/inet6_opt.c: New file.
11149         * inet/inet6_rth.c: New file.
11151         * inet/netinet/icmp6.h: Pretty printing.
11153         [BZ #2683]
11154         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
11156 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
11158         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
11159         doing it all here.  When server does not know the answer do not
11160         fail immediate, try parent first.
11162         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
11163         overflow test.
11165 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
11167         * nis/nis_call.c (__prepare_niscall): New function.  Split out
11168         from __do_niscall.
11169         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
11170         and exported.
11171         (__follow_path): New function.  Split out from nis_list.
11172         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
11173         _xdr_nis_result.
11174         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
11175         _xdr_nis_result.
11176         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
11177         and __follow_path.
11178         * nis/Versions: Export __prepare_niscall, __create_ib_request,
11179         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
11180         from libnsl for version GLIBC_PRIVATE.
11181         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
11182         Remove entry parameter from _nss_nisplus_parse_pwent and
11183         _nss_nisplus_parse_grent.
11184         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11185         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
11186         again.  Rewrite getpwent handling to not use nis_first_entry and
11187         nis_next_entry.  Roll out own niscall handling.
11188         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11190         * sunrpc/xdr_rec.c: Fix typo in comment.
11192 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
11194         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
11195         handling.
11197         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
11198         to allocate memory for my_pollfd.  Better initialization of
11199         cb_is_running.  Use TEMP_FAILURE_RETRY.
11201         * malloc/memusage.sh (memusageso): Add quotes.
11202         (memusagestat): Likewise.
11203         * debug/xtrace.sh (pcprofileso): Likewise.
11204         (pcprofiledump): Likewise.
11205         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
11206         replacement.
11207         * malloc/Makefile ($(objpfx)memusage): Likewise.
11209         * nis/nis_callback.c (__nis_create_callback): Calls to
11210         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
11211         asprintf call fails.
11213         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
11214         no uninitialized memory is passed to sendto.
11216 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
11218         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
11219         of snprintf+strdup.  Handle OOM.
11220         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
11221         cb->serv together.  Remove now obsolete free calls.
11222         (__nis_destroy_callback): Remove now obsolete free call.
11224 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
11226         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
11227         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
11228         and ULA respectively). Set precedence for IPv4 address to 10 as
11229         defined in RFC3484 for preferring IPv6.
11230         * posix/gai.conf: Update to match the new default tables.
11232 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
11234         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
11235         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
11236         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
11237         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
11239         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
11240         Removed.
11241         (init_nss_interface): Remove initialization of these variables.
11243 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
11245         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
11246         nis_free_directory forward to avoid duplication.
11248 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
11250         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
11251         rec_dirsearch returning NULL.
11252         (first_shoot): Handle __nis_finddirectory returning NULL.
11253         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
11255         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
11256         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
11258 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
11260         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
11261         pid changed.
11263 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
11265         * include/rpc/pmap_prot.h: Mark all functions as hidden.
11267         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
11268         * nscd/nscd_getgr_r.c: Likewise.
11270         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
11272         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
11273         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
11275         * stdlib/longlong.h (__clz_tab): Mark as hidden.
11277         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
11279         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
11281         * include/rpc/auth.h: Mark xdr_des_block_internal and
11282         xdr_opaque_auth_internal as hidden.
11284         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
11285         hidden.
11287         * include/rpc/xdr.h: Mark all _internal functions as hidden.
11289         * misc/getusershell.c (okshells): Don't use static initializers,
11290         do it dynamically.
11292         * stdlib/fmtmsg.c (keywords): Change type of len element to
11293         uint32_t to not waste space on 64bit machines.
11295         * locale/setlocale.c: Change _nl_category_names into a string.
11296         Add new _nl_category_name_idxs.  Change all users.
11297         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
11298         Declare _nl_category_name_idxs.
11299         * locale/findlocale.c: Adjust for _nl_category_names change.
11300         * locale/loadlocale.c: Likewise.
11301         * locale/newlocale.c: Likewise.
11302         * intl/dcigettext.c: Likewise.
11304         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
11305         (add_alias2): ...here.  New function.
11306         (__gconv_read_conf): Simplify builtin alias handling.
11307         (builtin_aliases): Convert to string to avoid relocations.
11308         * iconv/gconv_builtin.h: Add comment about correct formatting.
11310 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
11312         * resolv/res_debug.c (loc_ntoa): Make error const.
11314 2006-05-14  Andreas Schwab  <schwab@suse.de>
11316         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
11318 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
11320         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
11321         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
11322         sizeof (cpu_set_t).
11324 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
11326         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
11328         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
11330         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
11331         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
11333         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
11334         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
11336         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
11337         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
11338         xdr_cback_data.
11340         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
11341         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11342         xdr_ypupdate_args.
11344         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
11345         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
11347         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
11348         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
11350         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
11351         * include/rpcsvc/nis_callback.h: New file.
11353         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
11354         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
11356         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11357         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11359         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
11360         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
11362         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11363         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11365         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
11366         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11367         xdr_ypdelete_args.
11369         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
11370         __BEGIN_DECLS and __END_DECLS, the header is not installed.
11372         * nis/nis_error.c: Remove table of strings.  Use position
11373         independent mechanism.
11374         * nis/nis_error.h: New file.
11376 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
11378         * locale/programs/ld-time.c (time_finish): If wide era name or
11379         format aren't provided, set both wname and wformat to L"".
11381 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
11383         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
11384         results if the call was succesful.
11386         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
11388         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
11389         as hidden.
11391 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
11393         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
11395 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
11397         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
11398         caller makes sure this is not the case.
11399         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
11401 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
11403         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
11404         calls.
11406         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
11407         [Coverity CID 229, 230]
11409         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
11410         DGETTEXT calls.
11411         (hol_help): Likewise.  [Coverity CID 226, 227]
11413         * string/argz-replace.c (__argz_replace): Unconditionally call
11414         free on SRC.  [Coverity CID 225]
11416         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
11417         the return value of __nis_default_owner and __nis_default_group,
11418         it has been especially allocated.  [Coverity CID 224]
11420         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
11421         searchgroup and searchowner.  Significantly simplified.
11422         (__nis_default_owner): Remove duplication.  Do not locally copy the
11423         string before duplicating it.
11424         (__nis_default_group): Likewise.
11426         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
11427         we must clear the variable before calling __nisfind_server.
11429         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
11430         nis_getnames.  [Coverity CID 223]
11432         * locale/programs/locfile.c (locfile_read): Use alloca instead of
11433         xmalloc to allocate local repertoire name.  [Coverity CID 222]
11435         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
11436         allocate memory for the input to add_bytes.  [Coverity CID 221]
11438         * posix/wordexp.c (w_addword): Free word if realloc fails and it
11439         was allocated here.  [Coverity CID 219, 220]
11441         * posix/getconf.c (print_all): Free confstr data after printing.
11442         [Coverity CID 218]
11444         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
11445         list allocation fails.  [Coverity CID 215]
11447         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
11448         [Coverity CID 213]
11450         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
11451         string is NULL.  [Coverity CID 212]
11452         * argp/Makefile: Add rules to build and run bug-argp1.
11453         * argp/bug-argp1.c: New file.
11455         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
11456         end of string.
11457         * stdlib/canonicalize.c (__realpath): Likewise.
11459         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
11460         pointer.  [Coverity CID 206]
11462         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
11463         in statically linked code.
11464         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
11465         statically built code, be prepared to have no link map.
11466         [Coverity CID 205]
11468         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
11469         dgettext calls. [Coverity CID 204]
11471         * argp/argp-help.c (struct uparams): Remove valid member.  Change
11472         the one user.
11473         (uparam_names): Reduce size.  Avoid relative relocations.
11474         Moved to read-only segment.
11475         (fill_in_uparams): Update for new layout.
11477         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
11478         assumed to always be != NULL. [Coverity CID 202]
11480         * argp/argp-help.c (hol_entry_help): Remove some dead code
11481         [Coverity CID 200].
11483         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
11484         away a few more unconditional yperr2nss calls.
11485         (_nss_nis_getservbyname_r): Likewise.
11487 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
11489         * sysdeps/generic/ldsodefs.h: Remove support for non-core
11490         architectures.
11492         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
11493         that unused memory passed to sendto is nevertheless initialized.
11495         [BZ #2499]
11496         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
11497         possibly unaligned memory accesses.
11499         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
11500         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
11501         and __putlong respectively.  Correct buffer overflow check for
11502         NS_NOTIFY_OP.
11504         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
11506         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
11507         (send_dg): Rewrite error handling to be more compact and avoid
11508         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
11510         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
11512         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
11513         instead of ns_get16.
11514         (res_queriesmatch): Likewise.  Minor optimization.
11516         [BZ #2499]
11517         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
11518         __libc_res_nsend might reallocate the buffer for the answer.  In
11519         this case we have to reload the HP pointer.
11521 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11523         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
11524         some branch prediction hints.
11526         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
11527         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11528         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11529         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11530         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11531         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11532         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11533         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11535 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11537         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
11538         by a GOT relocation to make Scrt1.o position independent.
11539         * sysdeps/s390/s390-64/elf/start.S: Likewise.
11541         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
11542         six system call parameters.
11543         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
11545 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11547         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
11548         malloc&bzero.
11550         * sunrpc/svc_udp.c (BZERO): Remove definition.
11551         (CALLOC): Define.
11552         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
11554         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
11555         (des_SPtrans): Use uint32_t type.
11556         (des_skb): Likewise.
11558         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
11560 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
11562         [BZ #2509]
11563         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
11564         on 32-bit arches.
11566 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11568         * locale/programs/ld-address.c (address_finish): Fix one more
11569         place where the iso639 array might be accessed beyond the limits.
11571 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
11573         * nis/nis_table.c (nis_list): Avoid clearing res twice before
11574         filling it for the first time.
11576         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
11577         Adjust all callers.
11578         Free res object content before returning.
11580         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
11582         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
11583         client->cl_auth.
11585         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
11586         cleanup for initial thread, just the free call on TVP.
11588         * nscd/gai.c (__getline): Define.
11591 See ChangeLog.16 for earlier changes.