Remove redundant .gitignore files.
[glibc.git] / ChangeLog
blobbf3dd4936d9e523b695e48b68749f6b3f61b32ab
1 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3         * nscd/nscd.h: Move Definition for BLOCK_ALIGN_LOG, BLOCK_ALIGN, and
4         BLOCK_ALIGN_M1 to ...
5         * nscd/nscd-client.h: ...here.
6         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
7         Use it if we absolutely cannot reach any more correct list elements
8         because that many do not fit into the currently mapped database.
10 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
12         * nscd/nscd_helper.c: Include stddef.h.
13         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
14         in a couple of places.  Return NULL if trail is not less than
15         datasize, don't consider dataheads with length smaller than
16         offsetof (struct datahead, data) + datalen.
17         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
18         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
19         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
20         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
21         * nscd/nscd_getai.c (__nscd_getai): Likewise.
22         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
23         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
25         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
26         Rename ...
27         (fallocate64): ... to this.
28         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
29         Rename ...
30         (fallocate64): ... to this.
31         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
32         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
33         fallocate64@@GLIBC_2.10.
34         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
35         fallocate64@@GLIBC_2.11.
36         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
37         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
38         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
39         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
41         * nscd/selinux.c (nscd_avc_destroy): Removed.
42         * nscd/selinux.h (nscd_avc_destroy): Likewise.
43         * nscd/nscd.c (termination_handler): Don't call
44         nscd_avc_destroy.
46 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
48         * include/atomic.h: Formatting.
49         (catomic_compare_and_exchange_val_acq): Don't define if already
50         defined by bits/atomic.h.
52 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
54         * math/libm-test.inc (expm1_test): Add test for range error.
56         * Versions.def: Add GLIBC_2.11 for libc.
57         * debug/Makefile (routines): Add longjmp_chk.
58         Add rules to build and run tst-longjmp_chk.
59         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
60         * debug/longjmp_chk.c: New file.
61         * debug/tst-longjmp_chk.c: New file.
62         * include/bits/setjmp2.: New file.
63         * include/stdio.h: Mark __fortify_fail as internal_function.
64         * setjmp/Makefile (headers): Add bits/setjmp2.h.
65         * setjmp/bits/setjmp2.h: New file.
66         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
67         of the aliases.
68         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
69         defined.
70         * sysdeps/i386/____longjmp_chk.S: New file.
71         * sysdeps/x86_64/____longjmp_chk.S: New file.
72         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
73         * sysdeps/x86_64/__longjmp.S: Likewise.
75         * version.h: Bump for 2.11 development.
77         * elf/check-execstack.c: New file.
78         * elf/Makefile: Add rules to build and run check-execstack.
80 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
82         * version.h (VERSION): Bump to 2.10.1.
84         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
85         compatibility functions.
86         * nss/getXXent_r.c: Likewise.
87         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
88         * gshadow/getsgnam_r.c: Likewise.
89         * gshadow/Version: Remove duplicate entries.
91         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
92         for recent processor.
93         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
94         Likewise.
96 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
98         * version.h (VERSION): Bump for 2.10 release.
99         * include/features.h (__GLIBC_MINOR__): Bump to 10.
101         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
102         same place we add ASFLAGS-config.
104 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
106         [BZ #10128]
107         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
108         or FORMERR and the other NOERROR, don't raise an error.
110 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
112         [BZ #10118]
113         * Makeconfig (+asflags): New variable based upon ASFLAG or
114         asflags-cpu.
115         (ASFLAGS): Add override to set ASFLAGS to +asflags.
116         * config.make.in (asflags-cpu): Add variable based upon
117         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
118         the assembler.
119         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
120         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
121         recognizes power6 instruction set due to passing -mcpu=power6 from
122         --with-cpu=power6 when compiling .S files.
123         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
124         Likewise.
125         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
126         Likewise.
127         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
128         Likewise.
130 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
132         * string/stratcliff.c (do_test): Test for zero length
133         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
134         at the end of the page.
136 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
138         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
140         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
141         count is zero.
143         * po/da.po: Update from translation team.
145 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
147         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
148         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
150 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
152         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
153         and READ_IMPLIES_EXEC.
155 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
157         * po/da.po: Update from translation team.
159 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
161         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
162         comment change.
164 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
166         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
167         to MAP_ANON in PROT_NONE mmap64 call.
168         (open_archive): Likewise.
169         (file_data_available_p): Use mmap64 instead of mremap.
170         (enlarge_archive): Likewise.  Update head if ah->addr changed.
171         Attempt to reserve address space after mmap64 region.
173 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
175         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
176         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
177         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
179         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
180         atanh should set ERANGE.
182         [BZ #10087]
183         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
184         result of lookup to make call to implement STT_GNU_IFUNC.
185         (_dl_profile_fixup): Likewise.
186         Patch by H.J. Lu <hjl.tools@gmail.com>.
188         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
189         warning.
191         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
192         from definition.
194         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
195         label if it is not used.
197         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
198         of gmon_hist_hdr and gmon_hdr structures and use them.
199         * elf/sprof.c: Likewise.
201         * elf/dl-load.c (open_verify): Add temporary variable to avoid
202         warning.
204         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
206         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
207         to avoid cast.
209         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
210         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
211         to avoid warnings.
212         (iruserok_af): Use ss_family instead of casts.
214         * gmon/gmon.c (write_hist): Define real-type variant of
215         gmon_hist_hdr structure and use it.
216         (write_gmon): Likewise for gmon_hdr.
218         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
219         function if we are not going to define it.
220         * sysdeps/unix/sysv/linux/writev.c: Likewise.
222         * inet/inet6_option.c (option_alloc): Add temporary variable to
223         avoid warning.
225         * libio/strfile.h (struct _IO_streambuf): Use correct type and
226         name of VTable element.
227         * libio/iovsprintf.c: Avoid casts to avoid warnings.
228         * libio/iovsscanf.c: Likewise.
229         * libio/vasprintf.c: Likewise.
230         * libio/vsnprintf.c: Likewise.
231         * stdio-common/isoc99_vsscanf.c: Likewise.
232         * stdlib/strfmon_l.c: Likewise.
233         * debug/vasprintf_chk.c: Likewise.
234         * debug/vsnprintf_chk.c: Likewise.
235         * debug/vsprintf_chk.c: Likewise.
237         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
238         function pointers.
240 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
242         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
244 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
246         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
248         * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
249         * sysdeps/i386/fpu/s_tanf.S: Likewise.
250         * sysdeps/i386/fpu/s_tanl.S: Likewise.
251         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
252         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
253         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
254         * math/libm-test.inc: Add tests for errno after tan calls with
255         ±Inf.
257         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
258         errno value vor pow(+-0,neg).
259         * math/libm-test.inc (pow_test): Add tests for errno value for
260         pole errors.
262         * math/w_fmod.c: Also handle x=±Inf as error.
263         * math/w_fmodf.c: Likewise.
264         * math/w_fmodl.c: Likewise.
265         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
266         x=±Inf or y=0.
268         * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
269         * sysdeps/i386/fpu/s_cosf.S: Likewise.
270         * sysdeps/i386/fpu/s_cosl.S: Likewise.
271         * sysdeps/i386/fpu/s_sin.S: Likewise.
272         * sysdeps/i386/fpu/s_sinf.S: Likewise.
273         * sysdeps/i386/fpu/s_sinl.S: Likewise.
274         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
275         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
276         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
277         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
278         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
279         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
280         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
281         * math/libm-test.inc: Add tests for errno after sin/cos calls with
282         ±Inf.
284         * stdlib/strtod_l.c (round_and_return): We have to set errno to
285         ERANGE for underflows.
286         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
288         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
289         the 2001 revision.
291         * libio/tst-widetext.input: Remove surrogates.
293         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
295         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
296         for lgamma should set errno to ERANGE, not EDOM.
297         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
299 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
301         [BZ #10093]
302         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
303         UTF-16 surrogates.
305         * locale/programs/locarchive.c (enlarge_archive): Conserve address
306         space when temporarily mapping the whole content of the old file.
308         [BZ #10100]
309         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
310         not zero.
312 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
314         * iconvdata/sjis.c (BODY): Don't advance inptr before
315         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
316         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
317         two byte chars.
319 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
321         * locale/locarchive.h (struct locarhandle): Rename len field to
322         mmaped and add new reserved field.
323         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
324         (create_archive): Reserve address space and then map file into it.
325         (open_archive): Likewise.
326         (file_data_available_p): New function.
327         (compare_from_file): New function.
328         (close_archive): Adjust to member name changes.
329         (add_locale): Before comparing locale data, check it is mapped.
330         Otherwise fall back to reading from the file.
332 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
334         * stdio-common/psiginfo.c: Include <errno.h>.
336 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
338         [BZ #9920]
339         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
340         to get consistency between 32 and 64 bit architectures.
342         [BZ #10052]
343         * sysdeps/unix/make-syscalls.sh: Add rule to create target
344         directory for dummy syscall rules.
345         Patch by Chris Steinbroner <hesh@pobox.com>.
347 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
349         [BZ #10092]
350         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
351         MNT_EXPIRE.
353 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
355         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
356         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
358 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
360         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
361         data from vector to temporary buffer and call PWRITEV after it
362         instead of vice versa.
363         * sysdeps/posix/preadv.c: Fix up comment.
364         * misc/preadv.c: Likewise.
365         * misc/preadv64.c: Likewise.
366         * misc/pwritev.c: Likewise.
367         * misc/pwritev64.c: Likewise.
368         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
370 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
372         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
374         * shadow/Makefile (tests): Add tst-shadow.
375         * shadow/tst-shadow.c: New file.
377         [BZ #9955]
378         * gshadow/Makefile: New file.
379         * gshadow/Versions: New file.
380         * gshadow/fgetsgent.c: New file.
381         * gshadow/fgetsgent_r.c: New file.
382         * gshadow/getsgent.c: New file.
383         * gshadow/getsgent_r.c: New file.
384         * gshadow/getsgnam.c: New file.
385         * gshadow/getsgnam_r.c: New file.
386         * gshadow/gshadow.h: New file.
387         * gshadow/putsgent.c: New file.
388         * gshadow/sgetsgent.c: New file.
389         * gshadow/sgetsgent_r.c: New file.
390         * gshadow/tst-gshadow.c: New file.
391         * include/gshadow.h: New file.
392         * Makeconfig (all-subdirs): Add gshadow.
393         * Makefile (installed-headers): Add gshadow/gshadow.h.
394         * nss/Makefile (databases): Add sgrp.
395         * nss/Versions: Add gshadow functions as private exports.
396         * nss/nsswitch.conf: Add gshadow entry.
397         * nss/sgrp-lookup.c: New file.
398         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
399         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
400         * nss/nss_files/files-sgrp.c: New file.
401         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
402         * sysdeps/unix/sysv/linux/paths.h: Likewise.
404 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
406         * stdio-common/printf.h: Add missing const to register_printf_modifier.
407         * stdio-common/reg-modifier.c: Likewise.
409 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
411         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
412         is no FPU.
414 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
416         [BZ #10086]
417         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
418         headers up to 2.6.30.
420         * po/ca.po: Update from translation team.
422 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
424         [BZ #10069]
425         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
426         an object that uses static TLS if the TLS modid is higher than the
427         reserve we always allocate.  At least for multi-threaded code.
429 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
431         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
432         Numerically stable check for valid width.
434         * locale/programs/locarchive.c (open_archive): Map the entire file
435         and not just the administrative data.
436         (add_locale): When we find a hash sum match compare the content
437         to be sure.
439         * malloc/malloc.c (malloc_info): Output address space information.
441 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
443         * malloc/malloc.c (malloc_info): Also output system memory information.
445         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
446         architectures have preadv/pwritev in 2.6.30.
448         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
449         * sysdeps/posix/readv.c: Likewise.
450         Reported by Markus Armbruster <armbru@redhat.com>.
452         * malloc/hooks.c (top_check): Force hook value into register.
454 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
456         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
457         calls to _dl_relocate_object.
459 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
461         [BZ #9957]
462         * malloc/malloc.c (force_reg): Define.
463         (sYSMALLOc): Load hook variable into variable
464         before test and force into register.
465         (sYSTRIm): Likewise.
466         (public_mALLOc): Force hook value into register.
467         (public_fREe): Likewise.
468         (public_rEALLOc): Likewise.
469         (public_mEMALIGn): Likewise.
470         (public_vALLOc): Likewise.
471         (public_pVALLOc): Likewise.
472         (public_cALLOc): Likewise.
473         (__posix_memalign): Likewise.
474         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
475         before test and force into register.
476         * malloc/hooks.c (top_check): Likewise.
477         (public_sET_STATe): Pretty printing.
479         * resolv/res_send.c (send_dg): Don't just ignore the result we got
480         in case we only receive one reply in single-request mode.
482 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
484         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
485         are dlopened in statically linked program even for __LM_ID_CALLER.
487 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
489         * resolv/res_send.c (send_dg): Don't switch into single-request
490         mode if we already are in it.
492 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
494         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
495         are always at least 4 bytes in the returned line.
497 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
499         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
500         __libc_use_alloca (8192), if the stack is too small use 512 bytes
501         instead of 8K.  Stop searching in /proc/stat after hitting first
502         line not starting with cpu.
503         (next_line): Truncate too long
504         lines at buffer size * 3/4 instead of pretending there were line
505         breaks inside of large lines.
507 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
509         * sysdeps/x86_64/mp_clz_tab.c: New file.
511 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
512             Ulrich Drepper  <drepper@redhat.com>
514         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
515         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
516         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
518 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
520         * sysdeps/sh/libc-tls.c: New file.
522         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
524 2009-04-14  Roland McGrath  <roland@redhat.com>
526         * elf/elf.h: Add various missing ARM constants, to match binutils.
528 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
530         Optimizations from GMP.
531         * sysdeps/x86_64/add_n.S: New file.
532         * sysdeps/x86_64/addmul_1.S: New file.
533         * sysdeps/x86_64/lshift.S: New file.
534         * sysdeps/x86_64/mul_1.S: New file.
535         * sysdeps/x86_64/rshift.S: New file.
536         * sysdeps/x86_64/sub_n.S: New file.
537         * sysdeps/x86_64/submul_1.S: New file.
539 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
541         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
542         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
543         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
544         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
546 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
548         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
549         preadv/pwritev.
551 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
553         * sysdeps/x86-64/strrchr.S: New file.
555 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
557         * stdio-common/printf.h (struct printf_info): Add user element.
558         New types printf_arginfo_size_function, printf_va_arg_function.
559         Declare register_printf_specifier, register_printf_modifier,
560         register_printf_type.
561         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
562         (union printf_arg): Add pa_user element.
563         Adjust __printf_arginfo_table type.
564         Add __printf_va_arg_table, __printf_modifier_table,
565         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
566         declarations.
567         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
568         If registered arginfo call failed try normal specifier.
569         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
570         function.
571         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
572         * stdio-common/Versions: Export register_printf_modifier,
573         register_printf_type, and register_printf_specifier for GLIBC_2.10.
574         * stdio-common/reg-modifier.c: New file.
575         * stdio-common/reg-type.c: New file.
576         * stdio-common/reg-printf.c (__register_printf_specifier): New
577         function.  Mostly the old __register_printf_function function but
578         uses locking and type of third parameter changed.
579         (__register_printf_function): Implement using
580         __register_printf_specifier.
581         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
582         calls to arginfo functions.  Allocate enough memory for user-defined
583         types.  Call new va_arg functions to get user-defined types.
584         Try installed handlers even for existing format specifiers first.
586 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
588         * sysdeps/x86_64/rawmemchr.S: New file.
590         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
591         Simplified code and possible copy problem fixed.
593         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
594         function if it is not defined.  Add some necessary casts.
595         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
597         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
598         have preadv/pwritev in 2.6.30.
600 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
602         * malloc/malloc.c (malloc_info): New function.
603         * malloc/malloc.h: Declare it.
604         * malloc/Versions: Export malloc_info for GLIBC_2.10.
606         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
607         to avoid PLT slot.
609         * malloc/malloc.c (_int_realloc): Add parameter with old block
610         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
611         Adjust all callers.
612         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
614 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
616         * sysdeps/x86_64/strchrnul.S: New file.
618         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
619         depending libcrypt on -lfreebl3.
621         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
622         preadv/pwritev in 2.6.30.
624         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
625         instead of __strcasecmp.
627         * string/stratcliff.c (do_test): Add memchr tests..
628         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
629         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
630         first read quad word.
632 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
634         * string/strverscmp.c (__strverscmp): Fix last cleanups.
635         * string/tst-svc.input: Add new test case.
636         * string/tst-svc.expect: Adjust.
637         * string/Makefile: Don't ignore tst-svc error.
639         * sysdeps/x86_64/memchr.S: New file.
641         * resolv/resolv.h (RES_SNGLKUP): Define.
642         * resolv/res_init.c (res_setoptions): Recognize single-request option.
643         * resolv/res_send.c (send_dg): If we sent two requests at once and
644         only get one reply before timeout switch to mode where we send the
645         second request only after the first answer has been received.
647 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
649         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
650         * sysdeps/x86_64/strchr.S: Likewise.
652 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
654         * configure.in: We need to test for the compiler earlier.
656         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
657         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
658         GLIBC_2.10.
659         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
660         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
661         and pwritev.
662         * misc/preadv.c: New file.
663         * misc/preadv64.c: New file.
664         * misc/pwritev.c: New file.
665         * misc/pwritev64.c: New file.
666         * sysdeps/posx/preadv.c: New file.
667         * sysdeps/posx/preadv64.c: New file.
668         * sysdeps/posx/pwritev.c: New file.
669         * sysdeps/posx/pwritev64.c: New file.
670         * sysdeps/unix/sysv/linux/preadv.c: New file.
671         * sysdeps/unix/sysv/linux/preadv64.c: New file.
672         * sysdeps/unix/sysv/linux/pwritev.c: New file.
673         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
674         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
675         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
677         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
678         compatibility code.
679         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
681         * sysdeps/unix/sysv/linux/kernel-features.h: Define
682         __ASSUME_COMPLETE_READV_WRITEV.
683         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
684         with modern kernels.
685         * sysdeps/unix/sysv/linux/writev.c: Likewise.
687         * sysdeps/posix/readv.c: Since read is a cancellation point we have
688         to free a possible malloced buffer in case of cancellation.
689         * sysdeps/posix/writev.c: Likewise for write.
691 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
693         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
695         * configure.in: Recognize --enable-nss-crypt.
696         * config.make.in: Add nss-crypt entry.
697         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
698         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
699         and include path for NSS directory to compiler for md5-crypt,
700         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
701         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
702         function implementation, use NSS.  Introduce wrappers around the
703         hash function calls.  Little code size optimization.
704         * crypt/sha256-crypt.c: Likewise.
705         * crypt/sha512-crypt.c: Likewise.
706         * scripts/check-local-headers.sh: Ignore nss3 directory.
708         * configure.in: Rename pic_default to libc_cv_pic_default.
709         * config.make.in: Likewise.
711 2009-04-01  Roland McGrath  <roland@redhat.com>
713         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
714         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
715         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
716         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
717         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
718         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
719         (R_SPARC_NUM): Update.
720         From Dave Miller <davem@davemloft.net>.
722 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
724         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
726 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
728         * elf/dl-open.c: Keep track of used name spaces and only iterate over
729         those which are used.
730         * elf/dl-addr.c: Likewise.
731         * elf/dl-caller.c: Likewise.
732         * elf/dl-fini.c: Likewise.
733         * elf/dl-iteratephdr.c: Likewise.
734         * elf/dl-libc.c: Likewise.
735         * elf/dl-load.c: Likewise.
736         * elf/dl-support.c: Likewise.
737         * elf/dl-sym.c: Likewise.
738         * elf/rtld.c: Likewise.
739         * sysdeps/generic/ldsodefs.h: Likewise.
741         * elf/dl-load.c: Remove support for systems without MAP_ANON.
742         * elf/dl-minimal.c: Likewise.
743         * elf/dl-misc.c: Likewise.
744         * elf/rtld.c: Likewise.
745         * sysdeps/generic/ldsodefs.h: Likewise.
747 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
749         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
750         Avoid reuse of complex expression.
752         * po/fr.po: Update from translation team.
754 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
756         * include/dirent.h: Yet more changes to match sort function type
757         change.
758         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
759         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
760         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
762 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
764         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
766 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
768         * nscd/connections.c (restart): Try to preserve the process name
769         by reading the /proc/self/exe symlink and using the return name.
770         Patch by Jeff Bastian <jbastian@redhat.com>.
772 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
774         [BZ #9733]
775         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
776         if we are not loading a new audit library.
777         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
778         Only use profiling trampoline for auditing if we are not relocating
779         an audit library.
780         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
781         * elf/rtld.c: Likewise.
782         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
784         * elf/rtld.c (dl_main): Extend help message for --audit option.
786         [BZ #9759]
787         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
788         alphasort64, versionsort, and versionsort64 to POSIX 2008.
789         * dirent/alphasort.c: Adjust implementation to type change.
790         * dirent/alphasort64.c: Likewise.
791         * dirent/scandir.c: Likewise.
792         * dirent/versionsort.c: Likewise.
793         * dirent/versionsort64.c: Likewise.
794         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
795         declaration.
796         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
797         declaration.
799         [BZ #9880]
800         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
801         correctly.  Set segleft member in output as required.
802         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
803         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
805         [BZ #9881]
806         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
807         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
808         * inet/Makefile (tests): Add tst-inet6_rth.
809         * inet/tst-inet6_rth.c: New file.
811         [BZ #5807]
812         * string/strlen.c (strlen): Fix omission in the expression to test
813         for NUL bytes.
815 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
817         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
819         * elf/dl-runtime.c (reloc_offset): Define.
820         (reloc_index): Define.
821         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
822         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
823         computing index from reloc_offset.
824         (_dl_call_pltexit): Likewise.
825         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
826         the relocation index to _dl_fixup.
827         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
828         _dl_call_pltexit.
829         * sysdeps/x86_64/dl-runtime.c: New file.
831         [BZ #9893]
832         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
833         alignment of La_x86_64_regs.  Store xmm parameters.
834         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
836         [BZ #9913]
837         * string/strverscmp.c (__strverscmp): Fix case of different digits
838         in fractional part of string.
839         Patch by Jingyu Liu <jyliu@fortinet.com>.
840         * string/Makefile (tests): Add tst-svc2.
841         * string/tst-svc2.c: New file.
843         * string/strverscmp.c (__strverscmp): Optimize size of tables.
845         * locale/iso-639.def: Add Min Nan.
847 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
849         [BZ #9948]
850         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
852 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
854         * elf/dl-sysdep.c (auxvars): Compress data structure.
856         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
857         STT_GNU_IFUNC handling.
858         (elf_machine_rela): Likewise.
860 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
862         * config.h.in (USE_MULTIARCH): Define.
863         * configure.in: Handle --enable-multi-arch.
864         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
865         (_dl_fixup_profile): Likewise.
866         * elf/do-lookup.c (dl_lookup_x): Likewise.
867         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
868         * elf/elf.h (STT_GNU_IFUNC): Define.
869         * include/libc-symbols.h (libc_ifunc): Define.
870         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
871         framework in init-arch.h to get CPUID values.
872         * sysdeps/x86_64/multiarch/Makefile: New file.
873         * sysdeps/x86_64/multiarch/init-arch.c: New file.
874         * sysdeps/x86_64/multiarch/init-arch.h: New file.
875         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
877         * config.make.in (experimental-malloc): Define.
878         * configure.in: Handle --enable-experimental-malloc.
879         * malloc/Makefile: Handle experimental-malloc flag.
880         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
881         * malloc/arena.c: Likewise.
882         * malloc/hooks.c: Likewise.
883         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
885 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
887         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
888         prediction.  A few size optimizations.
890 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
892         * time/tzset.c: Optimize a bit for size.
894 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
896         * include/stdio.h (fmemopen): Add libc_hidden_proto.
897         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
899         * elf/sprof.c: Avoid warning about multi-line comment.
901 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
903         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
904         DST name.
905         * time/tst-posixtz.c: Add tests for quoted timezone names.
907 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
909         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
910         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
911         200809L instead of 200112L.
912         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
913         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
915         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
916         instead of __quick_exit_funcs to __run_exit_handlers.
917         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
918         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
919         (__cxa_at_quick_exit): Remove attribute_hidden.
920         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
921         to __run_exit_handlers.
922         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
923         attribute_hidden.
925 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
927         * po/id.po: Update from translation team.
929 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
931         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
932         .machine push; .machine "power6" and .machine pop around mtfsf
933         insns outside of _ARCH_PWR6 define.
934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
936         Likewise.
937         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
938         Likewise.
939         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
940         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
941         relax_fenv_state): Likewise.
943 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
945         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
946         cxa_at_quick_exit.
947         (static-only-routines): Add at_quick_exit.
948         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
949         GLIBC_2.10.
950         * stdlib/quick_exit.c: New file.
951         * stdlib/at_quick_exit.c: New file.
952         * stdlib/cxa_at_quick_exit.c: New file.
953         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
954         it appropriately.
955         (__internal_atexit): New function.
956         (__new_exitfn): Now takes parameter to point to the list to use.
957         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
958         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
959         (exit): ...here.  Just call __run_exit_handlers appropriately.
960         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
961         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
962         * stdlib/on_exit.c: Adjust call to __new_exitfn.
963         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
965         * po/id.po: Update from translation team.
967 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
969         * po/ru.po: Update from translation team.
971 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
973         * po/nl.po: Update from translation team.
975 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
977         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
978         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
979         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
980         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
981         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
982         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
983         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
985         * po/pl.po: Update from translation team.
987 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
989         [BZ #7083]
990         * sysdeps/unix/sysv/linux/fallocate.c: New file.
991         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
992         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
993         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
994         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
995         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
996         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
997         for GLIBC_2.10.
998         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
999         Add fallocate and fallocate64.
1001         * io/fcntl.h: Pretty printing.
1003 2009-03-02  Richard Guenther  <rguenther@suse.de>
1005         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
1006         attribute also for non-C99 inline semantics variant.
1008 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1010         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
1011         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
1012         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
1013         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
1014         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
1015         Likewise.
1016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
1017         Likewise.
1019 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
1021         * po/cs.po: Update from translation team.
1023 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
1025         * po/bg.po: Update from translation team.
1026         * po/sv.po: Likewise.
1027         * po/fi.po: Likewise.
1028         * po/vi.po: Likewise.
1030 2009-02-27  Roland McGrath  <roland@redhat.com>
1032         * Makeconfig (%.v.i): Depend on Makeconfig.
1033         Exclude % lines from initial #-comment removal.
1035 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
1037         * po/ko.po: Update from translation team.
1039 2009-02-26  Roland McGrath  <roland@redhat.com>
1041         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
1042         avoids unused warning.
1044 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
1045             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1047         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
1048         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
1049         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
1050         and asm/user.h.  Include asm/ptrace.h.
1051         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
1052         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1053         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
1054         Undefine.
1055         (start_thread): Don't undefine.
1056         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
1057         Define.
1059 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
1061         * wctype/wctype.h: The *_l functions are in POSIX 2008.
1062         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
1063         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
1064         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
1065         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
1066         200112L to 200809L.
1067         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
1068         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1069         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
1070         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1071         _SC_THREAD_ROBUST_PRIO_PROTECT.
1072         * posix/unistd.h: fexecve is in POSIX 2008.
1073         * time/time.h: strftime_l is in POSIX 2008.
1074         * io/sys/stat.h: futimens is in POSIX 2008.
1075         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
1076         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
1077         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
1078         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
1079         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
1080         open_memstream, and vdprintf are in POSIX 2008.
1082 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
1084         * include/features.h: Define macros for XPG7/POSIX 2008.
1085         * ctype/ctype.h: The *_l functions are in POSIX 2008.
1086         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
1087         POSIX 2008.
1088         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
1089         * locale/xlocale.h: Define locale_t type.
1090         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
1091         in POSIX 2008.  Don't define locale_t here.
1092         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
1093         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
1094         UTIME_OMIT only with __USE_ATFILE.
1095         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
1096         * stdio-common/psiginfo.c: New file.
1097         * stdio-common/psiginfo-data.h: New file.
1098         * stdio-common/psiginfo-define.h: New file.
1099         * stdio-common/Makefile (routines): Add psiginfo.
1100         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
1101         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1102         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1103         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1104         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1105         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1106         * io/sys/stat.h: Move mknodat definition into same conditional as
1107         mknod.
1108         * time/sys/time.h: futimesat is not among the functions accepted
1109         into the POSIX standard.
1111         * include/features.h: If no feature selection given and we select
1112         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
1113         * posix/Versions: Export __posix_getopt.
1114         * posix/getopt.c (_getopt_initialize): Take additional parameter.
1115         Use it to alternatively initialize __posixly_correct.
1116         (_getopt_internal_r): Take addition parameter.  Pass on to
1117         _getopt_initialize.
1118         (_getopt_internal): Take addition parameter.  Pass on to
1119         _getopt_internal_r.
1120         (getopt): Pass additional zero to _getopt_internal.
1121         (__posix_getopt): New function.
1122         * posix/getopt.h: Add redirection for getopt.
1123         * posix/getopt1.c (getopt_long): Pass additional zero to
1124         _getopt_internal.
1125         (getopt_long_only): Likewise.
1126         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
1127         (_getopt_long_only_r): Likewise.
1128         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
1129         _getopt_internal_r.
1131 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
1133         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
1134         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1135         * sysdeps/posix/sysconf.c (__sysconf): Handle
1136         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
1137         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1139 2009-02-24  Roland McGrath  <roland@redhat.com>
1141         [BZ #9895]
1142         * README.template: Reworded not to use substituted version number.
1143         Renamed to ...
1144         * README: ... here (no longer generated).
1145         * Makefile (README): Target removed.
1147 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
1149         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
1150         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
1151         instead.
1153         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
1155         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
1157 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
1159         * po/bg.po: Update from translation team.
1161 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
1163         * stdlib/monetary.h: Uglify function parameter names.
1164         * sunrpc/rpc/pmap_clnt.h: Likewise.
1165         * sunrpc/rpc/svc.h: Likewise.
1166         * sunrpc/rpc/xdr.h: Likewise.
1167         * sunrpc/rpc/clnt.h: Likewise.
1168         * resolv/netdb.h: Likewise.
1169         * resolv/arpa/nameser.h: Likewise.
1170         * resolv/resolv.h: Likewise.
1171         * argp/argp.h: Likewise.
1172         * locale/langinfo.h: Likewise.
1173         * io/sys/stat.h: Likewise.
1174         * posix/spawn.h: Likewise.
1175         * nis/rpcsvc/nislib.h: Likewise.
1176         * malloc/obstack.h: Likewise.
1177         * sysdeps/ia64/bits/link.h: Likewise.
1178         * sysdeps/i386/bits/link.h: Likewise.
1179         * sysdeps/s390/bits/link.h: Likewise.
1180         * sysdeps/powerpc/bits/link.h: Likewise.
1181         * sysdeps/x86_64/bits/link.h: Likewise.
1182         * sysdeps/sparc/bits/link.h: Likewise.
1183         * sysdeps/sh/bits/link.h: Likewise.
1184         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
1185         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
1186         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
1187         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
1189 2008-12-01  Fredrik Unger  <fred@tree.se>
1191         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
1192         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
1193         _FP_UNPACK_RAW_2, fix up first argument.
1195 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
1197         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
1198         (GET_NPROCS_PARSER): Change parameters and use next_line.
1199         (__get_nprocs): Rewrite to not use stdio routines.
1200         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
1201         Change parameters and use next_line.
1203 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
1205         [BZ #5381]
1206         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
1207         Change mempool_alloc prototype.
1208         * nscd/mem.c (gc): Don't handle mem_in_flight.
1209         (mempool_alloc): Third parameter now only indicates whether this is the
1210         first call (to allocate data) or not.  If it is, get db rdlock.
1211         Release it on error.  Don't handle mem_in_flight.
1212         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
1213         Adjust third parameter of mempool_alloc calls.
1214         Nothing to do here in case mempool_alloc fails.
1215         Avoid local variable shadowing parameter.  No need to get db rdlock
1216         before calling cache_add.
1217         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
1218         no mem_in_flight array anymore.
1219         * nscd/connections.c: Remove definition and handling of mem_in_flight.
1220         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
1221         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
1222         in case mempool_alloc fails. No need to get db rdlock before calling
1223         cache_add.
1224         * nscd/hstcache.c (cache_addhst): Likewise.
1225         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1226         * nscd/servicescache.c (cache_addserv): Likewise.
1227         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
1229 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
1231         * po/lt.po: Update from translation team.
1233 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
1235         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
1236         defined, allow additional data to be added using the optional
1237         MORE_ELF_HEADER_DATA macro.
1238         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
1239         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
1241 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
1243         * include/atomic.h: Define catomic_and if not already defined.
1244         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
1245         * sysdeps/i386/i486/bits/atomic.h: Likewise.
1247 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
1249         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
1250         Change all callers.
1251         (_int_realloc): Likewise.  Third argument is now padded size
1252         All _int_* functions are now static.
1254         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
1255         * malloc/arena.c: Likewise.
1256         * include/malloc.h: Remove now unnecessary declarations of the _int_*
1257         functions.
1259         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
1260         easily.
1262         * malloc/malloc.c: Add branch prediction for use of the hooks.
1264         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
1266 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1268         [BZ #7095]
1269         * bits/confname.h: Add SUSv7 macros for getconf environments.
1270         * bits/environments.h: Likewise.
1271         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
1272         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
1273         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
1274         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
1275         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
1276         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
1277         * posix/getconf.c: Likewise.
1278         * posix/sysconf.c: Likewise.
1279         * sysdeps/posix/sysconf.c: Likewise.
1280         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
1281         environments.
1283 2009-01-16  Petr Baudis  <pasky@suse.cz>
1285         [BZ #9753]
1286         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
1287         even if we currently have zero nscount.
1289 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1291         [BZ #9781]
1292         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
1293         the input line is too long.
1295         * po/Makefile (libc.pot): Add f_print as function taking c-format
1296         parameter.
1298         * debug/xtrace.sh: Unify translatable messages.
1299         * elf/ldd.bash.in: Likewise.
1300         * elf/sprof.c: Likewise.
1301         * locale/programs/locale.c: Likewise.
1302         * malloc/memusage.sh: Likewise.
1303         * nss/getent.c: Likewise.
1305 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
1307         * debug/pcprofiledump.c (print_version,
1308         argp_program_version_hook): New function.
1309         * elf/ldconfig.c (more_help): New function.
1310         (argp): Use it.
1311         * elf/sln.c (usage): New function.
1312         (main): Support --help and --version.
1313         * malloc/memusagestat.c (print_version): New function.
1314         (argp_program_version_hook): New variable.
1315         * nscd/nscd.c (more_help): New function.
1316         (argp): Use it.
1317         * posix/getconf.c (main): Send --version output to stdout.
1318         Support --help.
1319         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
1320         arguments.  All callers changed.
1321         (print_version): New function.
1322         (parseargs): Support --help and --version.
1323         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
1324         changed.
1325         (print_version): New function.
1326         (main): Use getopt_long.  Support --help and --version.
1327         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
1328         --version.
1330 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1332         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
1333         (update_data): Fix handling of wrapping back
1334         to the beginning of the buffer.
1336         [BZ #9823]
1337         * stdio-common/psignal.c (psignal): Fix test for empty string.
1339 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
1341         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
1342         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
1343         move _null_auth to .rodata.
1345         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
1346         value of 24.
1348         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
1350         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
1351         today than when the original code was written.  Use larger
1352         buffers.  This also makes it unnecessary to have stat information,
1353         if this causes extra efforts.
1354         (__opendir): In case O_DIRECTORY works, don't call fstat just for
1355         __alloc_dir.
1357 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
1359         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
1360         is set.
1361         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
1362         * sysdeps/sh/sh4/__longjmp.S: Likewise.
1363         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
1364         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
1365         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
1366         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1368 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
1370         * po/ru.po: Update from translation team.
1372 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
1374         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
1375         Add _tid slot to maintain consistency with kernel.
1377 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
1379         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
1380         incomplete characters at end of input buffer.
1381         * libio/Makefile (tests): Add tst-fgetwc.
1382         * libio/tst-fgetwc.c: New file.
1383         * libio/tst-fgetwc.input: New file.
1385 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
1387         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
1389 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
1391         [BZ #9793]
1392         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
1393         *OUTBUFSTART unless the whole output fit into the buffer.
1394         * iconv/Makefile (tests): Add tst-iconv4.
1395         * iconv/tst-iconv4.c: New file.
1397 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
1399         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
1400         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1402 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
1404         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
1405         newer linker scripts.
1407 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
1409         [BZ #7040]
1410         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
1411         inotify_rm_watch should have type int.
1413 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
1415         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1416         Make aligned_restore_vmx a local symbol.
1417         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
1418         Likewise.
1420 2009-01-30  Andreas Jaeger  <aj@suse.de>
1422         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
1423         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
1424         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
1425         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
1426         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
1427         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
1428         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
1430 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
1432         [BZ #9726]
1433         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
1434         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
1436 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
1438         [BZ #9726]
1439         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1440         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1441         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1442         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1444 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
1446         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
1447         memcpy instead of memcmp.
1448         (_dl_setup_pointer_guard): Likewise.
1450 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
1452         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
1453         manipulated brk, use malloc_printerr.
1454         * misc/sbrk.c (__sbrk): Better error handling for nonsense
1455         requests.
1457 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
1459         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
1460         rindex): For C++ add inlines so that they can be recognized as
1461         builtins.
1462         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
1464 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
1465             Jakub Jelinek  <jakub@redhat.com>
1467         * string/string.h: Define correct C++ prototypes for gcc 4.4.
1468         * wcsmbs/wchar.h: Likewise.
1470 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
1472         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
1473         (stackinfo_sub_sp): Define.
1475 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
1477         [BZ #9750]
1478         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
1479         * include/alloca.h (alloca_account): Define.
1480         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
1481         (stackinfo_sub_sp): Define.
1483         * nscd/connections.c (nscd_init): If database file access fails
1484         check whether this is due to permission problems and bail in that
1485         case.
1487         [BZ #9741]
1488         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
1489         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
1491 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1493         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
1494         Add "t" to clobber list.
1495         (INTERNAL_SYSCALL_NCS): Likewise.
1497 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
1499         * nss/getent.c (print_networks): Don't print comma between aliases.
1501 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
1503         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
1505         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
1506         the hash table.
1507         * misc/Makefile (tests): Add bug-hsearch1.
1508         * misc/bug-hsearch1.c: New file.
1510 2009-01-22  Roland McGrath  <roland@redhat.com>
1512         * Makeconfig (%.v.i): Strip trailing # comments,
1513         not only whole-line comments.
1515 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
1517         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
1518         one parameter.  If non-NULL use it to initialize return value.
1519         (_dl_setup_pointer_guard): New function.
1520         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1521         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
1522         * elf/rtld.c (security_init): Pass _dl_random to
1523         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
1524         pointer_chk_guard.
1525         * elf/dl-sysdep.c (_dl_random): New variable.
1526         (_dl_sysdep_start): Handle AT_RANDOM.
1527         (_dl_show_auxv): Likewise.
1528         * elf/dl-support.c (_dl_random): New variable.
1529         (_dl_aux_init): Handle AT_RANDOM.
1530         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
1531         to _dl_setup_stack_chk_guard.
1533         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
1535 2009-01-10  Roland McGrath  <roland@redhat.com>
1537         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
1539 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
1541         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
1543         [BZ #9706]
1544         * nss/nss_files/files-parse.c (strtou32): New function.
1545         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
1546         across 32-bit and 64-bit platforms.
1547         (INT_FIELD_MAYBE_NULL): Likewise.
1549 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
1551         [BZ #9720]
1552         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
1553         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
1554         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
1555         Likewise.
1557 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
1559         [BZ #697]
1560         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
1561         being NULL also if there are no backreferences.
1562         * posix/rxspencer/tests: Add testcases.
1564 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
1566         [BZ #9697]
1567         * posix/bug-regex17.c: Add testcases.
1568         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
1569         handling.
1571 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1573         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
1574         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
1575         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
1576         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
1577         for elf subdir.
1578         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
1579         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
1580         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
1581         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
1582         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
1583         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1585 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
1587         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
1588         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
1589         re_string_skip_chars, re_string_reconstruct): Likewise.
1590         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
1592 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
1594         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
1595         adjust the buffer alignment.
1597 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1599         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
1600         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
1601         net/route.h.
1603         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
1604         flavor to description only when flavor is not NULL.
1606         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
1607         mutex after SIGIO/SIGURG lookup loop.
1609 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1611         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
1613 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
1615         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
1616         handling.
1618 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
1620         * sysdeps/unix/sysv/linux/kernel-features.h
1621         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
1623         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
1624         if no output is written.
1626         * version.h: Bump to 2.10 development.
1628         * posix/getconf.c: Update copyright year.
1629         * nss/getent.c: Likewise.
1630         * iconv/iconvconfig.c: Likewise.
1631         * iconv/iconv_prog.c: Likewise.
1632         * elf/ldconfig.c: Likewise.
1633         * catgets/gencat.c: Likewise.
1634         * csu/version.c: Likewise.
1635         * elf/ldd.bash.in: Likewise.
1636         * elf/sprof.c (print_version): Likewise.
1637         * locale/programs/locale.c: Likewise.
1638         * locale/programs/localedef.c: Likewise.
1639         * nscd/nscd.c (print_version): Likewise.
1640         * debug/xtrace.sh: Likewise.
1641         * malloc/memusage.sh: Likewise.
1642         * malloc/mtrace.pl: Likewise.
1643         * debug/catchsegv.sh: Likewise.
1645 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
1647         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
1648         script.
1650 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
1652         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
1653         gethostbyname4_r function call succeeded, just leave the loop.
1655         [BZ #9694]
1656         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
1657         very end.
1658         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
1659         * wctype/Makefile (tests): Add bug-wctypeh.
1660         * wctype/bug-wctypeh.c: New file.
1662         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
1663         LOCALDOMAIN is defined.
1664         * nscd/nscd_getai.c (__nscd_getai): Likewise.
1666         * sysdeps/x86_64/bits/select.h: New file.
1668         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
1670 2008-12-21  Bruno Haible  <bruno@clisp.org>
1672         [BZ #9677]
1673         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
1674         if no output is written.
1676 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
1678         * login/utmp_file.c (pututline_file): Replace call to dup2 with
1679         libc internal symbol __dup2 to avoid access through the PLT.
1681 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
1683         [BZ #6545]
1684         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
1685         available only for __USE_GNU.
1687         * inet/Makefile (tests): Add tst-getni2.
1688         * inet/tst-getni2.c: New file.
1690         [BZ #7080]
1691         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
1692         NULL when NI_NAMEREQD is set.
1693         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1694         * inet/Makefile (tests): Add tst-getni1.
1695         * inet/tst-getni1.c: New file.
1697 2008-12-03  Petr Baudis  <pasky@suse.cz>
1699         [BZ #7067]
1700         * nscd/connections.c (invalidate_cache): Use prune_run_lock
1701         instead of prune_lock.
1702         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
1703         * nscd/nscd.h (database_dyn): Add prune_run_cache.
1705 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
1707         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
1708         use.
1710         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
1711         handling.
1713         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
1714         after reading name server list.
1716         [BZ #7058]
1717         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
1718         handling for host name aliases.
1720 2008-11-24  Arkadiusz Miśkiewicz  <arekm@maven.pl>
1722         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
1723         instead of doing things manually.
1725 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
1727         * posix/regex_internal.h (build_wcs_upper_buffer):
1728         Return type is reg_error_t.
1730 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
1732         * posix/globtest.sh: Use mktemp to create temporary file and
1733         directory.
1735         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
1736         sets correctly.
1737         (__CPU_CLR_S): Likewise.
1738         (__CPU_ISSET_S): Likewise.
1740 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
1741             Ulrich Drepper  <drepper@redhat.com>
1743         * scripts/firstversion.awk: Use custom comparison function to compare
1744         version numbers.
1745         * scripts/versions.awk: Use sort invocation which can handle
1746         multi-digit sub-version numbers.
1748 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
1750         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
1751         * locale/iso-639.def: Add Chhattisgarhi entry.
1753 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
1755         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
1756         ESRCH return value.
1757         (_nss_dns_gethostbyname4_r): Likewise.
1758         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
1759         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
1760         gethostbyname4_r, we don't have a separate IPv6 status, so copy
1761         the no_data variable.
1763         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
1764         information at the correct index.
1766         * socket/sys/socket.h: Declare accept4.
1767         * socket/accept4.c: New file.
1768         * sysdeps/unix/sysv/linux/accept4.c: New file.
1769         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
1770         * socket/Makefile (routines): Add accept4.
1771         * socket/Versions: Export accept4 with version GLIBC_2.10.
1772         * socket/paccept.c: Removed.
1773         * sysdeps/unix/sysv/linux/paccept.c: Removed.
1774         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
1775         * Versions.def: Define GLIBC_2.10 for libc.
1776         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
1778         * nscd/connections.c: Use accept4.
1780         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
1782 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
1784         * resolv/res_send.c (send_dg): Create sockets with non-blocking
1785         flag already set.
1787         * stdlib/setenv.c (unsetenv): Don't search environment if it does
1788         not exist.
1789         * stdlib/Makefile (tests): Add tst-unsetenv1.
1790         * stdlib/tst-unsetenv1.c: New file.
1792 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
1794         * login/utmp_file.c (file_writable): New variable.
1795         (setutent_file): Don't try to open file for writing.
1796         (pututline_file): Before writing, make descriptor writable if
1797         necessary.
1799 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
1801         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
1802         to IPv4 or IPv6 if an interface has been found.
1804 2008-11-26  Roland McGrath  <roland@redhat.com>
1806         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
1807         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
1809         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
1810         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
1811         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
1813         * elf/elf.h (NT_386_IOPERM): New macro.
1814         (NT_PPC_VSX): New macro.
1816 2008-11-25  Roland McGrath  <roland@redhat.com>
1818         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
1819         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
1820         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
1821         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
1822         Subdirectories moved to ports repository.
1823         * configure.in (base_machine): Remove alpha case.
1825 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
1827         * sysdeps/mach/strerror_l.c: New file.
1829 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
1831         [BZ #6411]
1832         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
1833         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
1834         magic numbers.
1835         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
1836         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
1837         (relax_fenv_state): Same as above.
1838         (FPSCR_29): Reserve bit in ISA 2.05.
1839         (FPSCR_NI): Provide define for compat.
1840         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
1841         magic numbers.
1842         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
1843         magic numbers.
1844         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
1845         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
1846         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
1847         access to hwcap to account for hwcap size increase to uint64_t.
1848         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
1849         Likewise.
1850         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
1851         (*setcontext): Likewise.
1852         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1853         New file.
1854         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1855         New file.
1856         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1857         (*setcontext): dynamically select mtfsf insn based on
1858         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1859         increase to uint64_t.
1860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1861         (*swapcontext): dynamically select mtfsf insn based on
1862         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
1863         increase to uint64_t.
1864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1865         New file.
1866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1867         New file.
1868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1869         (*setcontext): dynamically select mtfsf insn based on
1870         PPC_FEATURE_HAS_DFP.
1871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1872         (*swapcontext): dynamically select mtfsf insn based on
1873         PPC_FEATURE_HAS_DFP.
1875 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
1877         * version.h: Bump for 2.9 release.
1878         * include/features.h (__GLIBC_MINOR__): Bump to 9.
1880         [BZ #7029]
1881         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
1882         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
1883         all the rounding.
1885 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
1887         [BZ #7009]
1888         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
1889         unknown request types for now.
1891 2008-11-11  Roland McGrath  <roland@redhat.com>
1893         * sysdeps/x86_64/configure: New file.
1895         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
1896         * configure: Regenerated.
1898 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1900         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
1901         correct instruction to remove the stack frame.
1903 2008-11-03  Michael Matz  <matz@suse.de>
1905         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
1906         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
1908 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
1910         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
1911         Remove.
1913         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
1914         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
1915         of the thread variable instead of void *.
1916         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
1917         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
1918         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1919         __libc_tsd_define arguments.
1920         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
1921         __libc_tsd_address arguments.  Remove union hack.
1922         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
1923         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
1924         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
1925         Adjust __libc_tsd_{set,get} arguments.
1926         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1927         __libc_tsd_define arguments.
1928         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
1929         arguments.
1930         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1931         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
1932         (LOCALE): Adjust __libc_tsd_define arguments.
1933         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
1934         arguments.
1935         (LOCALE): Adjust __libc_tsd_define arguments.
1936         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
1937         arguments.
1938         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
1939         arguments.
1941 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
1943         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
1944         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1946 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
1948         [BZ #6966]
1949         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
1951 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
1952             Ulrich Drepper  <drepper@redhat.com>
1954         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
1955         definition for GCC 3.1 and later.
1957 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
1959         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
1960         refetch dtv, as it might have changed.
1961         * elf/Makefile: Add rules to build and run tst-tls18.
1962         * elf/tst-tls18.c: New test.
1963         * elf/tst-tlsmod18a.c: New file.
1965 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
1967         [BZ #6875]
1968         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
1970 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
1972         [BZ #6867]
1973         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
1975         [BZ #6919]
1976         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
1977         Fix length of copy operation.
1979 2008-10-02  Pierre Habouzit <madcoder@debian.org>
1981         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
1982         and fix its calling convention.
1984 2008-10-07  Andreas Schwab  <schwab@suse.de>
1986         [BZ #6942]
1987         * resolv/res_send.c (send_vc): Fix last change.
1988         (send_dg): Align here as well.
1990 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
1992         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
1993         return value in case rlimit is RLIM_INFINITY.
1995         [BZ #6947]
1996         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
1997         for UL_SETFSIZE.
1998         * resource/Makefile (tests): Add bug-ulimit1.
1999         * resource/bug-ulimit1.c: New file.
2001         [BZ #6974]
2002         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
2003         without dot.  Properly terminate the string with a null byte.
2004         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
2006         [BZ #6980]
2007         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
2008         negative sizees.
2009         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
2010         negative __size.
2012         [BZ #6995]
2013         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
2015 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
2017         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
2018         abort if there is no initgroups_dyn function.
2020         * resolv/res_send.c (send_dg): On timeout, only return nonzero
2021         result if any of the queries really provided an answer.
2023 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
2025         * po/lt.po: Update from translation team.
2027 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
2029         * po/id.po: Update from translation team.
2031 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
2033         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
2034         Fix tests for existence of second reply.
2036 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
2038         * po/id.po: New file.
2039         Contributed by the Indonesian translation team.
2041 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
2043         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
2044         initialization.
2046 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
2048         * elf/Makefile: Add rules to build and run tst-tls17.
2049         * elf/tst-tls17.c: New test.
2050         * elf/tst-tlsmod17a.c: New file.
2051         * elf/tst-tlsmod17b.c: Likewise.
2053 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
2055         * stdlib/divmod_1.c: Use correct type for dummy variable.
2056         * stdlib/mod_1.c: Likewise.
2058 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
2060         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
2062 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
2064         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
2065         __nonnull order for C++.
2066         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
2067         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
2069 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
2071         * stdlib/longlong.h: Update from GCC.
2073 2008-10-09  Jakub Jelinek <jakub@redhat.com>
2074             David S. Miller  <davem@davemloft.net>
2076         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
2077         make sure any registers used with 64-bit 'branch-on-register'
2078         instructions have their top 32-bits clear.
2079         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
2080         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
2082 2008-09-18  Andreas Schwab  <schwab@suse.de>
2084         [BZ #6942]
2085         * resolv/res_send.c (send_vc): Fix use of unaligned address.
2086         Properly handle partial reads.
2088 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
2090         * elf/elf.h (STO_MIPS_PLT): New.
2091         (R_MIPS_COPY): New.
2092         (R_MIPS_JUMP_SLOT): New.
2093         (R_MIPS_NUM): Redefine to 128.
2094         (DT_MIPS_PLTGOT): New.
2095         (DT_MIPS_RWPLT): New.
2096         (DT_MIPS_NUM): Redefine to 0x35.
2098 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
2100         * timezone/africa: Update from tzdata2008f.
2101         * timezone/asia: Likewise.
2102         * timezone/australasia: Likewise.
2103         * timezone/europe: Likewise.
2104         * timezone/leapseconds: Likewise.
2105         * timezone/northamerica: Likewise.
2106         * timezone/southamerica: Likewise.
2107         * timezone/zone.tab: Likewise.
2109 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
2111         * nscd/connections.c: Disable use of paccept for now.
2113 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
2115         * socket/Versions: Remove paccept export for GLIBC_2.9.
2116         * socket/Makefile (routines): Remove paccept.
2117         * socket/sys/socket.h: Remove paccept declaration.
2119         * po/sv.po: Update from translation team.
2121 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
2123         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
2124         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2126 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
2128         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
2129         Patch by Olivier Fourdan <ofourdan@redhat.com>.
2131 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
2133         * sunrpc/rpc/svc.h: Declare svcfd_create.
2134         Patch by Michael Solberg <msolberg@redhat.com>.
2136 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
2137             Ulrich Drepper  <drepper@redhat.com>
2139         * malloc/malloc.c (public_vALLOc): Try other arenas in case
2140         _int_valloc fails.
2141         (public_pVALLOc): Likewise.
2143 2008-09-02  Andreas Jaeger  <aj@suse.de>
2145         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
2146         commit.
2148 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
2150         [BZ #6860]
2151         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
2153 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
2155         * Makefile (check-data): Check data directory in add-ons.
2156         * elf/Makefile (check-data): Likewise.
2158 2008-08-18  Roland McGrath  <roland@redhat.com>
2160         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
2161         * configure: Regenerated.
2162         * config.make.in (cflags-cpu): New substituted variable.
2163         (with-cpu): Variable removed.
2164         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
2166 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
2168         [BZ #6845]
2169         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
2170         __signbitl definition and __LONG_DOUBLE_128__ guard from:
2171         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
2172         redundant.  Functions which call floating point assembler operations
2173         should go into a sysdeps powerpc/fpu directory.
2175 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
2177         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
2178         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2180 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
2182         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
2184         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
2185         change related to AT_EXECFN.  We cannot use that string.
2186         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
2187         _dl_execfn member.
2188         * elf/dl-support.c: Remove _dl_execfn variable.
2189         (_dl_aux_init): Remove handling of AT_EXECFN.
2190         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
2191         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
2193 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
2195         [BZ #6544]
2196         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
2197         byte gets added to writes and seeks from the end use the length of
2198         the buffer and not the currently terminating NUL byte.
2200         [BZ #6634]
2201         * login/utmp_file.c (getutent_r_file): Take additional parameter.
2202         Set to true if locking failed.
2203         (getutid_r_file): Adjust caller.
2204         (pututline_file): Likewise.  Return NULL in this case.
2205         Patch mostly by halesh.s@gmail.com.
2207 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
2209         [BZ #6589]
2210         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
2211         Define.
2212         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
2214 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
2216         [BZ #6839]
2217         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
2218         macro since it is now available in elf/dynamic-link.h.
2220 2008-08-12  Roland McGrath  <roland@frob.com>
2222         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
2223         in case used outside of libc.
2224         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
2226 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
2228         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
2229         directly instead of going through dn_comp.
2231 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
2233         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2234         Fix asm constraints.
2236 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
2238         [BZ #6790]
2239         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
2240         (IPV6_PMTUDISC_PROBE): Likewise.
2242 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
2244         [BZ #6791]
2245         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
2247 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
2248             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2250         [BZ #6817]
2251         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
2252         Added the members 'vsx' and 'arch_2_06'.
2253         (_dl_powerpc_platforms): Add the member 'power7'.
2254         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
2255         to reflect the changes required by VSX and ISA 2.06.
2256         Modify _DL_PLATFORMS_COUNT to reflect the addition of
2257         'power7'.
2258         Defined PPC_PLATFORM_POWER7.
2259         (_dl_string_platform): Add support for POWER7.
2260         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
2261         capability and ISA 2.06.
2263 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
2265         [BZ #6824]
2266         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
2267         macro to detect use of 128 bit long double.
2268         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
2270 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
2272         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
2274         [BZ #5794]
2275         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
2276         parameters.
2277         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2278         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2280 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
2282         * nscd/connections.c (main_loop_poll): Pass a buffer which is
2283         guaranteed to be large enough to read inotify event.  Ignore
2284         EAGAIN error.  Better error message.  Add branch predicition.
2285         (main_loop_epoll): Likewise.
2287 2008-08-02  Roland McGrath  <roland@frob.com>
2289         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2290         Add memory clobbers.
2292 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
2294         * manual/arith.texi: Avoid @strong{Note:}.
2295         * manual/creature.texi: Likewise.
2296         * manual/filesys.texi: Likewise.
2297         * manual/math.texi: Likewise.
2298         * manual/memory.texi: Likewise.
2299         * manual/resource.texi: Likewise.
2300         * manual/syslog.texi: Likewise.
2301         * manual/time.texi: Likewise.
2303         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
2304         to prevent warning.
2306 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
2308         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
2309         new epoll_create1 interface.
2310         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2311         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
2312         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2314         * include/arpa/nameser.h (NS_GET16): Use const pointer.
2315         (NS_GET32): Likewise.
2317         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
2318         syscalls, too.
2320         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
2321         use the AT_EXECFN value if it is no absolute path.
2322         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
2323         __ASSUME_AT_EXECFN.
2325         * Versions.def: Add GLIBC_2.9 to libresolv.
2326         * include/resolv.h: Remove hidden proto declarations for __ns_*
2327         functions.  Add them for __dn_count_labels and __p_secstodate.
2328         * include/arpa/nameser.h: Add a number of hidden proto declarations.
2329         Define ns_msg_getflags macro here.
2330         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
2331         and __p_secstodate.
2332         * resolv/Versions: Export functions from <arpa/nameser.h> from
2333         libresolv in version GLIBC_2.9.
2334         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
2335         hidden definitions.
2336         * resolv/ns_netint.c: Likewise.
2337         * resolv/ns_parse.c: Likewise.
2338         * resolv/ns_print.c: Likewise.
2339         * resolv/ns_samedomain.c: Likewise.
2340         * resolv/ns_ttl.c: Likewise.
2341         * resolv/arpa/nameser_compat.h: Likewise.
2342         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
2343         function calls.
2344         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
2345         instead of ns_get16.
2346         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
2347         __ns_get32 instead of ns_get16 and ns_get32 respectively.
2348         (gaih_getanswer_slice): Likewise.
2349         * resolv/Makefile (libresolv-routines): Add ns_date.
2350         * resolv/ns_date.c: New file.
2352         * elf/Makefile (check-localplt.out): Also check libresolv and
2353         libcrypt.
2355 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
2357         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2358         __ASSUME_O_CLOEXEC.
2360 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
2362         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
2363         buffer passed to NSS functions.
2365         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
2367         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
2368         Define.
2370         * misc/syslog.c (openlog_internal): Fix compile problem.
2372 2008-07-28  Roland McGrath  <roland@redhat.com>
2374         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
2376 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
2378         * io/ftw.c (add_object): Remove inline to avoid warning.
2380         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
2382         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
2383         Use it instead of locally defined resplen2 variable.
2384         (res_nsend): Adjust for __libc_res_nsend interface change.
2385         (send_vc): Initialize *resplen2 if necessary.  Read length of
2386         package into an appropriately aligned variable.  Store converted length
2387         in new variable and use it appropriately.
2388         Add branch prediction help.
2389         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
2390         and pass it on to __libc_res_nsend.  Adjust all callers.
2391         (__libc_res_nsearch): Likewise.
2392         (__libc_res_nqeurydomain): Likewise.
2393         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
2394         change.
2395         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
2396         Define resplen2 variable and pass it to __libc_res_nsearch and then
2397         to gaih_getanswer.
2398         (getanswer_r): In case of incorrect DNS data don't overread buffer.
2399         Add branch prediction.
2400         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
2401         (gaih_getanswer): Don't decode second slice if first one failed due
2402         to a too small buffer.  Don't let not found status of second
2403         decoder shadow results of the first.
2404         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
2405         and __libc_res_nquery interface changes
2406         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
2407         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
2408         __libc_res_nsearch, and __libc_res_nsend.
2409         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
2410         change.
2411         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
2412         __libc_res_nsearch interface changes.
2414 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
2416         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
2418         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
2419         file descriptors with close-on-exec set.
2420         (exec_comm_child): Fix the case where the write end of the pipe is
2421         STDOUT_FILENO already.  In case it is, clear close-on-exec.
2423         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
2424         * io/pipe2.c: Likewise.
2425         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
2426         instead of __ASSUME_PACCEPT.
2427         * include/unistd.h: Declare __have_pipe2.
2428         * libio/iopopen.c: Implement "e" flag.
2429         * libio/Makefile (tests): Add tst-popen1.
2430         * libio/tst-popen1.c: New file.
2432         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
2433         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2435 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
2437         [BZ #6771]
2438         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
2439         success call of _IO_SEEKOFF or calls which failed because the
2440         descriptor is for a pipe.
2442         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
2443         magic number.
2445         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
2447         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
2448         F_SETFD use if we know fopen set the flag.
2450         * login/utmp_file.c (setutent_file): Minor optimization in case
2451         O_CLOEXEC is available.
2453 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
2455         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
2456         * elf/Makefile: Use pie-ccflag variable.
2457         * nscd/Makefile: Likewise.
2458         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
2460 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
2462         [BZ #6724]
2463         * Versions.def: Add GLIBC_2.9 version tag for libutil.
2464         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
2465         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
2466         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
2467         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
2468         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
2469         utmp32, utmpx32 and login32.
2470         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
2471         versions of struct utmp functions to libc and libutil.
2472         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
2473         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
2474         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
2475         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
2476         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
2477         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
2478         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
2479         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
2480         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
2481         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
2482         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
2483         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
2484         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
2485         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
2486         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
2487         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
2488         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
2489         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
2490         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
2491         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
2492         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
2493         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
2495 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
2497         * scripts/gen-as-const.awk: Generate more widely usable code by
2498         using 64-bit arithmetic.
2500         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
2501         the same treatment as narrow output code in last patch.
2503         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
2505         [BZ #6763]
2506         * elf/dl-load.c (local_strdup): Remove inline.
2507         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
2508         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
2509         part of the object.
2511         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
2513 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
2515         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
2516         the new syscalls, too.
2518         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
2519         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
2521         [BZ #6698]
2522         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
2523         parameter for end of buffer.  If temporary copy is too large use
2524         malloc.
2525         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
2526         interface change.
2527         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
2528         string rewrite when allocating buffer.
2530         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
2531         syscalls, too.
2533         * nscd/connections.c (nscd_init): Clean up fcntl call.
2535         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
2536         SOCK_NONBLOCK if possible.
2538         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
2539         SOCK_CLOEXEC if available.
2541         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
2542         __libc_clntudp_bufcreate_internal.
2543         * include/sys/socket.h: Declare __have_sock_cloexec.
2544         * socket/Makefile (aux): Add have_sock_cloexec.
2545         * socket/have_sock_cloexec.c: New file.
2546         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
2547         __libc_clntudp_bufcreate.
2548         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
2549         which takes an additional parameter.  Create socket with non-blocking
2550         mode and close-on-exec flag set, if wanted.
2551         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
2552         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
2553         instead of clntudp_create.  The socket has already the close-on-exec
2554         flag set if SOCK_CLOEXEC is defined.
2556 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
2558         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2559         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
2560         appropriate.
2561         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
2562         non-blocking mode by using socket, paccept, and inotify_init1.
2564         * Versions.def (glibc): Add GLIBC_2.9.
2565         * io/Makefile (routines): Add dup3 and pipe2.
2566         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
2567         * io/dup3.c: New file.
2568         * io/pipe2.c: New file.
2569         * posix/unistd.h: Declare dup3 and pipe2.
2570         * socket/Makefile (routines): Add paccept.
2571         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
2572         * socket/paccept.c: New file.
2573         * socket/sys/socket.h: Declare paccept.
2574         * sysdeps/unix/syscalls.list: Add entry for dup3.
2575         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
2576         epoll_create2 and inotify_init1.
2577         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
2578         * sysdeps/unix/sysv/linux/paccept.c: New file.
2579         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
2580         possible.
2581         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
2582         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
2583         inotify_init1, and pipe2 entries.
2584         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
2585         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
2586         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
2587         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
2588         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
2589         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
2590         SOCK_NONBLOCK.
2591         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
2592         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
2593         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
2594         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
2595         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
2596         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
2597         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
2598         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
2599         EPOLL_NONBLOCK.  Declare epoll_create2.
2600         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
2601         EFD_NONBLOCK.
2602         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
2603         IN_NONBLOCK.  Declare inotify_init1.
2604         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
2605         SFD_NONBLOCK.
2606         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
2607         TFD_NONBLOCK.
2609         * elf/elf.h: Define AT_EXECFN.
2610         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
2611         LD_ORIGIN_PATH.
2612         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
2613         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
2614         if __ASSUME_AT_EXECFN is defined.
2615         (_dl_aux_init): Handle AT_EXECFN.
2616         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
2617         for 2.6.27 and up.
2618         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
2619         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
2620         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
2621         _dl_execfn if available and avoid compatibility code if
2622         __ASSUME_AT_EXECFN is defined.
2624         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
2625         _dl_discover_osversion only for older kernels.
2627 2008-07-22  Roland McGrath  <roland@frob.com>
2629         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
2631 2008-07-21  Roland McGrath  <roland@frob.com>
2633         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
2634         returned too much data out of line.
2636 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
2638         * locale/setlocale.c (setname): Remove inline to avoid compiler
2639         warning.
2641         [BZ #6712]
2642         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
2644 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
2646         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
2647         doesn't manage to write anything, fail.
2649         * malloc/hooks.c (__malloc_check_init): Remove printf.
2651 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2653         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
2655 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
2657         * nscd/connections.c (main_loop_poll): Fix handling of read errors
2658         from inotify.
2659         (main_loop_epoll): Likewise.
2661 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
2663         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
2665         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
2666         if DEBUG is defined.
2668         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
2669         query.  Adjust buffer size computation for padding.
2671 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
2673         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
2674         * stdio-common/tst-setvbuf1.c: New file.
2675         * stdio-common/tst-setvbuf1.expect: New file.
2677         [BZ #6719]
2678         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
2679         when selecting fully-buffered stream.
2680         Patch by Wang Xin <wxinee@gmail.com>.
2682 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2684         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
2685         (__open_2): New function.
2686         (__open64_2): New alias to __open_2.
2687         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
2688         (__openat_2): New function.
2689         (__openat64_2): New alias to __openat_2.
2691 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
2693         [BZ #6723]
2694         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2696 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2698         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
2699         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
2700         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
2701         __hurd_dfail.
2702         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2703         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2704         * sysdeps/mach/hurd/send.c (__send): Likewise.
2705         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
2706         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
2708 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2710         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
2711         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2712         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2713         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
2714         * hurd/get-host.c (_hurd_get_host_config): Likewise.
2715         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
2717 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
2719         [BZ #6657]
2720         * time/strptime_l.c: Don't clear s.era_cnt after successful match
2721         of %EY.
2722         Patch by Petr Baudis.
2724 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
2726         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
2727         Patch by Peter Jones <pjones@redhat.com>.
2729 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
2731         [BZ #6654]
2732         * stdlib/canonicalize.c (__realpath): readlink can write too much
2733         into the buffer on platforms without PATH_MAX.
2735 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
2737         [BZ #6653]
2738         * posix/tst-regex.c (main): Rename to...
2739         (do_test): ... this. Remove cmdline option processing.
2740         (TIMEOUT): Define.
2741         (TEST_FUNCTION): Define.
2742         (CMDLINE_OPTIONS): Define.
2744 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
2746         [BZ #5210]
2747         * configure.in: Add -Werror to -fstack-protector test to catch
2748         unsupported architectures.
2749         Patch by Gilles Esponasse <g.esp@free.fr>.
2751 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
2753         * stdlib/tst-setcontext.c: Set back_in_main before exit if
2754         getcontext returns ENOSYS.
2756 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
2758         * nscd/connections.c (main_loop_poll): Fix test for read error.
2759         (main_loop_epoll): Likewise.
2761 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
2763         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
2764         better place so it is not called when nscd is used.
2766         * nscd/connections.c: Also recognize and handle changes to the
2767         resolver configuration file.
2769 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
2771         * time/strftime.c: Pass reference to tzset_called around to handle
2772         recursive calls.
2774         [BZ #6612]
2775         * time/strftime.c (__strftime_internal): Call tzset() only
2776         when printing timezone-dependent values.
2777         Based on a patch by Petr Baudis <pasky@suse.cz>.
2779         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
2780         unconditionally use second gaih_getanswer_slice result.
2782         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
2783         (getaddrinfo): RES must always be non-NULL.
2785 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
2787         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
2788         cr[34] registers.
2789         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2790         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2791         Likewise.
2792         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
2793         register.
2795 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
2797         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
2798         fields.
2799         * nscd/connections.c (inotify_fd): New variable.
2800         (nscd_init): Try to open an inotify descriptor.
2801         If successful, watch files for databases using inotify instead of
2802         having prune threads stat the files.
2803         (nscd_run_prune): Recognize clear_cache flag being set and call
2804         prune_cache appropriately.
2805         (main_loop_poll): Add inotify descriptor to wait set and handle the
2806         reported changes.
2807         (main_loop_epoll): Likewise.
2808         * nscd/cache.c (prune_cache): Don't stat files for databases if
2809         inotify is used.
2810         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
2811         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
2813         * nscd/grpcache.c (cache_addgr): Correctly compute size of
2814         fixed-size portion of the record.
2815         * nscd/servicescache.c (cache_addserv): Likewise.
2816         * nscd/pwdcache.c (cache_addpw): Likewise.
2817         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2819 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
2821         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
2822         out we don't use uninitialized memory.
2824         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
2825         the client.
2827 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
2829         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
2830         ignore T_DNAME messages.
2831         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
2833 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
2835         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
2836         Avoid segfault if first GETC returns eof/'\0'/'\n'.
2838 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
2840         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
2841         instead of portstr to nscd_getserv_r.  Patch by
2842         Roman Kagan <rkagan@mail.ru>.
2844 2008-05-26  Jim Meyering  <meyering@redhat.com>
2846         Remove more useless "if" tests before "free".
2847         * include/inline-hashtab.h (htab_delete): Likewise.
2848         * libio/freopen.c (freopen): Likewise.
2849         * libio/freopen64.c (freopen64): Likewise.
2850         * locale/programs/ld-collate.c (collate_read): Likewise.
2851         * misc/fstab.c (libc_freeres_fn): Likewise.
2852         * posix/glob.c (globfree): Likewise.
2854 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
2856         * string/Makefile (strop-tests): Add memmem.
2857         * string/test-memmem.c: New file.
2858         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
2859         (test_init): Size buf1 according to BUF1PAGES.
2861 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
2863         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
2864         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
2865         (CFLAGS-scanf17.c): New.
2866         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
2867         * stdio-common/scanf15.c (main): Likewise.
2868         * stdio-common/scanf16.c: New file.
2869         * stdio-common/scanf17.c: New file.
2871 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
2873         * resolv/res_send.c (send_dg): If we already have one of two
2874         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
2875         use the one answer insted of failing.
2877 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
2879         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
2880         being executed on PowerPC as the expected result exceeds IBM
2881         long double 128 __LDBL_MAX__.
2883 2008-05-21  Roland McGrath  <roland@redhat.com>
2885         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
2887         * Makefile (check-data): Use $(abi-name) before other guesses.
2888         Look in $(add-ons) dirs before scripts/data/.
2889         * elf/Makefile (check-data): Likewise.
2891         * scripts/soversions.awk: Grok ABI line.
2892         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
2893         Emit definition for abi-name variable.
2895 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
2897         * string/endian.h: Define new fixed-size hto* and *toh macros only
2898         if [__USE_BSD].
2900         * iconvdata/Depend: Add localedata.
2902 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2904         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
2906 2008-05-08  David S. Miller  <davem@davemloft.net>
2908         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
2909         HIDDEN_JUMPTARGET.
2910         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2911         (__SYSCALL_CLOBBERS): Remove %g* registers.
2912         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2913         (__SYSCALL_CLOBBERS): Likewise.
2914         * scripts/data/localplt-sparc-linux-gnu.data: New file.
2915         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
2917 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
2919         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2920         (CALL_ERRNO_LOCATION): Define.
2921         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2922         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2923         (CALL_ERRNO_LOCATION): Define.
2924         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2925         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
2926         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
2928 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
2930         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
2931         variable.
2933 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
2935         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
2936         (FIRST_FRAME_POINTER): Define.
2938 2008-05-09  David S. Miller  <davem@davemloft.net>
2940         * sysdeps/sparc/sparc64/backtrace.c: New file.
2942 2008-05-14  David S. Miller  <davem@davemloft.net>
2944         * sysdeps/sparc/machine-gmon.h: New file.
2945         * sysdeps/sparc/sparc-mcount.S: Likewise.
2946         * sysdeps/sparc/Makefile: Add sparc-mcount target to
2947         sysdep_routines in gmon directory.
2949 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
2951         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
2953 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
2955         * resolv/res_query.c (__libc_res_nquery): In case one of two
2956         answer was too short don't try to read that answer's header.
2958         * resolv/res_send.c (send_dg): In case of timeout and there are
2959         two queries and one has been answered, return value indicating
2960         success.
2962 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
2964         * nscd/cache.c (cache_add): Take additional parameter specifying
2965         whether this is in response of a cache refill.  Check alignment
2966         of package data.  Revamp waking of pruning thread.
2967         (prune_cache): Small optimization.
2968         * nscd/nscd.h: Adjust cache_add prototypes.
2969         * nscd/aicache.c: Adjust cache_add calls.
2970         * nscd/grpcache.c: Likewise.
2971         * nscd/hstcache.c: Likewise.
2972         * nscd/initgrcache.c: Likewise.
2973         * nscd/pwdcache.c: Likewise.
2974         * nscd/servicescache.c: Likewise.
2975         * nscd/connections.c (restart): Really disable cache use before
2976         exec attempt.  If it fails, reenable cache.
2977         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
2978         time to max to be able to notice concurrent cache additions.  Unlock
2979         prune_lock while performing gc.  Afterwards compute wakeup time with
2980         current wakeup_time value in mind.
2982 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
2984         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
2986         * nscd/mem.c (gc): Correctly determine highest used array element
2987         in mark.
2989         * nscd/mem.c (markrange): Add assert to check entries are all
2990         aligned.  Small cleanup in bitmap use.
2992         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
2993         blockoff of type nscd_ssize_t.
2994         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
2995         (mempoll_alloc): Record block offset and not address.
2997         * nscd/mem.c (gc): Fix test for stack overuse.
2999         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
3000         more asserts.
3002         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
3003         entry is available, believe it.
3005         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
3006         no answers return NSS_STATUS_NOTFOUND.
3007         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
3008         buffer does not have any content.
3010 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
3012         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
3014         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
3015         lookup, don't assign canon unconditionally.
3017 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3019         * string/Makefile (distribute): Add str-two-way.h.
3021 2008-03-29  Eric Blake  <ebb9@byu.net>
3023         Rewrite string searches to O(n) rather than O(n^2).
3024         * string/str-two-way.h: New file.  For linear fixed-allocation
3025         string searching.
3026         * string/memmem.c: New implementation.
3027         * string/strstr.c: New implementation.
3028         * string/strcasestr.c: New implementation.
3030 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
3032         * posix/regcomp.c (optimize_utf8): Add a note on why we test
3033         opr.ctx_type.
3034         (calc_first): Initialize constraint field.
3035         (duplicate_node_closure): Use it instead of special casing ANCHORS.
3036         Use search_duplicated_node to avoid loops.  Fix grammar.
3037         (duplicate_node): Merge constraint field for all node types.
3038         (calc_eclosure_iter): Look at constraint field for all node types.
3039         * posix/regex_internal.c (create_cd_newstate): Don't look at
3040         create_cd_newstate.
3042 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3044         [BZ #6428]
3045         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
3047         [BZ #6442]
3048         * string/endian.h: Add macros for fixed-size endian conversion.
3049         * bits/byteswap.h: Allow inclusion from <endian.h>.
3050         * sysdeps/i386/bits/byteswap.h: Likewise.
3051         * sysdeps/ia64/bits/byteswap.h: Likewise.
3052         * sysdeps/s390/bits/byteswap.h: Likewise.
3053         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3054         * string/Makefile (tests): Add tst-endian.
3055         * string/tst-endian.c: New file.
3057         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
3058         Patch by Reuben Thomas.
3060 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
3062         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
3064 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3066         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
3068         [BZ #6461]
3069         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
3070         Add missing braces.
3071         (BODY for __gconv_transform_internal_ascii): Likewise.
3073         [BZ #6472]
3074         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
3075         to be treated like link-local addresses.
3076         (match_prefix): Don't treat IPv4 loopback address special when
3077         converting to v4 mapped addressed.
3079         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
3080         if necessary.
3081         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
3082         * posix/tst-rfc3484-2.c: Likewise.
3083         * posix/tst-rfc3484-3.c: Likewise.
3085         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
3086         and SCTP.
3088         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
3090         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
3092         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
3094 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
3096         * po/lt.po: New file.  From Lituanian translation team.
3098 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
3100         Introduce TLS descriptors for i386 and x86_64.
3101         * include/inline-hashtab.h: New file, copied from 2005's
3102         libiberty, with fix for memory leak imported afterwards by
3103         Glauber de Oliveira Costa.
3104         * elf/tlsdeschtab.h: New file.
3105         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
3106         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
3107         (CHECK_STATIC_TLS): Move to...
3108         * elf/dynamic-link.h: ... this file.
3109         (TRY_STATIC_TLS): New macro.
3110         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
3111         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
3112         R_386_TLS_DESC): Define.
3113         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
3114         binutils.
3115         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
3116         R_X86_64_TLSDESC): Define.
3117         (R_386_NUM, R_X86_64_NUM): Adjust.
3118         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
3119         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3120         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3121         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
3122         release tlsdesc_table.
3123         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
3124         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
3125         (elf_machine_rel): Handle R_386_TLS_DESC.
3126         (elf_machine_rela): Likewise.
3127         (elf_machine_lazy_rel): Likewise.
3128         (elf_machine_lazy_rela): Likewise.
3129         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
3130         * sysdeps/i386/dl-tlsdesc.S: New file.
3131         * sysdeps/i386/dl-tlsdesc.h: New file.
3132         * sysdeps/i386/tlsdesc.c: New file.
3133         * sysdeps/i386/tlsdesc.sym: New file.
3134         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
3135         tlsdesc_table.
3136         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
3137         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3138         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3139         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
3140         release tlsdesc_table.
3141         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
3142         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
3143         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
3144         (elf_machine_rel): Handle R_X86_64_TLSDESC.
3145         (elf_machine_rela): Likewise.
3146         (elf_machine_lazy_rel): Likewise.
3147         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
3148         (__tls_get_addr): Do not declare for non-shared compiles.
3149         * sysdeps/x86_64/dl-tlsdesc.S: New file.
3150         * sysdeps/x86_64/dl-tlsdesc.h: New file.
3151         * sysdeps/x86_64/tlsdesc.c: New file.
3152         * sysdeps/x86_64/tlsdesc.sym: New file.
3153         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
3154         tlsdesc_table for both 32- and 64-bit structs.
3156 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
3158         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
3159         its own function.  This reduces the frame setup costs and more.
3161 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
3163         [BZ #3406]
3164         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
3165         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
3167 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
3169         * io/openat.c (__openat_2): Also pass fd to __openat.
3170         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
3171         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
3173         * string/tester.c (test_memcmp): Add a few more tests.
3174         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
3176 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
3178         * nscd/cache.c (cache_add): Before returning with failure and this
3179         is the first use of the record, mark it as unusable.
3180         * nscd/aicache.c: Don't touch the dataset after cache_add returns
3181         reporting a failure.
3182         * nscd/grpcache.c: Likewise
3183         * nscd/hstcache.c: Likewise.
3184         * nscd/initgrcache.c: Likewise.
3185         * nscd/pwdcache.c: Likewise.
3186         * nscd/servicescache.c: Likewise.
3188 2008-05-10  Roland McGrath  <roland@redhat.com>
3190         [BZ #6505]
3191         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
3193 2008-05-08  David S. Miller  <davem@davemloft.net>
3195         * misc/truncate64.c (truncate64): Use __truncate not truncate.
3197         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
3198         (__ieee754_y0l): Likewise.
3199         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
3200         (__ieee754_y1l): Likewise.
3201         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
3202         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
3203         frexpl and ldexpl.  math_private.h provides them and the latter
3204         is not even used.
3205         (__log1pl): Use __frexpl.
3207 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
3209         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
3210         prototypes.
3211         * include/arpa/nameser_compat.h: Define T_UNSPEC.
3212         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
3213         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
3214         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
3215         af==AF_UNSPEC.
3216         (_nss_nis_gethostbyname4_r): New function.
3217         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3218         Change to also handle af==AF_UNSPEC.
3219         (get_tablename): New function.  Use it to avoid duplication.
3220         (_nss_nisplus_gethostbyname4_r): New function.
3221         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
3222         available.
3223         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
3224         * nss/nss.h: Define struct gaih_addrtuple.
3225         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
3226         af==AF_UNSPEC.
3227         (_nss_files_gethostbyname4_r): New function.
3228         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
3229         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
3230         calls.
3231         * resolv/res_query.c (__libc_res_nquery): Take two additional
3232         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
3233         look up IPv4 and IPv6.
3234         Change all callers.
3235         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
3236         for an additional query and answer buffer.  Pass to send_vc and
3237         send_dg.
3238         (send_vc): Send possibly two requests and receive two answers.
3239         (send_dg): Likewise.
3240         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
3241         __libc_res_nquery.
3242         (_nss_dns_gethostbyname4_r): New function.
3243         (gaih_getanswer_slice): Likewise.
3244         (gaih_getanswer): Likewise.
3245         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
3246         __libc_res_nquery call.
3247         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
3248         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
3249         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
3250         available.
3252 2008-05-05  David S. Miller  <davem@davemloft.net>
3254         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
3255         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
3257 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3259         Fix termios bit macros.
3260         Move *DLY definitions where they belong, in termios.h.
3261         Add *[0-3] definitions.
3262         Fixes confusion between VT and FF.
3263         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
3264         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
3265         are already defined to avoid collision with termios.h.
3266         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
3267         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
3268         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
3269         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
3270         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
3271         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
3272         VTDLY, VT0, VT1): New macros.
3273         [__USE_GNU] (OLCUC): Change value of macro.
3274         [__USE_XOPEN] (OFILL): New macro.
3275         [__USE_BSD] (CRTSCTS): Change value.
3276         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
3277         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
3278         (B7200, B14400, B28800, B76800): New macros.
3280 2008-05-01  David S. Miller  <davem@davemloft.net>
3282         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
3283         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
3284         (gen-as-const-headers): Add it.
3285         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
3286         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
3287         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
3288         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
3290         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
3291         six system call parameters.
3292         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
3294 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
3296         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
3297         RUSAGE_LWP.
3298         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
3299         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
3301 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
3303         * stdlib/tst-setcontext.c: Include unistd.h.
3305 2008-04-25  David S. Miller  <davem@davemloft.net>
3307         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
3308         Pass "union semun" properly in to sys_ipc, it must be passed
3309         by value, not by reference.
3311 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
3313         * nscd/Makefile (nscd-cflags): Set back to -fpie.
3314         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
3315         * nscd/connections.c (mem_in_flight): Likewise.
3317         * nscd/nscd.h (dbs): Make hidden.
3319         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
3320         Avoid returning -1, return 0 instead.
3322 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
3324         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
3326 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
3328         [BZ #5209]
3329         * sysdeps/unix/sysv/linux/times.c: New file.
3331         [BZ #5381]
3332         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
3333         mem_in_flight_list variables.  Add new parameter to mempool_alloc
3334         prototype.
3335         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
3336         appropriate mem_in_flight element.
3337         (gc): Take allocations which have not yet been committed to the
3338         database into account.
3339         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
3340         Reset mem_in_flight before returning.
3341         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
3342         cue it up in mem_in_flight_list.
3343         * nscd/aicache.c: Adjust mempool_alloc call.
3344         * nscd/grpcache.c: Likewise.
3345         * nscd/hstcache.c: Likewise.
3346         * nscd/initgrcache.c: Likewise.
3347         * nscd/pwdcache.c: Likewise.
3348         * nscd/servicescache.c: Likewise.
3349         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
3350         of -fpie.
3352         * nscd/connections.c (handle_request): Provide better error message
3353         in case SELinux forbids the service.
3355         * version.h (VERSION): Bump to 2.8.90.
3357 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
3359         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
3361 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
3363         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
3364         Also use for 32-bit.
3365         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
3366         __nextafter instead of nextafter to avoid local PLT.
3367         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
3368         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3370         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
3372         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
3373         __fe_nomask_env.
3374         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
3375         <fenv_libc.h> instead of <fenv.h>.
3376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
3377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
3379         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
3381         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
3382         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
3383         function from fegetexcept and make old name weak alias.
3384         * include/fenv.h: Declare __fegetexcept.
3385         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
3386         fegetexcept.
3387         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
3388         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
3389         to fetestexcept.
3390         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
3391         instead of frexpl to avoid local PLT.
3392         * math/s_significandl.c (__significandl): Use __ilogbl instead of
3393         ilogbl to avoid local PLT.
3394         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
3395         instead of ldexpl to avoid local PLT.
3396         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3397         __roundl not roundl to avoid local PLT.
3398         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
3399         local PLTs.  Use __sincosl instead of separate sinl and cosl
3400         calls.
3401         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3403         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
3404         version for ppc64 to 2.4.21 since without it makecontext will fail.
3406         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
3407         to the ABI in use.
3408         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
3409         .__tls_get_addr.
3410         [__powerpc64__] (TLS_GD): Likewise.
3412 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
3414         [BZ #4997]
3415         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
3416         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
3417         mantissa.
3418         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3419         Likewise.  Also account for when x is an odd number between 2^52
3420         and 2^53-1.
3421         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
3422         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3423         * math/libm-test.inc (lround_test, llround_test): Added test cases to
3424         detect aforementioned erroneous conditions.
3426 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
3428         * configure.in: Check for -fno-section-anchors in addition to
3429         -fno-toplevel-reorder.
3431 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
3433         * include/features.h (__GLIBC_MINOR__): Bump to 8.
3435         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
3436         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3437         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3438         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3439         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3440         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3442 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
3444         [BZ #5443]
3445         * time/era.c: Transform __libc_setlocale_lock into rwlock.
3446         * time/alt_digit.c: Likewise.
3447         * wcsmbs/wcsmbsload.c: Likewise.
3449 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
3451         * version.h (VERSION): Bump to 2.8.
3453         * timzeone/asia: Update from tzdata2008b.
3454         * timezone/backward: Likewise.
3455         * timezone/europe: Likewise.
3456         * timezone/northamerica: Likewise.
3457         * timezone/southamerica: Likewise.
3458         * timezone/iso3166.tab: Likewise.
3459         * timezone/leapseconds: Likewise.
3460         * timezone/zone.tab: Likewise.
3461         * timezone/private.h: Update from tzcode2008a.
3462         * timezone/zdump.c: Likewise.
3463         * timezone/zic.c: Likewise.
3465 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
3467         [BZ #5741]
3468         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
3469         Define additonal Data Cache Block instruction macros.
3470         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
3471         Replace dcbst with dcbf and sync with sync/isync.
3473 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
3475         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
3476         Always set ELF_RTYPE_CLASS_PLT.
3477         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
3479 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
3481         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
3482         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
3483         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
3484         For ISA 2.01 and later replace mftb with mfspr 268.
3486 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
3488         [BZ #5768]
3489         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
3490         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
3492 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
3494         [BZ #5768]
3495         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
3496         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
3497         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
3498         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
3500 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
3502         * stdlib/tst-makecontext.c (othervar): New variable.
3503         (cf): Test sign extending the argument to long.
3505 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
3507         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
3508         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
3509         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
3510         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
3511         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
3512         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
3513         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
3515 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
3517         * elf/Makefile (tests): Substitute tests-vis-yes here.
3518         (tests-vis-yes): Delete.
3519         (modules-name, modules-vis-yes): Similarly.
3521 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
3523         [BZ #4407]
3524         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3525         Preserve sign in signgamp when x is zero.
3527 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
3529         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
3530         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
3531         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
3532         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
3533         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
3534         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
3536 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
3538         [BZ #4314]
3539         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
3540         buffers.
3542         [BZ #5209]
3543         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
3544         a reserved error value.
3546         * stdlib/tst-makecontext.c: Change parameter to cf to negative
3547         value to check for correct sign extension.
3549         [BZ #5436]
3550         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3551         Copy 64-bit parameter values even though this is not required in
3552         the standard.
3554         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
3555         PC save.
3557 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
3559         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
3560         PC save.
3562 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
3564         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
3566 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
3568         [BZ #5998]
3569         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
3570         in line-buffered stream failed.
3571         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3573 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
3575         [BZ #6024]
3576         * scripts/abi-versions.awk: If the version specified by
3577         --enable-oldest-abi is older than the first version for this
3578         architecture, use the default version.
3580         * locale/programs/ld-collate.c (collate_read): Ignore script lines
3581         as well when ignoring the whole category.
3583 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
3585         [BZ #6042]
3586         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
3587         ETHERTYPE_* definitions.
3588         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
3590 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
3592         * stdlib/mbtowc.c (__no_r_state): Remove.
3593         (mbtowc): New static state variable.  Use it instead of
3594         __no_r_state.
3595         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
3596         (__wctomb_state): New hidden variable.
3597         (wctomb): Use __wctomb_state instead of __no_r_state.
3598         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
3599         (__wctomb_state): New extern decl.
3600         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
3602 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
3604         [BZ #5475]
3605         * resolv/res_init.c: Handle scope IDs in resolv.conf.
3607 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
3609         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
3611 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
3613         * po/nl.po: Update from translation team.
3615 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
3617         [BZ #6007]
3618         * string/strfry.c: Handle empty strings again.
3620 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
3622         [BZ #5443]
3623         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
3624         before looking for translation.
3625         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
3626         * locale/freelocale.c: Likewise.
3627         * locale/newlocale.c: Likewise.
3628         * locale/setlocale.c: Likewise.
3629         Based partially on a patch by ryo@np.css.fujitsu.com.
3631 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
3633         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
3634         acquiring wrlock.  Do conv_tab allocation while holding lock.
3635         * intl/Makefile: Add rules to build and run tst-gettext6.
3636         * intl/tst-gettext6.c: New test.
3637         * intl/tst-gettext6.sh: New file.
3639 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
3641         * po/nl.po: Update from translation team.
3643         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
3644         provided through st_blksize, try the default size before giving up.
3646 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
3648         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
3650         [BZ #5939]
3651         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
3653         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
3654         error message.  POSIX today does not require the messages to be in
3655         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
3657         [BZ #5979]
3658         * sunrpc/auth_unix.c: Unify printed strings.
3659         * sunrpc/clnt_tcp.c: Likewise.
3660         * sunrpc/clnt_udp.c: Likewise.
3661         * sunrpc/clnt_unix.c: Likewise.
3662         * sunrpc/svc_tcp.c: Likewise.
3663         * sunrpc/svc_udp.c: Likewise.
3664         * sunrpc/svc_unix.c: Likewise.
3665         * sunrpc/xdr.c: Likewise.
3666         * sunrpc/xdr_array.c: Likewise.
3667         * sunrpc/xdr_rec.c: Likewise.
3668         * sunrpc/xdr_ref.c: Likewise.
3669         * locale/programs/ld-time.c (time_finish): Unify messages.
3670         * locale/programs/locfile.c (handle_copy): Fix typo.
3671         * nscd/nscd.c (options): Fix typo.
3673         [BZ #5995]
3674         * stdlib/strtod_l.c: Use correct sign for result in one more
3675         underflow case.
3676         Patch by Eric Blake <ebb9@byu.net>.
3678 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
3680         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
3681         and creat system calls.
3682         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
3683         call.
3684         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
3685         system calls.
3686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
3687         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3688         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3690 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
3692         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
3693         <linux/limits.h> has defined it.
3694         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
3695         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
3696         headers.
3697         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
3698         it instead of ARG_MAX.
3700 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
3702         * posix/gai.conf: Fix comment for scope nullbits.
3703         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
3704         default to 128 bits for v4 mapped addresses.
3706 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3708         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
3709         ptrace call to get the ieee_instruction_pointer from the kernel.
3710         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
3711         ptrace call to set the ieee_instructtion_pointer.
3712         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
3713         Add comment that ieee_instruction_pointer is always 0.
3715 2008-03-09  Andreas Jaeger  <aj@suse.de>
3717         [BZ #5857]
3718         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
3719         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
3720         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
3722         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
3723         (rint_test): Likewise.
3725 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
3727         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
3728         call.
3729         (__nisfind_server): Similar for open readColdStartFile call.
3730         Patch partially by Jim Meyering.
3731         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
3732         around internal_setent call.
3734         * po/vi.po: New Vietnamese translation.
3736         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
3737         ADJ_OFFSET_SS_READ.
3739         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
3740         remove CLONE_STOPPED.
3742 2008-02-10  Jim Meyering  <meyering@redhat.com>
3744         Remove useless "if" before "free":
3745         * elf/ldconfig.c (parse_conf_include): Likewise.
3746         * gmon/gmon.c (weak_alias): Likewise.
3747         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
3748         * inet/rcmd.c (__validuser2_sa): Likewise.
3749         * intl/bindtextdom.c (set_binding_values): Likewise.
3750         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
3751         * libio/genops.c (save_for_backup): Likewise.
3752         * libio/wgenops.c (save_for_wbackup): Likewise.
3753         * locale/programs/ld-collate.c (collate_read): Likewise.
3754         * locale/programs/linereader.c (get_string): Likewise.
3755         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
3756         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
3757         * resolv/res_debug.c (do_section): Likewise.
3758         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
3759         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
3760         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3761         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
3762         * time/tzset.c (tzset_internal): Likewise.
3764 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
3766         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
3767         of ASSEMBLER.
3769 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
3771         [BZ #5903]
3772         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
3773         not stream for output file.  Open output file here.
3774         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
3775         and output file name.
3776         (process_fd): Likewise.
3777         (process_file): Likewise.
3778         (main): Adjust callers of changed functions.
3779         * iconv/iconv_prog.h: Adjust prototype.
3781 2008-03-09  Andreas Jaeger  <aj@suse.de>
3783         [BZ #5753]
3784         * sysdeps/ia64/ieee754.h: Use protected namespace
3785         __BIG_ENDIAN/__LITTLE_ENDIAN.
3786         * sysdeps/ieee754/ieee754.h: Likewise.
3787         Patch by Aurelien Jarno <aurelien@aurel32.net>.
3789 2008-03-08  Roland McGrath  <roland@frob.com>
3791         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
3792         ignore a signal that came from a machine exception, treat it as a
3793         fatal core-dump signal instead.
3794         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3796         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3797         Clear DF bit in thread state's eflags.
3798         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3800 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
3802         [BZ #5774]
3803         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
3804         of NAN(...) sequence.
3805         * stdlib/Makefile (tests): Add tst-strtod6.
3806         * stdlib/tst-strtod6.c: New file.
3808         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
3810         [BZ #5762]
3811         * posix/getopt.c (_getopt_internal_r): Clarify error message by
3812         putting offending option character in quotes.  Clean up error
3813         messages.
3814         * po/be.po: Adjust msgstr in translation file.
3815         * po/bg.po: Likewise.
3816         * po/ca.po: Likewise.
3817         * po/cs.po: Likewise.
3818         * po/da.po: Likewise.
3819         * po/de.po: Likewise.
3820         * po/es.po: Likewise.
3821         * po/fr.po: Likewise.
3822         * po/hr.po: Likewise.
3823         * po/ko.po: Likewise.
3824         * po/nl.po: Likewise.
3825         * po/rw.po: Likewise.
3826         * po/sk.po: Likewise.
3827         * po/sv.po: Likewise.
3828         * po/tr.po: Likewise.
3829         * po/zh_CN.po: Likewise.
3830         * po/zh_TW.po: Likewise.
3832         [BZ #5760]
3833         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
3834         Patch by Roland Bless <roland@bless.de>.
3836         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
3837         .o file.
3838         * elf/Makefile (routines): Add dl-sysdep.
3839         (elide-routines.os): Likewise.
3841 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
3843         [BZ #5786]
3844         * elf/dl-sysdep.c: Undefine ROUND after use.
3845         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
3846         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
3847         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
3848         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
3849         to ...
3850         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
3851         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
3852         if necessary.
3853         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
3855         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
3856         _dl_tls_get_addr_soft element.
3857         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
3858         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
3859         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
3860         GLRO.
3861         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
3862         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
3863         of internal_function.
3865         * stdlib/Makefile (aux): Add tens_in_limb.
3866         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
3867         * stdlib/tens_in_limb.c: ...here.  New file.
3869         [BZ #5778]
3870         * sysdeps/unix/sysv/linux/pathconf.h: Declare
3871         __statfs_chown_restricted.
3872         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
3873         for _PC_CHOWN_RESTRICTED.
3874         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
3875         Implement __statfs_chown_restricted.
3876         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
3877         _POSIX_CHOWN_RESTRICTED value to zero.
3878         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
3879         defined to zero.
3881         * sysdeps/x86_64/rtld-memset.c: New file.
3883 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
3885         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
3887         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
3888         Barcelona machine.  Make default fall through branch of
3889         __x86_64_preferred_memory_instruction check as the integer code path.
3891 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
3893         * sysdeps/x86_64/cacheinfo.c
3894         (__x86_64_preferred_memory_instruction): New variable.
3895         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3897         * sysdeps/x86_64/memset.S: Rewrite.
3899 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
3901         * include/stdio.h (__asprintf_chk, __dprintf_chk,
3902         __obstack_printf_chk): New prototypes.
3903         (__vasprintf_chk, __vdprintf_chk,
3904         __obstack_vprintf_chk): Likewise.
3905         Add libc_hidden_proto.
3906         * libio/obprintf.c
3907         (_IO_obstack_jumps): No longer static, add attribute_hidden.
3908         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
3909         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3910         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
3911         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
3912         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3913         __obstack_vprintf_chk): New prototypes.
3914         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
3915         obstack_vprintf): New inlines.
3916         * debug/dprintf_chk.c: New file.
3917         * debug/vdprintf_chk.c: New file.
3918         * debug/asprintf_chk.c: New file.
3919         * debug/vasprintf_chk.c: New file.
3920         * debug/obprintf_chk.c: New file.
3921         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
3922         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
3923         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
3924         @@GLIBC_2.8.
3925         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
3926         vdprintf_chk and obprintf_chk, set CFLAGS for them.
3927         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
3928         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
3929         libc_hidden_proto.
3930         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
3931         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
3932         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
3933         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
3934         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
3935         @@GLIBC_2.8.
3936         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
3937         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
3938         obstack_vprintf_chk.
3939         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
3940         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
3941         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
3942         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
3943         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
3944         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
3946 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
3948         [BZ #5779]
3949         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
3950         Patch by Roy Marples <roy@marples.name>.
3952         [BZ #5736]
3953         * malloc/malloc.c: Fix typo in comment.
3955         [BZ #5627]
3956         * locale/iso-639.def: Add Shuswap.
3958 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
3960         [BZ #5790]
3961         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
3962         overwrite *h_errnop/*errnop values from getanswer_r in case of
3963         failure.
3965 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
3967         [BZ #5818]
3968         * nscd/connections.c (dbs): Add initializers for .suggested_module.
3969         (verify_persistent_db): Remove one unnecessary test and add a new one
3970         for bad configuration.
3971         (nscd_init): Improve error reported when persistent database cannot
3972         be reused.
3973         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
3974         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
3975         .suggested_module and .max_db_size and case config file says the
3976         values are zero.
3977         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
3979         [BZ #5854]
3980         * nis/ypclnt.c (yp_order): Fix handling of return value of
3981         do_ypcall_tr call.
3982         Patch by Jeff Moyer <jmoyer@redhat.com>.
3984         * po/fr.po: Update from translation team.
3986 2008-02-22  Andreas Jaeger  <aj@suse.de>,
3987             Carlos O'Donell <carlos@systemhalted.org>
3989         [BZ #5012]
3990         * FAQ.in: Describe why glibc needs to be compiled with
3991         optimization.
3993 2008-02-19  Roland McGrath  <roland@redhat.com>
3995         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
3997 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
3999         [BZ #5737]
4000         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
4001         __USE_MISC is defined.
4003 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
4005         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
4006         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
4007         sys/timerfd.h.
4008         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
4009         timerfd_gettime, timerfd_settime.
4010         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
4011         timerfd_gettime, timerfd_settime for GLIBC_2.8.
4013 2008-02-08  Roland McGrath  <roland@redhat.com>
4015         * elf/elf.h (NT_PPC_SPE): New macro.
4017 2008-02-06  Roland McGrath  <roland@redhat.com>
4019         * Makerules ($(common-objpfx)sysd-rules):
4020         Depend on $(sysdep-makeconfigs).
4022 2008-01-31  Roland McGrath  <roland@redhat.com>
4024         [BZ #5442]
4025         * configure.in: Use -print-file-name if it yields a directory,
4026         for each of include and include-fixed.
4027         * configure: Regenerated.
4029         * Makeconfig (sysd-rules-targets): New variable.
4030         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
4031         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
4033 2008-01-30  Roland McGrath  <roland@redhat.com>
4035         * manual/libc.texinfo: Update back-cover text.
4037         * elf/elf.h (NT_386_TLS): New macro.
4039 2008-01-29  Roland McGrath  <roland@redhat.com>
4041         * Makeconfig (sysd-rules-patterns): New variable.
4042         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
4043         (check-inhibit-asm): New canned sequence, replaces ...
4044         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
4045         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
4046         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
4047         (CFLAGS-rtld): Variable removed.
4049 2008-01-24  Roland McGrath  <roland@redhat.com>
4051         * configure.in: Let configure fragments set base_os.
4052         * configure: Regenerated.
4054 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
4056         * po/ko.po: Update from translation team.
4058 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
4060         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
4062 2008-01-12  Andreas Jaeger  <aj@suse.de>
4064         [BZ #5040]
4065         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
4066         Add EPOLLRDHUP.
4068 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4070         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
4071         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
4072         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
4074 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
4076         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
4077         * elf/dl-close.c (_dl_close): Check for it.
4078         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
4079         (_dl_allocate_static_tls): Likewise.
4080         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
4081         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
4082         to it.
4083         * elf/tst-tls16.c: New file.
4084         * elf/tst-tlsmod16a.c: New file.
4085         * elf/tst-tlsmod16b.c: New file.
4086         * elf/Makefile: Add rules to build and run tst-tls16.
4088 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
4090         [BZ #5628]
4091         * bits/shm.h: Fix comment describing shmid_ds.
4092         * sysdeps/gnu/bits/shm.h: Likewise.
4093         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
4094         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
4095         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
4096         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
4097         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
4098         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
4099         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
4100         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
4101         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
4103         [BZ #5607]
4104         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
4105         prototypes.
4106         * conform/data/limits.h-data: Adjust limits changed in v6 and add
4107         additional suffixes.
4108         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
4109         Add optional functions mq_timedreceive and mq_timedsend.
4110         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
4111         * conform/data/pthread.h-data: Fix prototype of
4112         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
4113         * conform/data/semaphore.h-data: Allow time.h definitions.
4114         * conform/data/signal.h-data: Likewise.
4115         * conform/data/stdio.h-data: getw and putw are not required in v6.
4116         * conform/data/stdlib.h-data: Change setstate prototype.
4117         * conform/data/string.h-data: Fix strerror_r prototype.
4118         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
4119         * conform/data/unistd.h-data: pthread_atfork not required in v6.
4120         Fix readlink prototype.
4121         * conform/data/netinet/in.h-data: Add const to in6addr_any and
4122         in6addr_loopback.
4123         * inet/netinet/in.h: Cleanup namespace.
4124         * posix/regex.h: Likewise.
4125         * resolv/netdb.h: Likewise.
4126         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
4127         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4128         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4129         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
4130         of names of in in6_addr.
4131         (default_precedence): Likewise.
4132         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
4133         NULL definition.
4135 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
4137         * conform/data/fmtmsg.h-data: Add missing allows.
4138         * conform/data/ftw.h-data: Likewise.
4139         * conform/data/inttypes.h-data: Likewise.
4140         * conform/data/math.h-data: Likewise.
4141         * conform/data/signal.h-data: Likewise.
4142         * conform/data/net/if.h-data: Likewise.
4143         * conform/data/netinet/in.h-data: Likewise.
4144         * conform/data/sys/socket.h-data: Likewise.
4146         [BZ #5614]
4147         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
4148         (__strtok_r): Simplify.
4149         * string/tester.c (test_strtok_r): Add test case for futile search
4150         with single-character seach string.
4152 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
4154         * po/ko.po: Update from translation team.
4156 2008-01-11  Andreas Jaeger  <aj@suse.de>
4158         [BZ #5600]
4159         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
4160         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
4161         kernel header.
4163 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
4165         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
4166         native interface lookup in all the relevant places.
4168 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
4169             Ulrich Drepper  <drepper@redhat.com>
4171         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
4172         field.  Use sockaddr_in6 for source_addr.
4173         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
4174         (match_prefix): Likewise.
4175         (get_label): Likewise.
4176         (get_precedence): Likewise.
4177         (rfc3484_sort): Change to use indirect access to results array.
4178         Adjust to use of sockaddr_in6.  Replace service_order test with
4179         simple index comparison.
4180         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
4181         service_order field.  Adjust qsort_t calls.  Access sorted result
4182         array indirectly through order array.
4183         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
4184         * posix/tst-rfc3484-2.c: Likewise.
4185         * posix/tst-rfc3484-3.c: Likewise.
4187 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
4189         [BZ #5541]
4190         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
4191         pollfd structures.
4192         Patch by André Cruz.
4194         [BZ #5545]
4195         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
4196         (clnt_spcreateerror): Likewise.
4198         [BZ #5553]
4199         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
4200         (public_mEMALIGn): Likewise.
4201         Patch mostly by Daniel Jacobowitz.
4203 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
4205         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
4206         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
4207         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
4208         * stdlib/tst-makecontext2.c: New test.
4210 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
4212         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
4213         defined.
4214         (REINIT_PARAMS): Likewise.  Undefine before end of file.
4215         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
4216         transliteration hooks and REINIT_PARAMS afterwards.
4217         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
4218         status.
4219         (REINIT_PARAMS): Define.
4220         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
4221         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
4222         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
4223         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
4224         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
4225         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
4226         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
4227         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
4228         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
4229         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
4230         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
4231         * iconvdata/tst-iconv7.c: New test.
4233 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
4235         * libio/stdio.h (vscanf): Fix definition for loser compilers.
4237 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
4239         [BZ #5112]
4240         * nscd/connections.c (restart): Fix condition.
4242 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
4244         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
4245         __ctype_toupper_loc): Add __THROW.
4247 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
4249         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
4250         recognition of interface family.
4252         * posix/getconf.c: Update copyright year.
4253         * nss/getent.c: Likewise.
4254         * iconv/iconvconfig.c: Likewise.
4255         * iconv/iconv_prog.c: Likewise.
4256         * elf/ldconfig.c: Likewise.
4257         * catgets/gencat.c: Likewise.
4258         * csu/version.c: Likewise.
4259         * elf/ldd.bash.in: Likewise.
4260         * elf/sprof.c (print_version): Likewise.
4261         * locale/programs/locale.c: Likewise.
4262         * locale/programs/localedef.c: Likewise.
4263         * nscd/nscd.c (print_version): Likewise.
4264         * debug/xtrace.sh: Likewise.
4265         * malloc/memusage.sh: Likewise.
4266         * malloc/mtrace.pl: Likewise.
4267         * debug/catchsegv.sh: Likewise.
4269 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
4271         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
4272         second lookup.
4274 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
4276         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
4277         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4279 2007-12-17  Roland McGrath  <roland@redhat.com>
4281         * inet/ether_line.c (ether_line): Remove unused variable.
4283 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4285         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
4286         and winp.
4287         * login/openpty.c (openpty): Likewise.
4288         * login/pty.h (openpty, forkpty): Likewise.
4289         * manual/terminal.texi (openpty, forkpty): Likewise.
4291 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
4293         * malloc/malloc.c (public_cALLOc): For arenas other than
4294         main_arena, count all bytes inside the mprotect_size range of the
4295         heap as uninitialized.
4297 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
4299         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
4300         executable stacks.
4302         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
4303         mTRIm for all of them.
4304         (mTRIm): Additionally iterate over all free blocks and use madvise
4305         to free memory for all those blocks which contain at least one
4306         memory page.
4307         * malloc/tst-trim1.c: New file.
4308         * malloc/Makefile (tests): Add tst-trim1.
4310         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
4312 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
4314         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4315         First cast argument to long
4316         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
4317         Return long.
4318         (__vdso_clock_gettime): Likewise.
4319         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
4320         return long.
4322 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
4324         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
4325         * locale/nl_langinfo_l.c: Real implementation, copied from
4326         nl_langinfo.c.
4327         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
4329 2007-12-01  Jim Meyering  <meyering@redhat.com>
4331         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4332         that would inhibit utf8-optimization of a regexp containing line-
4333         or buffer-anchors, e.g., `^', `$'.
4335 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
4337         * time/bug-getdate1.c (do_test): Don't use century values which
4338         aren't valid on 32-bit systems.
4340 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
4342         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
4343         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
4344         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
4345         __strcat_g, __strncat_g): Add __asm__.
4347 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
4349         [BZ #5477]
4350         * io/fchmodat.c: Fix typo in stub_warning use.
4351         Patch by Petr Salinger.
4353 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
4355         * iconvdata/hp-thai8.c: New file.
4356         * iconvdata/Makefile: Add rules for hp-thai8.c.
4357         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
4358         * iconvdata/gconv-modules: Likewise.
4360         [BZ #5464]
4361         * iconvdata/hp-greek8.c: New file.
4362         * iconvdata/Makefile: Add rules for hp-greek8.c.
4363         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
4364         * iconvdata/gconv-modules: Likewise.
4366         [BZ #5463]
4367         * iconvdata/hp-turkish8.c: New file.
4368         * iconvdata/Makefile: Add rules for hp-turkish8.c.
4369         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
4370         * iconvdata/gconv-modules: Likewise.
4372         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
4373         (shrink_heap): ... this new function.
4374         (heap_trim): Call shrink_heap instead of grow_heap.
4376         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
4377         case don't call alloc_perturb.
4379 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
4381         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
4382         possible.
4383         * sysdeps/unix/sysv/linux/kernel-features.h
4384         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
4385         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
4387 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
4389         [BZ #5424]
4390         * stdio-common/vfprintf.c: Do not overflow when adding to done.
4391         * stdio-common/Makefile (tests): Add bug22.
4392         * stdio-common/bug22.c: New file.
4394         [BZ #5451]
4395         * time/getdate.c: Fix filling in default values.
4396         * time/bug-getdate1.c: New file.
4397         * time/Makefile: Add rules to build and run bug-getdate1.
4399         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
4400         * iconvdata/ebcdic-es.c: Likewise.
4401         * iconvdata/ebcdic-es-a.c: Likewise.
4402         * iconvdata/ebcdic-uk.c: Likewise.
4403         * iconvdata/iso8859-16.c: Likewise.
4404         * iconvdata/viscii.c: Likewise.
4405         * iconvdata/iso8859-9e.c: Likewise.
4406         * iconvdata/Makefile: Adjust appropriately.
4408         [BZ #5428]
4409         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
4410         __need_wint_t.
4412 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
4414         [BZ #5427]
4415         * iconvdata/hp-roman9.c: New file.
4416         * iconvdata/Makefile: Add rules for hp-roman9.c.
4417         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
4418         * iconvdata/gconv-modules: Likewise.
4420         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
4421         * iconvdata/Makefile: Adjust appropriately.
4423         [BZ #5441]
4424         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
4425         structure, it's allocated with alloca.
4426         * stdio-common/Makefile (tests): Add bug21.
4427         * stdio-common/bug21.c: New file.
4429 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
4431         [BZ #5452]
4432         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
4433         keyword for gcc's braced-groups.
4435 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
4437         [BZ #5454]
4438         * inet/ether_line.c: Strip hostname of whitespaces.
4439         * inet/Makefile (tests): Add tst-ether_line.
4440         * inet/tst-ether_line.c: New file.
4442 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
4444         [BZ #5439]
4445         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
4447         [BZ #5435]
4448         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
4450         * stdlib/tst-setcontext.c: Catch the case where the links gets
4451         messed up and we do not reach main again.
4453         * po/ca.po: Update from translation team.
4455 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
4457         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
4458         * posix/regex.h (REG_ENOSYS): Likewise.
4459         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
4461 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
4463         * nscd/nscd.h (MAX_STACK_USE): Define.
4464         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
4465         (gc): Initialize stack_used based on allocation in prune_cache.
4466         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
4467         Clear array before use.
4469         * nscd/aicache.c (addhstaiX): Update statistics counter in case
4470         memory allocation failed.
4471         * nscd/hstcache.c (cache_addhst): Likewise.
4472         * nscd/grpcache.c (cache_addgr): Likewise.
4473         * nscd/servicescache.c (cache_addserv): Likewise.
4474         * nscd/pwdcache.c (cache_addpw): Likewise.
4475         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4477 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
4479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
4480         and creat system calls.
4482         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
4484 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4486         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
4487         Add netiucv/iucv.h.
4488         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
4489         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
4490         protocol.
4491         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
4492         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
4493         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
4495 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4497         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
4498         strncat): Define as macros to avoid compile errors.
4500         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
4501         creat entries.
4503 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
4505         [BZ #5382]
4506         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
4507         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
4508         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
4509         overflow it.
4510         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4512         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
4513         Return zero in case the thread library is not NPTL.
4515         [BZ #5375]
4516         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
4517         initializing interface list.
4519         [BZ #5378]
4520         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
4521         use result of nss_getgrgid_r if nothing was found.  For other
4522         error return with a failure.
4523         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4525         * locale/programs/ld-collate.c (collate_read): Fix loop to match
4526         macro name.
4528 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
4530         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
4531         (get_scope): For IPv4 scope, use scopes table.
4532         (fini): Free scopes table if necessary.
4533         (free_scopelist): New function.
4534         (scopecmp): New function.
4535         (gaiconf_init): Also handle scopev4 entries.
4536         * posix/tst-rfc3484.c (do_test): Initialize scopes.
4537         * posix/tst-rfc3484-2.c (do_test): Likewise.
4538         * posix/gai.conf: Document scopev4 defaults.
4539         * posix/Makefile (tests): Add tst-rfc3484-3.
4540         * posix/tst-rfc3484-3.c: New file.
4542         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
4543         Teredo tunnels.
4544         * posix/gai.conf: Update for current default tables.
4546 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
4548         * po/tr.po: Update from translation team.
4550 2007-11-18  Roland McGrath  <roland@frob.com>
4552         * manual/arith.texi (Remainder Functions): Spelling fix.
4553         From Shaun Silk <genix@mysoul.com.au>.
4555         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
4557 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
4559         * po/zh_CN.po: Update from translation team.
4561         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
4562         Add sys/signalfd.h and sys/eventfd.h.
4564 2007-11-15  Bruno Haible  <bruno@clisp.org>
4566         [BZ #5346]
4567         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
4568         union.
4569         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
4570         (DCIGETTEXT): Change the allocation of the 'search' variable so that
4571         it needs only fixed stack space. Delay the initialization of
4572         msgid_len until it is needed.
4574 2007-11-15  Andreas Jaeger  <aj@suse.de>
4576         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
4577         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
4579 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
4581         * po/ko.po: Update from translation team.
4583 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
4585         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
4586         significantly.  The device type is also part of the ifinfomsg data.
4588         * po/sv.po: Update from translation team.
4589         * po/nl.po: Likewise.
4591         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
4592         to wake up in 24 hours.
4594         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
4596 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
4598         * po/cs.po: Update from translation team.
4599         * po/pl.po: Likewise.
4601         * include/ifaddrs.h: Remove in6ai_temporary.
4602         (struct in6addrinfo): Add index element.
4603         Declare __check_native.
4604         * inet/Makefile (aux): Add check_native.
4605         * sysdeps/unix/sysv/linux/check_native.c: New file.
4606         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
4607         IFA_F_TEMPORARY.  Pass back ifa_index.
4608         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
4609         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
4610         call __check_native if necessary.
4611         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
4612         to sort addresses.  Pass information about the results.
4613         * posix/tst-rfc3484.c: Adjust for addition of index field and change
4614         of rfc3484_sort interface.
4615         * posix/tst-rfc3484-2.c: Likewise.
4617         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
4618         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
4619         for _quicksort.
4620         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
4621         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
4622         on as third parameter to compare function and _quicksort.
4623         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
4624         to the compare function.
4625         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
4626         * Versions.def: Add GLIBC_2.8 for libc.
4628         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
4629         * posix/tst-rfc3484-2.c: Likewise.
4631         * include/kernel-features.h: Moved to...
4632         * sysdeps/mach/hurd/kernel-features.h: ...here.
4634 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
4636         * sysdeps/i386/i586/memcpy_chk.S: New file.
4637         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
4638         * sysdeps/i386/i586/memset_chk.S: Likewise.
4640 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
4642         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
4643         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
4644         list of interfaces.  Also store prefix length.
4645         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
4646         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
4647         prefix if source and destination address are in the same subnet.
4648         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
4649         Always look for matching record in in6ai list.
4650         Correct source_addr_len value for IPv6->IPv4 converted records.
4652 2007-11-11  Roland McGrath  <roland@frob.com>
4654         * include/kernel-features.h: New file.
4656 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
4658         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
4659         complications for 64-bit platforms.
4661         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
4662         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
4663         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
4664         open64_2.
4665         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
4666         entries.
4667         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4668         * sysdeps/wordsize-64/alphasort.c: New file.
4669         * sysdeps/wordsize-64/alphasort64.c: New file.
4670         * sysdeps/wordsize-64/fseeko.c: New file.
4671         * sysdeps/wordsize-64/fseeko64.c: New file.
4672         * sysdeps/wordsize-64/ftello.c: New file.
4673         * sysdeps/wordsize-64/ftello64.c: New file.
4674         * sysdeps/wordsize-64/ftw.c: New file.
4675         * sysdeps/wordsize-64/ftw64.c: New file.
4676         * sysdeps/wordsize-64/iofgetpos.c: New file.
4677         * sysdeps/wordsize-64/iofgetpos64.c: New file.
4678         * sysdeps/wordsize-64/iofopen.c: New file.
4679         * sysdeps/wordsize-64/iofopen64.c: New file.
4680         * sysdeps/wordsize-64/iofsetpos.c: New file.
4681         * sysdeps/wordsize-64/iofsetpos64.c: New file.
4682         * sysdeps/wordsize-64/lockf.c: New file.
4683         * sysdeps/wordsize-64/lockf64.c: New file.
4684         * sysdeps/wordsize-64/mkostemp.c: New file.
4685         * sysdeps/wordsize-64/mkostemp64.c: New file.
4686         * sysdeps/wordsize-64/mkstemp.c: New file.
4687         * sysdeps/wordsize-64/mkstemp64.c: New file.
4688         * sysdeps/wordsize-64/scandir.c: New file.
4689         * sysdeps/wordsize-64/scandir64.c: New file.
4690         * sysdeps/wordsize-64/tmpfile.c: New file.
4691         * sysdeps/wordsize-64/tmpfile64.c: New file.
4692         * sysdeps/wordsize-64/versionsort.c: New file.
4693         * sysdeps/wordsize-64/versionsort64.c: New file.
4694         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
4695         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
4696         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
4697         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
4698         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
4699         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
4700         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
4701         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
4702         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
4703         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
4704         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
4705         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
4707         * crypt/sha256-crypt.c: Fix a comment.
4708         * crypt/sha512-crypt.c: Likewise.
4710 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
4712         * sysdeps/x86_64/memset.S: Add sfence after movnti.
4714 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
4716         [BZ #5277]
4717         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
4718         because output buffer is too small break, don't loop.
4719         * iconvdata/Makefile (tests): Add bug-iconv6.
4720         * iconvdata/bug-iconv6.c: New file.
4722 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
4724         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
4725         with size_t type.
4726         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
4727         size_t.  Add casts where needed.
4729         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
4730         old headers, don't call avc_has_perm if we don't have the
4731         permission information.
4733 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
4735         * elf/rtld.c (dl_main): Use the page size to find the map start.
4737 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
4739         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
4740         Patch by Szymon Siwek <sls@poczta.wp.pl>.
4742         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
4743         when the lookup call failed.
4745         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
4746         Add prune_cond and wakeup_time.
4747         (CACHE_PRUNE_INTERNAL): Define.
4748         Update declarations of prune_cache and setup_thread.
4749         * nscd/connections.c (dbs): Update initializers.
4750         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
4751         (nscd_init): Default number of threads is now 4.
4752         (invalidate_cache): Take lock before calling prune_cache.
4753         (handle_request): If SELinux forbids the request, say so.
4754         (readylist_cond): Use static initializer.
4755         (nscd_run_prune): New function.  Used only by pruning threads.
4756         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
4757         here.
4758         (fd_ready): Update nscd_run reference.
4759         (start_threads): No need to initialize readylist_cond.
4760         Start pruning threads separately.
4761         * nscd/nscd_setup_thread.c: Change return value type to int and always
4762         return 0.
4763         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
4764         to int and return nonzero value if we can use the TID address hack.
4765         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
4766         the database is later than the new entry's timeout, update the
4767         wakeup time and wake the cleanup thread.
4768         (prune_cache): Return seconds the next entry in the database is still
4769         valid.  Remove locking for pruning here.
4770         * nscd/nscd.conf: Document default number of threads.
4772 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
4774         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
4775         stack is properly aligned for the target function.
4776         Correct unwind info.
4778         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
4779         when using auditing libraries.
4781 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
4783         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
4784         _nss_dns_getnetbyaddr2_r.
4785         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
4786         extra parameter to getanswer_r.
4787         (_nss_dns_getnetbyaddr_r): Now a wrapper around
4788         _nss_dns_getnetbyaddr2_r.
4790         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
4791         gethstbynm3_r.
4792         * nscd/gethstbynm2_r.c: Remove.
4793         * nscd/gethstbynm3_r.c: New file.
4794         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
4795         __gethostbyaddr_r.
4796         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
4797         __gethostbyaddr_r compatibility wrapper.
4798         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
4799         determining timeout of entry.
4800         (lookup): Take new parameter and pass it to __gethostbyname3_r and
4801         __gethostbyaddr2_r.
4802         (addhstbyX): Pass reference to variable for TTL to lookup and
4803         cache_addhst.
4804         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
4805         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
4806         and __nss_next2.  Remove __nss_services_lookup.
4807         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
4808         Add compat wrapper.
4809         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
4810         __nss_next2.
4811         * nss/getXXent_r.c: Likewise.
4812         * nss/getnssent_r.c: Likewise.
4813         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
4814         does not exist in module, try the optional second name.
4815         (__nss_next2): New function.
4816         (__nss_next): Now wrapper around __nss_next2.
4817         * nss/nsswitch.h: Adjust __nss_lookup prototype.
4818         Declare __nss_next2.
4819         Adjust definition of db_lookup_function type.
4820         * nss/service-lookup.c: Define NO_COMPAT.
4821         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
4822         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
4823         * inet/ether_ntoh.c: Likewise.
4824         * sunrpc/netname.c: Likewise.
4825         * sunrpc/publickey.c: Likewise.
4826         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
4827         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
4828         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4829         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4830         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4832         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
4834         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
4836 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
4838         [BZ #5204]
4839         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
4840         * crypt/sha512c-test.c: Likewise.
4842         [BZ #5225]
4843         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
4844         to keep track of end of %[ format string element.
4845         * stdio-common/Makefile (tests): Add bug20.
4846         * stdio-common/bug20.c: New file.
4848         [BZ #5222]
4849         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
4850         path elements in counting mode.
4852 2007-10-27  Andreas Jaeger  <aj@suse.de>
4854         [BZ #5040]
4855         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
4857         [BZ #3112]
4858         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
4859         (__cleanup): Free shared library when exiting.
4860         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
4861         (__cleanup): Free shared library when exiting.
4863 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
4865         [BZ #2549]
4866         * math/libm-test.inc (check_float_internal): Support
4867         denormalized return.
4869 2007-10-23  Andreas Jaeger  <aj@suse.de>
4871         [BZ #5208]
4872         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
4873         __LONG_LONG_PAIR to handle little endian byte order.
4874         Suggested by abhishekrai@google.com
4876 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
4878         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
4880 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
4882         * nscd/cache.c (prune_cache): Move test for modified file outside
4883         of locking.
4885 2007-10-21  Andreas Jaeger  <aj@suse.de>
4887         * manual/texinfo.tex: Update to latest version.
4889         * manual/sysinfo.texi (System Parameters): Fix Formatting.
4891         * manual/arith.texi (Status bit operations): Fix formatting.
4893         * manual/errno.texi (Error Messages): Fix formatting.
4895         * manual/sysinfo.texi (System Parameters): Fix formatting.
4897         * manual/libc.texinfo: Update VERSION and UPDATED.
4899 2007-10-19  Roland McGrath  <roland@redhat.com>
4901         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
4903 2007-10-06  David S. Miller  <davem@davemloft.net>
4905         * configure.in: Add sparcv9v2 and sparc64v2.
4906         * scripts/config.sub: Likewise.
4907         * configure: Regenerate.
4908         * elf/elf.h (HWCAP_SPARC_N2): New.
4909         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
4910         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
4911         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
4912         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
4913         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
4914         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
4915         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
4917 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
4919         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
4920         even if the poll result indicates there is data to read.
4921         Patch by Jeff Moyer <jmoyer@redhat.com>.
4923 2007-10-18  Roland McGrath  <roland@redhat.com>
4925         * elf/elf.h (NT_PPC_VMX): New macro.
4927 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
4929         * version.h (VERSION): Set to 2.7.90.
4931 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
4933         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
4934         weak_alias.
4936 2007-10-17  Roland McGrath  <roland@frob.com>
4938         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
4939         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
4941 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
4943         * version.h (VERSION): Bump to 2.7.
4944         * include/features.h (__GLIBC_MINOR__): Bump to 7.
4946         [BZ #5186]
4947         * time/tzset.c (__tz_convert): Don't force testing for a change of
4948         TZ if not called from localtime.  But then also see whether the
4949         file changed, in case __use_tzfile is set.
4951         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
4952         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4953         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4954         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4955         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4956         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4957         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
4958         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4960 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
4962         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
4963         and admin selects to be able to replace the gai.conf file, lock
4964         data structures around the qsort call.
4966 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
4968         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
4969         new memset.
4970         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
4971         too high for the improvements.  Implement bzero unconditionally for
4972         use in libc.
4974 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
4975             Jakub Jelinek  <jakub@redhat.com>
4977         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
4978         even when time_t is 32-bit.
4979         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
4980         timezone data read by __tzfile_default.  Ensure __tzname[0] is
4981         always set after the search.
4983 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
4985         * time/tzfile.c (__tzfile_read): Help the compiler recognize
4986         unreachable code on 32-bit machines.
4988 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
4990         [BZ #5184]
4991         * time/strftime_l.c: Include stdbool.h.
4992         (my_strftime): New wrapper, old function renamed to...
4993         (__strftime_internal): ... new function.  Add tzset_called
4994         argument, pass it down to recursive calls, don't call tzset ()
4995         if already true, set to true after call to tzset ().
4997 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
4999         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
5000         into account when copying TZ string.
5002 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5004         * time/tzfile.c (__tzfile_compute): For use_last case set i to
5005         num_transition rather than num_transitions - 1.
5007 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5009         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
5010         PIC indirect jump.
5012         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
5013         a local label rather than HIDDEN_JUMPTARGET.
5015 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
5017         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
5018         (init_cacheinfo): Initialize it.
5019         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
5020         Always define bzero.
5021         Remove non-glibc code.
5022         * sysdeps/x86_64/bzero.S: Make an empty file.
5024 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
5026         * sysdeps/x86_64/cacheinfo.c
5027         (__x86_64_preferred_memory_instruction): New.
5028         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5030         * sysdeps/x86_64/memset.S: Rewrite.
5032 2007-10-15  Roland McGrath  <roland@redhat.com>
5034         * po/libc.pot: Regenerated.
5036 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
5038         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
5039         pointers.
5041         [BZ #3425]
5042         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
5043         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
5044         address record to T_A/T_AAAA requests.
5046 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
5048         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
5050         * posix/glob.c: Add some branch prediction throughout.
5052         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
5053         read from nscd.
5055         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
5056         service_order.
5057         (rfc3484_sort): Make sure that even if qsort doesn't support
5058         stable sorting out sorting here is stable by comparing service_order.
5059         (getaddrinfo): Initialize service_order.
5060         * posix/tst-rfc3484.c (do_test): Adjust for addition of
5061         service_order field to sorting structure.
5062         * posix/tst-rfc3484-2.c (do_test): Likewise.
5064         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
5065         * time/tzset.c (tzset_internal): Break TZ string parsing out into
5066         __tzset_parse_tz and updating of daylight, timezone, tzname into
5067         update_vars.
5068         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
5069         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
5070         happens in __tz_compute.
5071         * time/tzfile.c (__tzfile_read): Also read TZ string.
5072         (find_transition): Fold into __tzfile_compute.
5073         (__tzfile_compute): For times beyond the last transition try to
5074         use the TZ string.
5075         * timezone/tst-timezone.c: Information in daylight and tzname does
5076         change for Asia/Tokyo timezone with more concrete information.
5077         Remove the test.
5079         * include/stdio.h: Add libc_hidden_proto for ftello.
5080         * libio/ftello.c: Add libc_hidden_def.
5082         [BZ #1140]
5083         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
5084         on the specified time and not the last entries in the file.  Move
5085         code to determine tzname[] to...
5086         (find_transition): ...here.  Add ugly guess for times before the
5087         first transition.
5089 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
5091         [BZ #3195]
5092         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
5093         no entry.
5094         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
5095         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5096         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5097         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
5099         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
5100         read mechanism when there are no group members and avoid no-op
5101         read syscall in this case.
5103         [BZ #3242]
5104         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
5105         (__readall): If reading failed due to EAGAIN error wait a bit
5106         and possibly try again.
5107         (__readvall): Likewise.
5109 2007-10-13  Bruno Haible  <bruno@clisp.org>
5111         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
5112         when we cannot recode the message.
5114 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
5116         [BZ #4359]
5117         * libio/__freading.c (__freading): Don't return true for
5118         write-only streams.  For read/write streams, check whether we
5119         performed a read operation already.
5120         * libio/Makefile (tests): Add tst-ext2.
5121         * libio/tst-ext2.c: New file.
5123 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
5125         * locale/programs/repertoire.c (repertoire_read): Always free
5126         memory for repertoire file name [Coverity CID 270].
5128         * elf/cache.c (save_aux_cache): Free memory allocated for
5129         temporary file name [Coverity CID 267].
5131 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
5133         * misc/Makefile (headers): Add bits/error.h.
5135 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
5137         * posix/fnmatch_loop.c: Take rule index returned as part of
5138         findidx return value into account when accessing weights.
5139         * posix/regcomp.c: Likewise.
5140         * posix/regexec.c: Likewise.
5142         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
5143         (skip_to): Fix problems with parameter of elifdef/elifndef.
5145 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
5147         * iconv/gconv_simple.c: Add some branch prediction.
5149 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
5151         * locale/programs/ld-collate.c (collate_read): If ignore_content
5152         and nowtok is tok_define, eat any tok_eol tokens.
5154 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
5156         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
5157         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
5159         * inet/netinet/in.h: Don't include bits/socket.h.
5160         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
5161         macro.
5162         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
5164 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
5166         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
5167         and tok_elifndef.
5168         * locale/programs/locfile-kw.gperf: Likewise.
5169         * locale/programs/ld-collate.c: Implement primitive preprocessor.
5171 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
5173         * stdio-common/printf-parse.h: Include string.h and wchar.h.
5174         (__find_specwc): Change into __extern_always_inline function.
5175         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
5176         (__parse_one_specmb): Remove ps argument.
5177         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
5178         Adjust __find_specmb and __parse_one_specmb callers.
5179         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
5180         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
5181         Removed.
5182         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
5183         caller.
5185 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
5187         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
5188         with some Pentium Ds.
5190 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
5192         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
5193         __read not read.
5194         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
5195         __write not write.
5197 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
5199         [BZ #181]
5200         * locale/C-time.c: Set week_1stday data to 19971201.
5201         * locale/programs/ld-time.c (time_finish): Default for
5202         first_workday is Monday.
5204         [BZ #2633]
5205         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
5207         [BZ #5103]
5208         * posix/glob.c (glob): Recognize patterns starting \/.
5209         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
5210         (main): Add test for pattern starting \/.
5212         * misc/error.h: Use __const instead of const.
5213         * misc/bits/error.h: Likewise.
5215 2007-10-07  Andreas Jaeger  <aj@suse.de>
5217         * include/bits/error.h: New file.
5219         * misc/bits/error.h (error_at_line): Fix prototype.
5221 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
5223         [BZ #3924]
5224         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
5225         more little bugs in creating the stack frame when pltexit has to
5226         be called.
5228         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
5229         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
5231         [BZ #4407]
5232         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
5233         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5234         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5235         * math/libm-test.inc: Add test for this case.
5237         [BZ #5010]
5238         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
5239         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
5240         map service succeeded.
5241         (svc_is_mapped): New function.
5242         (svc_unregister): Use it before trying to unmap service.
5244 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
5246         * timezone/zic.c: Update from tzcode2007h.
5248         [BZ #5063]
5249         * timezone/africa: Update from tzdata2007h.
5250         * timezone/antarctica: Likewise.
5251         * timezone/asia: Likewise.
5252         * timezone/australasia: Likewise.
5253         * timezone/europe: Likewise.
5254         * timezone/leapseconds: Likewise.
5255         * timezone/northamerica: Likewise.
5256         * timezone/southamerica: Likewise.
5257         * timzeone/zone.tab: Likewise.
5259         [BZ #5104]
5260         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
5262         [BZ #5113]
5263         * string/bits/string2.h (__strdup): Cast parameters to calloc to
5264         avoid warning with -Wconversion.
5265         (__strndup): Likewise.
5266         Half the patch by Christian Iseli <christian.iseli@licr.org>.
5268         [BZ #5112]
5269         * nscd/connections.c (restart): Don't resync if database is
5270         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
5272         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
5273         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
5275         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
5276         evetnfd_read, eventfd_write.
5277         * sysdeps/unix/sysv/linux/eventfd.c: New file.
5278         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
5279         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
5280         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
5281         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
5282         eventfd_write for GLIBC_2.7.
5284         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
5285         * sysdeps/unix/sysv/linux/signalfd.c: New file.
5286         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
5287         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
5289 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
5291         * stdlib/msort.c: Include stdint.h.
5292         (struct msort_param): New type.
5293         (msort_with_tmp): Use struct msort_param pointer for unchanging
5294         parameters.  Add optimized handling for several common sizes
5295         and indirect sorting mode.
5296         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
5297         sorting.
5298         Suggested by Belazougui Djamel .
5300         * stdlib/Makefile (tests): Add tst-qsort2.
5301         * stdlib/tst-qsort2.c: New test.
5303 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
5305         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
5306         for dup2 in case another thread races with the current one.  Retry
5307         in this case.
5309         * misc/error.h: Remove support for use outside of libc.  We have to
5310         include <features.h> now.  Include <bits/error.h> if possible.
5311         * misc/bits/error.h: New file.
5313 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
5315         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
5316         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
5317         __extern_always_inline functions unconditionally, drop macros.
5319         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
5320         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
5321         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
5323         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
5324         add __artificial__ attribute.
5326 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
5328         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
5329         backward to forward direction.
5331         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
5333         [BZ #645]
5334         * locale/programs/ld-collate.c (collate_finish): Compare against last
5335         used section which is known to have rules defined.
5336         (collate_read): After order_start, correctly record order of sections
5337         and queue sections up.
5339 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
5341         [BZ #5071]
5342         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
5343         the same number of pages.
5344         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
5346         * locale/programs/ld-collate.c (collate_read): After initial copy
5347         statement, continue in state 0.
5349         * include/stdio_ext.h (__fsetlocking): Define as macro.
5351 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
5353         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
5354         of section order.
5356         * po/pt_BR.po: Fix typo.
5358 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
5360         * iconvdata/Makefile (modules): Add ISO8859-9E.
5361         (distribute): Add iso8859-9e.c.
5362         (gen-8bit-gap-modules): Add iso8859-9e.
5363         * iconvdata/iso8859-9e.c: New file.
5364         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
5365         * iconvdata/TESTS: Likewise.
5366         * iconvdata/tst-tables.sh: Likewise.
5368         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5370         * locale/iso-639.def: Add several new entries.
5372 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
5374         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
5375         void * pointers instead of struct link_map **.
5376         (_dl_scope_free): Change argument type to void *.
5377         * include/link.h (struct link_map): Change type of l_reldeps
5378         to struct link_map_reldeps, move l_reldepsact into that
5379         struct too.
5380         * elf/dl-deps.c: Include atomic.h.
5381         (_dl_map_object_deps): Only change l->l_initfini when it is
5382         fully populated, use _dl_scope_free for freeing it.  Optimize
5383         removal of libs from reldeps by using l_reserved flag, when
5384         some removal is needed, allocate a new list instead of
5385         reallocating and free the old with _dl_scope_free.  Adjust
5386         for l_reldeps and l_reldepsact changes.
5387         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
5388         searching in l_initfini and l_reldeps without holding dl_load_lock.
5389         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
5390         l_reldepsact changes.
5391         * elf/dl-close.c (_dl_close_worker): Likewise.
5392         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
5394 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
5396         * iconvdata/Makefile (modules): Add KOI8-RU.
5397         (distribute): Add koi8-ru.c.
5398         (gen-8bit-gap-modules): Add koi8-ru.
5399         * iconvdata/koi8-ru.c: New file.
5400         * iconvdata/gconv-modules: Add entries for KOI8-RU.
5401         * iconvdata/TESTS: Likewise.
5402         * iconvdata/tst-tables.sh: Likewise.
5404         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5406 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
5408         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
5409         with __warning__/__error__ attributes.
5410         (__warnattr): Define.
5411         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
5412         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
5413         __warnattr.
5414         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
5415         of __*_chk if compile time detectable overflow is found.
5416         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
5417         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
5418         with __warnattr.
5419         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
5420         instead of __*_chk if compile time detectable overflow is found.
5421         (__gets_alias): Rename to...
5422         (__gets_warn): ... this.  Add __warnattr.
5423         (gets): Call __gets_warn instead of __gets_alias.
5424         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
5425         aliases with __warnattr.
5426         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
5427         time detectable overflow is found.
5428         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
5429         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
5430         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
5431         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
5432         __getdomainname_chk_warn): New aliases with __warnattr.
5433         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
5434         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
5435         __*_chk_warn instead of __*_chk if compile time detectable overflow
5436         is found.
5437         (__getgroups_chk): Rename argument to __listlen from listlen.
5438         (__getwd_alias): Rename to...
5439         (__getwd_warn): ... this.  Add __warnattr.
5440         (getwd): Call __getwd_warn instead of __getwd_alias.
5441         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
5442         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
5443         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
5444         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
5445         __wcsnrtombs_chk_warn): New aliases with __warnattr.
5446         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
5447         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
5448         compile time detectable overflow is found.
5449         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
5450         to use __*_chk or not.
5451         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
5452         in comparisons which function should be called and in __*_chk*
5453         arguments.  Call __*_chk_warn instead of __*_chk if compile time
5454         detectable overflow is found.
5455         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
5456         __*_chk argument.
5457         * debug/tst-chk1.c (do_test): Add a few more tests.
5459 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
5461         [BZ #5058]
5462         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
5463         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
5464         (_nl_unload_domain): Finalize conversions_lock.
5465         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
5466         handling table of known conversions.
5468 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
5470         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
5471         close_not_cancel_no_status instead of close.
5473 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
5475         [BZ #5028]
5476         * posix/regcomp.c (lookup_collation_sequence_value): Check that
5477         nrules != 0 for multibyte chars.
5479 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
5481         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
5482         Provide better error message in case the type is unknown.
5484         [BZ #4963]
5485         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
5486         * string/stratcliff.c: Make usable to test wide char functions.
5487         * wcsmbs/wcsatcliff.c: New file.
5488         * wcsmbs/Makefiel (tests): Add wcsatcliff.
5490         [BZ #4972]
5491         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
5492         (distribute): Add mac-centraleurope.c.
5493         (gen-8bit-gap-modules): Add mac-centraleurope.
5494         * iconvdata/mac-centraleurope.c: New file.
5495         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
5496         * iconvdata/TESTS: Likewise.
5497         * iconvdata/tst-tables.sh: Likewise.
5499         [BZ #5043]
5500         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
5502 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
5504         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
5505         from __x86_64_core_cache_size_half.
5506         (init_cacheinfo): Compute shared cache size for AMD processors with
5507         shared L3 correctly.
5508         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
5509         name change.
5510         Patch in large parts by Evandro Menezes.
5512 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
5514         * elf/dl-lookup.c (add_dependency): Handle failing memory
5515         allocation for dependency list.  Remove unnecessary check.
5517         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
5518         open/close when determining source addresses.
5520         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
5521         sha512-crypt, and sha512.
5522         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
5523         (distribute): Add sha256.h and sha512.h.
5524         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
5525         and call the appropriate code.
5526         * crypt/sha256-crypt.c: New file.
5527         * crypt/sha256.c: New file.
5528         * crypt/sha256.h: New file.
5529         * crypt/sha256c-test.c: New file.
5530         * crypt/sha256test.c: New file.
5531         * crypt/sha512-crypt.c: New file.
5532         * crypt/sha512.c: New file.
5533         * crypt/sha512.h: New file.
5534         * crypt/sha512c-test.c: New file.
5535         * crypt/sha512test.c: New file.
5537 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
5539         * misc/bits/syslog.h (syslog): Remove extraneous argument from
5540         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
5541         __syslog_chk.
5543 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
5545         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
5546         %as in fscanf format strings.
5548         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
5549         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
5550         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
5551         Likewise.
5552         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
5553         Likewise.
5555         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
5556         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
5557         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
5558         * elf/dl-sym.c (do_sym): Likewise.
5559         * include/link.h (struct link_map): Add l_serial field.
5560         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
5561         * elf/dl-lookup.c (add_dependency): Add flags argument.
5562         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
5563         flags, use THREAD_GSCOPE_RESET_FLAG before and
5564         THREAD_GSCOPE_SET_FLAG after
5565         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
5566         Don't dereference map until it has been found on some list.
5567         If map->l_serial changed, return -1.
5569 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
5571         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
5572         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
5573         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
5574         libc_hidden_proto.
5575         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
5576         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
5577         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
5578         add libc_hidden_proto.
5579         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5580         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5581         conformance requested.
5582         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
5583         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5584         conformance requested.
5585         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5586         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
5587         conformance requested.
5588         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
5589         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
5590         ISO C99 or POSIX conformance requested.
5591         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
5592         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
5593         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
5594         and __isoc99_vsscanf@@GLIBC_2.7.
5595         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
5596         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
5597         (tests): Add scanf14.
5598         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
5599         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
5600         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
5601         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
5602         CFLAGS-isoc99_scanf.c): Add $(exceptions).
5603         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
5604         from using internal headers.
5605         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
5606         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
5607         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
5608         and __isoc99_vswscanf@@GLIBC_2.7.
5609         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
5610         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
5611         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
5612         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
5613         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
5614         * stdio-common/isoc99_scanf.c: New file.
5615         * stdio-common/isoc99_vsscanf.c: New file.
5616         * stdio-common/isoc99_vscanf.c: New file.
5617         * stdio-common/isoc99_vfscanf.c: New file.
5618         * stdio-common/isoc99_fscanf.c: New file.
5619         * stdio-common/isoc99_sscanf.c: New file.
5620         * wcsmbs/isoc99_fwscanf.c: New file.
5621         * wcsmbs/isoc99_vswscanf.c: New file.
5622         * wcsmbs/isoc99_swscanf.c: New file.
5623         * wcsmbs/isoc99_wscanf.c: New file.
5624         * wcsmbs/isoc99_vwscanf.c: New file.
5625         * wcsmbs/isoc99_vfwscanf.c: New file.
5626         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
5627         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
5628         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
5629         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
5630         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
5631         * stdio-common/scanf14.c: New test.
5632         * stdio-common/scanf15.c: New test.
5633         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
5634         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
5635         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
5636         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
5637         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
5638         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
5639         __nldbl___isoc99_scanf@@GLIBC_2.7,
5640         __nldbl___isoc99_fscanf@@GLIBC_2.7,
5641         __nldbl___isoc99_sscanf@@GLIBC_2.7,
5642         __nldbl___isoc99_vscanf@@GLIBC_2.7,
5643         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
5644         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
5645         __nldbl___isoc99_wscanf@@GLIBC_2.7,
5646         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
5647         __nldbl___isoc99_swscanf@@GLIBC_2.7,
5648         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
5649         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
5650         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
5651         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
5652         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
5653         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
5654         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
5655         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
5656         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5657         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
5658         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
5659         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
5660         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
5661         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
5662         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
5663         functions.
5664         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
5665         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
5666         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
5667         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
5668         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
5669         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
5670         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
5671         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
5672         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
5673         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
5674         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
5675         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
5677         * stdio-common/Makefile (tests): Add scanf13.
5678         (scanf13-ENV): New.
5679         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
5680         m modifier followed by l.
5681         (STRING_ARG): Add width argument.
5682         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
5683         <case L_('C')>: Handle %mlc and %mC.
5684         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
5685         arguments.
5686         * stdio-common/scanf13.c: New test.
5688         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
5689         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
5691 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
5693         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
5694         type and __THROW marker of splice, vmsplice, and tee.
5695         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5696         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5697         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5698         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5699         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5700         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5701         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5702         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
5703         as cancellation points.
5705 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
5707         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
5708         parse more than three parts of the version number.
5710 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
5712         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
5713         modifier.  Patch by Jakub Jelinek.
5715 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
5717         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
5718         call_fallocate in misc subdir.
5719         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
5720         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
5721         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
5722         instead of __fallocate64.
5723         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
5725 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
5727         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
5728         * rt/Makefile (headers): Add bits/mqueue2.h.
5729         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
5730         optimizing with GCC and __va_arg_pack_len is defined.
5731         * rt/bits/mqueue2.h: New file.
5732         * rt/mq_open.c (__mq_open): Renamed from mq_open.
5733         (mq_open): New strong_alias.
5734         (__mq_open_2): New function.
5735         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
5736         (mq_open): New strong_alias.
5737         (__mq_open_2): New function.
5738         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
5739         * Versions.def (librt): Add GLIBC_2.7 version.
5740         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
5741         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
5743         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
5744         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
5745         is defined rather than when not C++.
5746         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
5747         __openat64_alias): New redirects.
5748         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
5749         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
5750         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
5751         (open, open64, openat, openat64): Rewrite as __extern_always_inline
5752         functions instead of function-like macros.
5754 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
5756         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
5757         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
5758         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
5760 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
5762         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
5763         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
5765 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
5767         * inet/tst-network.c: Increment ERRORS for failing tests.
5769 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
5771         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
5772         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
5773         implement as __extern_always_inline function.
5774         (vsyslog): Define as __extern_always_inline function unconditionally.
5775         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
5776         When __va_arg_pack is defined, implement as __extern_always_inline
5777         functions.
5778         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5779         __extern_always_inline functions unconditionally.
5780         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
5781         bits/stdio2.h will be included.
5782         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
5783         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
5784         implement as __extern_always_inline functions.
5785         (vswprintf, vwprintf, vfwprintf): Define as
5786         __extern_always_inline functions unconditionally.
5787         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
5789 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
5791         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
5792         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
5793         attribute.
5794         * include/features.h (__USE_EXTERN_INLINES): Define only when
5795         __extern_inline is defined.
5796         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
5797         is defined instead of when not __cplusplus.
5798         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
5799         is defined instead of when not __cplusplus.
5800         * socket/sys/socket.h: Include bits/socket2.h when
5801         __extern_always_inline is defined instead of when not __cplusplus.
5802         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
5803         is defined instead of when not __cplusplus.
5804         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
5805         is defined instead of when not __cplusplus.
5806         * string/string.h: Include bits/string3.h when __extern_always_inline
5807         is defined instead of when not __cplusplus.
5808         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
5809         is defined instead of when not __cplusplus.
5810         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
5811         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
5812         is not defined.
5813         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
5814         defined __extern_always_inline instead of !defined __cplusplus.
5815         * libio/bits/stdio-ldbl.h: Likewise.
5816         * wcsmbs/bits/wchar-ldbl.h: Likewise.
5817         * misc/bits/syslog.h (syslog): Don't define for C++.
5818         (vsyslog): Use __extern_always_inline function for C++ instead of
5819         a macro.
5820         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
5821         whenever that macro is defined.
5822         (vprintf): Don't provide the inline for C++.
5823         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
5824         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
5825         define the macros for C++.
5826         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5827         __extern_always_inline functions for C++.
5828         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
5829         stat64, lstat64, fstat64, fstatat64): Don't define if not
5830         __USE_EXTERN_INLINES.
5831         * wcsmbs/bits/wchar2.h: Fix #error message.
5832         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
5833         (vswprintf, vwprintf, vfwprintf): Define using
5834         __extern_always_inline functions for C++.
5835         * string/bits/string3.h: Don't #undef macros if __cplusplus.
5836         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
5837         strncpy, strcat, strncat): Define as __extern_always_inline
5838         functions instead of macros for C++.
5839         * math/bits/cmathcalls.h: Guard __extern_inline routines with
5840         defined __extern_inline.
5841         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
5842         to __extern_inline whenever that macro is defined.
5843         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5844         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5845         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
5846         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
5847         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5848         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5849         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5850         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5851         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
5852         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
5853         prototypes.  Only provide __extern_inline routines if
5854         __USE_EXTERN_INLINES.
5855         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
5856         tests.
5857         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
5858         For now avoid some *printf tests in C++.  Skip all testing
5859         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
5860         is not.
5861         * debug/tst-chk4.cc: New file.
5862         * debug/tst-chk5.cc: New file.
5863         * debug/tst-chk6.cc: New file.
5864         * debug/tst-lfschk4.cc: New file.
5865         * debug/tst-lfschk5.cc: New file.
5866         * debug/tst-lfschk6.cc: New file.
5867         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
5868         prototypes in C++.
5869         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
5870         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
5871         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
5873 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
5875         * po/cs.po: Update from translation team.
5877 2007-09-11  Roland McGrath  <roland@redhat.com>
5879         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
5880         compiling.
5882 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5884         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
5886 2007-09-05  Roland McGrath  <roland@redhat.com>
5888         * manual/signal.texi (Signaling Another Process): Typo fix.
5889         From Karl Berry <karl@freefriends.org>.
5891 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
5893         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
5894         zero if not defined.
5895         (make_request): Recognize optimistic addresses and treat them like
5896         deprecated addresses.
5897         Reported by Neil Horman <nhorman@redhat.com>.
5899 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
5901         * nscd/connections.c (send_ro_fd): Also transfer file size.
5902         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
5903         file size don't call fstat.
5905         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
5906         ahead and map the file.  This should always be correct and we can
5907         catch problems later.
5909 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
5911         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
5912         prototypes.
5913         (__fread_alias, __fread_unlocked_alias): New aliases.
5914         (fread): New extern inline.
5915         (fread_unlocked): Likewise.  Undef macro before definition of
5916         the inline function.
5917         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
5918         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
5919         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
5920         and __fread_unlocked_chk@@GLIBC_2.7.
5921         * debug/fread_chk.c: New file.
5922         * debug/fread_u_chk.c: New file.
5923         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
5925 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
5927         * sysdeps/unix/sysv/linux/syscalls.list
5928         (personality): Change caller to EXTRA.
5930 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
5932         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
5933         to keep gcc quiet.
5934         * iconvdata/iso-2022-cn.c (BODY): Likewise.
5936         * locale/programs/ld-collate.c (collate_output): Avoid warning if
5937         NDEBUG is defined.
5939         * Makerules: Use -p option with mkdir.
5941         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
5942         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
5943         (_xdr_directory_obj): Likewise.
5944         (xdr_entry_obj): Likewise.
5945         (xdr_group_obj): Likewise.
5946         (xdr_link_obj): Likewise.
5947         (xdr_table_obj): Likewise.
5948         (_xdr_nis_result): Likewise.
5949         (_xdr_ns_request): Likewise.
5950         (_xdr_ib_request): Likewise.
5951         (_xdr_nis_taglist): Likewise.
5952         (xdr_cback_data): Likewise.
5953         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
5954         (xdr_ypresp_maplist): Likewise.
5956         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
5958         * posix/regex_internal.h: Prevent some declarations and definitions
5959         to be seen when used in tests.
5961         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
5962         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
5964         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
5966         * config.make.in (datarootdir): Add to shut up configure.
5968         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
5969         associativity for fully-associative caches.
5971         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
5972         requests.  Fill on more associativity values for L2.
5973         Patch mostly by Evandro Menezes.
5975 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
5977         * sysdeps/unix/sysv/linux/x86_64/init-first.c
5978         (_libc_vdso_platform_setup): Avoid using exported variable by using
5979         alias.
5981         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
5983         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
5984         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
5985         defined.
5987 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
5989         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
5990         align stack for call if pltexit is to be used.
5992         [BZ #3924]
5993         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
5994         align for function call in case pltexit has to be called later.
5996         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
5997         implicit atomic operation when storing function pointer.
5998         (_dl_runtime_profile): Likewise.
6000 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
6002         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
6003         NIS_NOTFOUND.
6005 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
6007         [BZ #4566]
6008         * string/strtok.c: Fix typo in comment.
6010         [BZ #4582]
6011         * debug/segfault.c: Fix typos in comments.
6013         [BZ #4588]
6014         * stdio-common/tempnam.c: Fix comment, it is not checked that
6015         TMPDIR points to a writable directory.
6017         [BZ #4726]
6018         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
6019         memory allocated for the name server address.
6021         [BZ #4946]
6022         * nscd/connections.c (handle_request): Using sendfile always
6023         requires that mmap is used for the database.
6024         Patch by Petr Baudis <pasky@suse.cz>.
6026         [BZ #4905]
6027         * nscd/hstcache.c (cache_addhst): When reloading an entry which
6028         suddenly has two or more addresses, ignore it and remove the old
6029         entry.
6031         [BZ #4814]
6032         * resolv/res_hconf.c: Prepare for compiling outside libc.
6033         * nscd/res_hconf.c: New file.
6034         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
6035         the new file.
6036         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
6037         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
6039         * nscd/hstcache.c (cache_addhst): Minimal optimization.
6041         [BZ #4925]
6042         * debug/pcprofiledump.c: Turn on internationalization by calling
6043         setlocale.  Patch mostly by Benno Schulenberg.
6045         [BZ #4936]
6046         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
6047         the state.
6048         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
6049         * iconvdata/bug-iconv5.c: New file.
6051 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
6053         [BZ #4896]
6054         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
6055         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
6056         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
6057         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
6058         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
6059         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
6060         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
6061         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
6063 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
6065         [BZ #4937]
6066         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
6067         lookup loop.  Suggested by John Reiser.
6069 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
6071         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
6073 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
6075         * csu/libc-start.c: Don't handle VDSO_SETUP here.
6076         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
6077         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
6078         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
6079         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
6080         to...
6081         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
6083 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
6085         * po/nl.po: Update from translation team.
6087 2007-08-16  Andreas Jaeger  <aj@suse.de>
6089         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
6090         Reported by Peter Festner <peter.festner@ewetel.net>.
6092 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
6094         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
6096 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
6098         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
6099         to check for undefined symbols.
6101         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
6102         If the syscall fails, set errno to the actual returned error number
6103         rather than EINVAL.
6104         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
6105         arguments are incorrect, set errno to EINVAL, if the syscall
6106         fails, set errno to the actual returned error number.
6108         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
6109         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
6111         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
6112         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
6113         file.
6114         (ASI_PNF, ASI_BLK_P): Don't define.
6115         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
6116         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
6117         file.
6118         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
6119         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
6120         file.
6122 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
6124         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
6125         FE_UNDERFLOW on Niagara CPUs.
6127         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
6128         exceptions.
6130 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
6132         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
6133         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
6134         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
6135         flush should be used or not inside of the function.
6136         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
6138         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
6139         __thread_start): Use HIDDEN_JUMPTARGET.
6140         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
6141         __thread_start): Likewise.
6142         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
6144         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
6145         Add libc_hidden_proto.
6146         (STRTOF): Add libc_hidden_proto.
6147         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
6148         (strtold_l, wcstold_l): Use them as second argument for
6149         long_double_symbol.
6151 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
6153         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
6155 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6157         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
6159 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
6161         * po/bg.po: New file.  From the translation team.
6163 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
6165         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
6166         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
6167         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
6168         when each feature was introduced.
6170         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
6171         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
6172         (CHECK_HASH): New macro.
6173         (PREPARE_VERSION): Use it.
6175         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
6176         prototype if not __ASSUME_PSELECT.
6177         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
6178         prototype if not __ASSUME_PPOLL.
6180         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
6182         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
6183         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
6184         is defined.
6186 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
6188         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6189         (_libc_vdso_platform_setup): If vDSO is not available point
6190         __vdso_gettimeofday to the vsyscall.
6191         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
6192         __vdso_gettimeofday instead of vsyscall.
6194 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
6196         * nscd/servicescache.c: Include kernel-features.h.
6197         * nscd/gai.c: Likewise.
6198         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
6199         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
6200         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
6201         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
6202         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
6203         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
6204         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
6205         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
6206         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6208 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
6210         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
6211         and _dl_get_origin defines anymore.
6213         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
6214         Build fix for systems which might lack POSIX timer support.
6216         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6217         (_libc_vdso_platform_setup): Mangle function pointers before storing
6218         them.
6219         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
6220         Demangle vdso pointer before use.
6221         (INTERNAL_VSYSCALL): Likewise.
6223         * elf/cache.c (primes): Mark as const.
6224         Noted by Roland McGrath.
6226 2007-08-01  Andreas Jaeger  <aj@suse.de>
6227             Jakub Jelinek  <jakub@redhat.com>
6229         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
6230         (options): Add option.
6231         (parse_opt): Handle option.
6232         (manual_link): Adjust process_file caller.  Call implicit_soname.
6233         (search_dir): Formatting.  Use and populate auxiliary cache.
6234         (main): Load and save auxiliary cache.
6235         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
6236         stat64 from fstat64 to caller.
6237         (implicit_soname): New function.
6238         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
6239         leave *soname as NULL.
6240         * elf/cache.c: Include libgen.h.
6241         (print_entry, print_cache, compare, save_cache, add_to_cache):
6242         Formatting and cleanups.
6243         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
6244         aux_cache_file): New structures.
6245         (AUX_CACHEMAGIC): Define.
6246         (primes): New array.
6247         (aux_hash_size, aux_hash): New variables.
6248         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
6249         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
6250         load_aux_cache, save_aux_cache): New functions.
6251         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
6252         (init_aux_cache, search_aux_cache, add_to_aux_cache,
6253         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
6254         (process_file): Adjust prototype.
6256 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
6258         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
6259         with __need_size_t.
6261 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
6263         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
6264         r_found_version structure as second parameter.
6265         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
6266         (_dl_vdso_vsym): Change type of second parameter accordingly.
6267         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
6268         (_libc_vdso_platform_setup): Adjust.
6269         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6270         (_libc_vdso_platform_setup): Likewise.
6272         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
6273         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
6274         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
6275         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
6276         * csu/libc-start.c: Pretty printing.
6277         Use VDSO_SETUP if defined.
6278         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
6279         and let generic code call into _libc_vdso_platform_setup.
6280         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
6281         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
6282         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
6283         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
6284         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
6285         for GLIBC_PRIVATE.
6286         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
6287         (sysdep_rountines): Add dl-vdso.
6289         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
6290         of routines.
6292         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
6293         attribute_hidden to __vdso_gettimeofday prototype.
6295 2007-08-12  Roland McGrath  <roland@redhat.com>
6297         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
6298         From: Karl Berry <karl@freefriends.org>.
6300 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
6302         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
6303         an atime update for the files we read.
6305 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
6307         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
6309         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
6310         instead of mkstemp.
6312         * misc/Makefile (routines): Add mkostemp and mkostemp64.
6313         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
6314         * misc/mkostemp.c: New file.
6315         * misc/mkostemp64.c: New file.
6316         * stdlib/stdlib.h: Declare the new functions.
6317         * sysdeps/posix/tempname.c: Add new parameter which is added to
6318         the flags for open.  Remove __GT_BIGFILE handling.
6319         * stdio-common/tempname.c: Likewise.
6320         * include/stdio.h: Adjust __gen_tempname prototype.
6321         Renumber __GT_* constants.
6322         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
6323         * misc/mkdtemp.c: Likewise.
6324         * misc/mkstemp.c: Likewise.
6325         * misc/mkstemp64.c: Likewise.
6326         * misc/mktemp.c: Likewise.
6327         * stdio-common/tempnam.c: Likewise.
6328         * stdio-common/tmpfile.c: Likewise.
6329         * stdio-common/tmpfile64.c: Likewise.
6330         * stdio-common/tmpnam.c: Likewise.
6331         * stdio-common/tmpnam_r.c: Likewise.
6333 2007-08-10  Roland McGrath  <roland@frob.com>
6335         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
6336         New macros.
6337         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
6338         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6340 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
6342         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
6343         possible.
6344         * nss/nss_files/files-alias.c (internal_setent): Likewise.
6345         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
6346         * nss/nss_files/files-have_o_cloexec.c: New file.
6348         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
6349         available.
6351 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
6353         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
6354         ___new_wcstold_l): New weak aliases.
6355         (strtold_l, wcstold_l): Use them as second argument for
6356         long_double_symbol.
6358 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
6360         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
6361         register in test for error.
6363         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
6364         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
6366         * po/sv.po: Update from translation team.
6368 2007-08-06  Roland McGrath  <roland@redhat.com>
6370         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
6371         Remove __strto*_l inlines.
6372         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
6373         * stdlib/strtod.c: Add libc_hidden_def.
6374         * stdlib/strtod_l.c: Likewise.
6375         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
6376         for __new_strtold and __new_wcstold.
6377         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
6378         __STRTOF, STRTOF.
6379         * stdlib/strtol.c: Add libc_hidden_def.
6380         * stdlib/strtol_l.c: Likewise.
6381         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
6382         strtoq.
6384         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
6386         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
6387         * scripts/data/localplt-generic.data: ... here.
6388         * elf/Makefile (check-data): Get generic file if no other.
6389         ($(objpfx)check-localplt.out): Make target unconditional.
6391         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
6392         Use ElfW(Nhdr).
6394 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
6396         * po/zh_CN.po: Updated translation from translation team.
6398 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
6400         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
6401         Don't use CGOTSETUP and CGOTRESTORE macros.
6403 2007-08-04  Roland McGrath  <roland@redhat.com>
6405         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
6407 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
6409         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
6410         __extension__ around the whole statement expression.
6412 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
6414         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
6415         elements during initialization.
6417         * po/pl.po: Updated translation from translation team.
6418         * po/tr.po: Likewise.
6419         * po/nl.po: Likewise.
6421 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
6423         * rt/aio.h: Add __nonnull attributes.
6425 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
6427         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
6428         * stdlib/Makefile (tests): Add tst-strtod5.
6429         (tst-strtod5-ENV): New.
6430         * stdlib/tst-strtod5.c: New file.
6432         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
6433         failed.
6434         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
6435         on failure.
6437         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
6438         allocated.
6440 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
6442         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
6443         numbers.
6445 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
6447         * io/Makefile (aux): Add have_o_cloexec.
6448         * include/fcntl.h: Declare __have_o_cloexec.
6449         * io/have_o_cloexec.c: New file.
6450         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
6451         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
6452         fcntl call if not necessary.
6453         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
6454         of local variable.
6456         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
6457         Avoid memset, add explicit initialization.
6458         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
6459         to the end and change into zero-sized array.
6460         Move lock member to fill a hole on 64-bit platforms.
6462         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
6463         inline functions.
6464         * include/stdlib.h: Add __strto*_internal prototypes here.
6465         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
6466         inline functions.
6467         * include/wchar.h: Add __wcsto*_internal prototypes.
6468         * sysdeps/generic/inttypes.h: No need to protect the declaration
6469         of the __strto*_internal and __wcsto*_internal members here.
6471         * rt/mqueue.h: Change const to __const and add nonnull attributes.
6473 2007-08-02  Roland McGrath  <roland@redhat.com>
6475         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
6476         $(inst_bindir)/getconf if possible.
6478         * posix/Makefile ($(objpfx)getconf.speclist): New target.
6479         (generated): Add it.
6480         ($(inst_libexecdir)/getconf): Use it.
6482 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
6484         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
6485         /proc is faster and sufficient.  /sys is still needed for
6486         __get_nprocs_conf.
6488 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
6490         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
6491         syscall as __fallocate64.
6492         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
6493         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
6495 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
6497         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
6498         value.
6500         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
6501         if off_t is different rank from size_t.
6503         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
6504         uw_frame_state_for): Avoid type punning warnings.
6505         * sysdeps/generic/unwind-dw2-fde-glibc.c
6506         (_Unwind_IteratePhdrCallback): Likewise.
6507         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
6508         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
6509         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
6510         pointers.
6512 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
6514         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
6515         total processors using sysfs.
6516         (__get_nprocs): Use sysfs to determine which processors are online.
6518 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
6520         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
6521         syscall arguments count.
6523         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
6525 2007-07-30  Roland McGrath  <roland@redhat.com>
6527         * manual/libc.texinfo: Update copyrights, formatting magic, and
6528         @dircategory.  From Karl Berry <karl@freefriends.org>.
6530 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
6532         [BZ #4860]
6533         * io/Makefile (headers): Add bits/fcntl2.h.
6535         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
6536         using gcc builtin.
6537         (__CPU_EQUAL_S): Likewise.
6539         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
6540         (tests): Add tst-cpuset.
6541         * posix/sched_cpualloc.c: New file.
6542         * posix/sched_cpufree.c: New file.
6543         * posix/tst-cpuset.c: New file.
6544         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
6545         GLIBC_2.7.
6546         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
6547         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
6548         macros.  Define CPU_*_S macros.
6550 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
6552         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
6553         entry.
6555         [BZ #4858]
6556         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
6557         #.0g and value rounded to 1.0.
6558         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
6560 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
6562         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
6563         for int_frac_digits and frac_digits.
6565         * login/logout.c (logout): Avoid aliasing violation.
6566         * login/logwtmp.c (logwtmp): Likewise.
6568         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
6570         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
6571         to avoid warning.
6572         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
6573         warning.
6574         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
6575         warning.
6576         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
6577         to avoid warnings.
6579         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
6580         void **.
6581         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
6583         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
6584         char * to avoid warning.
6585         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
6587         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
6589         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
6590         allocate_arrays): Cast second argument to charmap_find_symbol
6591         to char * to avoid warnings.
6593         * locale/programs/repertoire.c (repertoire_new_char): Change
6594         from_nr, to_nr and cnt to unsigned long, adjust printf format
6595         string.
6597         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
6598         Cast second argument to new_element to char * to avoid warnings.
6600         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
6602         * intl/gettextP.h (struct loaded_domain): Change plural to const
6603         struct expression *.
6604         * intl/plural-eval.c (plural_eval): Change first argument to
6605         const struct expression *.
6606         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
6607         argument to const struct expression **.
6608         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
6609         prototypes.
6610         * intl/loadmsgcat (_nl_unload_domain): Cast away const
6611         in call to __gettext_free_exp.
6613         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
6614         unitialized wstring/wpattern var warnings.
6616         * posix/runtests.c (struct a_test): Make data field const char *.
6618         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
6619         vars if not LDBL_MANT_DIG >= 106.
6621         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
6623         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
6624         __find_specmb to avoid warning.
6626         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
6628         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
6629         to avoid warnings.
6631         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
6632         initializer.
6634         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
6635         tv var when it will be actually used.
6637         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
6638         to avoid warnings.
6640         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
6641         char array resp. pointer.
6642         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
6643         char array.
6644         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
6645         to const unsigned char **.
6646         (ucs4_to_cns11643): Change second argument to unsigned char *.
6647         * iconvdata/euc-tw.c (BODY): Change endp type to
6648         const unsigned char *.
6649         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
6650         to unsigned char *.
6651         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
6652         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
6653         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
6654         types to unsigned char pointers/arrays instead of char.
6655         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
6656         to unsigned char *.
6657         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
6658         * iconvdata/jis0212.h: Include assert.h.
6659         (ucs4_to_jisx0212): Change second argument to unsigned char *.
6660         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
6661         of trying to handle that.
6662         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
6663         shut up a warning.
6664         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
6665         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
6666         two dimensional const unsigned char arrays.
6667         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
6668         Initialize endp to inptr to shut up a warning.
6670 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
6672         [BZ #4772]
6673         * time/strptime_l.c (__strptime_internal): Silently ignore
6674         strftime modifiers and field width in recursive calls.
6676         * include/time.h (enum ptime_locale_status): Remove.
6677         (__strptime_internal): Remove decided and era_cnt arguments,
6678         add statep argument.
6679         * time/strptime_l.c (__strptime_internal): Remove decided
6680         and era_cnt arguments, add statep argument.  Don't recompute
6681         any fields in recursive calls, only update caller's tm
6682         and state, if recursive call fails, don't change tm nor
6683         any state.
6684         (get_alt_number): Adjust.
6685         (recursive): Adjust caller.
6686         (strptime): Likewise.
6687         * time/strptime.c (strptime): Likewise.
6689 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
6691         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
6692         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
6693         if from and to charsets are the same.
6694         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
6695         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
6696         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
6698 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
6700         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
6701         Don't define wint_t when __need_mbstate_t unless it
6702         is necessary.
6703         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
6704         in the typedef if possible.
6705         * wctype/wctype.h (wint_t): Define by including
6706         wchar.h with __need_wint_t instead of including stddef.h
6707         with __need_wint_t and as fallback definining it ourselves.
6708         * iconv/gconv.h (__need_wint_t): Define before including
6709         wchar.h.
6710         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
6711         or _GLIBCPP_USE_WCHAR_T.
6712         (__need_wchar_t): Don't define
6713         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6714         (__need_wint_t): Don't define before including stddef.h,
6715         define before including wchar.h only if _LIBC or
6716         _GLIBCPP_USE_WCHAR_T.
6717         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6718         * sysdeps/mach/hurd/_G_config.h: Likewise.
6719         * sysdeps/generic/_G_config.h: Likewise.
6720         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
6721         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
6722         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
6723         if _LIBC or _GLIBCPP_USE_WCHAR_T.
6725 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
6727         * sysdeps/posix/posix_fallocate64.c: Undefine
6728         __posix_fallocate64_l64 before alias handling.
6729         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
6730         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
6731         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
6732         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
6734         * io/tst-posix_fallocate.c: Include <fcntl.h>.
6736 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
6738         * locale/programs/ld-collate.c (atwc): New variable.
6739         (add_to_tablewc): New toplevel function, moved from collate_output.
6740         (collate_output): Remove add_to_tablewc nested function.
6742         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
6743         (name_insert): New function.
6744         (write_output): Remove hash_table and hash_size vars and name_insert
6745         nested function.
6747 2007-07-24  Roland McGrath  <roland@redhat.com>
6749         * Makerules (install-others-programs-nosubdir): New target.
6750         (install-no-libc.a-nosubdir): Depend on it.
6752         * iconv/Makefile (install-others-programs): Set this instead of
6753         install-others.
6754         * login/Makefile (install-others-programs): Likewise.
6755         * posix/Makefile (install-others-programs): Likewise.
6757         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
6758         dependencies.
6760 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
6762         * io/Makefile (tests): Add tst-posix_fallocate.
6763         * io/tst-posix_fallocate.c: New file.
6765         * sysdeps/unix/sysv/linux/kernel-features.h: Define
6766         __ASSUME_FALLOCATE.
6768 2007-07-22  Roland McGrath  <roland@frob.com>
6770         * hurd/getdport.c: Add missing copyright year update.
6772         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
6773         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
6775 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
6777         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
6779         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
6780         O_CLOEXEC is needed.
6781         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
6782         Avoid additional fcntl to set O_CLOEXEC if not needed.
6783         * nis/nss_compat/compat-initgroups.c: Likewise.
6784         * nis/nss_compat/compat-pwd.c: Likewise.
6785         * nis/nss_compat/compat-spwd.c: Likewise.
6787 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6789         [BZ #3665]
6790         * manual/errno.texi: Change ECANCELED value to 119.
6792         [BZ #4610]
6793         * mach/lock-intern.h: Include <sys/cdefs.h>.
6795         [BZ #4178]
6796         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
6797         reading A.
6799         [BZ #4126]
6800         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
6801         to __sigsuspend.
6803         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
6805 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
6807         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
6808         `__ASSEMBLER__'.
6809         * sysdeps/mach/hurd/i386/tls.h: Likewise.
6811 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
6813         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
6814         descriptor received from nscd.
6816         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
6818         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
6819         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6820         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6821         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6822         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6823         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6825 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
6827         [BZ #4816]
6828         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
6830         [BZ #4813]
6831         * login/forkpty.c (forkpty): Close master and slave fds on
6832         fork failure.  Patch by
6833         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
6835 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
6837         * include/features.h (__USE_ISOC95): New define.
6838         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
6839         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
6840         for -std=iso9899:199409.
6841         * CONFORMANCE: Remove comments about unsupported AMD1.
6843 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
6845         * sysdeps/ia64/sched_cpucount.c: New file.
6846         * sysdeps/powerpc/sched_cpucount.c: New file.
6848         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
6849         __BEGIN_DECLS/__END_DECLS around the prototype.
6850         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
6851         pointer to const cpu_set_t.
6853         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
6854         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
6855         __need_size_t and include stddef.h.
6856         * sysvipc/sys/msg.h: Likewise.
6857         * posix/sched.h: Likewise.
6858         * hurd/hurd/signal.h (__need_size_t): Define.
6860         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
6861         neither does signal.h in pedantic ISO C namespaces.  stdio.h
6862         no longer defines wint_t or wchar_t.
6864         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
6865         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
6866         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
6867         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
6868         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
6869         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
6870         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
6871         * debug/printf_chk.c (__printf_chk): Likewise.
6872         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
6873         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
6875         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
6876         Define.
6878         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
6879         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
6881 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
6883         [BZ #4792]
6884         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
6885         * malloc/malloc.h (realloc): Likewise.
6887         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
6888         if one of proc_file_chain streams has that fileno.
6889         * stdio-common/Makefile (tests): Add tst-popen2.
6890         * stdio-common/tst-popen2.c: New test.
6892 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
6894         * elf/ldconfig.c: Allow GPLv2 or any later version.
6895         * elf/readlib.c: Likewise.
6896         * elf/chroot_canon.c: Likewise.
6897         * elf/cache.c: Likewise.
6898         * nscd/mem.c: Likewise.
6899         * nscd/getpwuid_r.c: Likewise.
6900         * nscd/grpcache.c: Likewise.
6901         * nscd/aicache.c: Likewise.
6902         * nscd/getsrvbynm_r.c: Likewise.
6903         * nscd/nscd.c: Likewise.
6904         * nscd/servicescache.c: Likewise.
6905         * nscd/getsrvbypt_r.c: Likewise.
6906         * nscd/initgrcache.c: Likewise.
6907         * nscd/gethstbyad_r.c: Likewise.
6908         * nscd/gethstbynm2_r.c: Likewise.
6909         * nscd/getgrnam_r.c: Likewise.
6910         * nscd/nscd_setup_thread.c: Likewise.
6911         * nscd/getpwnam_r.c: Likewise.
6912         * nscd/gai.c: Likewise.
6913         * nscd/connections.c: Likewise.
6914         * nscd/dbg_log.c: Likewise.
6915         * nscd/cache.c: Likewise.
6916         * nscd/hstcache.c: Likewise.
6917         * nscd/nscd_conf.c: Likewise.
6918         * nscd/getgrgid_r.c: Likewise.
6919         * nscd/pwdcache.c: Likewise.
6920         * catgets/gencat.c: Likewise.
6921         * locale/programs/linereader.h: Likewise.
6922         * locale/programs/locarchive.c: Likewise.
6923         * locale/programs/ld-paper.c: Likewise.
6924         * locale/programs/locfile-kw.h: Likewise.
6925         * locale/programs/ld-address.c: Likewise.
6926         * locale/programs/xmalloc.c: Likewise.
6927         * locale/programs/ld-time.c: Likewise.
6928         * locale/programs/localedef.c: Likewise.
6929         * locale/programs/simple-hash.c: Likewise.
6930         * locale/programs/xstrdup.c: Likewise.
6931         * locale/programs/ld-numeric.c: Likewise.
6932         * locale/programs/locfile-kw.gperf: Likewise.
6933         * locale/programs/ld-collate.c: Likewise.
6934         * locale/programs/charmap-kw.gperf: Likewise.
6935         * locale/programs/charmap.h: Likewise.
6936         * locale/programs/charmap-kw.h: Likewise.
6937         * locale/programs/config.h: Likewise.
6938         * locale/programs/locfile.c: Likewise.
6939         * locale/programs/ld-ctype.c: Likewise.
6940         * locale/programs/charmap.c: Likewise.
6941         * locale/programs/ld-messages.c: Likewise.
6942         * locale/programs/repertoire.h: Likewise.
6943         * locale/programs/locale.c: Likewise.
6944         * locale/programs/ld-name.c: Likewise.
6945         * locale/programs/linereader.c: Likewise.
6946         * locale/programs/locfile.h: Likewise.
6947         * locale/programs/3level.h: Likewise.
6948         * locale/programs/ld-monetary.c: Likewise.
6949         * locale/programs/ld-measurement.c: Likewise.
6950         * locale/programs/charmap-dir.c: Likewise.
6951         * locale/programs/ld-identification.c: Likewise.
6952         * locale/programs/localedef.h: Likewise.
6953         * locale/programs/charmap-dir.h: Likewise.
6954         * locale/programs/repertoire.c: Likewise.
6955         * locale/programs/simple-hash.h: Likewise.
6956         * locale/programs/ld-telephone.c: Likewise.
6957         * locale/programs/locale-spec.c: Likewise.
6958         * locale/programs/locfile-token.h: Likewise.
6959         * posix/getconf.c: Likewise.
6960         * iconv/dummy-repertoire.c: Likewise.
6961         * iconv/iconv_charmap.c: Likewise.
6962         * iconv/iconvconfig.c: Likewise.
6963         * iconv/iconv_prog.c: Likewise.
6964         * malloc/memusagestat.c: Likewise.
6965         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
6967 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6969         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
6970         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
6971         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
6972         check for the first argument.
6974 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
6976         [BZ #4775]
6977         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
6978         (__tgmath_real_type): Fix if expr is const int or other const
6979         qualified integral type.
6980         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
6981         expressions and handle const qualified arguments.
6982         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
6983         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
6984         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
6985         statement expressions.
6986         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
6987         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
6988         (__TGMATH_UNARY_IMAG): Define.
6989         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
6990         * math/Makefile (tests): Add test-tgmath2.
6991         (CFLAGS-test-tgmath2.c): Add.
6992         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
6993         count_cfloat, count_cldouble): New variables.
6994         (NCCALLS): Define.
6995         (main): Check number of complex calls as well.
6996         (F(compile_test)): Add complex tests and tests with const qualified
6997         arguments.
6998         (y, z, ccount): Define.
6999         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
7000         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
7001         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
7002         F(cproj)): New functions.
7003         * math/test-tgmath2.c: New test.
7005 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
7007         [BZ #4776]
7008         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
7009         RPATH etc. as "/" rather than "", don't segfault on empty paths,
7010         instead output ".".
7011         * dlfcn/Makefile (distribute): Add glreflib3.c.
7012         (module-names): Add glreflib3.
7013         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
7014         glreflib1.so.
7015         (LDFLAGS_glreflib3.so): New.
7016         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
7017         glreflib1.so.
7018         * dlfcn/glreflib3.c: New file.
7020         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
7021         returned -1, return NULL.
7022         * intl/explodename.c (_nl_explode_name): Return -1 if
7023         _nl_normalize_codeset failed.
7025 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
7027         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
7028         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
7029         and avoid branch misspredicts for > 31 bytes memset case.
7030         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
7031         Remove toc ref to __cache_line_size.
7033         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
7034         to get ISA-V2.0 branch hints.
7035         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
7036         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
7037         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
7038         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
7039         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
7040         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
7041         Remove toc ref to __cache_line_size.
7043         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
7044         Include math_ldbl_opt.h.
7046 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
7048         [BZ #4773]
7049         * time/strptime_l.c (__strptime_internal): Implement greedy
7050         matching of weekday and month names.
7052 2007-07-09  Roland McGrath  <roland@redhat.com>
7054         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
7055         (ELF_NOTE_ABI): Use it.
7056         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
7058 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
7060         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
7061         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7063 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
7065         [BZ #4745]
7066         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
7067         in loop to look for conversion specifier to avoid testing of
7068         wrong errno value.
7069         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
7070         * stdio-common/bug18.c: New file.
7071         * stdio-common/bug18a.c: New file.
7072         * stdio-common/bug19.c: New file.
7073         * stdio-common/bug19a.c: New file.
7075 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
7077         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
7078         running awk script.
7080 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
7082         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
7083         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
7084         Return NULL if mmap failed instead of asserting it does not.
7085         (calloc): Check for integer overflow.
7087         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
7088         than LONG_MAX / 10.
7090 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
7092         [BZ #4702]
7093         * nis/nss-default.c: Include errno.h.
7094         (init): Preserve errno.
7096 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
7098         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
7100 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
7102         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
7104 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7106         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
7108 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7110         * sysdeps/s390/dl-procinfo.c: New file.
7111         * sysdeps/s390/dl-procinfo.h: New file.
7112         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
7114 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
7116         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
7117         in PT_NOTE segments with multiple notes.
7118         * elf/readelflib.c (process_elf_file): Likewise.
7120 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
7122         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
7123         ISO C compliant.
7125 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
7127         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
7129 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
7131         * include/link.h: Don't include rtld-lowlevel.h.
7132         (struct link_map): Remove l_scope_lock.
7133         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
7134         (_dl_scope_free_list): New field (variable) in _rtld_global.
7135         (DL_LOOKUP_SCOPE_LOCK): Remove.
7136         (_dl_scope_free): New prototype.
7137         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
7138         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
7139         (_dl_profile_fixup): Likewise.
7140         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
7141         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
7142         THREAD_GSCOPE_RESET_FLAG around it.
7143         * elf/dl-close.c (_dl_close_worker): Don't use
7144         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
7145         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
7146         scopes were queued or if l_scope_mem has been abandoned.
7147         * elf/dl-open.c (_dl_scope_free): New function.
7148         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
7149         * elf/dl-support.c (_dl_scope_free_list): New variable.
7150         * elf/dl-lookup.c (add_dependency): Remove flags argument.
7151         Remove DL_LOOKUP_SCOPE_LOCK handling.
7152         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
7153         handling.
7154         * elf/dl-object.c (_dl_new_object): Don't use
7155         __rtld_mrlock_initialize.
7157 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
7159         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
7160         to fill in holes
7161         (rtld_global_ro): Likewise.
7163 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7165         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
7166         Move PT_LOAD checking to...
7167         (_dl_addr_inside_object): ... here, new function.
7168         * elf/dl-sym.c (do_sym): If not l_contiguous,
7169         call _dl_addr_inside_object.
7170         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7171         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7172         * elf/dl-open.c (dl_open_worker): Likewise.
7173         (_dl_addr_inside_object): New function if IS_IN_rtld.
7174         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
7175         holes are present or are PROT_NONE protected.
7176         * include/link.h (struct link_map): Add l_contiguous field.
7177         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
7179 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7180             Tomas Janousek  <tjanouse@redhat.com>
7181             Ulrich Drepper  <drepper@redhat.com>
7183         [BZ #4647]
7184         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
7185         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
7186         socket.
7187         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
7188         unused member a bitmap.
7189         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
7190         servers are configured.
7192 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7194         * elf/rtld.c (dl_main): Don't call init_tls more than once.
7196 2007-06-17  Andreas Schwab  <schwab@suse.de>
7198         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
7200 2007-06-16  Andreas Jaeger  <aj@suse.de>
7202         [BZ #4125]
7203         * sysdeps/unix/sysv/linux/sys/ptrace.h
7204         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
7205         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
7206         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
7207         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
7208         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
7209         Define.
7210         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7211         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7212         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7213         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7215 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
7217         [BZ #4599]
7218         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
7219         determining whether there are IPv4/IPv6 addresses, ignore loopback
7220         addresses.
7222 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
7224         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
7225         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
7226         as the return type.  Change type of "r" variable to CMPtype.
7227         * soft-fp/eqsf2.c (__eqsf2): Likewise.
7228         * soft-fp/eqtf2.c (__eqtf2): Likewise.
7229         * soft-fp/gedf2.c (__gedf2): Likewise.
7230         * soft-fp/gesf2.c (__gesf2): Likewise.
7231         * soft-fp/getf2.c (__getf2): Likewise.
7232         * soft-fp/ledf2.c (__ledf2): Likewise.
7233         * soft-fp/lesf2.c (__lesf2): Likewise.
7234         * soft-fp/letf2.c (__letf2): Likewise.
7235         * soft-fp/unorddf2 (__unorddf2): Likewise.
7236         * soft-fp/unordsf2 (__unordsf2): Likewise.
7237         * soft-fp/unordtf2 (__unordtf2): Likewise.
7239 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
7241         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
7242         make sure gcc doesn't mess around with this.
7244 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
7246         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
7248 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
7250         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
7251         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
7252         at most once per _dl_close_worker.
7254 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
7256         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
7257         __sched_cpucount as const.
7258         * posix/sched_cpucount.c: Adjust.
7260         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
7261         instruction for counting bits.
7262         * sysdeps/x86_64/sched_cpucount.c: New file.
7264 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
7266         * configure.in: Avoid variable named BASH.
7267         * config.make.in: Likewise.
7268         Patch in part by Mike Frysinger.
7270 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
7272         [BZ #4586]
7273         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
7274         pseudo-zeros as zero.
7275         * sysdeps/x86_64/ldbl2mpn.c: New file.
7276         * sysdeps/ia64/ldbl2mpn.c: New file.
7278 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
7280         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
7281         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
7282         Remove unreachable code at the end.
7284 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
7286         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
7287         ldbl-128ibm in comment.
7288         (fpclassifyl): Correct classification of denormals.
7289         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
7290         return value for MIN denormal. Rewrite using long double math too
7291         correctly handle denormals and canonicalize the results.
7293 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
7295         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
7296         (__mpn_construct_long_double): Fix conversion where result ought
7297         to be smaller than __LDBL_MIN__, or the low double should be
7298         denormal.  Fix decision where to negate low double - honor round
7299         to even rules.
7300         * stdio-common/tst-sprintf2.c: Include string.h.
7301         (COMPARE_LDBL): Define.
7302         (TEST): Also test whether a string hexadecimal float representation
7303         can be parsed back to the number.
7304         (main): Add a couple of further tests.
7306 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
7308         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
7309         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
7310         is non-zero, but smaller than 2 * __DBL_MIN__.
7311         * stdio-common/tst-sprintf2.c: New test.
7312         * stdio-common/Makefile (tests): Add tst-sprintf2.
7314         * math/test-misc.c (main): Don't run last batch of tests with
7315         IBM long double format.
7317 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7319         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
7320         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
7321         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
7322         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
7323         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7324         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
7325         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
7326         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
7327         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
7328         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7329         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
7330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
7331         New file.
7332         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
7333         New file.
7334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
7335         New file.
7336         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
7337         New file.
7338         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
7339         New file.
7340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
7341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
7342         New file.
7343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
7344         New file.
7345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
7346         New file.
7347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
7348         New file.
7349         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
7350         New file.
7352 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7354         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
7355         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
7356         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
7357         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
7358         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
7359         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
7360         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
7361         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
7363 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
7365         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
7366         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7367         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
7368         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7369         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
7370         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7371         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
7372         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7374 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
7376         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
7377         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
7378         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
7379         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
7381 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
7383         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
7384         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
7386 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
7388         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
7389         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
7390         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
7391         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
7393 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
7395         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
7396         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
7398 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
7400         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
7401         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
7403         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
7404         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
7405         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
7406         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
7408 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
7410         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
7411         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
7412         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
7413         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
7415 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
7417         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
7418         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
7419         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
7420         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7421         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
7422         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7424 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
7426         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
7427         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
7428         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
7429         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
7431 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
7433         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
7434         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
7435         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
7436         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
7437         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
7438         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
7439         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
7440         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
7441         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
7442         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
7443         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
7444         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
7445         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
7446         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
7447         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
7448         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
7450 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
7452         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
7453         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
7455 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
7457         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
7458         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
7460 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7462         * sysdeps/powerpc/powerpc32/970/Implies: New file.
7463         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
7464         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
7465         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
7466         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
7467         * sysdeps/powerpc/powerpc64/970/Implies: New file.
7468         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
7469         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
7470         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
7471         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
7473 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
7475         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
7477 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
7479         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
7480         branch miss-predicts. Ensure that cache line crossing does not impact
7481         dispatch grouping.
7483 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
7485         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
7486         "../../powerpc32/power4/memcopy.h".
7487         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
7488         "../../powerpc32/power4/wordcopy.c".
7490 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
7492         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
7493         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
7494         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
7495         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
7496         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
7497         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7499 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
7501         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
7503 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
7505         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
7506         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
7507         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
7508         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
7509         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
7510         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
7511         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
7512         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
7514 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
7516         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
7518 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
7520         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
7521         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
7522         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
7523         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
7524         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
7525         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
7526         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
7528 2007-05-29  Roland McGrath  <roland@redhat.com>
7530         * po/Makefile (po-sed-cmd): New variable.
7531         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
7533 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
7535         * crypt/md5-crypt.c: Fix comment.
7537         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
7538         of crashing.  When this is the case or if the reply is malformed,
7539         don't try to close the new file descriptor since it does not
7540         exist.
7541         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
7543 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
7545         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
7546         if __NR_utimensat is not defined.
7548 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
7550         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
7552 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
7554         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
7555         (open): Fix comment typos.  Don't call __open_2 if flags
7556         is a compile time constant without O_CREAT.
7557         (__open64_2): Add nonnull attribute.
7558         (open64): Fix comment typos.  Don't call __open64_2 if flags
7559         is a compile time constant without O_CREAT.
7560         (__openat_2): Add nonnull attribute, fix nonnull attribute
7561         on redirect.
7562         (openat): Fix comment typos.  Don't call __openat_2 if flags
7563         is a compile time constant without O_CREAT.
7564         (__openat64_2): Add nonnull attribute, fix nonnull attribute
7565         on redirect.
7566         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
7567         is a compile time constant without O_CREAT.
7569 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
7571         * Makerules (sysd-rules): Define PTW for ptw-* files.
7572         * Versions: Define GLIBC_2.7 for libc.
7573         * include/stdio.h: Declare __fortify_fail.
7574         * debug/fortify_fail.c: New file.
7575         * debug/Makefile (routines): Add fortify_fail.
7576         * debug/chk_fail.c: Use __fortify_fail.
7577         * debug/stack_chk_fail.c: Likewise.
7578         * io/Versions: Export __open_2, __open64_2, __openat_2, and
7579         __openat64_2 for GLIBC_2.7.
7580         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
7581         * io/open.c: Define *_2 variant of function which checks for O_CREAT
7582         and fails if necessary.
7583         * io/open64.c: Likewise.
7584         * io/openat.c: Likewise.
7585         * io/openat64.c: Likewise.
7586         * sysdeps/unix/sysv/linux/open64.c: Likewise.
7587         * sysdeps/unix/sysv/linux/openat.c: Likewise.
7588         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
7589         * io/bits/fcntl2.h: New file.
7590         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
7591         __openat64_2.
7592         * include/bits/fcntl2.h: New file.
7593         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7594         Add open_2.
7595         * sysdeps/unix/sysv/linux/open_2.c: New file.
7597 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
7599         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
7600         as second parameter to handle_intel.
7602         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
7603         the entry.
7605         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
7606         handling to ...
7607         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
7608         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
7609         cacheinfo.
7610         * sysdeps/x86_64/memcpy.S: Complete rewrite.
7611         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
7612         Patch by Evandro Menezes <evandro.menezes@amd.com>.
7614         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
7616 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
7618         [BZ #4525]
7619         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
7620         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
7621         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
7623         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
7625         [BZ #4514]
7626         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
7627         reinitialize workend at the start of each do_positional format spec
7628         loop, free workstart before do_positional loops.
7629         (printf_unknown): Fix size of work_buffer.
7630         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
7632         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
7633         (public_sET_STATe): If ms->version < 3, put all chunks into
7634         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
7635         chunks.
7637         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
7638         * malloc/hooks.c: Likewise.
7639         * malloc/arena.c: Likewise.
7640         * malloc/malloc.c (do_check_malloc_state): Don't assert
7641         n_mmaps is not greater than n_mmaps_max.  This removes the need
7642         for the previous change.
7644         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
7645         2007-05-07 commit.
7647 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
7649         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
7650         Define for kernel >= 2.6.22.
7652 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
7654         * elf/dl-close.c (_dl_close_worker): When removing object from
7655         global scope, wait for all lookups to finish afterwards.
7656         * elf/dl-open.c (add_to_global): When global scope array must
7657         grow, allocate a new one and free old array only after all
7658         lookups finish.
7659         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
7660         (_dl_lookup_symbol_x): Likewise.
7661         * elf/dl-support.c: Define _dl_wait_lookup_done.
7662         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
7663         _dl_wait_lookup_done.
7665         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
7666         not overlapping with arena.
7668         * malloc/mcheck.c (reallochook): If size==0, free the block.
7670         * rt/tst-shm.c: Use fstat64 instead of fstat.
7672         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
7673         __NR_sync_file_range is not defined.
7675 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
7677         Dummy files to prevent stub versions from being used.
7678         * sysdeps/x86_64/fpu/k_cosl.c: New file.
7679         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
7680         * sysdeps/x86_64/fpu/k_sinl.c: New file.
7681         * sysdeps/x86_64/fpu/k_tanl.c: New file.
7683         * version.h (VERSION): Set to 2.6.90.
7685 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
7687         * version.h (VERSION): Define to 2.6.
7688         * include/features.h (__GLIBC_MINOR__): Define to 6.
7690         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
7692         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
7693         sizes.
7695 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
7697         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
7698         number of mmaps.  n_mmaps_max is the target.
7699         * malloc/hooks.c: Likewise.
7700         * malloc/arena.c: Likewise.
7702 2007-05-12  Andreas Jaeger  <aj@suse.de>
7704         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
7705         getpid.
7707 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
7709         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
7710         adding new variables.
7712         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
7713         optimize.  Completely extend global scope array before making the
7714         new entries visible.
7716 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
7718         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
7719         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
7720         tst-getcpu.
7722         * include/link.h: Move l_version and l_nversion members around to
7723         fill gaps.
7725         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
7727         * sysdeps/unix/sysv/linux/sched_setaffinity.c
7728         (__sched_setaffinity_new): If syscall was successful and
7729         RESET_VGETCPU_CACHE is defined, use it before returning.
7730         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
7732         * io/sys/stat.h: Make sure struct timespec is defined for
7733         __USE_ATFILE.
7735         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
7736         UTIME_OMIT.
7737         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7738         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7739         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
7740         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7741         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
7742         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7743         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
7744         * io/sys/stat.h: Declare utimensat, futimens.
7745         * io/utimensat.c: New file.
7746         * io/futimens.c: New file.
7747         * sysdeps/unix/sysv/linux/utimensat.c: New file.
7748         * sysdeps/unix/sysv/linux/futimens.c: New file.
7749         * io/Makefile (routines): Add utimensat, futimens.
7750         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
7751         * sysdeps/unix/sysv/linux/lutimes.c: New file.
7752         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
7753         available.
7755         * include/sys/cdefs.h: Redefine __nonnull so that test for
7756         incorrect parameters in the libc code itself are not omitted.
7758 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
7760         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
7761         exception in addition to inexact when asked to raise only FE_INEXACT.
7763         [BZ #3427]
7764         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
7765         in *envp.
7767 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
7769         [BZ #4403]
7770         * string/strfry.c (strfry): Make result more random.
7772 2007-05-07  Richard Henderson  <rth@redhat.com>
7774         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
7775         if __NO_LONG_DOUBLE_MATH.
7776         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
7777         available in the compiler, add .arch directive to the assembly.
7779 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
7781         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
7782         compat_symbol to GLIBC_2_1.
7783         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
7784         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
7785         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
7786         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
7787         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
7788         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
7789         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
7790         libc, not libm.
7791         (__isnanl): New compat_symbol.
7793 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
7794             Jakub Jelinek  <jakub@redhat.com>
7796         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
7797         (new_heap): Initialize mprotect_size.
7798         (grow_heap): When growing, only mprotect from mprotect_size till
7799         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
7800         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
7802 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
7803             Peter Bergner  <bergner@us.ibm.com>
7805         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
7806         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
7807         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
7808         * sysdeps/powerpc/fpu/fe_mask.c: New file.
7809         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
7810         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
7811         Call __fe_mask_env() if all FP exceptions disabled.
7812         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
7813         from old FPSCR to new fenv to propagate DFP rounding modes.
7814         Call __fe_mask_env() if FP exceptions previously enabled.
7815         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
7816         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
7817         transitioning from all exceptions disabled to any exception enabled
7818         or visa versa.
7819         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
7820         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
7821         when transitioning from all exceptions disabled to any exception
7822         enabled or visa versa.
7823         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
7824         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
7825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
7826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
7827         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
7828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
7830 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
7832         [BZ #4465]
7833         * posix/unistd.h: Remove __THROW from fdatasync.
7835 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
7837         [BZ #4465]
7838         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
7840 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
7842         * stdio-common/vfprintf.c (process_string_arg): Optimize
7843         ridiculous precision in wide char code printing multi-byte string.
7844         Reported by Jim Meyering <jim@meyering.net>.
7846         [BZ #4131]
7847         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
7848         boundaries to work around systems with overlapping binary loading.
7849         Based on a patch by Suzuki <suzuki@in.ibm.com>.
7851 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
7853         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
7854         __mbsnrtowcs after last change.
7856         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
7857         (get_ident): Likewise.
7859 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
7861         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
7862         with setting the sticky bit.
7863         * math/test-misc.c (main): Add more truncation tests.
7865 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
7867         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
7868         double in the function declaration.
7869         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
7870         double in the function declaration.
7871         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7872         float in the function declaration.
7873         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7874         float in the function declaration.
7876         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
7877         denormal operands.  Do not generate FP_EX_DENORM exception.
7878         (FP_UNPACK_RAW_EP): Ditto.
7879         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
7880         undefined _FP_UNPACK_RAW_E.
7881         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
7882         undefined _FP_UNPACK_RAW_EP.
7883         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
7884         undefined _FP_PACK_RAW_E.
7885         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
7886         undefined _FP_PACK_RAW_EP.
7888         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
7889         _FP_FRAC_COPY_2.
7890         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
7891         _FP_FRAC_COPY_4.
7893 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
7894             Jakub Jelinek  <jakub@redhat.com>
7896         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
7897         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
7898         this case.
7899         * soft-fp/op-common.h (FP_TRUNC): Ditto.
7901 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
7903         * math/test-misc.c (main): Add tests for rounding long double
7904         values close to smallest double denormalized value to double.
7906 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
7908         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
7909         condition for truncating to 0.  Set sticky bit for such
7910         truncation.
7912 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
7914         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
7915         fixed length array for ignore.
7917 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
7919         [BZ #4438]
7920         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
7921         stack for large precisions.
7922         * stdio-common/test-vfprintf.c (main): Add test for large
7923         precision.
7925 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
7927         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
7928         for exponent 0.
7929         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
7931         [BZ #4439]
7932         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
7933         account in the size check.
7934         * resolv/tst-inet_ntop.c: New test.
7935         * resolv/Makefile (tests): Add tst-inet_ntop.
7937 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
7938             Jakub Jelinek  <jakub@redhat.com>
7940         [BZ #4349]
7941         * malloc/malloc.c: Keep separate list for first blocks on the bin
7942         lists with a given size.  This helps skipping over list elements
7943         we know won't fit in two places.
7944         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
7946 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
7948         [BZ #4102]
7949         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
7950         label to Teredo tunnel addresses 2001://32.
7952 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
7954         * locale/programs/ld-collate.c (collate_read): Allow order_start
7955         after copy.
7957         * locale/programs/ld-collate.c (collate_read): Fix printing of
7958         error message.
7960         [BZ #3213]
7961         * locale/C-translit.h.in: Add entry for U2044.
7963         [BZ #4342]
7964         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
7965         hexa-decimal floats without exponent.
7966         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
7968 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
7970         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
7971         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
7972         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
7973         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
7974         GLIBC_2.6.
7975         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
7976         Add sched_getcpu.
7978 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
7980         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
7981         of 0 after the out_fail label.
7983 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
7985         [BZ #4406]
7986         * iconv/gconv_charset.h (strip): Allow ':'.
7987         * iconv/iconv_open.c (iconv_open): Adjust comment.
7989 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
7991         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
7992         version.
7994 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
7996         [BZ #4381]
7997         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
7998         alignment of buffer and tmp_buffer.
7999         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
8000         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
8001         alignment of buffer.
8002         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
8003         bigger than INT_MAX.
8004         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
8005         h_errnop arguments.  Fail if buflen is too small.
8006         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
8008 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
8010         [BZ #4405]
8011         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
8012         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
8014 2007-04-22  Roland McGrath  <roland@redhat.com>
8016         * elf/elf.h (NT_PRXFPREG): New macro.
8018 2007-04-19  Andreas Jaeger  <aj@suse.de>
8020         [BZ #3905]
8021         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
8022         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
8023         Added.
8025 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
8027         * include/sys/mman.h: Mark madvise hidden.
8028         * misc/madvise.c: Add libc_hidden_def.
8030 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
8032         * nis/nis_domain_of.c (__nis_domain_of): New function.
8033         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
8034         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
8035         * nis/nis_call.c (rec_dirsearch): Likewise.
8036         (first_shoot): Likewise.  Remove search_parent_first argument.
8037         (struct nis_server_cache): Rename search_parent_first field
8038         to search_parent.
8039         (nis_server_cache_search, nis_server_cache_add): Rename
8040         search_parent_first argument to search_parent.
8041         (__nisfind_server): Likewise.  If search_parent, call
8042         __nis_domain_of.
8044 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
8046         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
8048 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
8050         [BZ #4368]
8051         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
8053 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
8055         [BZ #4364]
8056         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
8058 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
8060         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
8061         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
8062         current number of locales in SUPPORTED.
8063         (create_archive): Initialize serial.
8064         (enlarge_archive): Preserve aliases rather than duplicating
8065         their locrecs.
8067 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
8069         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
8070         after _IO_un_link, not before it.
8072         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
8073         special case handling when wcp == wstartp + 1.  Fix a comment typo.
8074         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
8076 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
8078         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
8079         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
8080         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
8081         Remove __THROW.
8082         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
8083         _IO_file_xsgetn_maybe_mmap): Likewise.
8084         * libio/oldfileops.c (old_do_write): Likewise.
8085         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
8086         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
8087         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
8088         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
8089         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
8090         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
8091         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
8092         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
8093         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
8094         _IO_file_underflow, _IO_file_underflow_mmap,
8095         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
8096         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
8097         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
8098         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
8099         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
8100         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
8101         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
8102         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
8103         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
8104         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
8105         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
8106         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
8107         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
8108         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
8109         _IO_adjust_column_internal, _IO_default_uflow_internal,
8110         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
8111         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
8112         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
8113         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
8114         _IO_file_close_it_internal, _IO_file_underflow_internal,
8115         _IO_file_overflow_internal, _IO_file_attach_internal,
8116         _IO_file_fopen_internal, _IO_file_sync_internal,
8117         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
8118         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
8119         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
8120         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
8121         _IO_seekpos_unlocked): Likewise.
8122         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
8123         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
8125 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
8127         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
8128         argument in xmalloc size computation.
8130 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
8132         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
8133         math_opt_barrier and math_force_eval macros.
8135 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
8137         [BZ #3306]
8138         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
8139         * sysdeps/i386/fpu/math_private.h: New file.
8140         * sysdeps/x86_64/fpu/math_private.h: New file.
8141         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
8142         math_force_eval macros.  Use "+m" constraint on asm rather than
8143         "=m" and "m".
8144         * math/s_nextafter.c (__nextafter): Likewise.
8145         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
8146         Likewise.
8147         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
8148         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
8149         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8150         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
8151         math_opt_barrier and math_force_eval macros.
8152         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
8153         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
8154         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
8155         (__nexttoward): Use math_opt_barrier and
8156         math_force_eval macros.  Use "+m" constraint on asm rather than
8157         "=m" and "m".  Only use asm to force double result if
8158         FLT_EVAL_METHOD is 2.
8159         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
8160         (__nexttowardf): Use math_opt_barrier and
8161         math_force_eval macros.  Use "+m" constraint on asm rather than
8162         "=m" and "m".  Only use asm to force double result if
8163         FLT_EVAL_METHOD is not 0.
8164         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
8165         (__nexttowardf): Use math_opt_barrier and
8166         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
8167         x to float using asm.
8168         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
8169         (__nldbl_nexttowardf): Use math_opt_barrier and
8170         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
8171         x to float using asm.
8172         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
8173         (__nexttowardf): Use math_opt_barrier and math_force_eval
8174         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
8175         * math/bug-nextafter.c (zero, inf): New variables.
8176         (main): Add new tests.
8177         * math/bug-nexttoward.c (zero, inf): New variables.
8178         (main): Add new tests.
8180 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
8182         [BZ #3427]
8183         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
8184         exceptions both in SW and MXCSR.
8185         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
8186         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
8187         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
8188         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8189         in MXCSR if SSE is available.
8190         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
8191         and ldsodefs.h.
8192         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
8193         Fix comment typo.
8194         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
8195         Return 0 rather than 1.
8196         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
8197         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
8198         * math/test-fenv.c (feholdexcept_tests): New function.
8199         (main): Call it.
8201 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
8203         [BZ #3427]
8204         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8205         in SW.
8207 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
8209         [BZ #4344]
8210         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
8211         Reported by David Anderson <davea42@earthlink.net>.
8213 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
8215         * posix/sys/wait.h: Remove unnecessary forward declaration.
8217 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
8219         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
8220         with obj->do_servers after first_shoot.
8222 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
8224         * posix/Makefile (routines): Add sched_cpucount.
8225         (tests): Add tst-cpucount.
8226         * posix/sched_cpucount.c: New file.
8227         * posix/tst-cpucount.c: New file.
8228         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
8229         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
8230         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8231         * posix/sched.h: Define CPU_COUNT.
8233 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
8235         * posix/fnmatch.c (STRUCT): Define.
8236         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
8237         * posix/fnmatch_loop.c (struct STRUCT): New type.
8238         (FCT): Add ends argument.  If ends != NULL and normal * is
8239         seen in the pattern, store current pattern and string pointers
8240         and return.  Adjust recursive calls.
8241         (EXT): Adjust FCT callers.
8242         (STRUCT): Undef at the end of the file.
8243         * posix/Makefile (tests): Add tst-fnmatch2.
8244         * posix/tst-fnmatch2.c: New test.
8246 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
8248         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
8249         and 1 on failure.
8251         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
8252         Change last argument to unsigned int.
8254 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
8256         * scripts/check-local-headers.sh: Filter out sys/capability.h.
8258 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
8260         * config.h.in (HAVE_LIBCAP): Add.
8261         * nscd/selinux.h: Include sys/capability.h rather than non-existent
8262         sys/capabilities.h.
8263         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
8264         free_caps.  Cast away const from 4th cap_set_flag argument.
8266 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
8268         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
8269         GLIBC_2.6.
8270         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8271         Add sync_file_range.
8272         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
8274 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
8276         * sysdeps/powerpc/bits/atomic.h
8277         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
8278         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
8279         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8280         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
8281         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8282         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
8283         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
8284         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8285         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8286         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8287         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
8288         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8289         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8290         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8291         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8292         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
8293         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8294         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
8295         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8296         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
8298 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
8300         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8301         (__cache_line_size): Define the variable here.  Add
8302         attribute_hidden, remove weak_extern.
8303         (__libc_start_main): Set __cache_line_size
8304         unconditionally.
8305         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
8306         (__cache_line_size): Define the variable here.  Add
8307         attribute_hidden, remove weak_extern.
8308         (DL_PLATFORM_AUXV): Set __cache_line_size
8309         unconditionally.
8310         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
8311         weak_extern, add attribute_hidden.
8312         (__elf_machine_runtime_setup): Assume __cache_line_size is always
8313         defined in ld.so.
8314         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
8315         definition.
8316         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
8318 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
8320         [BZ #4276]
8321         * timezone/africa: Update from tzdata2007d.
8322         * timezone/asia: Likewise.
8323         * timezone/australasia: Likewise.
8324         * timezone/backward: Likewise.
8325         * timezone/europe: Likewise.
8326         * timezone/iso3166.tab: Likewise.
8327         * timezone/leapseconds: Likewise.
8328         * timezone/northamerica: Likewise.
8329         * timezone/southamerica: Likewise.
8330         * timezone/zone.tab: Likewise.
8332         * timezone/private.h: Update from tzcode2007d.
8333         * timezone/zdump.c: Likewise.
8334         * timezone/zic.c: Likewise.
8336 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
8338         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
8339         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
8340         variables.
8341         (nis_server_cache_search, nis_server_cache_add): New functions.
8342         (__nisfind_server): Use them.  Add dbp and flags argument, if
8343         call __nisbind_create.
8344         (__nisbind_create): Add server_used and current_ep arguments,
8345         only call __nis_findfastest if server_used is ~0.
8346         (__do_niscall2, __prepare_niscall): Adjust callers.
8347         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
8348         ckey_cache_euid, ckey_cache_lock): New variables.
8349         (get_ckey): New function.
8350         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
8351         __pmap_getnisport.  Save __pmap_getnisport result in
8352         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
8353         key.
8354         * nis/nis_lookup.c (nis_lookup): Likewise.
8355         * nis/nis_table.c (nis_list): Likewise.
8356         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
8357         prototypes.
8359         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
8360         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
8361         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
8362         _nss_nisplus_getservbyport_r): Likewise.
8363         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
8364         _nss_nisplus_getnetbyaddr_r): Likewise.
8365         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
8366         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
8367         _nss_nisplus_getntohost_r): Likewise.
8368         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
8369         _nss_nisplus_getrpcbynumber_r): Likewise.
8371 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
8373         * configure.in (libc_cv_gnu89_inline): Only do compile test.
8374         * configure: Rebuilt.
8376         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
8377         bit-fields.
8378         * soft-fp/extended.h (_FP_UNION_E): Likewise.
8380 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
8382         [BZ #2831]
8383         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
8384         bit-fields.
8386 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
8388         * nscd/gai.c: Include alloca.h.
8389         (__libc_use_alloca): Define.
8391 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
8393         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
8394         smaller scopes.
8395         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
8396         (DL_DST_REQUIRED): Adjust user.
8398         * include/dlfcn.h (struct link_map): New forward decl.
8400         * inet/getnameinfo.c: Include stddef.h.
8401         (getnameinfo): Use offsetof.
8403         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
8405         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
8407         * string/strerror_l.c: Include stdlib.h.
8409         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
8410         * config.make.in (gnu89-inline-CFLAGS): New variable.
8411         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
8412         -std=gnu99.
8413         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
8414         * argp/argp.h: Use it.
8415         * bits/mathinline.h: Likewise.
8416         * bits/sigset.h: Likewise.
8417         * bits/string.h: Likewise.
8418         * ctype/ctype.h: Likewise.
8419         * hurd/hurd.h: Likewise.
8420         * hurd/hurd/fd.h: Likewise.
8421         * hurd/hurd/port.h: Likewise.
8422         * hurd/hurd/signal.h: Likewise.
8423         * hurd/hurd/threadvar.h: Likewise.
8424         * hurd/hurd/userlink.h: Likewise.
8425         * io/sys/stat.h: Likewise.
8426         * libio/bits/stdio.h: Likewise.
8427         * libio/bits/stdio2.h: Likewise.
8428         * mach/lock-intern.h: Likewise.
8429         * mach/mach/mig_support.h: Likewise.
8430         * math/bits/cmathcalls.h: Likewise.
8431         * posix/bits/unistd.h: Likewise.
8432         * socket/bits/socket2.h: Likewise.
8433         * stdlib/bits/stdlib.h: Likewise.
8434         * stdlib/stdlib.h: Likewise.
8435         * string/argz.h: Likewise.
8436         * string/bits/string2.h: Likewise.
8437         * string/bits/string3.h: Likewise.
8438         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
8439         * sysdeps/generic/inttypes.h: Likewise.
8440         * sysdeps/generic/machine-lock.h: Likewise.
8441         * sysdeps/generic/machine-sp.h: Likewise.
8442         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8443         * sysdeps/i386/i486/bits/string.h: Likewise.
8444         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
8445         * sysdeps/mach/alpha/machine-lock.h: Likewise.
8446         * sysdeps/mach/alpha/machine-sp.h: Likewise.
8447         * sysdeps/mach/i386/machine-lock.h: Likewise.
8448         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8449         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
8450         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
8451         * sysdeps/s390/bits/string.h: Likewise.
8452         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
8453         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8454         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8455         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8456         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8457         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
8458         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
8459         * wcsmbs/bits/wchar2.h: Likewise.
8460         * wcsmbs/wchar.h: Likewise.
8461         * stdlib/gmp.h: Likewise.  Include <features.h> to get
8462         __extern_inline definition.
8464 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
8466         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
8467         NULL.
8469         [BZ #3919]
8470         * math/libm-test.inc (log_test): Test -Inf and NaN.
8471         (log10_test, log1p_test, log2_test): Test -Inf.
8472         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
8473         FE_INVALID when argument is qNaN.
8474         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
8475         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
8476         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
8477         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
8478         andb $1, %ah with testb $1, %ah, don't test for parity, instead
8479         testb $4, %ah and jump if non-zero.
8480         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
8481         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
8483         [BZ #4101]
8484         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
8485         ancestors with the same depths.
8486         Patch by Niels Moeller <nisse@lysator.liu.se>.
8487         (filter_doc): Don't crash if argp is NULL.
8488         * argp/Makefile (tests): Add tst-argp2.
8489         * argp/tst-argp2.c: New test.
8491         [BZ #4130]
8492         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
8493         open_not_cancel_2.
8494         (updwtmp_file): Likewise.
8496         [BZ #4181]
8497         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
8498         (inet6_opt_append): Don't check extlen is big enough if extbuf
8499         is NULL.
8500         (inet6_opt_finish): Likewise.
8501         * inet/Makefile (tests): Add test-inet6_opt.
8502         * inet/test-inet6_opt.c: New test.
8504         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
8505         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
8506         NLMSG_ERR.  Instead use a page sized buffer.
8507         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
8508         buffer.
8510 2007-03-14  Richard Henderson  <rth@redhat.com>
8512         * sysdeps/alpha/fpu/s_llround.c: New file.
8513         * sysdeps/alpha/fpu/s_llroundf.c: New file.
8514         * sysdeps/alpha/fpu/s_lround.c: New file.
8515         * sysdeps/alpha/fpu/s_lroundf.c: New file.
8516         * sysdeps/alpha/fpu/s_round.c: New file.
8517         * sysdeps/alpha/fpu/s_roundf.c: New file.
8518         * sysdeps/alpha/fpu/s_trunc.c: New file.
8519         * sysdeps/alpha/fpu/s_truncf.c: New file.
8521         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
8522         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
8523         * sysdeps/alpha/fpu/s_floor.c: Likewise.
8524         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
8525         * sysdeps/alpha/fpu/s_rint.c: Likewise.
8526         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8528         * sysdeps/alpha/fpu/s_fmax.S: New file.
8529         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
8530         * sysdeps/alpha/fpu/s_fmin.S: New file.
8531         * sysdeps/alpha/fpu/s_fminf.S: New file.
8532         * sysdeps/alpha/fpu/s_isnan.c: New file.
8533         * sysdeps/alpha/fpu/s_isnanf.c: New file.
8534         * sysdeps/alpha/fpu/s_llrint.c: New file.
8535         * sysdeps/alpha/fpu/s_llrintf.c: New file.
8536         * sysdeps/alpha/fpu/s_lrint.c: New file.
8537         * sysdeps/alpha/fpu/s_lrintf.c: New file.
8538         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
8539         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
8541         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
8542         (__fdimf, fdimf, __fdim, fdim): Remove.
8543         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
8544         (__isnanf, __isnan, __isnanl): New.
8546 2007-03-13  Richard Henderson  <rth@redhat.com>
8548         * sysdeps/ieee754/ldbl-128/Makefile: New file.
8550 2007-03-13  Richard Henderson  <rth@redhat.com>
8552         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
8553         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
8554         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
8555         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
8556         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
8557         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
8559 2007-03-13  Richard Henderson  <rth@redhat.com>
8561         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
8562         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
8563         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
8564         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
8565         Move to dl-auxv.h; initialize instead of extern weak.
8566         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
8567         weak symbol.
8568         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
8569         Extern instead of initialized.
8571 2007-03-13  Richard Henderson  <rth@redhat.com>
8573         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
8574         __sigsuspend_nocancel.
8576 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
8578         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
8579         172.16/12 address range.
8581 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
8583         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
8584         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
8585         message.
8587 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
8589         [BZ #4069]
8590         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
8591         earlier.
8592         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
8594         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
8595         for x qNaN and y either +-inf or non-integer value.
8596         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
8597         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
8598         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8600 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
8602         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
8603         from sysdep_headers.
8605 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
8607         * time/tzfile.c (find_transition): Instead of a linear search try to
8608         guess the transition index, use a linear search if the result is at
8609         most 10 transitions away from the guess or binary search otherwise.
8611 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
8613         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
8614         memory reallocation.
8616 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
8618         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
8619         and fix some typos.
8620         Optimize use of TOLOWER.
8622         [BZ #3325]
8623         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
8624         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8625         * sysdeps/i386/fpu/e_fmod.S: Likewise.
8627         [BZ #3458]
8628         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
8629         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
8631         [BZ #4076]
8632         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
8633         (open_dir_stream): Likewise.
8634         * io/Makefile (tests): Add bug-ftw5.
8635         * io/bug-ftw5.c: New file.
8637         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
8638         * nscd/servicescache.c (cache_addserv): Likewise.
8640         * nscd/grpcache.c (cache_addgr): In case a record changed on
8641         refresh, adjust key_copy.
8643         [BZ #4074]
8644         * nscd/pwdcache.c (cache_addpw): In case a record changed on
8645         refresh, adjust key_copy.
8647         [BZ #4070]
8648         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
8649         special cases.
8650         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
8652 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
8654         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
8655         optimization.
8657         * stdio-common/vfscanf.c: Small cleanups throughout.
8659 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
8661         [BZ #3325]
8662         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
8663         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8664         * sysdeps/i386/fpu/e_fmod.S: Likewise.
8665         Patch by Jared Casper <jaredcasper@gmail.com>.
8667         * sysdeps/unix/closedir.c: Outside libc don't use locking.
8668         * sysdeps/unix/opendir.c: Likewise.
8669         * sysdeps/unix/readdir.c: Likewise.
8671         [BZ #2211]
8672         * stdio-common/vfscanf.c: Handle localized digits etc for floating
8673         point numbers.
8674         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
8676         * stdio-common/vfscanf.c: Fix problems in width accounting.
8677         * stdio-common/tst-sscanf.c (double_tests): New tests.
8678         (main): Hook them up.
8680         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
8681         More simplifications of floating-point reader.
8683         * stdio-common/Makefile (tests): Add tst-swscanf.
8684         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
8685         testing.
8686         * stdio-common/tst-swscanf.c: New file.
8688 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
8690         [BZ #2633]
8691         * libio/stdio.h: Define struct _IO_FILE in global namespace.
8692         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
8693         Remove using for __jmp_buf_tag.
8694         * locale/locale.h (struct lconv): Also define in std namespace.
8695         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
8697         [BZ #3842]
8698         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
8699         using __libc_enable_secure.
8701         [BZ #3818]
8702         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
8704         [BZ #3745]
8705         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
8706         of names for ellipsises.
8708         [BZ #3348]
8709         * malloc/memusage.sh: Cleanups.
8710         * debug/xtrace.sh: Quoting and trap changes.
8712 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
8714         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
8716         * locale/iso-3166.def: Update entry for Serbia.
8717         * locale/iso-4217.def: Define RSD, remove CSD.
8719         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
8720         and 64-bit operations.
8722         [BZ #4040]
8723         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
8724         16-bit operations.
8726         * nscd/nscd.c (parse_opt): One more conversion to use send instead
8727         of writev.
8729 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
8731         [BZ #3991]
8732         * assert/assert.h (assert): Simplify.
8733         (assert_perror): Likewise.
8734         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
8736         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
8737         reqdata.
8739         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
8740         change: don't pass NULL in place of an integer.
8742 2007-02-02  Bruno Haible  <bruno@clisp.org>
8744         [BZ #3954]
8745         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
8746         Add mapping for U+327E.
8747         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
8748         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8749         mapping of 0xD9 0xE8.
8750         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
8751         mapping of U+327E.
8752         Reported by Jungshik Shin <jungshik@google.com>.
8754         [BZ #3955]
8755         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8756         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
8757         Reported by Jungshik Shin <jungshik@google.com>.
8759 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
8761         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
8762         byte variants.
8764         [BZ #4040]
8765         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
8766         byte variants.  Patch mostly be tom@tommay.net.
8768 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
8770         [BZ #3996]
8771         * posix/glob.c (attribute_hidden): Define if not defined.
8772         (glob): Unescape dirname, filename or username when needed and not
8773         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
8774         is NULL.  Handle unescaped [ in pattern without closing ].
8775         Don't pass GLOB_CHECK down to recursive glob for directories.
8776         (__glob_pattern_type): New function.
8777         (__glob_pattern_p): Implement using __glob_pattern_type.
8778         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8779         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8780         Remove unreachable code.
8781         * posix/globtest.sh: Add a couple of new tests.
8783 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
8785         * po/ru.po: Update from translation team.
8787 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
8789         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
8790         to the list of i486+ CPUs.
8791         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8793 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
8795         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
8796         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
8797         references.
8799 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
8801         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
8803         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
8804         * resolv/res_mkquery.c: Define __res_nopt.
8805         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
8806         try adding EDNS0 record.
8807         * resolv/res_send.c (send_dg): If request failed with FORMERR and
8808         EDNS0 record was send make sure we don't try it again.
8809         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
8810         * include/resolv.h: Declare __res_nopt.
8812 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
8814         [BZ #3944]
8815         * time/strptime_l.c (__strptime_internal): Set have_mon for
8816         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
8817         have been computed from tm_yday and tm_year.  Don't crash
8818         in day_of_the_week or day_of_the_year if not have_mon
8819         and tm_mon contains bogus value.
8820         * time/Makefile (tests): Add tst-strptime3.
8821         * time/tst-strptime3.c: New test.
8823 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
8825         [BZ #3957]
8826         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
8827         bit for RE_HAT_LISTS_NOT_NEWLINE.
8828         (build_charclass_op): Remove bogus comment.
8829         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
8830         * posix/bug-regex27.c: New test.
8831         * posix/bug-regex28.c: New test.
8833 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
8835         * po/sv.po: Update from translation team.
8837 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
8839         * nscd/nscd_helper.c (open_socket): Minor size optimization.
8841 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
8843         * include/locale.h (__uselocale): Add libc_hidden_proto.
8844         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
8846         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
8847         gettimeofday.
8849 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
8851         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
8852         returning.
8853         (PTR_DEMANGLE): Real definition now that it's not the same as
8854         PRT_MANGLE anymore.
8855         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8857         * string/strerror_l.c: New file.
8858         * string/Makefile (routines): Add strerror_l.
8859         * string/string.h: Declare strerror_l.
8860         * string/Versions: Export strerror_l for GLIBC_2.6.
8862 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
8864         * nscd/nscd_helper.c (open_socket): Now takes request type and key
8865         as parameter.  Construct request record.  Try sending request
8866         before the first poll use, it usually succeeds.  Adjust all
8867         callers.
8868         * nscd/nscd-client.h: Define MAXKEYLEN.
8869         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
8871 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
8873         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
8874         from return value.
8875         * nscd/nscd_helper.c: Include string.h.
8876         (__nscd_cache_search): Remove const qualifier from return value.
8877         On strict alignment architectures check hash entry and data head
8878         alignment.
8879         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
8880         mmapped data during GC cycle contains garbage.  If
8881         __nscd_drop_map_ref fails, decrement mapped->counter when returning
8882         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
8883         dropped to 0.
8884         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8885         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8886         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8887         * nscd/nscd_getai.c (__nscd_getai): Likewise.
8888         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8890 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
8892         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
8894 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
8896         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
8897         names not numbers in cfi_*.
8899 2007-01-26  Andreas Jaeger  <aj@suse.de>
8901         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
8902         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
8903         Correct values of PER_HPUX and PER_OSF4.
8905 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
8907         * elf/dl-minimal.c: Undefine _itoa first.
8908         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
8909         * malloc/mtrace.c: Revert last change.
8910         * posix/wordexp.c: Likewise.
8912 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
8914         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
8915         and __geode__ to the list of i486+ CPUs.
8916         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8918 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
8920         * stdio-common/_itoa.c: Include <limits.h>.
8921         * stdio-common/_itowa.c: Likewise.
8923 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
8925         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
8926         platforms.
8927         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
8928         64-bit platforms.
8929         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
8930         possible.
8931         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
8932         if possible.
8934         [BZ #3902]
8935         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
8936         * stdio-common/Makefile (tests): Add bug17.
8937         * stdio-common/bug17.c: New file.
8939 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
8941         * iconvdata/brf.c: New file.
8942         * iconvdata/testdata/BRF: New file.
8943         * iconvdata/testdata/BRF..UTF8: New file.
8944         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8945         * iconvdata/Makefile: Add rules to build BRF.
8946         * iconvdata/TESTS: Add BRF entry.
8947         * iconvdata/gconv-modules: Likewise.
8948         * iconvdata/tst-tables.sh: Likewise.
8950 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
8952         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
8953         type `long long int', not `long int'.
8954         (wcstoq): Likewise.
8956 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
8958         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
8959         of values on 64-bit platforms which are too large.
8961 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
8962             Joe Kerian  <jkerian@us.us.ibm.com>
8964         [BZ #2749]
8965         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
8966         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
8967         (__copysignl): Use signbit() for comparison.
8968         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
8969         SET_LDOUBLE_WORDS64.
8971         [BZ #2423, #2749]
8972         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
8973         (__ceill): Remove calls to fegetround(), fesetround().
8974         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
8975         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8976         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8978 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
8980         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
8982         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
8984 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
8986         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
8987         demangle pointer.
8988         * csu/libc-start.c: Likewise.
8990 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
8992         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
8993         really work anyway.
8995 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
8997         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
8998         users.
8999         (handle_request): Remove unnecessary tests.
9001         * nscd/cache.c (cache_add): Record the failure to add to the cache.
9003 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
9005         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
9006         workbits in semi-raw fraction.
9008         * math/test-misc.c: Add new tests.
9010 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
9012         * math/basic-test.c: Include test-skeleton.c.
9013         (TEST_TRUNC): Define.
9014         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
9015         (main): Rename to ...
9016         (do_test): ...this.  Run new tests.
9017         (TEST_FUNCTION): Define.
9019 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
9020             Joe Kerian  <jkerian@us.us.ibm.com>
9022         [BZ #2749]
9023         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
9024         handling for high words.
9025         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
9026         and overflow for infinity.
9028 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
9030         * nscd/connections.c (handle_request): Add a __builtin_expect.
9032         * nscd/connections.c (serv2db): Change type into structure which
9033         also says whether this is a request for data.  Renamed to
9034         servinfo.  All users changed.
9035         (handle_request): Much simpler test whether we should search the cache.
9037         * nscd/connections.c (handle_request): Fix thinko in selinux test
9038         invocation.
9040         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
9041         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
9042         it before getting dl_load_lock and then relock.
9043         (_dl_lookup_symbol_x): Pass flags to add_dependency.
9044         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
9045         case we unlocked the scope.
9046         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
9047         _dl_lookup_symbol_x in case we locked the scope.
9048         (_dl_profile_fixup): Likewise.
9049         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
9050         set DL_LOOKUP_SCOPE_LOCK.
9052 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
9054         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
9055         CFLAGS-getsrvbynpt_r.c.
9056         * nscd/getsrvbynm_r.c: New file.
9057         * nscd/getsrvbypt_r.c: New file.
9058         * nscd/nscd_getserv_r.c: New file.
9059         * nscd/servicescache.c: New file.
9060         * nscd/Makefile (routines): Add nscd_getserv_r.
9061         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
9062         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
9063         CFLAGS-getsrvbypt_r.c.
9064         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
9065         table.  Add entries for services database.
9066         * nscd/connections.c (serv2str): Mark as const.  Add entries for
9067         services database.
9068         (dbs): Add .reset_res and servdb initialization.
9069         (serv2db): Add entries for services database.
9070         (verify_persistent_db): Accept dbnr == servdb.
9071         (invalidate_cache): Rewrite database name recognition to use a table.
9072         Call res_init() if .reset_res is set for database.
9073         (handle_request): Add code to handle services database.
9074         * nscd/gai.c: Don't define __getservbyname_r.
9075         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
9076         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
9077         (serv_response_header): Define.
9078         (struct datahead): Add serv_response_header member.
9079         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
9080         using table.
9081         * nscd/nscd.conf: Add entries for services database.
9082         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
9083         Declare serv_iov_disabled.
9084         Declare addservbyname, readdservbyname, addservbyport, and
9085         readdservbyport.
9086         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
9087         (find_db): Fix error message.
9088         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
9089         __nscd_getservbyname_r, and __nscd_getservbyport_r.
9090         * nscd/selinux.c (perms): Add entries for services database.
9091         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
9092         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
9094         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
9095         * nscd/hstcache.c: Likewise.
9096         * nscd/pwdcache.c: Likewise.
9098         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
9099         computation of keylen.
9101         * include/string.h: Only redefine strndupa if this is really for
9102         libc code.
9104 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
9106         * nscd/nscd_gethst_r.c: Minor cleanups.
9108         * nscd/connections.c (handle_request): Check selinux permissions
9109         for all non-admin commands.
9111         * sysdeps/i386/i486/bits/atomic.h: Define
9112         atomic_compare_and_exchange_val_acq,
9113         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
9114         using __sync_* built-ins for gcc >= 4.1.
9115         * sysdeps/x86_64/bits/atomic.h: Likewise.
9117         [BZ #3840]
9118         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
9119         and .oS.d files.
9121 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
9123         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
9124         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
9125         (do_test): Check errno and exit(0) if ENOSYS.
9127 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
9129         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
9130         thousands separators.
9131         * stdlib/Makefile: Add rules to build and run tst-strtod4.
9132         * stdlib/tst-strtod4.c: New test.
9134         [BZ #3855]
9135         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
9136         hexadecimal digit should accept just the initial 0.
9137         * stdlib/tst-strtod2.c (tests): New variable.
9138         (do_test): Run several tests rather than just one.
9140 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
9142         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
9143         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
9145 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
9147         * io/fts.c: Make sure fts_cur is always valid after return from
9148         fts_read.
9149         Patch by Miloslav Trmac <mitr@redhat.com>.
9151 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
9153         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
9154         (R_MIPS_NUM): Bump by 1.
9156 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
9158         * posix/execvp.c: Include alloca.h.
9159         (allocate_scripts_argv): Renamed to...
9160         (scripts_argv): ... this.  Don't allocate buffer here nor count
9161         arguments.
9162         (execvp): Use alloca if possible.
9163         * posix/Makefile: Add rules to build and run tst-vfork3 test.
9164         * posix/tst-vfork3.c: New test.
9166 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
9168         * string/Makefile (tst-strxfrm2-ENV): Define.
9169         * stdlib/Makefile (tst-strtod3-ENV): Define.
9171 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
9173         * posix/getconf.c: Update copyright year.
9174         * nss/getent.c: Likewise.
9175         * iconv/iconvconfig.c: Likewise.
9176         * iconv/iconv_prog.c: Likewise.
9177         * elf/ldconfig.c: Likewise.
9178         * catgets/gencat.c: Likewise.
9179         * csu/version.c: Likewise.
9180         * elf/ldd.bash.in: Likewise.
9181         * elf/sprof.c (print_version): Likewise.
9182         * locale/programs/locale.c: Likewise.
9183         * locale/programs/localedef.c: Likewise.
9184         * nscd/nscd.c (print_version): Likewise.
9185         * debug/xtrace.sh: Likewise.
9186         * malloc/memusage.sh: Likewise.
9187         * malloc/mtrace.pl: Likewise.
9188         * debug/catchsegv.sh: Likewise.
9190 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
9192         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
9193         attempts.
9195 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
9197         * posix/wordexp.c: Remove some unnecessary tests.
9199 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
9201         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
9202         blacklist the group till after we look it up.
9204 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
9206         * include/atomic.h (atomic_forced_read): New macro.
9208 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
9210         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
9212 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
9214         * nss/getXXbyYY_r.c: Include atomic.h.
9215         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
9216         add atomic_write_barrier () in between.
9218         * stdlib/Makefile (tests): Add tst-makecontext.
9219         * stdlib/tst-makecontext.c: New test.
9221         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
9222         (__makecontext): Don't realign uc_mcontext.uc_regs.
9224 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
9226         * elf/dl-support.c: Include dl-procinfo.h.
9227         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
9228         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
9229         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
9230         Define.
9231         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
9232         hardcoded constants.
9233         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
9234         PPC_PLATFORM_* macros for array designators.
9236 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
9238         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
9239         names to the beginning.
9240         (_dl_powerpc_platforms): Add "power6x".
9241         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9242         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
9243         (_DL_PLATFORMS_COUNT): Increase.
9244         (_dl_string_platform): Handle power6x case.
9245         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
9246         PPC_FEATURE_POWER6_EXT): Define.
9247         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
9249 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
9251         [BZ #3747]
9252         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
9253         [-2^31 .. 2^31) range.
9254         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
9255         targets.
9256         * stdlib/tst-rand48-2.c: New test.
9257         * stdlib/Makefile (tests): Add tst-rand48-2.
9259 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
9261         * misc/tst-pselect.c (do_test): Fix sigblock argument.
9263 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
9265         * misc/tst-pselect.c (do_test): Make sure the helper process is
9266         terminating when the test is aborted.
9268 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
9270         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
9271         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
9272         Handle relatime mount option.
9274         [BZ #2337]
9275         * libio/Makefile (tests): Add tst-setvbuf1.
9276         * libio/tst-setvbuf1.c: New file.
9278 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
9280         [BZ #2337]
9281         * libio/genops.c (__uflow): Fix a typo.
9282         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
9283         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
9284         the narrow buffer size.
9286 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
9288         [BZ #2337]
9289         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
9290         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
9291         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
9292         in _flags.
9293         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
9294         _IO_wstr_finish): Likewise.
9295         * libio/wmemstream.c (open_wmemstream): Likewise.
9296         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
9297         even for wide streams.
9299 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
9301         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
9302         kernel-features.h.
9304 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
9306         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
9307         separators also if no non-zero digits found.
9308         * stdlib/Makefile (tests): Add tst-strtod3.
9310 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
9312         [BZ #3632]
9313         * include/features.h: Fix comment about default value for
9314         _POSIX_C_SOURCE.
9316         [BZ #3664]
9317         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
9318         empty parsed strings.
9319         * stdlib/Makefile (tests): Add tst-strtod2.
9320         * stdlib/tst-strtod2.c: New file.
9322         [BZ #3673]
9323         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
9324         computation.
9325         * stdlib/Makefile (tests): Add tst-atof2.
9326         * stdlib/tst-atof2.c: New file.
9328         [BZ #3674]
9329         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
9330         correctly if removing trailing zero of hex-float.
9331         * stdlib/Makefile (tests): Add tst-atof1.
9332         * stdlib/tst-atof1.c: New file.
9334 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
9336         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
9337         Start searching for next comma at p rather than rest.
9338         * misc/Makefile (tests): Add tst-mntent2.
9339         * misc/tst-mntent2.c: New test.
9341         * misc/getusershell.c (initshells): Check for integer overflows.
9342         Make strings buffer one bigger as fgets always succeeds when second
9343         argument is 1.  Don't use calloc for shells array.  Disallow
9344         / as shell.
9346 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
9348         * malloc/memusage.c: Handle realloc with new size of zero and
9349         non-NULL pointer correctly.
9350         (me): Really write first record twice.
9351         (struct entry): Make format bi-arch safe.
9352         (dest): Write out more realloc statistics.
9353         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
9355 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
9357         * nis/nis_subr.c (nis_getnames): Revert last change.
9359 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
9361         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
9362         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
9363         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
9364         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
9365         ENOTTY.
9366         * io/Makefile: Add rules to build and run tst-ttyname_r test.
9367         * io/tst-ttyname_r.c: New test.
9369 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9371         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
9373 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
9375         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
9376         jump table entries.
9378 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
9380         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
9381         `clone' function to ensure proper unwinding stop of gdb.
9382         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
9384 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
9386         * nscd/nscd.init: Remove obsolete and commented-out -S option
9387         handling.
9389 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
9391         [BZ #3514]
9392         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
9394         [BZ #3515]
9395         * manual/string.texi (strtok): Remove duplicate paragraph.
9397 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9399         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
9400         libgcc not supporting `rflags' unwinding (register # >= 17).
9402 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
9404         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
9405         succeeded.
9407 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
9408             Jakub Jelinek  <jakub@redhat.com>
9409             Jan Kratochvil  <jan.kratochvil@redhat.com>
9411         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
9412         unwind information.
9413         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
9414         'restore_rt' even in the 'signal' directory.
9415         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
9417 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
9419         [BZ #3559]
9420         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
9421         malloc crashed.  Don't allocate memory unnecessarily in each
9422         loop.
9424 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
9426         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
9428 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
9430         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
9432 2006-11-18  Bruno Haible  <bruno@clisp.org>
9434         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
9435         __sysconf only after having tried to call getgroups32.
9437 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
9439         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
9440         addresses for IPv4 queries if they can be mapped.
9442 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
9444         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
9445         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
9446         (signmask): Add .size directive.
9447         (othermask): Add .type directive.
9449 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
9451         * po/nl.po: Update from translation team.
9453         * timezone/zdump.c: Redo fix for BZ #3137.
9455 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
9457         * nss/nss_files/files-alias.c (get_next_alias): Set line back
9458         to first_unused after parsing :include: file.
9460 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
9462         * timezone/africa: Update from tzdata2006o.
9463         * timezone/antarctica: Likewise.
9464         * timezone/asia: Likewise.
9465         * timezone/australasia: Likewise.
9466         * timezone/backward: Likewise.
9467         * timezone/europe: Likewise.
9468         * timezone/iso3166.tab: Likewise.
9469         * timezone/northamerica: Likewise.
9470         * timezone/southamerica: Likewise.
9471         * timezone/zone.tab: Likewise.
9473         * time/tzfile.c (__tzfile_read): Extend to handle new file format
9474         on machines with 64-bit time_t.
9476         * timezone/checktab.awk: Update from tzcode2006o.
9477         * timezone/ialloc.c: Likewise.
9478         * timezone/private.h: Likewise.
9479         * timezone/scheck.c: Likewise.
9480         * timezone/tzfile.h: Likewise.
9481         * timezone/tzselect.ksh: Likewise.
9482         * timezone/zdump.c: Likewise.
9483         * timezone/zic.c: Likewise.
9485         [BZ #3483]
9486         * elf/ldconfig.c (main): Call setlocale and textdomain.
9487         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9489         [BZ #3480]
9490         * manual/argp.texi: Fix typos.
9491         * manual/charset.texi: Likewise.
9492         * manual/errno.texi: Likewise.
9493         * manual/filesys.texi: Likewise.
9494         * manual/lang.texi: Likewise.
9495         * manual/maint.texi: Likewise.
9496         * manual/memory.texi: Likewise.
9497         * manual/message.texi: Likewise.
9498         * manual/resource.texi: Likewise.
9499         * manual/search.texi: Likewise.
9500         * manual/signal.texi: Likewise.
9501         * manual/startup.texi: Likewise.
9502         * manual/stdio.texi: Likewise.
9503         * manual/sysinfo.texi: Likewise.
9504         * manual/syslog.texi: Likewise.
9505         * manual/time.texi: Likewise.
9506         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9508         [BZ #3465]
9509         * sunrpc/clnt_raw.c: Minimal message improvements.
9510         * sunrpc/pm_getmaps.c: Likewise.
9511         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9512         * nis/nis_print_group_entry.c: Likewise.
9513         * locale/programs/repertoire.c: Likewise.
9514         * locale/programs/charmap.c: Likewise.
9515         * malloc/memusage.sh: Likewise.
9516         * elf/dl-deps.c: Likewise.
9517         * locale/programs/ld-collate.c: Likewise.
9518         * libio/vswprintf.c: Likewise.
9519         * malloc/memusagestat.c: Likewise.
9520         * sunrpc/auth_unix.c: Likewise.
9521         * sunrpc/rpc_main.c: Likewise.
9522         * nscd/cache.c: Likewise.
9523         * locale/programs/repertoire.c: Unify output messages.
9524         * locale/programs/charmap.c: Likewise.
9525         * locale/programs/ld-ctype.c: Likewise.
9526         * locale/programs/ld-monetary.c: Likewise.
9527         * locale/programs/ld-numeric.c: Likewise.
9528         * locale/programs/ld-time.c: Likewise.
9529         * elf/ldconfig.c: Likewise.
9530         * nscd/selinux.c: Likewise.
9531         * elf/cache.c: Likewise.
9532         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9534         [BZ #3451]
9535         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
9536         change atomic.
9537         (ceil): Likewise.
9539 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
9541         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
9542         if N is one bigger than return value.
9543         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
9544         and l1 last arguments, if buf is defined, verify the return value
9545         equals to strlen (buf) and verify no byte beyond passed length
9546         is modified.
9548 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
9550         * po/sv.po: Update from translation team.
9552 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
9554         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
9555         noinline attribute.
9557 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
9559         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
9560         noinline attribute.
9562         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
9563         Use __new_sys_siglist instead of _sys_siglist_internal as
9564         second macro argument.
9565         (_old_sys_siglist): Use declare_symbol_alias macro instead of
9566         strong_alias.
9568 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
9570         [BZ #3493]
9571         * posix/unistd.h (sysconf): Remove const attribute.
9573         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
9574         temporary or deprecated addresses.
9575         Patch by Sridhar Samudrala <sri@us.ibm.com>.
9577         * string/Makefile (tests): Add tst-strxfrm2.
9578         * string/tst-strxfrm2.c: New file.
9580 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
9582         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
9583         rather than r->r_brk.
9585 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
9587         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
9588         optimization even if needed > n.
9590         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
9591         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
9592         return false, otherwise return true.
9593         (cache_rpath): Return decompose_rpath return value.
9595 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
9597         * include/libc-symbols.h (declare_symbol): Rename to...
9598         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
9599         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
9600         .size directive.
9601         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
9602         changes.
9603         * sysdeps/gnu/siglist.c: Likewise.
9605 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
9607         * sysdeps/powerpc/fpu/bits/mathinline.h
9608         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
9609         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
9611 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
9613         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9614         Update handling of cache descriptor 0x49 for new models.
9615         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
9616         Likewise.
9618 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
9620         * malloc/memusage.c (dest): Reset not_me back to false after
9621         printing statistics.
9623 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
9625         * configure.in: Work around ld --help change and avoid -z relro
9626         test completely if the architecture doesn't care about security.
9628 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
9630         * po/sv.po: Update from translation team.
9632 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
9634         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
9635         generate compatibility version.
9637 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
9639         * configure.in: Relax -z relro requirement a bit.
9641         * po/sv.po: Update from translation team.
9643 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
9645         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
9646         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
9647         * elf/dl-close.c (_dl_close_worker): Likewise.
9648         * elf/dl-open.c (_dl_open_worker): Likewise.
9649         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
9651 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
9653         * configure.in: Require assembler support for visibility, compiler
9654         support for visibility and aliases, linker support for various -z
9655         options.
9656         * Makeconfig: Remove conditional code which now is unnecessary.
9657         * config.h.in: Likewise.
9658         * config.make.in: Likewise.
9659         * dlfcn/Makefile: Likewise.
9660         * elf/Makefile: Likewise.
9661         * elf/dl-load.c: Likewise.
9662         * elf/rtld.c: Likewise.
9663         * include/libc-symbols.h: Likewise.
9664         * include/stdio.h: Likewise.
9665         * io/Makefile: Likewise.
9666         * io/fstat.c: Likewise.
9667         * io/fstat64.c: Likewise.
9668         * io/fstatat.c: Likewise.
9669         * io/fstatat64.c: Likewise.
9670         * io/lstat.c: Likewise.
9671         * io/lstat64.c: Likewise.
9672         * io/mknod.c: Likewise.
9673         * io/mknodat.c: Likewise.
9674         * io/stat.c: Likewise.
9675         * io/stat64.c: Likewise.
9676         * libio/stdio.c: Likewise.
9677         * nscd/Makefile: Likewise.
9678         * stdlib/Makefile: Likewise.
9679         * stdlib/atexit.c: Likewise.
9680         * sysdeps/generic/ldsodefs.h: Likewise.
9681         * sysdeps/i386/dl-machine.h: Likewise.
9682         * sysdeps/i386/sysdep.h: Likewise.
9683         * sysdeps/i386/i686/memcmp.S: Likewise.
9684         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9685         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9686         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
9688         * Makerules: USE_TLS support is now default.
9689         * tls.make.c: Likewise.
9690         * csu/Versions: Likewise.
9691         * csu/libc-start.c: Likewise.
9692         * csu/libc-tls.c: Likewise.
9693         * csu/version.c: Likewise.
9694         * dlfcn/dlinfo.c: Likewise.
9695         * elf/dl-addr.c: Likewise.
9696         * elf/dl-cache.c: Likewise.
9697         * elf/dl-close.c: Likewise.
9698         * elf/dl-iteratephdr.c: Likewise.
9699         * elf/dl-load.c: Likewise.
9700         * elf/dl-lookup.c: Likewise.
9701         * elf/dl-object.c: Likewise.
9702         * elf/dl-open.c: Likewise.
9703         * elf/dl-reloc.c: Likewise.
9704         * elf/dl-support.c: Likewise.
9705         * elf/dl-sym.c: Likewise.
9706         * elf/dl-sysdep.c: Likewise.
9707         * elf/dl-tls.c: Likewise.
9708         * elf/ldconfig.c: Likewise.
9709         * elf/rtld.c: Likewise.
9710         * elf/tst-tls-dlinfo.c: Likewise.
9711         * elf/tst-tls1.c: Likewise.
9712         * elf/tst-tls10.h: Likewise.
9713         * elf/tst-tls14.c: Likewise.
9714         * elf/tst-tls2.c: Likewise.
9715         * elf/tst-tls3.c: Likewise.
9716         * elf/tst-tls4.c: Likewise.
9717         * elf/tst-tls5.c: Likewise.
9718         * elf/tst-tls6.c: Likewise.
9719         * elf/tst-tls7.c: Likewise.
9720         * elf/tst-tls8.c: Likewise.
9721         * elf/tst-tls9.c: Likewise.
9722         * elf/tst-tlsmod1.c: Likewise.
9723         * elf/tst-tlsmod13.c: Likewise.
9724         * elf/tst-tlsmod13a.c: Likewise.
9725         * elf/tst-tlsmod14a.c: Likewise.
9726         * elf/tst-tlsmod2.c: Likewise.
9727         * elf/tst-tlsmod3.c: Likewise.
9728         * elf/tst-tlsmod4.c: Likewise.
9729         * elf/tst-tlsmod5.c: Likewise.
9730         * elf/tst-tlsmod6.c: Likewise.
9731         * include/errno.h: Likewise.
9732         * include/link.h: Likewise.
9733         * include/tls.h: Likewise.
9734         * locale/global-locale.c: Likewise.
9735         * locale/localeinfo.h: Likewise.
9736         * malloc/arena.c: Likewise.
9737         * malloc/hooks.c: Likewise.
9738         * malloc/malloc.c: Likewise.
9739         * resolv/Versions: Likewise.
9740         * sysdeps/alpha/dl-machine.h: Likewise.
9741         * sysdeps/alpha/libc-tls.c: Likewise.
9742         * sysdeps/generic/ldsodefs.h: Likewise.
9743         * sysdeps/generic/tls.h: Likewise.
9744         * sysdeps/i386/dl-machine.h: Likewise.
9745         * sysdeps/ia64/dl-machine.h: Likewise.
9746         * sysdeps/ia64/libc-tls.c: Likewise.
9747         * sysdeps/mach/hurd/fork.c: Likewise.
9748         * sysdeps/mach/hurd/i386/tls.h: Likewise.
9749         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
9750         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
9751         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
9752         * sysdeps/s390/libc-tls.c: Likewise.
9753         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9754         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9755         * sysdeps/sh/dl-machine.h: Likewise.
9756         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9757         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9758         * sysdeps/x86_64/dl-machine.h: Likewise.
9760         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
9761         split out locking and parameter checking.
9762         (_dl_close): Call _dl_close_worker after locking and checking.
9763         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
9764         _dl_close.
9765         * elf/Makefile: Add rules to build and run tst-thrlock.
9766         * elf/tst-thrlock.c:  New file.
9768         [BZ #3426]
9769         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
9770         reality.
9772         [BZ #3429]
9773         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
9774         we are sure we do not need it anymore for _dl_close.  Also move
9775         the asserts inside the lock region.
9776         Patch mostly by Suzuki <suzuki@in.ibm.com>.
9778 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
9780         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
9781         argument.
9782         (_dl_lookup_symbol_x): Adjust caller.
9784         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
9785         _ns_global_scope.
9786         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
9788         * elf/dl-libc.c: Revert l_scope name changes.
9789         * elf/dl-load.c: Likewise.
9790         * elf/dl-object.c: Likewise.
9791         * elf/rtld.c: Likewise.
9792         * elf/dl-close.c (_dl_close): Likewise.
9793         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
9794         always use __rtld_mrlock_{change,done}.  Always free old scope list
9795         here if not l_scope_mem.
9796         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
9797         change.  Never free scope list here.  Just __rtld_mrlock_lock before
9798         the lookup and __rtld_mrlock_unlock it after the lookup.
9799         * elf/dl-sym.c: Likewise.
9800         * include/link.h (struct r_scoperec): Remove.
9801         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
9802         with l_scope_mem and l_scoperec_lock with l_scope_lock.
9804 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
9806         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
9808 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
9810         * configure.in: Disable building profile libraries by default.
9812 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9814         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
9815         as signed longs, check for x_base + pos overflow.
9816         * sunrpc/Makefile (tests): Add tst-xdrmem2.
9817         * sunrpc/tst-xdrmem2.c: New test.
9819 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
9821         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
9822         _dl_lookup_symbol_x code.
9824 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9826         * elf/dl-runtime.c: Include sysdep-cancel.h.
9827         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
9828         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
9829         instead of catomic_* macros.
9830         * elf/dl-sym.c: Include sysdep-cancel.h.
9831         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
9832         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
9833         * elf/dl-close.c: Include sysdep-cancel.h.
9834         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
9835         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
9836         * elf/dl-open.c: Include sysdep-cancel.h.
9837         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
9838         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
9840 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9842         [BZ #3313]
9843         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
9844         fastbin rather than end of fastbin array.
9846 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
9848         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
9849         body macro.
9850         * sysdeps/x86_64/bits/atomic.h
9851         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
9852         (catomic_decrement): Use correct body macro.
9854 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9856         * include/atomic.h: Add a unique prefix to all local variables
9857         in macros.
9858         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
9860 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
9862         [BZ #3369]
9863         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
9864         and 7.
9866 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
9868         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
9870 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
9872         [BZ #3313]
9873         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
9874         determine highest fast bin to consolidate, always look into all of
9875         them.
9876         (do_check_malloc_state): Only require for empty bins for large
9877         sizes in main arena.
9879         * libio/stdio.h: Add more __wur attributes.
9881         * elf/dl-minimal.c (realloc): Optimize last patch.
9883 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
9885         [BZ #3352]
9886         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
9887         and use memcpy() if it does.
9889 2006-11-12  Andreas Jaeger  <aj@suse.de>
9891         [BZ #2510]
9892         * manual/search.texi (Hash Search Function): Clarify.
9893         (Array Search Function): Clarify.
9895 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
9897         [BZ #2830]
9898         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
9899         shifting.
9900         * math/atest-exp2.c (read_mpn_hex): Likewise.
9901         * math/atest-sincos.c (main): Likewise.
9903 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
9905         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
9906         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
9907         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
9908         version GLIBC_2.6.
9909         * Versions.def: Add GLIBC_2.6 for libc.
9911         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
9913         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
9915 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
9917         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
9919         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
9921         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
9922         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
9924 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
9926         * include/atomic.c: Define catomic_* operations.
9927         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
9928         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
9929         * malloc/memusage.c: Likewise.
9930         * gmon/mcount.c: Likewise.
9931         * elf/dl-close.c: Likewise.
9932         * elf/dl-open.c: Likewise.
9933         * elf/dl-profile.c: Likewise.
9934         * elf/dl-sym.c: Likewise.
9935         * elf/dl-runtime.c: Likewise.
9936         * elf/dl-fptr.c: Likewise.
9937         * resolv/res_libc.c: Likewise.
9939 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
9941         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
9942         components which lack them.
9944         * nis/nis_subr.c (nis_getnames): Make sure that we always return
9945         at least one entry consisting of the parameter concatenated with
9946         the domain.
9948 2006-10-10  Roland McGrath  <roland@frob.com>
9950         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
9951         * sysdeps/mach/hurd/futimes.c: Likewise.
9952         * sysdeps/mach/hurd/lutimes.c: Likewise.
9954 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
9955             Jakub Jelinek  <jakub@redhat.com>
9957         Implement reference counting of scope records.
9958         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
9959         from the list in objects which remain.  Always allocate new scope
9960         record.
9961         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
9962         don't resize, allocate a new one.
9963         * elf/dl-runtime.c: Update reference counters before using a scope
9964         array.
9965         * elf/dl-sym.c: Likewise.
9966         * elf/dl-libc.c: Adjust for l_scope name change.
9967         * elf/dl-load.c: Likewise.
9968         * elf/dl-object.c: Likewise.
9969         * elf/rtld.c: Likewise.
9970         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
9971         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
9972         Add l_scoperec_lock.
9973         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
9974         * sysdeps/generic/rtld-lowlevel.h: New file.
9976         * include/atomic.h: Rename atomic_and to atomic_and_val and
9977         atomic_or to atomic_or_val.  Define new macros atomic_and and
9978         atomic_or which do not return values.
9979         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
9980         Various cleanups.
9981         * sysdeps/i386/i486/bits/atomic.h: Likewise.
9983         * po/sv.po: Update from translation team.
9985 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
9987         * Versions.def: Add GLIBC_2.6 to libpthread.
9989         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
9990         (versioned_symbol): Likewise.
9991         (compat_symbol): Likewise.
9993         * po/tr.po: Update from translation team.
9995 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
9997         * nis/Banner: Removed.  It's been integral part forever and the
9998         author info is incomplete anyway.
9999         * libio/Banner: Likewise.
10001         * nis/nis_table.c (nis_list): If __follow_path fails in the new
10002         code, make sure the nis_freeresult call doesn't crash and that the
10003         result is reported correctly.
10005 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
10007         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
10008         when callback is NULL.
10010         * nis/Versions (libnss_nisplus): Add
10011         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
10012         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
10013         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
10014         _nss_create_tablename): Rename to...
10015         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
10016         ... these.  No longer static.
10017         (internal_setgrent): Adjust users.
10018         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
10019         Don't use locking around _nss_grp_create_tablename call.
10020         * nis/nss_nisplus/nisplus-initgroups.c: New file.
10022 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10024         * version.h (VERSION): Bump to 2.5.90 for new development tree.
10026 2006-10-06  Andreas Jaeger  <aj@suse.de>
10028         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
10030 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10032         * po/pl.po: Update from translation team.
10034         * nscd/nscd.c (main): Fix typo in message.
10035         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
10037 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
10039         [BZ #3291]
10040         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
10041         errno.h, signal.h, unistd.h and sysdep-cancel.h.
10042         (__sigprocmask): Define.
10044 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
10046         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
10047         used.
10049 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
10051         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
10052         in oldtotal and newtotal calculation.
10053         * nscd/nscd-client.h (struct mapped_database): Add datasize
10054         field.
10055         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
10056         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
10057         increased.
10058         (__nscd_cache_search): Add checks to make sure we never reference
10059         data beyond the current mapping.
10061 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
10063         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
10064         variables const to avoid compiler warnings.
10066         * io/fts.c (fts_close): Remove redundant checks.
10067         (fts_build): Likewise.
10068         (fts_palloc): Likewise.
10070         * manual/message.texi (Advanced gettext functions,
10071         Using gettextized software): Fix typos.
10073 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
10075         * posix/glob.c (glob_in_dir): Add some comments and asserts to
10076         explain why there are no leaks.
10078 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
10080         * libio/wmemstream.c: Include <wchar.h>.
10081         * libio/bug-wmemstream1.c: Likewise.
10082         * libio/tst-wmemstream1.c: Likewise.
10083         * libio/tst-wmemstream2.c: Likewise.
10085         * version.h (RELEASE): Bump to 2.5.
10086         * README: Regenerated.
10088         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
10090         [BZ #3273]
10091         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
10092         found no group members.
10093         Patch by Petr Baudis.
10095 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
10097         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
10098         assert bootstrap_map.l_tls_modid is zero.
10099         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
10100         if USE___THREAD.
10102 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
10104         * libio/stdio.h: Move open_wmemstream prototype to ...
10105         * wcsmbs/wchar.h: ... here.
10107 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
10109         [BZ #3252]
10110         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
10111         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
10112         __{,l}chown to handle the rest.
10113         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
10114         fchownat syscall and __ASSUME_32BITUIDS case inline, call
10115         __{,l}chown to handle the rest.
10116         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
10117         i386/fchownat.c.
10118         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
10119         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
10121         [BZ #3253]
10122         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10123         time, rather allocate increasingly bigger arrays of pointers, if
10124         possible with alloca, if too large with malloc.
10126 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
10128         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
10130         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
10132 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
10134         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
10135         home addresses.
10136         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
10137         IFA_F_HOMEADDRESS flag for interfaces.
10138         * include/ifaddrs.h (struct in6addrinfo): Define
10139         in6ai_homeaddress.
10141 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
10143         [BZ #3225]
10144         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
10145         PTR_DEMANGLE3): Define.
10146         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
10147         PTR_DEMANGLE3): Likewise.
10148         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
10149         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
10150         Likewise.
10151         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
10153 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
10155         * po/libc.pot: Regenerated.
10156         * po/be.po: Updated.
10157         * po/ca.po: Likewise.
10158         * po/cs.po: Likewise.
10159         * po/da.po: Likewise.
10160         * po/de.po: Likewise.
10161         * po/el.po: Likewise.
10162         * po/en_GB.po: Likewise.
10163         * po/es.po: Likewise.
10164         * po/fi.po: Likewise.
10165         * po/fr.po: Likewise.
10166         * po/gl.po: Likewise.
10167         * po/hr.po: Likewise.
10168         * po/hu.po: Likewise.
10169         * po/ja.po: Likewise.
10170         * po/ko.po: Likewise.
10171         * po/nb.po: Likewise.
10172         * po/nl.po: Likewise.
10173         * po/pl.po: Likewise.
10174         * po/pt_BR.po: Likewise.
10175         * po/ru.po: Likewise.
10176         * po/rw.po: Likewise.
10177         * po/sk.po: Likewise.
10178         * po/sv.po: Likewise.
10179         * po/tr.po: Likewise.
10180         * po/zh_CN.po: Likewise.
10181         * po/zh_TW.po: Likewise.
10183         [BZ #3137]
10184         * iconv/iconv_prog.c (main): Fix spelling in error message.
10185         * iconv/iconvconfig.c (main): Likewise.
10186         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
10187         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
10188         * locale/programs/localedef.c (main): Likewise.
10189         * locale/programs/repertoire.c (repertoire_read): Likewise.
10190         * timezone/zdump.c (main): Likewise.
10191         * nscd/connections.c (handle_request): Fix spelling in log message.
10192         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
10194 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
10196         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
10197         interfaces.
10199 2006-09-20  Andreas Jaeger  <aj@suse.de>
10201         * math/libm-test.inc (lrint_test_upward): Fix typo.
10203 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
10205         [BZ #2592]
10206         * math/libm-test.inc (lrint_test_tonearest): New function.
10207         (lrint_test_towardzero): New function.
10208         (lrint_test_downward): New function.
10209         (lrint_test_upward): New function.
10210         (main): Run these new tests.
10211         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
10212         of values near to 0.
10213         (two52): Use double not long double.
10214         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10215         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10216         (two23): Use float not double.
10217         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10218         (two23): Use float not double.
10219         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10220         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10221         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10222         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10224 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10226         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
10227         Cast sp to unsigned long to avoid compiler warning.
10228         Use __makecontext_ret function instead of a trampoline on the stack.
10229         (__makecontext_ret): New function.
10230         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
10232 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
10234         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
10235         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
10236         bits.
10238 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
10240         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
10241         sure no reference to the unloaded map's search list remains in the
10242         dependency's scope.
10244 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
10246         * elf/Makefile: Add rules to build and run unload7 test.
10247         * elf/unload7.c: New test.
10248         * elf/unload7mod1.c: New file.
10249         * elf/unload7mod2.c: New file.
10251 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
10253         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
10254         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
10255         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10256         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
10257         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10258         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
10259         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10260         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
10261         PTRACE_GETEVENTMSG): Likewise.
10262         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
10263         values.
10265 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
10267         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
10268         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10269         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
10270         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
10272 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
10274         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
10275         write '\0' to the fd.
10276         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
10277         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
10278         Change regs to unsigned long pointer from unsigned int, fix fscr
10279         offset.
10281 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
10283         * io/Makefile (CFLAGS-fstatat.c): Set.
10284         (CFLAGS-fstatat64.c): Likewise.
10285         (CFLAGS-mknodat.c): Likewise.
10287         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
10288         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10289         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
10290         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
10292 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
10293             Steven Munroe  <sjmunroe@us.ibm.com>
10295         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
10296         names to the beginning.  Rename "cell" to "cellbe".
10297         (_dl_powerpc_platforms): New.
10298         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10299         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
10300         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
10301         (_DL_HWCAP_PLATFORM): Define to new mask.
10302         (_dl_platform_string, _dl_string_platform): New functions.
10303         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
10304         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
10306 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
10308         [BZ #2526]
10309         * README.libm: Fix a thinko in sqrt algorithm description.
10311         [BZ #3143]
10312         * manual/string.texi (argz_delete): Fix prototype.
10313         Patch by <alpt@freaknet.org>.
10315 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
10317         [BZ #3138]
10318         * io/test-lfs.c (do_prepare): Give name_len type size_t.
10319         * io/tst-fcntl.c (do_prepare): Likewise.
10320         * posix/tst-exec.c (do_prepare): Likewise.
10321         * posix/tst-preadwrite.c (do_prepare): Likewise.
10322         * posix/tst-spawn.c (do_prepare): Likewise.
10323         * posix/tst-truncate.c (do_prepare): Likewise.
10324         * rt/tst-aio.c (do_prepare): Likewise.
10325         * rt/tst-aio64.c (do_prepare): Likewise.
10326         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
10327         size_t.
10329 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
10331         [BZ #2821]
10332         * time/mktime.c (guess_time_tm): Fix overflow detection.
10333         * time/Makefile (tests): Add bug-mktime1.
10334         * time/bug-mktime1.c: New file.
10336         [BZ #3189, #3188]
10337         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
10338         (mremap): Likewise.
10340 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
10342         [BZ #1006]
10343         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
10344         Ensure relocation doesn't clobber any bits outside of the
10345         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
10346         R_SPARC_HI22 and R_SPARC_H44.
10348         [BZ #2775]
10349         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
10350         (long) (MINSIZE + nb - old_size) is positive.
10352         * malloc/arena.c (grow_heap): When growing bail even if new_size
10353         is negative.
10355         [BZ #3155]
10356         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
10357         stack below r1.
10359 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
10361         * posix/regex_internal.c (re_string_reconstruct): Handle
10362         offset < pstr->valid_raw_len && pstr->offsets_needed case.
10363         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
10364         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10365         re_string_context_at.
10366         * posix/Makefile: Add rules to build and run bug-regex26 test.
10367         * posix/bug-regex26.c: New test.
10369         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
10370         rather than col_sym_free.  Move seqp declaration earlier.
10372         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
10374 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
10376         * nscd/initgrcache.c (addinitgroupsX): Move any_success
10377         decl before first goto out.
10379 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
10381         * Makerules (shlib.lds): If have-hash-style, put .hash section
10382         at the end of the RO segment.
10384 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
10386         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
10387         style hash table format is used.
10389 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
10391         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
10392         randomization rather than before.
10393         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
10395 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
10397         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
10399         * malloc/malloc.c (_int_malloc): Use full list insert and not
10400         shortcut which assumes the list is empty for large requests
10401         too.
10403         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
10405 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
10407         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
10408         and offout arguments to the prototype.
10409         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
10410         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
10411         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
10412         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
10413         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
10414         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
10415         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
10416         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
10418 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
10420         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
10422         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
10423         dlopen parameters.
10425 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
10427         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
10428         only if herrno is NETDB_INTERNAL.  Handle errors other than
10429         ERANGE outside of the loops, handle TRY_AGAIN.
10431         * locale/programs/ld-ctype.c (translit_flatten): Issue error
10432         if other's ctype category was missing.
10433         * locale/programs/ld-collate.c (collate_read): Return if
10434         copy_locale's collate category is missing.
10436 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
10438         [BZ #2684]
10439         * malloc/malloc.c (public_rEALLOc): Try harder by using other
10440         arenas if allocation failed.
10441         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
10443 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
10445         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
10446         waste bins[0..1].
10447         (malloc_state): Reduce bins size by 2.
10448         (_int_malloc): Fix test for large enough buffer for early termination.
10449         When no unsorted block matches perfectly and an exiting block has
10450         to be split, use full list insert and not shortcut which assumes
10451         the list is empty.
10453         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
10454         failure.
10456 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
10458         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
10459         do anything.
10461         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
10462         symbol require exact match (these are PLTs).
10463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10464         (_dl_ppc64_addr_sym_match): Likewise.
10466         [BZ #2683]
10467         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
10468         If symbol has a value use it.
10469         * elf/tst-dladdr1.c: New file.
10470         * elf/Makefile: Add rules to build and run tst-addr1.
10472 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
10474         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
10475         keeps failing and heap growth or new heap creation isn't
10476         successful either.
10477         * malloc/tst-malloc.c (main): Add new tests.
10479 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
10481         [BZ #2734]
10482         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
10483         as in the x86-64 code to use bswap.
10485 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
10487         [BZ #2680]
10488         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
10489         __USE_UNIX98.
10490         * posix/bits/unistd.h: Likewise.
10492 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
10494         [BZ #2751]
10495         * string/strchr.c: Add cast to avoid warning.
10497 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
10499         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
10500         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
10501         limit is needed to avoid the exploding of the address space
10502         requirement for secondary heaps.
10503         * malloc/arena.c (HEAP_MAX_SIZE): Define using
10504         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
10506 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
10508         [BZ #3018]
10509         * Makerules (depfiles): Handle extra-test-objs the same as
10510         extra-objs.
10511         (common-mostlyclean): Likewise.
10512         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
10513         instead.
10514         * elf/Makefile (extra-objs): Likewise.
10515         * stdlib/Makefile (extra-objs): Likewise.
10517 2006-08-14  Eric Blake  <ebb9@byu.net>
10519         [BZ #3044]
10520         * misc/error.h: Assume C89 or better.
10521         * misc/error.c: Likewise.
10523 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
10525         [BZ #3040]
10526         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
10527         __ASSUME_ATFCTS is defined.
10529 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
10531         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
10532         to sort in each call.
10534         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
10535         is empty simply return and use next service.
10536         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
10538         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
10539         tells us when not finding a charmap file is an error.
10540         * locale/programs/charmap.h: Adjust charmap_read prototype.
10541         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
10542         cannot find a charmap.
10543         * locale/programs/localedef.c (main): Adjust charmap_read call.
10545 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
10547         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
10548         sysdeps/posix/pause.c implementation instead.
10550 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
10552         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
10553         to EPERM.
10555 2006-08-13  Andreas Schwab  <schwab@suse.de>
10557         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
10558         Don't clobber caller's LRSAVE.
10559         (_dl_prof_resolve): Likewise.
10561 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
10563         [BZ #1996]
10564         * libio/memstream.c (open_memstream): Allocate initial buffer with
10565         calloc.
10566         * libio/wmemstream.c (open_wmemstream): Likewise.
10567         * libio/strops.c: Pretty printing.
10568         (_IO_str_overflow): Clear uninitialized part of the new buffer.
10569         (enlarge_userbuf): New function.
10570         (_IO_str_seekoff): Call it if seek position is larger than current
10571         buffer.
10572         * libio/wstrops.c: Likewise.
10573         * libio/vasprintf.c: Add comment as to why we do not have to use
10574         calloc instead of malloc to allocate initial buffer.
10575         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
10576         * libio/bug-memstream1.c: New file.
10577         * libio/bug-wmemstream1.c: New file.
10579 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
10581         * libio/wstrops.c: Remove dead macro definitions and comments.
10582         * libio/strops.c: Likewise.
10584         [BZ #2764]
10585         * login/utmpname.c (__utmpname): Remove unnecessary test.
10587 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
10589         [BZ #2832]
10590         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
10591         0s from integers.
10593 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
10595         [BZ #2987]
10596         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
10597         for CPU clocks.
10598         * sysdeps/unix/clock_settime.c: Add support for platform-specific
10599         setting of CPU clocks.
10601 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10603         [BZ #2841]
10604         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
10605         since C99 requires the result to promote to 'int' when uint_least8_t
10606         and uint_least16_t promote to 'int'.
10608 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
10610         [BZ #3013]
10611         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
10612         lenght of one output field, correct bitmask creation.
10613         * locale/programs/ld-time.c: Add alignment.
10615         [BZ #2997]
10616         * misc/error.c: Add space between program name and message if file
10617         name is missing.
10619 2006-08-03  Eric Blake  <ebb9@byu.net>
10621         [BZ #2998]
10622         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
10624 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
10626         * malloc/memusagestat.c: Silence warnings.
10628         * malloc/malloc.c: Dynamically size mmap treshold if the program
10629         frees mmaped blocks.
10630         Patch by Valerie Henson and Arjan van de Ven.
10632 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
10634         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
10635         __USE_GNU.
10637         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
10638         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
10639         (DEF): Don't put the var into .gnu.linkonce.r.* section.
10640         Only provide var definitions in strtol_l (or for *ull*
10641         in strtoll_l).
10643         * stdio-common/bug16.c (tests): New array.
10644         (do_tests): Allow the first hexadecimal digit
10645         to be 1, 2, 4 or 8.  Do 3 additional tests.
10647         * sysdeps/s390/fpu/libm-test-ulps: Update.
10649         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
10650         fchownat syscall if available.
10651         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
10652         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
10653         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
10655 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
10657         * nis/nis_xdr.c: Avoid some function calls.
10659 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
10660             Ulrich Drepper  <drepper@redhat.com>
10662         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
10663         short cut if only one name component is stripped away.
10665 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
10667         * nis/nis_call.c: Minor cleanups throughout.
10668         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
10669         (first_shoot): Add search_parent_first parameter.  Only if it is set
10670         search parent server first.
10671         If directory for table found through cold start cache is not the same
10672         as referenced in the cache, don't use it.
10673         (__nisfind_server): Take additional parameter.  Pass it on to
10674         first_shoot.
10675         (__prepare_niscall): Adjust __nisfind_server call.
10676         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
10677         * nis/nis_table.c: Adjust __nisfind_server call.
10678         * nis/nis_lookup.c: Likewise.
10679         (nis_lookup): Don't loop endlessly if name is reduced to ".".
10681 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
10683         [BZ #2182]
10684         * math/s_cacosh.c: Return values from positive branch.
10685         * math/s_cacoshf.c: Likewise.
10686         * math/s_cacoshl.c: Likewise.
10688         [BZ #2883]
10689         * sysvipc/sys/msg.h: Change return value to ssize_t.
10690         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
10691         * sysvipc/msgrcv.c: Likewise.
10692         * include/sys/msg.h: Likewise.
10694         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
10695         test introduced in patch for bz #661.
10696         (getgrouplist): Simplify code a bit.  Don't allocate one additional
10697         element for NEWGROUPS.
10699         [BZ #2908]
10700         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
10701         'f', use '1' as leading digit not '\1'.
10702         * stdio-common/Makefile (tests): Add bug16.
10703         * stdio-common/bug16.c: New file.
10705         [BZ #2914]
10706         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
10707         and don't try to open it.  The patch introducing the macro
10708         contained a bug and used the same file name as the new file
10709         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
10710         this out completely.
10712         [BZ #2926]
10713         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
10714         Patch by Jerry James <Jerry.James@usu.edu>.
10716         * rt/Makefile (tests): Add tst-clock2.
10717         * rt/tst-clock2.c: New file.
10719         [BZ #2978]
10720         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
10721         function and its parameters and pass it to new thread.
10722         (__gai_notify): Add support for alternative waiting for completion.
10723         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
10724         waiting for completion.
10725         * resolv/getaddrinfo_a.c: Likewise.
10726         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
10727         waiting for completion is used.
10728         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
10729         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
10730         * resolv/gai_error.c: Likewise.
10731         * resolv/gai_sigqueue.c: Likewise.
10733 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
10735         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
10736         errno to EBADF and return MACH_PORT_NULL.
10738 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
10740         [BZ #2980]
10741         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
10743 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
10745         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
10746         walk them instead of the symbol table.
10748 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
10750         [BZ #2098]
10751         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
10752         status of NSS calls, not the number of returned entries.
10754         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
10755         request_key, keyctl.
10757 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10759         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
10761 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
10763         * elf/tst-auditmod1.c: Fix typo in #error.
10765 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10767         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
10769         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
10771 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
10773         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
10774         that the directory is empty even on non-POSIX filesystems.
10776 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10778         * elf/dl-open.c (dl_open_worker): Add branch prediction.
10780         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
10781         the backend NSS module.  If backend setgrent call failed, don't have
10782         internal_setgrent fail.  Just remember this until it is needed.
10783         * nis/nss_compat/compat-pwd.c: Likewise.
10784         * nis/nss_compat/compat-spwd.c: Likewise.
10786 2006-07-30  Roland McGrath  <roland@redhat.com>
10788         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
10789         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
10790         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
10791         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
10793         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
10794         (nanosleep_not_cancel): New macro.
10795         (sigsuspend_not_cancel): new macro.
10796         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
10797         (do_sigsuspend): Define as inline.
10798         (__sigsuspend): Always use do_sigsuspend.
10799         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
10800         * include/signal.h: Declare __sigsuspend_nocancel.
10801         * sysdeps/posix/pause.c
10802         [! NO_CANCELLATION] (__pause_nocancel): New function.
10804         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
10805         * include/time.h (__nanosleep_nocancel): Likewise.
10807 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
10809         * locale/programs/localedef.c (add_to_readlist): Rename local
10810         variables to avoid confusion.
10812         * locale/programs/charmap.c (charmap_read): Emit error message if
10813         charmap couldn't be found or read.
10815 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
10817         * sysdeps/unix/sysv/linux/kernel-features.h: Define
10818         __ASSUME_FUTEX_LOCK_PI.
10819         * include/time.h: Declare __nanosleep_nocancel.
10820         * include/unistd.h: Declare __pause_nocancel.
10822         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
10823         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
10824         get the __stack_chk_fail_local definition when it's needed.
10826 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
10828         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
10829         * dlfcn/bug-atexit3.c: New file.
10830         * dlfcn/bug-atexit3-lib.cc: New file.
10832         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
10833         used when the namespace is not the base namespace.
10835 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
10837         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
10838         (__new_exitfn): Bump it in every successful call.
10839         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
10840         more exit handlers, call them right away.
10841         * stdlib/exit.h: Declare __new_exitfn_called.
10843 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
10845         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
10846         calling registered handler.
10848         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
10849         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10850         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10851         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10852         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10853         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10854         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10855         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10857 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
10859         * elf/dl-lookup.c (dl_new_hash): New functions.
10860         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
10861         value here.  Compute new-style hash value.  Pass new hash value
10862         and reference to variable with the old value to do_lookup_x.
10863         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
10864         old-style hash table.
10865         (_dl_debug_bindings): Pass new hash value and reference to variable
10866         with the old value to do_lookup_x.
10867         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
10868         new-style hash value and change old-style hash value parameter to
10869         be a reference.  Reoganize functions to determine whether
10870         new-style hash table is available.  Only fall back on old-style
10871         table.  If old-style hash value is needed, compute it here.
10872         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
10873         entry.
10874         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
10875         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
10876         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
10877         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
10878         * Makeconfig: If linker supports --hash-style option add it to all
10879         linker command lines to build DSOs.
10880         * config.make.in: Define have-hash-style.
10881         * configure.in: Test whether linker supports --hash-style option.
10883         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
10884         * sysdeps/generic/ldsodefs.h: Adjust prototype.
10886 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
10888         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
10889         auditing.
10891         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
10892         RPATH of main map twice.
10894 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
10896         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
10897         look further, return original strings.
10898         (_nl_find_msg): Do not return found translation if the conversion
10899         failed.  Either signal the string is unusable or that something went
10900         wrong and the original should be used.
10902 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
10904         * string/_strerror.c (__strerror_r): Add __builtin_expect.
10906 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
10908         [BZ #2766]
10909         * misc/insremque.c (insque): Handle prev == NULL.
10910         * misc/Makefile (tests): Add tst-insremque.
10911         * misc/tst-insremque.c: New test.
10913 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
10915         [BZ #2792]
10916         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
10917         conflict with DL_DST_REQUIRED.
10919 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
10921         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
10922         match what Solaris does.
10924 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
10926         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
10927         local_setegid instead of seteuid and setegid.
10928         * sysdeps/generic/local-setxid.h: New file.
10929         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
10931         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
10933         * string/Makefile (tests): Add bug-envz1.
10934         * string/bug-envz1.c: New file.
10936 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
10938         * posix/regex_internal.c (re_string_skip_chars): If no character has
10939         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
10940         to the byte which couldn't be converted.
10941         (re_string_reconstruct): Don't clear valid_raw_len before calling
10942         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
10943         tip_context using re_string_context_at.
10944         * posix/Makefile: Add rules to build and run bug-regex25 test.
10945         * posix/bug-regex25.c: New test.
10947 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
10949         [BZ #2703]
10950         * string/envz.c (envz_strip): Correct erroneously reversed src
10951         and dest parameters to memmove() invocation.
10953 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
10955         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
10956         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
10957         to make sure the database has been already invalidated.
10958         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
10959         after the cache has been invalidated.  Use pthread_mutex_lock rather
10960         than pthread_mutex_trylock if fd != -1.
10961         * nscd/connections.c (invalidate_cache): Add fd argument, write
10962         response to fd if not calling prune_cache, pass fd to prune_cache.
10963         (handle_request): Adjust invalidate_cache caller.
10964         (nscd_run): Pass -1 as fd to prune_cache.
10966 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
10968         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
10969         the correct place.
10971 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
10973         * nscd/nscd.h (struct database_dyn): Add prunelock field.
10974         * nscd/cache.c (prune_cache): Take prunelock before starting the
10975         work.  Just return in case it is already taken.
10976         * nscd/connections.c (dbs): Initialize .prunelock.
10978 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
10980         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
10981         copying.  No need to allocate new array for group members.  Just
10982         move the pointers and update the size.
10984         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
10985         Avoid memory leak in case realloc fails.  Simplification for
10986         better code generation.
10988         Avoid deprecation warning because of libc_hidden_proto for
10989         inet6_option_alloc.
10990         * inet/inet6_option.c (option_alloc): Renamed from
10991         inet6_option_alloc.  Made static.
10992         (inet6_option_alloc): Now a simple wrapper around option_alloc.
10993         (inet6_option_append): Call option_alloc.
10994         * include/netinet/in.h: Remove libc_hidden_proto for
10995         inet6_option_alloc.
10997         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
10998         for cleanup when cb!=NULL [Coverity CID 233].
11000 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
11002         [BZ #2693]
11003         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
11004         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
11005         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
11006         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
11007         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
11008         and inet6_rth_getaddr.
11009         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
11010         array.
11011         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
11012         Mark inet6_option_* interfaces as deprecated.
11013         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
11014         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
11015         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
11016         inet6_rth_segments, and inet6_rth_getaddr.
11017         * inet/inet6_opt.c: New file.
11018         * inet/inet6_rth.c: New file.
11020         * inet/netinet/icmp6.h: Pretty printing.
11022         [BZ #2683]
11023         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
11025 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
11027         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
11028         doing it all here.  When server does not know the answer do not
11029         fail immediate, try parent first.
11031         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
11032         overflow test.
11034 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
11036         * nis/nis_call.c (__prepare_niscall): New function.  Split out
11037         from __do_niscall.
11038         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
11039         and exported.
11040         (__follow_path): New function.  Split out from nis_list.
11041         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
11042         _xdr_nis_result.
11043         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
11044         _xdr_nis_result.
11045         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
11046         and __follow_path.
11047         * nis/Versions: Export __prepare_niscall, __create_ib_request,
11048         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
11049         from libnsl for version GLIBC_PRIVATE.
11050         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
11051         Remove entry parameter from _nss_nisplus_parse_pwent and
11052         _nss_nisplus_parse_grent.
11053         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11054         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
11055         again.  Rewrite getpwent handling to not use nis_first_entry and
11056         nis_next_entry.  Roll out own niscall handling.
11057         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11059         * sunrpc/xdr_rec.c: Fix typo in comment.
11061 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
11063         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
11064         handling.
11066         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
11067         to allocate memory for my_pollfd.  Better initialization of
11068         cb_is_running.  Use TEMP_FAILURE_RETRY.
11070         * malloc/memusage.sh (memusageso): Add quotes.
11071         (memusagestat): Likewise.
11072         * debug/xtrace.sh (pcprofileso): Likewise.
11073         (pcprofiledump): Likewise.
11074         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
11075         replacement.
11076         * malloc/Makefile ($(objpfx)memusage): Likewise.
11078         * nis/nis_callback.c (__nis_create_callback): Calls to
11079         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
11080         asprintf call fails.
11082         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
11083         no uninitialized memory is passed to sendto.
11085 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
11087         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
11088         of snprintf+strdup.  Handle OOM.
11089         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
11090         cb->serv together.  Remove now obsolete free calls.
11091         (__nis_destroy_callback): Remove now obsolete free call.
11093 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
11095         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
11096         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
11097         and ULA respectively). Set precedence for IPv4 address to 10 as
11098         defined in RFC3484 for preferring IPv6.
11099         * posix/gai.conf: Update to match the new default tables.
11101 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
11103         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
11104         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
11105         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
11106         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
11108         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
11109         Removed.
11110         (init_nss_interface): Remove initialization of these variables.
11112 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
11114         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
11115         nis_free_directory forward to avoid duplication.
11117 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
11119         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
11120         rec_dirsearch returning NULL.
11121         (first_shoot): Handle __nis_finddirectory returning NULL.
11122         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
11124         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
11125         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
11127 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
11129         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
11130         pid changed.
11132 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
11134         * include/rpc/pmap_prot.h: Mark all functions as hidden.
11136         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
11137         * nscd/nscd_getgr_r.c: Likewise.
11139         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
11141         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
11142         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
11144         * stdlib/longlong.h (__clz_tab): Mark as hidden.
11146         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
11148         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
11150         * include/rpc/auth.h: Mark xdr_des_block_internal and
11151         xdr_opaque_auth_internal as hidden.
11153         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
11154         hidden.
11156         * include/rpc/xdr.h: Mark all _internal functions as hidden.
11158         * misc/getusershell.c (okshells): Don't use static initializers,
11159         do it dynamically.
11161         * stdlib/fmtmsg.c (keywords): Change type of len element to
11162         uint32_t to not waste space on 64bit machines.
11164         * locale/setlocale.c: Change _nl_category_names into a string.
11165         Add new _nl_category_name_idxs.  Change all users.
11166         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
11167         Declare _nl_category_name_idxs.
11168         * locale/findlocale.c: Adjust for _nl_category_names change.
11169         * locale/loadlocale.c: Likewise.
11170         * locale/newlocale.c: Likewise.
11171         * intl/dcigettext.c: Likewise.
11173         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
11174         (add_alias2): ...here.  New function.
11175         (__gconv_read_conf): Simplify builtin alias handling.
11176         (builtin_aliases): Convert to string to avoid relocations.
11177         * iconv/gconv_builtin.h: Add comment about correct formatting.
11179 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
11181         * resolv/res_debug.c (loc_ntoa): Make error const.
11183 2006-05-14  Andreas Schwab  <schwab@suse.de>
11185         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
11187 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
11189         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
11190         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
11191         sizeof (cpu_set_t).
11193 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
11195         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
11197         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
11199         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
11200         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
11202         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
11203         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
11205         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
11206         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
11207         xdr_cback_data.
11209         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
11210         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11211         xdr_ypupdate_args.
11213         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
11214         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
11216         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
11217         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
11219         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
11220         * include/rpcsvc/nis_callback.h: New file.
11222         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
11223         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
11225         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11226         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11228         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
11229         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
11231         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11232         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11234         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
11235         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11236         xdr_ypdelete_args.
11238         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
11239         __BEGIN_DECLS and __END_DECLS, the header is not installed.
11241         * nis/nis_error.c: Remove table of strings.  Use position
11242         independent mechanism.
11243         * nis/nis_error.h: New file.
11245 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
11247         * locale/programs/ld-time.c (time_finish): If wide era name or
11248         format aren't provided, set both wname and wformat to L"".
11250 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
11252         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
11253         results if the call was succesful.
11255         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
11257         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
11258         as hidden.
11260 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
11262         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
11264 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
11266         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
11267         caller makes sure this is not the case.
11268         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
11270 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
11272         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
11273         calls.
11275         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
11276         [Coverity CID 229, 230]
11278         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
11279         DGETTEXT calls.
11280         (hol_help): Likewise.  [Coverity CID 226, 227]
11282         * string/argz-replace.c (__argz_replace): Unconditionally call
11283         free on SRC.  [Coverity CID 225]
11285         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
11286         the return value of __nis_default_owner and __nis_default_group,
11287         it has been especially allocated.  [Coverity CID 224]
11289         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
11290         searchgroup and searchowner.  Significantly simplified.
11291         (__nis_default_owner): Remove duplication.  Do not locally copy the
11292         string before duplicating it.
11293         (__nis_default_group): Likewise.
11295         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
11296         we must clear the variable before calling __nisfind_server.
11298         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
11299         nis_getnames.  [Coverity CID 223]
11301         * locale/programs/locfile.c (locfile_read): Use alloca instead of
11302         xmalloc to allocate local repertoire name.  [Coverity CID 222]
11304         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
11305         allocate memory for the input to add_bytes.  [Coverity CID 221]
11307         * posix/wordexp.c (w_addword): Free word if realloc fails and it
11308         was allocated here.  [Coverity CID 219, 220]
11310         * posix/getconf.c (print_all): Free confstr data after printing.
11311         [Coverity CID 218]
11313         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
11314         list allocation fails.  [Coverity CID 215]
11316         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
11317         [Coverity CID 213]
11319         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
11320         string is NULL.  [Coverity CID 212]
11321         * argp/Makefile: Add rules to build and run bug-argp1.
11322         * argp/bug-argp1.c: New file.
11324         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
11325         end of string.
11326         * stdlib/canonicalize.c (__realpath): Likewise.
11328         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
11329         pointer.  [Coverity CID 206]
11331         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
11332         in statically linked code.
11333         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
11334         statically built code, be prepared to have no link map.
11335         [Coverity CID 205]
11337         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
11338         dgettext calls. [Coverity CID 204]
11340         * argp/argp-help.c (struct uparams): Remove valid member.  Change
11341         the one user.
11342         (uparam_names): Reduce size.  Avoid relative relocations.
11343         Moved to read-only segment.
11344         (fill_in_uparams): Update for new layout.
11346         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
11347         assumed to always be != NULL. [Coverity CID 202]
11349         * argp/argp-help.c (hol_entry_help): Remove some dead code
11350         [Coverity CID 200].
11352         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
11353         away a few more unconditional yperr2nss calls.
11354         (_nss_nis_getservbyname_r): Likewise.
11356 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
11358         * sysdeps/generic/ldsodefs.h: Remove support for non-core
11359         architectures.
11361         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
11362         that unused memory passed to sendto is nevertheless initialized.
11364         [BZ #2499]
11365         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
11366         possibly unaligned memory accesses.
11368         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
11369         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
11370         and __putlong respectively.  Correct buffer overflow check for
11371         NS_NOTIFY_OP.
11373         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
11375         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
11376         (send_dg): Rewrite error handling to be more compact and avoid
11377         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
11379         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
11381         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
11382         instead of ns_get16.
11383         (res_queriesmatch): Likewise.  Minor optimization.
11385         [BZ #2499]
11386         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
11387         __libc_res_nsend might reallocate the buffer for the answer.  In
11388         this case we have to reload the HP pointer.
11390 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11392         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
11393         some branch prediction hints.
11395         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
11396         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11397         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11398         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11399         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11400         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11401         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11402         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11404 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11406         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
11407         by a GOT relocation to make Scrt1.o position independent.
11408         * sysdeps/s390/s390-64/elf/start.S: Likewise.
11410         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
11411         six system call parameters.
11412         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
11414 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11416         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
11417         malloc&bzero.
11419         * sunrpc/svc_udp.c (BZERO): Remove definition.
11420         (CALLOC): Define.
11421         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
11423         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
11424         (des_SPtrans): Use uint32_t type.
11425         (des_skb): Likewise.
11427         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
11429 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
11431         [BZ #2509]
11432         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
11433         on 32-bit arches.
11435 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11437         * locale/programs/ld-address.c (address_finish): Fix one more
11438         place where the iso639 array might be accessed beyond the limits.
11440 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
11442         * nis/nis_table.c (nis_list): Avoid clearing res twice before
11443         filling it for the first time.
11445         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
11446         Adjust all callers.
11447         Free res object content before returning.
11449         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
11451         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
11452         client->cl_auth.
11454         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
11455         cleanup for initial thread, just the free call on TVP.
11457         * nscd/gai.c (__getline): Define.
11460 See ChangeLog.16 for earlier changes.