Fix forced loop termination in nscd database lookup.
[glibc/pb-stable.git] / ChangeLog
blobdfe26cfbb104d3bca6e1f7fab289190148de5eff
1 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
2             Ulrich Drepper  <drepper@redhat.com>
4         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
5         (__nscd_cache_search): Assume each entry in the
6         hash chain needs one hashentry and half of datahead.  Use
7         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
9 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
11         * posix/sys/wait.h: Fix typos.  Pretty printing.
12         * stdlib/stdlib.h: Likewise.  Correct comments.
14         [BZ #10159]
15         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
17         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
18         patch.
20 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
22         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
23         Use it if we absolutely cannot reach any more correct list elements
24         because that many do not fit into the currently mapped database.
26 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
28         * nscd/nscd_helper.c: Include stddef.h.
29         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
30         in a couple of places.  Return NULL if trail is not less than
31         datasize, don't consider dataheads with length smaller than
32         offsetof (struct datahead, data) + datalen.
33         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
34         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
35         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
36         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
37         * nscd/nscd_getai.c (__nscd_getai): Likewise.
38         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
39         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
41         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
42         Rename ...
43         (fallocate64): ... to this.
44         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
45         Rename ...
46         (fallocate64): ... to this.
47         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
48         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
49         fallocate64@@GLIBC_2.10.
50         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
51         fallocate64@@GLIBC_2.11.
52         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
53         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
54         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
55         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
57         * nscd/selinux.c (nscd_avc_destroy): Removed.
58         * nscd/selinux.h (nscd_avc_destroy): Likewise.
59         * nscd/nscd.c (termination_handler): Don't call
60         nscd_avc_destroy.
62 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
64         * include/atomic.h: Formatting.
65         (catomic_compare_and_exchange_val_acq): Don't define if already
66         defined by bits/atomic.h.
68 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
70         * math/libm-test.inc (expm1_test): Add test for range error.
72         * Versions.def: Add GLIBC_2.11 for libc.
73         * debug/Makefile (routines): Add longjmp_chk.
74         Add rules to build and run tst-longjmp_chk.
75         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
76         * debug/longjmp_chk.c: New file.
77         * debug/tst-longjmp_chk.c: New file.
78         * include/bits/setjmp2.: New file.
79         * include/stdio.h: Mark __fortify_fail as internal_function.
80         * setjmp/Makefile (headers): Add bits/setjmp2.h.
81         * setjmp/bits/setjmp2.h: New file.
82         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
83         of the aliases.
84         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
85         defined.
86         * sysdeps/i386/____longjmp_chk.S: New file.
87         * sysdeps/x86_64/____longjmp_chk.S: New file.
88         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
89         * sysdeps/x86_64/__longjmp.S: Likewise.
91         * version.h: Bump for 2.11 development.
93         * elf/check-execstack.c: New file.
94         * elf/Makefile: Add rules to build and run check-execstack.
96 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
98         * version.h (VERSION): Bump to 2.10.1.
100         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
101         compatibility functions.
102         * nss/getXXent_r.c: Likewise.
103         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
104         * gshadow/getsgnam_r.c: Likewise.
105         * gshadow/Version: Remove duplicate entries.
107         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
108         for recent processor.
109         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
110         Likewise.
112 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
114         * version.h (VERSION): Bump for 2.10 release.
115         * include/features.h (__GLIBC_MINOR__): Bump to 10.
117         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
118         same place we add ASFLAGS-config.
120 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
122         [BZ #10128]
123         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
124         or FORMERR and the other NOERROR, don't raise an error.
126 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
128         [BZ #10118]
129         * Makeconfig (+asflags): New variable based upon ASFLAG or
130         asflags-cpu.
131         (ASFLAGS): Add override to set ASFLAGS to +asflags.
132         * config.make.in (asflags-cpu): Add variable based upon
133         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
134         the assembler.
135         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
136         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
137         recognizes power6 instruction set due to passing -mcpu=power6 from
138         --with-cpu=power6 when compiling .S files.
139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
140         Likewise.
141         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
142         Likewise.
143         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
144         Likewise.
146 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
148         * string/stratcliff.c (do_test): Test for zero length
149         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
150         at the end of the page.
152 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
154         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
156         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
157         count is zero.
159         * po/da.po: Update from translation team.
161 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
163         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
164         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
166 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
168         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
169         and READ_IMPLIES_EXEC.
171 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
173         * po/da.po: Update from translation team.
175 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
177         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
178         comment change.
180 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
182         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
183         to MAP_ANON in PROT_NONE mmap64 call.
184         (open_archive): Likewise.
185         (file_data_available_p): Use mmap64 instead of mremap.
186         (enlarge_archive): Likewise.  Update head if ah->addr changed.
187         Attempt to reserve address space after mmap64 region.
189 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
191         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
192         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
193         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
195         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
196         atanh should set ERANGE.
198         [BZ #10087]
199         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
200         result of lookup to make call to implement STT_GNU_IFUNC.
201         (_dl_profile_fixup): Likewise.
202         Patch by H.J. Lu <hjl.tools@gmail.com>.
204         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
205         warning.
207         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
208         from definition.
210         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
211         label if it is not used.
213         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
214         of gmon_hist_hdr and gmon_hdr structures and use them.
215         * elf/sprof.c: Likewise.
217         * elf/dl-load.c (open_verify): Add temporary variable to avoid
218         warning.
220         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
222         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
223         to avoid cast.
225         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
226         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
227         to avoid warnings.
228         (iruserok_af): Use ss_family instead of casts.
230         * gmon/gmon.c (write_hist): Define real-type variant of
231         gmon_hist_hdr structure and use it.
232         (write_gmon): Likewise for gmon_hdr.
234         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
235         function if we are not going to define it.
236         * sysdeps/unix/sysv/linux/writev.c: Likewise.
238         * inet/inet6_option.c (option_alloc): Add temporary variable to
239         avoid warning.
241         * libio/strfile.h (struct _IO_streambuf): Use correct type and
242         name of VTable element.
243         * libio/iovsprintf.c: Avoid casts to avoid warnings.
244         * libio/iovsscanf.c: Likewise.
245         * libio/vasprintf.c: Likewise.
246         * libio/vsnprintf.c: Likewise.
247         * stdio-common/isoc99_vsscanf.c: Likewise.
248         * stdlib/strfmon_l.c: Likewise.
249         * debug/vasprintf_chk.c: Likewise.
250         * debug/vsnprintf_chk.c: Likewise.
251         * debug/vsprintf_chk.c: Likewise.
253         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
254         function pointers.
256 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
258         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
260 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
262         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
264         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
265         * sysdeps/i386/fpu/s_tanf.S: Likewise.
266         * sysdeps/i386/fpu/s_tanl.S: Likewise.
267         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
268         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
269         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
270         * math/libm-test.inc: Add tests for errno after tan calls with
271         Â±Inf.
273         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
274         errno value vor pow(+-0,neg).
275         * math/libm-test.inc (pow_test): Add tests for errno value for
276         pole errors.
278         * math/w_fmod.c: Also handle x=±Inf as error.
279         * math/w_fmodf.c: Likewise.
280         * math/w_fmodl.c: Likewise.
281         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
282         x=±Inf or y=0.
284         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
285         * sysdeps/i386/fpu/s_cosf.S: Likewise.
286         * sysdeps/i386/fpu/s_cosl.S: Likewise.
287         * sysdeps/i386/fpu/s_sin.S: Likewise.
288         * sysdeps/i386/fpu/s_sinf.S: Likewise.
289         * sysdeps/i386/fpu/s_sinl.S: Likewise.
290         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
291         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
292         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
293         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
294         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
295         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
296         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
297         * math/libm-test.inc: Add tests for errno after sin/cos calls with
298         Â±Inf.
300         * stdlib/strtod_l.c (round_and_return): We have to set errno to
301         ERANGE for underflows.
302         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
304         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
305         the 2001 revision.
307         * libio/tst-widetext.input: Remove surrogates.
309         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
311         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
312         for lgamma should set errno to ERANGE, not EDOM.
313         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
315 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
317         [BZ #10093]
318         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
319         UTF-16 surrogates.
321         * locale/programs/locarchive.c (enlarge_archive): Conserve address
322         space when temporarily mapping the whole content of the old file.
324         [BZ #10100]
325         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
326         not zero.
328 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
330         * iconvdata/sjis.c (BODY): Don't advance inptr before
331         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
332         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
333         two byte chars.
335 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
337         * locale/locarchive.h (struct locarhandle): Rename len field to
338         mmaped and add new reserved field.
339         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
340         (create_archive): Reserve address space and then map file into it.
341         (open_archive): Likewise.
342         (file_data_available_p): New function.
343         (compare_from_file): New function.
344         (close_archive): Adjust to member name changes.
345         (add_locale): Before comparing locale data, check it is mapped.
346         Otherwise fall back to reading from the file.
348 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
350         * stdio-common/psiginfo.c: Include <errno.h>.
352 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
354         [BZ #9920]
355         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
356         to get consistency between 32 and 64 bit architectures.
358         [BZ #10052]
359         * sysdeps/unix/make-syscalls.sh: Add rule to create target
360         directory for dummy syscall rules.
361         Patch by Chris Steinbroner <hesh@pobox.com>.
363 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
365         [BZ #10092]
366         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
367         MNT_EXPIRE.
369 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
371         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
372         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
374 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
376         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
377         data from vector to temporary buffer and call PWRITEV after it
378         instead of vice versa.
379         * sysdeps/posix/preadv.c: Fix up comment.
380         * misc/preadv.c: Likewise.
381         * misc/preadv64.c: Likewise.
382         * misc/pwritev.c: Likewise.
383         * misc/pwritev64.c: Likewise.
384         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
386 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
388         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
390         * shadow/Makefile (tests): Add tst-shadow.
391         * shadow/tst-shadow.c: New file.
393         [BZ #9955]
394         * gshadow/Makefile: New file.
395         * gshadow/Versions: New file.
396         * gshadow/fgetsgent.c: New file.
397         * gshadow/fgetsgent_r.c: New file.
398         * gshadow/getsgent.c: New file.
399         * gshadow/getsgent_r.c: New file.
400         * gshadow/getsgnam.c: New file.
401         * gshadow/getsgnam_r.c: New file.
402         * gshadow/gshadow.h: New file.
403         * gshadow/putsgent.c: New file.
404         * gshadow/sgetsgent.c: New file.
405         * gshadow/sgetsgent_r.c: New file.
406         * gshadow/tst-gshadow.c: New file.
407         * include/gshadow.h: New file.
408         * Makeconfig (all-subdirs): Add gshadow.
409         * Makefile (installed-headers): Add gshadow/gshadow.h.
410         * nss/Makefile (databases): Add sgrp.
411         * nss/Versions: Add gshadow functions as private exports.
412         * nss/nsswitch.conf: Add gshadow entry.
413         * nss/sgrp-lookup.c: New file.
414         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
415         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
416         * nss/nss_files/files-sgrp.c: New file.
417         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
418         * sysdeps/unix/sysv/linux/paths.h: Likewise.
420 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
422         * stdio-common/printf.h: Add missing const to register_printf_modifier.
423         * stdio-common/reg-modifier.c: Likewise.
425 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
427         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
428         is no FPU.
430 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
432         [BZ #10086]
433         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
434         headers up to 2.6.30.
436         * po/ca.po: Update from translation team.
438 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
440         [BZ #10069]
441         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
442         an object that uses static TLS if the TLS modid is higher than the
443         reserve we always allocate.  At least for multi-threaded code.
445 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
447         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
448         Numerically stable check for valid width.
450         * locale/programs/locarchive.c (open_archive): Map the entire file
451         and not just the administrative data.
452         (add_locale): When we find a hash sum match compare the content
453         to be sure.
455         * malloc/malloc.c (malloc_info): Output address space information.
457 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
459         * malloc/malloc.c (malloc_info): Also output system memory information.
461         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
462         architectures have preadv/pwritev in 2.6.30.
464         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
465         * sysdeps/posix/readv.c: Likewise.
466         Reported by Markus Armbruster <armbru@redhat.com>.
468         * malloc/hooks.c (top_check): Force hook value into register.
470 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
472         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
473         calls to _dl_relocate_object.
475 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
477         [BZ #9957]
478         * malloc/malloc.c (force_reg): Define.
479         (sYSMALLOc): Load hook variable into variable
480         before test and force into register.
481         (sYSTRIm): Likewise.
482         (public_mALLOc): Force hook value into register.
483         (public_fREe): Likewise.
484         (public_rEALLOc): Likewise.
485         (public_mEMALIGn): Likewise.
486         (public_vALLOc): Likewise.
487         (public_pVALLOc): Likewise.
488         (public_cALLOc): Likewise.
489         (__posix_memalign): Likewise.
490         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
491         before test and force into register.
492         * malloc/hooks.c (top_check): Likewise.
493         (public_sET_STATe): Pretty printing.
495         * resolv/res_send.c (send_dg): Don't just ignore the result we got
496         in case we only receive one reply in single-request mode.
498 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
500         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
501         are dlopened in statically linked program even for __LM_ID_CALLER.
503 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
505         * resolv/res_send.c (send_dg): Don't switch into single-request
506         mode if we already are in it.
508 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
510         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
511         are always at least 4 bytes in the returned line.
513 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
515         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
516         __libc_use_alloca (8192), if the stack is too small use 512 bytes
517         instead of 8K.  Stop searching in /proc/stat after hitting first
518         line not starting with cpu.
519         (next_line): Truncate too long
520         lines at buffer size * 3/4 instead of pretending there were line
521         breaks inside of large lines.
523 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
525         * sysdeps/x86_64/mp_clz_tab.c: New file.
527 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
528             Ulrich Drepper  <drepper@redhat.com>
530         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
531         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
532         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
534 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
536         * sysdeps/sh/libc-tls.c: New file.
538         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
540 2009-04-14  Roland McGrath  <roland@redhat.com>
542         * elf/elf.h: Add various missing ARM constants, to match binutils.
544 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
546         Optimizations from GMP.
547         * sysdeps/x86_64/add_n.S: New file.
548         * sysdeps/x86_64/addmul_1.S: New file.
549         * sysdeps/x86_64/lshift.S: New file.
550         * sysdeps/x86_64/mul_1.S: New file.
551         * sysdeps/x86_64/rshift.S: New file.
552         * sysdeps/x86_64/sub_n.S: New file.
553         * sysdeps/x86_64/submul_1.S: New file.
555 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
557         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
558         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
559         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
560         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
562 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
564         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
565         preadv/pwritev.
567 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
569         * sysdeps/x86-64/strrchr.S: New file.
571 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
573         * stdio-common/printf.h (struct printf_info): Add user element.
574         New types printf_arginfo_size_function, printf_va_arg_function.
575         Declare register_printf_specifier, register_printf_modifier,
576         register_printf_type.
577         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
578         (union printf_arg): Add pa_user element.
579         Adjust __printf_arginfo_table type.
580         Add __printf_va_arg_table, __printf_modifier_table,
581         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
582         declarations.
583         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
584         If registered arginfo call failed try normal specifier.
585         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
586         function.
587         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
588         * stdio-common/Versions: Export register_printf_modifier,
589         register_printf_type, and register_printf_specifier for GLIBC_2.10.
590         * stdio-common/reg-modifier.c: New file.
591         * stdio-common/reg-type.c: New file.
592         * stdio-common/reg-printf.c (__register_printf_specifier): New
593         function.  Mostly the old __register_printf_function function but
594         uses locking and type of third parameter changed.
595         (__register_printf_function): Implement using
596         __register_printf_specifier.
597         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
598         calls to arginfo functions.  Allocate enough memory for user-defined
599         types.  Call new va_arg functions to get user-defined types.
600         Try installed handlers even for existing format specifiers first.
602 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
604         * sysdeps/x86_64/rawmemchr.S: New file.
606         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
607         Simplified code and possible copy problem fixed.
609         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
610         function if it is not defined.  Add some necessary casts.
611         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
613         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
614         have preadv/pwritev in 2.6.30.
616 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
618         * malloc/malloc.c (malloc_info): New function.
619         * malloc/malloc.h: Declare it.
620         * malloc/Versions: Export malloc_info for GLIBC_2.10.
622         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
623         to avoid PLT slot.
625         * malloc/malloc.c (_int_realloc): Add parameter with old block
626         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
627         Adjust all callers.
628         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
630 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
632         * sysdeps/x86_64/strchrnul.S: New file.
634         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
635         depending libcrypt on -lfreebl3.
637         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
638         preadv/pwritev in 2.6.30.
640         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
641         instead of __strcasecmp.
643         * string/stratcliff.c (do_test): Add memchr tests..
644         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
645         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
646         first read quad word.
648 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
650         * string/strverscmp.c (__strverscmp): Fix last cleanups.
651         * string/tst-svc.input: Add new test case.
652         * string/tst-svc.expect: Adjust.
653         * string/Makefile: Don't ignore tst-svc error.
655         * sysdeps/x86_64/memchr.S: New file.
657         * resolv/resolv.h (RES_SNGLKUP): Define.
658         * resolv/res_init.c (res_setoptions): Recognize single-request option.
659         * resolv/res_send.c (send_dg): If we sent two requests at once and
660         only get one reply before timeout switch to mode where we send the
661         second request only after the first answer has been received.
663 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
665         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
666         * sysdeps/x86_64/strchr.S: Likewise.
668 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
670         * configure.in: We need to test for the compiler earlier.
672         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
673         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
674         GLIBC_2.10.
675         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
676         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
677         and pwritev.
678         * misc/preadv.c: New file.
679         * misc/preadv64.c: New file.
680         * misc/pwritev.c: New file.
681         * misc/pwritev64.c: New file.
682         * sysdeps/posx/preadv.c: New file.
683         * sysdeps/posx/preadv64.c: New file.
684         * sysdeps/posx/pwritev.c: New file.
685         * sysdeps/posx/pwritev64.c: New file.
686         * sysdeps/unix/sysv/linux/preadv.c: New file.
687         * sysdeps/unix/sysv/linux/preadv64.c: New file.
688         * sysdeps/unix/sysv/linux/pwritev.c: New file.
689         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
690         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
691         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
693         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
694         compatibility code.
695         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
697         * sysdeps/unix/sysv/linux/kernel-features.h: Define
698         __ASSUME_COMPLETE_READV_WRITEV.
699         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
700         with modern kernels.
701         * sysdeps/unix/sysv/linux/writev.c: Likewise.
703         * sysdeps/posix/readv.c: Since read is a cancellation point we have
704         to free a possible malloced buffer in case of cancellation.
705         * sysdeps/posix/writev.c: Likewise for write.
707 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
709         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
711         * configure.in: Recognize --enable-nss-crypt.
712         * config.make.in: Add nss-crypt entry.
713         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
714         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
715         and include path for NSS directory to compiler for md5-crypt,
716         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
717         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
718         function implementation, use NSS.  Introduce wrappers around the
719         hash function calls.  Little code size optimization.
720         * crypt/sha256-crypt.c: Likewise.
721         * crypt/sha512-crypt.c: Likewise.
722         * scripts/check-local-headers.sh: Ignore nss3 directory.
724         * configure.in: Rename pic_default to libc_cv_pic_default.
725         * config.make.in: Likewise.
727 2009-04-01  Roland McGrath  <roland@redhat.com>
729         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
730         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
731         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
732         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
733         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
734         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
735         (R_SPARC_NUM): Update.
736         From Dave Miller <davem@davemloft.net>.
738 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
740         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
742 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
744         * elf/dl-open.c: Keep track of used name spaces and only iterate over
745         those which are used.
746         * elf/dl-addr.c: Likewise.
747         * elf/dl-caller.c: Likewise.
748         * elf/dl-fini.c: Likewise.
749         * elf/dl-iteratephdr.c: Likewise.
750         * elf/dl-libc.c: Likewise.
751         * elf/dl-load.c: Likewise.
752         * elf/dl-support.c: Likewise.
753         * elf/dl-sym.c: Likewise.
754         * elf/rtld.c: Likewise.
755         * sysdeps/generic/ldsodefs.h: Likewise.
757         * elf/dl-load.c: Remove support for systems without MAP_ANON.
758         * elf/dl-minimal.c: Likewise.
759         * elf/dl-misc.c: Likewise.
760         * elf/rtld.c: Likewise.
761         * sysdeps/generic/ldsodefs.h: Likewise.
763 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
765         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
766         Avoid reuse of complex expression.
768         * po/fr.po: Update from translation team.
770 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
772         * include/dirent.h: Yet more changes to match sort function type
773         change.
774         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
775         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
776         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
778 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
780         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
782 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
784         * nscd/connections.c (restart): Try to preserve the process name
785         by reading the /proc/self/exe symlink and using the return name.
786         Patch by Jeff Bastian <jbastian@redhat.com>.
788 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
790         [BZ #9733]
791         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
792         if we are not loading a new audit library.
793         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
794         Only use profiling trampoline for auditing if we are not relocating
795         an audit library.
796         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
797         * elf/rtld.c: Likewise.
798         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
800         * elf/rtld.c (dl_main): Extend help message for --audit option.
802         [BZ #9759]
803         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
804         alphasort64, versionsort, and versionsort64 to POSIX 2008.
805         * dirent/alphasort.c: Adjust implementation to type change.
806         * dirent/alphasort64.c: Likewise.
807         * dirent/scandir.c: Likewise.
808         * dirent/versionsort.c: Likewise.
809         * dirent/versionsort64.c: Likewise.
810         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
811         declaration.
812         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
813         declaration.
815         [BZ #9880]
816         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
817         correctly.  Set segleft member in output as required.
818         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
819         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
821         [BZ #9881]
822         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
823         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
824         * inet/Makefile (tests): Add tst-inet6_rth.
825         * inet/tst-inet6_rth.c: New file.
827         [BZ #5807]
828         * string/strlen.c (strlen): Fix omission in the expression to test
829         for NUL bytes.
831 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
833         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
835         * elf/dl-runtime.c (reloc_offset): Define.
836         (reloc_index): Define.
837         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
838         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
839         computing index from reloc_offset.
840         (_dl_call_pltexit): Likewise.
841         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
842         the relocation index to _dl_fixup.
843         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
844         _dl_call_pltexit.
845         * sysdeps/x86_64/dl-runtime.c: New file.
847         [BZ #9893]
848         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
849         alignment of La_x86_64_regs.  Store xmm parameters.
850         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
852         [BZ #9913]
853         * string/strverscmp.c (__strverscmp): Fix case of different digits
854         in fractional part of string.
855         Patch by Jingyu Liu <jyliu@fortinet.com>.
856         * string/Makefile (tests): Add tst-svc2.
857         * string/tst-svc2.c: New file.
859         * string/strverscmp.c (__strverscmp): Optimize size of tables.
861         * locale/iso-639.def: Add Min Nan.
863 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
865         [BZ #9948]
866         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
868 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
870         * elf/dl-sysdep.c (auxvars): Compress data structure.
872         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
873         STT_GNU_IFUNC handling.
874         (elf_machine_rela): Likewise.
876 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
878         * config.h.in (USE_MULTIARCH): Define.
879         * configure.in: Handle --enable-multi-arch.
880         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
881         (_dl_fixup_profile): Likewise.
882         * elf/do-lookup.c (dl_lookup_x): Likewise.
883         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
884         * elf/elf.h (STT_GNU_IFUNC): Define.
885         * include/libc-symbols.h (libc_ifunc): Define.
886         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
887         framework in init-arch.h to get CPUID values.
888         * sysdeps/x86_64/multiarch/Makefile: New file.
889         * sysdeps/x86_64/multiarch/init-arch.c: New file.
890         * sysdeps/x86_64/multiarch/init-arch.h: New file.
891         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
893         * config.make.in (experimental-malloc): Define.
894         * configure.in: Handle --enable-experimental-malloc.
895         * malloc/Makefile: Handle experimental-malloc flag.
896         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
897         * malloc/arena.c: Likewise.
898         * malloc/hooks.c: Likewise.
899         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
901 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
903         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
904         prediction.  A few size optimizations.
906 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
908         * time/tzset.c: Optimize a bit for size.
910 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
912         * include/stdio.h (fmemopen): Add libc_hidden_proto.
913         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
915         * elf/sprof.c: Avoid warning about multi-line comment.
917 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
919         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
920         DST name.
921         * time/tst-posixtz.c: Add tests for quoted timezone names.
923 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
925         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
926         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
927         200809L instead of 200112L.
928         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
929         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
931         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
932         instead of __quick_exit_funcs to __run_exit_handlers.
933         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
934         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
935         (__cxa_at_quick_exit): Remove attribute_hidden.
936         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
937         to __run_exit_handlers.
938         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
939         attribute_hidden.
941 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
943         * po/id.po: Update from translation team.
945 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
948         .machine push; .machine "power6" and .machine pop around mtfsf
949         insns outside of _ARCH_PWR6 define.
950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
951         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
952         Likewise.
953         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
954         Likewise.
955         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
956         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
957         relax_fenv_state): Likewise.
959 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
961         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
962         cxa_at_quick_exit.
963         (static-only-routines): Add at_quick_exit.
964         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
965         GLIBC_2.10.
966         * stdlib/quick_exit.c: New file.
967         * stdlib/at_quick_exit.c: New file.
968         * stdlib/cxa_at_quick_exit.c: New file.
969         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
970         it appropriately.
971         (__internal_atexit): New function.
972         (__new_exitfn): Now takes parameter to point to the list to use.
973         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
974         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
975         (exit): ...here.  Just call __run_exit_handlers appropriately.
976         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
977         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
978         * stdlib/on_exit.c: Adjust call to __new_exitfn.
979         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
981         * po/id.po: Update from translation team.
983 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
985         * po/ru.po: Update from translation team.
987 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
989         * po/nl.po: Update from translation team.
991 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
993         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
994         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
995         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
996         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
997         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
998         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
999         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1001         * po/pl.po: Update from translation team.
1003 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
1005         [BZ #7083]
1006         * sysdeps/unix/sysv/linux/fallocate.c: New file.
1007         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
1008         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
1009         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
1010         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
1011         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
1012         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
1013         for GLIBC_2.10.
1014         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1015         Add fallocate and fallocate64.
1017         * io/fcntl.h: Pretty printing.
1019 2009-03-02  Richard Guenther  <rguenther@suse.de>
1021         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
1022         attribute also for non-C99 inline semantics variant.
1024 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1026         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
1027         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
1028         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
1029         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
1030         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
1031         Likewise.
1032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
1033         Likewise.
1035 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
1037         * po/cs.po: Update from translation team.
1039 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
1041         * po/bg.po: Update from translation team.
1042         * po/sv.po: Likewise.
1043         * po/fi.po: Likewise.
1044         * po/vi.po: Likewise.
1046 2009-02-27  Roland McGrath  <roland@redhat.com>
1048         * Makeconfig (%.v.i): Depend on Makeconfig.
1049         Exclude % lines from initial #-comment removal.
1051 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
1053         * po/ko.po: Update from translation team.
1055 2009-02-26  Roland McGrath  <roland@redhat.com>
1057         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
1058         avoids unused warning.
1060 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
1061             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1063         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
1064         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
1065         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
1066         and asm/user.h.  Include asm/ptrace.h.
1067         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
1068         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1069         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
1070         Undefine.
1071         (start_thread): Don't undefine.
1072         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
1073         Define.
1075 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
1077         * wctype/wctype.h: The *_l functions are in POSIX 2008.
1078         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
1079         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
1080         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
1081         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
1082         200112L to 200809L.
1083         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
1084         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1085         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
1086         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1087         _SC_THREAD_ROBUST_PRIO_PROTECT.
1088         * posix/unistd.h: fexecve is in POSIX 2008.
1089         * time/time.h: strftime_l is in POSIX 2008.
1090         * io/sys/stat.h: futimens is in POSIX 2008.
1091         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
1092         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
1093         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
1094         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
1095         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
1096         open_memstream, and vdprintf are in POSIX 2008.
1098 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
1100         * include/features.h: Define macros for XPG7/POSIX 2008.
1101         * ctype/ctype.h: The *_l functions are in POSIX 2008.
1102         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
1103         POSIX 2008.
1104         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
1105         * locale/xlocale.h: Define locale_t type.
1106         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
1107         in POSIX 2008.  Don't define locale_t here.
1108         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
1109         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
1110         UTIME_OMIT only with __USE_ATFILE.
1111         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
1112         * stdio-common/psiginfo.c: New file.
1113         * stdio-common/psiginfo-data.h: New file.
1114         * stdio-common/psiginfo-define.h: New file.
1115         * stdio-common/Makefile (routines): Add psiginfo.
1116         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
1117         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1118         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1119         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1120         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1121         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1122         * io/sys/stat.h: Move mknodat definition into same conditional as
1123         mknod.
1124         * time/sys/time.h: futimesat is not among the functions accepted
1125         into the POSIX standard.
1127         * include/features.h: If no feature selection given and we select
1128         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
1129         * posix/Versions: Export __posix_getopt.
1130         * posix/getopt.c (_getopt_initialize): Take additional parameter.
1131         Use it to alternatively initialize __posixly_correct.
1132         (_getopt_internal_r): Take addition parameter.  Pass on to
1133         _getopt_initialize.
1134         (_getopt_internal): Take addition parameter.  Pass on to
1135         _getopt_internal_r.
1136         (getopt): Pass additional zero to _getopt_internal.
1137         (__posix_getopt): New function.
1138         * posix/getopt.h: Add redirection for getopt.
1139         * posix/getopt1.c (getopt_long): Pass additional zero to
1140         _getopt_internal.
1141         (getopt_long_only): Likewise.
1142         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
1143         (_getopt_long_only_r): Likewise.
1144         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
1145         _getopt_internal_r.
1147 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
1149         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
1150         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1151         * sysdeps/posix/sysconf.c (__sysconf): Handle
1152         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
1153         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1155 2009-02-24  Roland McGrath  <roland@redhat.com>
1157         [BZ #9895]
1158         * README.template: Reworded not to use substituted version number.
1159         Renamed to ...
1160         * README: ... here (no longer generated).
1161         * Makefile (README): Target removed.
1163 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
1165         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
1166         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
1167         instead.
1169         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
1171         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
1173 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
1175         * po/bg.po: Update from translation team.
1177 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
1179         * stdlib/monetary.h: Uglify function parameter names.
1180         * sunrpc/rpc/pmap_clnt.h: Likewise.
1181         * sunrpc/rpc/svc.h: Likewise.
1182         * sunrpc/rpc/xdr.h: Likewise.
1183         * sunrpc/rpc/clnt.h: Likewise.
1184         * resolv/netdb.h: Likewise.
1185         * resolv/arpa/nameser.h: Likewise.
1186         * resolv/resolv.h: Likewise.
1187         * argp/argp.h: Likewise.
1188         * locale/langinfo.h: Likewise.
1189         * io/sys/stat.h: Likewise.
1190         * posix/spawn.h: Likewise.
1191         * nis/rpcsvc/nislib.h: Likewise.
1192         * malloc/obstack.h: Likewise.
1193         * sysdeps/ia64/bits/link.h: Likewise.
1194         * sysdeps/i386/bits/link.h: Likewise.
1195         * sysdeps/s390/bits/link.h: Likewise.
1196         * sysdeps/powerpc/bits/link.h: Likewise.
1197         * sysdeps/x86_64/bits/link.h: Likewise.
1198         * sysdeps/sparc/bits/link.h: Likewise.
1199         * sysdeps/sh/bits/link.h: Likewise.
1200         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
1201         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
1202         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
1203         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
1205 2008-12-01  Fredrik Unger  <fred@tree.se>
1207         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
1208         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
1209         _FP_UNPACK_RAW_2, fix up first argument.
1211 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
1213         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
1214         (GET_NPROCS_PARSER): Change parameters and use next_line.
1215         (__get_nprocs): Rewrite to not use stdio routines.
1216         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
1217         Change parameters and use next_line.
1219 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
1221         [BZ #5381]
1222         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
1223         Change mempool_alloc prototype.
1224         * nscd/mem.c (gc): Don't handle mem_in_flight.
1225         (mempool_alloc): Third parameter now only indicates whether this is the
1226         first call (to allocate data) or not.  If it is, get db rdlock.
1227         Release it on error.  Don't handle mem_in_flight.
1228         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
1229         Adjust third parameter of mempool_alloc calls.
1230         Nothing to do here in case mempool_alloc fails.
1231         Avoid local variable shadowing parameter.  No need to get db rdlock
1232         before calling cache_add.
1233         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
1234         no mem_in_flight array anymore.
1235         * nscd/connections.c: Remove definition and handling of mem_in_flight.
1236         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
1237         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
1238         in case mempool_alloc fails. No need to get db rdlock before calling
1239         cache_add.
1240         * nscd/hstcache.c (cache_addhst): Likewise.
1241         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1242         * nscd/servicescache.c (cache_addserv): Likewise.
1243         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
1245 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
1247         * po/lt.po: Update from translation team.
1249 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
1251         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
1252         defined, allow additional data to be added using the optional
1253         MORE_ELF_HEADER_DATA macro.
1254         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
1255         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
1257 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
1259         * include/atomic.h: Define catomic_and if not already defined.
1260         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
1261         * sysdeps/i386/i486/bits/atomic.h: Likewise.
1263 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
1265         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
1266         Change all callers.
1267         (_int_realloc): Likewise.  Third argument is now padded size
1268         All _int_* functions are now static.
1270         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
1271         * malloc/arena.c: Likewise.
1272         * include/malloc.h: Remove now unnecessary declarations of the _int_*
1273         functions.
1275         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
1276         easily.
1278         * malloc/malloc.c: Add branch prediction for use of the hooks.
1280         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
1282 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1284         [BZ #7095]
1285         * bits/confname.h: Add SUSv7 macros for getconf environments.
1286         * bits/environments.h: Likewise.
1287         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
1288         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
1289         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
1290         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
1291         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
1292         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
1293         * posix/getconf.c: Likewise.
1294         * posix/sysconf.c: Likewise.
1295         * sysdeps/posix/sysconf.c: Likewise.
1296         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
1297         environments.
1299 2009-01-16  Petr Baudis  <pasky@suse.cz>
1301         [BZ #9753]
1302         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
1303         even if we currently have zero nscount.
1305 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1307         [BZ #9781]
1308         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
1309         the input line is too long.
1311         * po/Makefile (libc.pot): Add f_print as function taking c-format
1312         parameter.
1314         * debug/xtrace.sh: Unify translatable messages.
1315         * elf/ldd.bash.in: Likewise.
1316         * elf/sprof.c: Likewise.
1317         * locale/programs/locale.c: Likewise.
1318         * malloc/memusage.sh: Likewise.
1319         * nss/getent.c: Likewise.
1321 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
1323         * debug/pcprofiledump.c (print_version,
1324         argp_program_version_hook): New function.
1325         * elf/ldconfig.c (more_help): New function.
1326         (argp): Use it.
1327         * elf/sln.c (usage): New function.
1328         (main): Support --help and --version.
1329         * malloc/memusagestat.c (print_version): New function.
1330         (argp_program_version_hook): New variable.
1331         * nscd/nscd.c (more_help): New function.
1332         (argp): Use it.
1333         * posix/getconf.c (main): Send --version output to stdout.
1334         Support --help.
1335         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
1336         arguments.  All callers changed.
1337         (print_version): New function.
1338         (parseargs): Support --help and --version.
1339         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
1340         changed.
1341         (print_version): New function.
1342         (main): Use getopt_long.  Support --help and --version.
1343         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
1344         --version.
1346 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1348         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
1349         (update_data): Fix handling of wrapping back
1350         to the beginning of the buffer.
1352         [BZ #9823]
1353         * stdio-common/psignal.c (psignal): Fix test for empty string.
1355 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
1357         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
1358         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
1359         move _null_auth to .rodata.
1361         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
1362         value of 24.
1364         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
1366         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
1367         today than when the original code was written.  Use larger
1368         buffers.  This also makes it unnecessary to have stat information,
1369         if this causes extra efforts.
1370         (__opendir): In case O_DIRECTORY works, don't call fstat just for
1371         __alloc_dir.
1373 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
1375         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
1376         is set.
1377         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
1378         * sysdeps/sh/sh4/__longjmp.S: Likewise.
1379         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
1380         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
1381         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
1382         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1384 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
1386         * po/ru.po: Update from translation team.
1388 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
1390         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
1391         Add _tid slot to maintain consistency with kernel.
1393 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
1395         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
1396         incomplete characters at end of input buffer.
1397         * libio/Makefile (tests): Add tst-fgetwc.
1398         * libio/tst-fgetwc.c: New file.
1399         * libio/tst-fgetwc.input: New file.
1401 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
1403         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
1405 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
1407         [BZ #9793]
1408         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
1409         *OUTBUFSTART unless the whole output fit into the buffer.
1410         * iconv/Makefile (tests): Add tst-iconv4.
1411         * iconv/tst-iconv4.c: New file.
1413 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
1415         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
1416         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1418 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
1420         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
1421         newer linker scripts.
1423 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
1425         [BZ #7040]
1426         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
1427         inotify_rm_watch should have type int.
1429 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
1431         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1432         Make aligned_restore_vmx a local symbol.
1433         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
1434         Likewise.
1436 2009-01-30  Andreas Jaeger  <aj@suse.de>
1438         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
1439         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
1440         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
1441         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
1442         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
1443         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
1444         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
1446 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
1448         [BZ #9726]
1449         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
1450         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
1452 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
1454         [BZ #9726]
1455         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1456         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1457         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1458         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1460 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
1462         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
1463         memcpy instead of memcmp.
1464         (_dl_setup_pointer_guard): Likewise.
1466 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
1468         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
1469         manipulated brk, use malloc_printerr.
1470         * misc/sbrk.c (__sbrk): Better error handling for nonsense
1471         requests.
1473 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
1475         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
1476         rindex): For C++ add inlines so that they can be recognized as
1477         builtins.
1478         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
1480 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
1481             Jakub Jelinek  <jakub@redhat.com>
1483         * string/string.h: Define correct C++ prototypes for gcc 4.4.
1484         * wcsmbs/wchar.h: Likewise.
1486 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
1488         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
1489         (stackinfo_sub_sp): Define.
1491 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
1493         [BZ #9750]
1494         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
1495         * include/alloca.h (alloca_account): Define.
1496         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
1497         (stackinfo_sub_sp): Define.
1499         * nscd/connections.c (nscd_init): If database file access fails
1500         check whether this is due to permission problems and bail in that
1501         case.
1503         [BZ #9741]
1504         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
1505         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
1507 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1509         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
1510         Add "t" to clobber list.
1511         (INTERNAL_SYSCALL_NCS): Likewise.
1513 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
1515         * nss/getent.c (print_networks): Don't print comma between aliases.
1517 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
1519         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
1521         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
1522         the hash table.
1523         * misc/Makefile (tests): Add bug-hsearch1.
1524         * misc/bug-hsearch1.c: New file.
1526 2009-01-22  Roland McGrath  <roland@redhat.com>
1528         * Makeconfig (%.v.i): Strip trailing # comments,
1529         not only whole-line comments.
1531 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
1533         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
1534         one parameter.  If non-NULL use it to initialize return value.
1535         (_dl_setup_pointer_guard): New function.
1536         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1537         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
1538         * elf/rtld.c (security_init): Pass _dl_random to
1539         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
1540         pointer_chk_guard.
1541         * elf/dl-sysdep.c (_dl_random): New variable.
1542         (_dl_sysdep_start): Handle AT_RANDOM.
1543         (_dl_show_auxv): Likewise.
1544         * elf/dl-support.c (_dl_random): New variable.
1545         (_dl_aux_init): Handle AT_RANDOM.
1546         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
1547         to _dl_setup_stack_chk_guard.
1549         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
1551 2009-01-10  Roland McGrath  <roland@redhat.com>
1553         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
1555 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
1557         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
1559         [BZ #9706]
1560         * nss/nss_files/files-parse.c (strtou32): New function.
1561         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
1562         across 32-bit and 64-bit platforms.
1563         (INT_FIELD_MAYBE_NULL): Likewise.
1565 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
1567         [BZ #9720]
1568         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
1569         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
1570         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
1571         Likewise.
1573 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
1575         [BZ #697]
1576         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
1577         being NULL also if there are no backreferences.
1578         * posix/rxspencer/tests: Add testcases.
1580 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
1582         [BZ #9697]
1583         * posix/bug-regex17.c: Add testcases.
1584         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
1585         handling.
1587 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1589         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
1590         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
1591         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
1592         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
1593         for elf subdir.
1594         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
1595         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
1596         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
1597         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
1598         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
1599         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1601 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
1603         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
1604         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
1605         re_string_skip_chars, re_string_reconstruct): Likewise.
1606         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
1608 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
1610         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
1611         adjust the buffer alignment.
1613 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1615         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
1616         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
1617         net/route.h.
1619         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
1620         flavor to description only when flavor is not NULL.
1622         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
1623         mutex after SIGIO/SIGURG lookup loop.
1625 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1627         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
1629 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
1631         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
1632         handling.
1634 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
1636         * sysdeps/unix/sysv/linux/kernel-features.h
1637         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
1639         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
1640         if no output is written.
1642         * version.h: Bump to 2.10 development.
1644         * posix/getconf.c: Update copyright year.
1645         * nss/getent.c: Likewise.
1646         * iconv/iconvconfig.c: Likewise.
1647         * iconv/iconv_prog.c: Likewise.
1648         * elf/ldconfig.c: Likewise.
1649         * catgets/gencat.c: Likewise.
1650         * csu/version.c: Likewise.
1651         * elf/ldd.bash.in: Likewise.
1652         * elf/sprof.c (print_version): Likewise.
1653         * locale/programs/locale.c: Likewise.
1654         * locale/programs/localedef.c: Likewise.
1655         * nscd/nscd.c (print_version): Likewise.
1656         * debug/xtrace.sh: Likewise.
1657         * malloc/memusage.sh: Likewise.
1658         * malloc/mtrace.pl: Likewise.
1659         * debug/catchsegv.sh: Likewise.
1661 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
1663         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
1664         script.
1666 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
1668         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
1669         gethostbyname4_r function call succeeded, just leave the loop.
1671         [BZ #9694]
1672         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
1673         very end.
1674         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
1675         * wctype/Makefile (tests): Add bug-wctypeh.
1676         * wctype/bug-wctypeh.c: New file.
1678         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
1679         LOCALDOMAIN is defined.
1680         * nscd/nscd_getai.c (__nscd_getai): Likewise.
1682         * sysdeps/x86_64/bits/select.h: New file.
1684         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
1686 2008-12-21  Bruno Haible  <bruno@clisp.org>
1688         [BZ #9677]
1689         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
1690         if no output is written.
1692 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
1694         * login/utmp_file.c (pututline_file): Replace call to dup2 with
1695         libc internal symbol __dup2 to avoid access through the PLT.
1697 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
1699         [BZ #6545]
1700         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
1701         available only for __USE_GNU.
1703         * inet/Makefile (tests): Add tst-getni2.
1704         * inet/tst-getni2.c: New file.
1706         [BZ #7080]
1707         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
1708         NULL when NI_NAMEREQD is set.
1709         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1710         * inet/Makefile (tests): Add tst-getni1.
1711         * inet/tst-getni1.c: New file.
1713 2008-12-03  Petr Baudis  <pasky@suse.cz>
1715         [BZ #7067]
1716         * nscd/connections.c (invalidate_cache): Use prune_run_lock
1717         instead of prune_lock.
1718         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
1719         * nscd/nscd.h (database_dyn): Add prune_run_cache.
1721 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
1723         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
1724         use.
1726         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
1727         handling.
1729         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
1730         after reading name server list.
1732         [BZ #7058]
1733         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
1734         handling for host name aliases.
1736 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
1738         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
1739         instead of doing things manually.
1741 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
1743         * posix/regex_internal.h (build_wcs_upper_buffer):
1744         Return type is reg_error_t.
1746 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
1748         * posix/globtest.sh: Use mktemp to create temporary file and
1749         directory.
1751         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
1752         sets correctly.
1753         (__CPU_CLR_S): Likewise.
1754         (__CPU_ISSET_S): Likewise.
1756 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
1757             Ulrich Drepper  <drepper@redhat.com>
1759         * scripts/firstversion.awk: Use custom comparison function to compare
1760         version numbers.
1761         * scripts/versions.awk: Use sort invocation which can handle
1762         multi-digit sub-version numbers.
1764 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
1766         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
1767         * locale/iso-639.def: Add Chhattisgarhi entry.
1769 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
1771         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
1772         ESRCH return value.
1773         (_nss_dns_gethostbyname4_r): Likewise.
1774         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
1775         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
1776         gethostbyname4_r, we don't have a separate IPv6 status, so copy
1777         the no_data variable.
1779         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
1780         information at the correct index.
1782         * socket/sys/socket.h: Declare accept4.
1783         * socket/accept4.c: New file.
1784         * sysdeps/unix/sysv/linux/accept4.c: New file.
1785         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
1786         * socket/Makefile (routines): Add accept4.
1787         * socket/Versions: Export accept4 with version GLIBC_2.10.
1788         * socket/paccept.c: Removed.
1789         * sysdeps/unix/sysv/linux/paccept.c: Removed.
1790         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
1791         * Versions.def: Define GLIBC_2.10 for libc.
1792         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
1794         * nscd/connections.c: Use accept4.
1796         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
1798 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
1800         * resolv/res_send.c (send_dg): Create sockets with non-blocking
1801         flag already set.
1803         * stdlib/setenv.c (unsetenv): Don't search environment if it does
1804         not exist.
1805         * stdlib/Makefile (tests): Add tst-unsetenv1.
1806         * stdlib/tst-unsetenv1.c: New file.
1808 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
1810         * login/utmp_file.c (file_writable): New variable.
1811         (setutent_file): Don't try to open file for writing.
1812         (pututline_file): Before writing, make descriptor writable if
1813         necessary.
1815 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
1817         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
1818         to IPv4 or IPv6 if an interface has been found.
1820 2008-11-26  Roland McGrath  <roland@redhat.com>
1822         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
1823         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
1825         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
1826         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
1827         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
1829         * elf/elf.h (NT_386_IOPERM): New macro.
1830         (NT_PPC_VSX): New macro.
1832 2008-11-25  Roland McGrath  <roland@redhat.com>
1834         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
1835         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
1836         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
1837         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
1838         Subdirectories moved to ports repository.
1839         * configure.in (base_machine): Remove alpha case.
1841 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
1843         * sysdeps/mach/strerror_l.c: New file.
1845 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
1847         [BZ #6411]
1848         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
1849         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
1850         magic numbers.
1851         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
1852         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
1853         (relax_fenv_state): Same as above.
1854         (FPSCR_29): Reserve bit in ISA 2.05.
1855         (FPSCR_NI): Provide define for compat.
1856         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
1857         magic numbers.
1858         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
1859         magic numbers.
1860         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
1861         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
1862         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
1863         access to hwcap to account for hwcap size increase to uint64_t.
1864         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
1865         Likewise.
1866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
1867         (*setcontext): Likewise.
1868         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1869         New file.
1870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1871         New file.
1872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1873         (*setcontext): dynamically select mtfsf insn based on
1874         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1875         increase to uint64_t.
1876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1877         (*swapcontext): dynamically select mtfsf insn based on
1878         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
1879         increase to uint64_t.
1880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1881         New file.
1882         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1883         New file.
1884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1885         (*setcontext): dynamically select mtfsf insn based on
1886         PPC_FEATURE_HAS_DFP.
1887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1888         (*swapcontext): dynamically select mtfsf insn based on
1889         PPC_FEATURE_HAS_DFP.
1891 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
1893         * version.h: Bump for 2.9 release.
1894         * include/features.h (__GLIBC_MINOR__): Bump to 9.
1896         [BZ #7029]
1897         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
1898         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
1899         all the rounding.
1901 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
1903         [BZ #7009]
1904         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
1905         unknown request types for now.
1907 2008-11-11  Roland McGrath  <roland@redhat.com>
1909         * sysdeps/x86_64/configure: New file.
1911         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
1912         * configure: Regenerated.
1914 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1916         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
1917         correct instruction to remove the stack frame.
1919 2008-11-03  Michael Matz  <matz@suse.de>
1921         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
1922         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
1924 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
1926         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
1927         Remove.
1929         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
1930         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
1931         of the thread variable instead of void *.
1932         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
1933         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
1934         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1935         __libc_tsd_define arguments.
1936         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
1937         __libc_tsd_address arguments.  Remove union hack.
1938         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
1939         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
1940         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
1941         Adjust __libc_tsd_{set,get} arguments.
1942         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1943         __libc_tsd_define arguments.
1944         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
1945         arguments.
1946         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1947         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
1948         (LOCALE): Adjust __libc_tsd_define arguments.
1949         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
1950         arguments.
1951         (LOCALE): Adjust __libc_tsd_define arguments.
1952         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
1953         arguments.
1954         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
1955         arguments.
1957 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
1959         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
1960         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1962 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
1964         [BZ #6966]
1965         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
1967 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
1968             Ulrich Drepper  <drepper@redhat.com>
1970         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
1971         definition for GCC 3.1 and later.
1973 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
1975         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
1976         refetch dtv, as it might have changed.
1977         * elf/Makefile: Add rules to build and run tst-tls18.
1978         * elf/tst-tls18.c: New test.
1979         * elf/tst-tlsmod18a.c: New file.
1981 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
1983         [BZ #6875]
1984         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
1986 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
1988         [BZ #6867]
1989         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
1991         [BZ #6919]
1992         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
1993         Fix length of copy operation.
1995 2008-10-02  Pierre Habouzit <madcoder@debian.org>
1997         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
1998         and fix its calling convention.
2000 2008-10-07  Andreas Schwab  <schwab@suse.de>
2002         [BZ #6942]
2003         * resolv/res_send.c (send_vc): Fix last change.
2004         (send_dg): Align here as well.
2006 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
2008         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
2009         return value in case rlimit is RLIM_INFINITY.
2011         [BZ #6947]
2012         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
2013         for UL_SETFSIZE.
2014         * resource/Makefile (tests): Add bug-ulimit1.
2015         * resource/bug-ulimit1.c: New file.
2017         [BZ #6974]
2018         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
2019         without dot.  Properly terminate the string with a null byte.
2020         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
2022         [BZ #6980]
2023         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
2024         negative sizees.
2025         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
2026         negative __size.
2028         [BZ #6995]
2029         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
2031 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
2033         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
2034         abort if there is no initgroups_dyn function.
2036         * resolv/res_send.c (send_dg): On timeout, only return nonzero
2037         result if any of the queries really provided an answer.
2039 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
2041         * po/lt.po: Update from translation team.
2043 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
2045         * po/id.po: Update from translation team.
2047 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
2049         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
2050         Fix tests for existence of second reply.
2052 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
2054         * po/id.po: New file.
2055         Contributed by the Indonesian translation team.
2057 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
2059         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
2060         initialization.
2062 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
2064         * elf/Makefile: Add rules to build and run tst-tls17.
2065         * elf/tst-tls17.c: New test.
2066         * elf/tst-tlsmod17a.c: New file.
2067         * elf/tst-tlsmod17b.c: Likewise.
2069 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
2071         * stdlib/divmod_1.c: Use correct type for dummy variable.
2072         * stdlib/mod_1.c: Likewise.
2074 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
2076         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
2078 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
2080         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
2081         __nonnull order for C++.
2082         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
2083         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
2085 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
2087         * stdlib/longlong.h: Update from GCC.
2089 2008-10-09  Jakub Jelinek <jakub@redhat.com>
2090             David S. Miller  <davem@davemloft.net>
2092         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
2093         make sure any registers used with 64-bit 'branch-on-register'
2094         instructions have their top 32-bits clear.
2095         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
2096         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
2098 2008-09-18  Andreas Schwab  <schwab@suse.de>
2100         [BZ #6942]
2101         * resolv/res_send.c (send_vc): Fix use of unaligned address.
2102         Properly handle partial reads.
2104 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
2106         * elf/elf.h (STO_MIPS_PLT): New.
2107         (R_MIPS_COPY): New.
2108         (R_MIPS_JUMP_SLOT): New.
2109         (R_MIPS_NUM): Redefine to 128.
2110         (DT_MIPS_PLTGOT): New.
2111         (DT_MIPS_RWPLT): New.
2112         (DT_MIPS_NUM): Redefine to 0x35.
2114 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
2116         * timezone/africa: Update from tzdata2008f.
2117         * timezone/asia: Likewise.
2118         * timezone/australasia: Likewise.
2119         * timezone/europe: Likewise.
2120         * timezone/leapseconds: Likewise.
2121         * timezone/northamerica: Likewise.
2122         * timezone/southamerica: Likewise.
2123         * timezone/zone.tab: Likewise.
2125 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
2127         * nscd/connections.c: Disable use of paccept for now.
2129 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
2131         * socket/Versions: Remove paccept export for GLIBC_2.9.
2132         * socket/Makefile (routines): Remove paccept.
2133         * socket/sys/socket.h: Remove paccept declaration.
2135         * po/sv.po: Update from translation team.
2137 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
2139         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
2140         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2142 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
2144         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
2145         Patch by Olivier Fourdan <ofourdan@redhat.com>.
2147 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
2149         * sunrpc/rpc/svc.h: Declare svcfd_create.
2150         Patch by Michael Solberg <msolberg@redhat.com>.
2152 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
2153             Ulrich Drepper  <drepper@redhat.com>
2155         * malloc/malloc.c (public_vALLOc): Try other arenas in case
2156         _int_valloc fails.
2157         (public_pVALLOc): Likewise.
2159 2008-09-02  Andreas Jaeger  <aj@suse.de>
2161         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
2162         commit.
2164 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
2166         [BZ #6860]
2167         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
2169 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
2171         * Makefile (check-data): Check data directory in add-ons.
2172         * elf/Makefile (check-data): Likewise.
2174 2008-08-18  Roland McGrath  <roland@redhat.com>
2176         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
2177         * configure: Regenerated.
2178         * config.make.in (cflags-cpu): New substituted variable.
2179         (with-cpu): Variable removed.
2180         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
2182 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
2184         [BZ #6845]
2185         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
2186         __signbitl definition and __LONG_DOUBLE_128__ guard from:
2187         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
2188         redundant.  Functions which call floating point assembler operations
2189         should go into a sysdeps powerpc/fpu directory.
2191 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
2193         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
2194         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2196 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
2198         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
2200         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
2201         change related to AT_EXECFN.  We cannot use that string.
2202         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
2203         _dl_execfn member.
2204         * elf/dl-support.c: Remove _dl_execfn variable.
2205         (_dl_aux_init): Remove handling of AT_EXECFN.
2206         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
2207         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
2209 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
2211         [BZ #6544]
2212         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
2213         byte gets added to writes and seeks from the end use the length of
2214         the buffer and not the currently terminating NUL byte.
2216         [BZ #6634]
2217         * login/utmp_file.c (getutent_r_file): Take additional parameter.
2218         Set to true if locking failed.
2219         (getutid_r_file): Adjust caller.
2220         (pututline_file): Likewise.  Return NULL in this case.
2221         Patch mostly by halesh.s@gmail.com.
2223 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
2225         [BZ #6589]
2226         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
2227         Define.
2228         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
2230 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
2232         [BZ #6839]
2233         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
2234         macro since it is now available in elf/dynamic-link.h.
2236 2008-08-12  Roland McGrath  <roland@frob.com>
2238         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
2239         in case used outside of libc.
2240         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
2242 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
2244         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
2245         directly instead of going through dn_comp.
2247 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
2249         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2250         Fix asm constraints.
2252 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
2254         [BZ #6790]
2255         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
2256         (IPV6_PMTUDISC_PROBE): Likewise.
2258 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
2260         [BZ #6791]
2261         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
2263 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
2264             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2266         [BZ #6817]
2267         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
2268         Added the members 'vsx' and 'arch_2_06'.
2269         (_dl_powerpc_platforms): Add the member 'power7'.
2270         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
2271         to reflect the changes required by VSX and ISA 2.06.
2272         Modify _DL_PLATFORMS_COUNT to reflect the addition of
2273         'power7'.
2274         Defined PPC_PLATFORM_POWER7.
2275         (_dl_string_platform): Add support for POWER7.
2276         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
2277         capability and ISA 2.06.
2279 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
2281         [BZ #6824]
2282         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
2283         macro to detect use of 128 bit long double.
2284         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
2286 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
2288         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
2290         [BZ #5794]
2291         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
2292         parameters.
2293         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2294         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2296 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
2298         * nscd/connections.c (main_loop_poll): Pass a buffer which is
2299         guaranteed to be large enough to read inotify event.  Ignore
2300         EAGAIN error.  Better error message.  Add branch predicition.
2301         (main_loop_epoll): Likewise.
2303 2008-08-02  Roland McGrath  <roland@frob.com>
2305         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2306         Add memory clobbers.
2308 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
2310         * manual/arith.texi: Avoid @strong{Note:}.
2311         * manual/creature.texi: Likewise.
2312         * manual/filesys.texi: Likewise.
2313         * manual/math.texi: Likewise.
2314         * manual/memory.texi: Likewise.
2315         * manual/resource.texi: Likewise.
2316         * manual/syslog.texi: Likewise.
2317         * manual/time.texi: Likewise.
2319         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
2320         to prevent warning.
2322 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
2324         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
2325         new epoll_create1 interface.
2326         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2327         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
2328         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2330         * include/arpa/nameser.h (NS_GET16): Use const pointer.
2331         (NS_GET32): Likewise.
2333         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
2334         syscalls, too.
2336         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
2337         use the AT_EXECFN value if it is no absolute path.
2338         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
2339         __ASSUME_AT_EXECFN.
2341         * Versions.def: Add GLIBC_2.9 to libresolv.
2342         * include/resolv.h: Remove hidden proto declarations for __ns_*
2343         functions.  Add them for __dn_count_labels and __p_secstodate.
2344         * include/arpa/nameser.h: Add a number of hidden proto declarations.
2345         Define ns_msg_getflags macro here.
2346         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
2347         and __p_secstodate.
2348         * resolv/Versions: Export functions from <arpa/nameser.h> from
2349         libresolv in version GLIBC_2.9.
2350         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
2351         hidden definitions.
2352         * resolv/ns_netint.c: Likewise.
2353         * resolv/ns_parse.c: Likewise.
2354         * resolv/ns_print.c: Likewise.
2355         * resolv/ns_samedomain.c: Likewise.
2356         * resolv/ns_ttl.c: Likewise.
2357         * resolv/arpa/nameser_compat.h: Likewise.
2358         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
2359         function calls.
2360         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
2361         instead of ns_get16.
2362         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
2363         __ns_get32 instead of ns_get16 and ns_get32 respectively.
2364         (gaih_getanswer_slice): Likewise.
2365         * resolv/Makefile (libresolv-routines): Add ns_date.
2366         * resolv/ns_date.c: New file.
2368         * elf/Makefile (check-localplt.out): Also check libresolv and
2369         libcrypt.
2371 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
2373         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2374         __ASSUME_O_CLOEXEC.
2376 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
2378         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
2379         buffer passed to NSS functions.
2381         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
2383         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
2384         Define.
2386         * misc/syslog.c (openlog_internal): Fix compile problem.
2388 2008-07-28  Roland McGrath  <roland@redhat.com>
2390         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
2392 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
2394         * io/ftw.c (add_object): Remove inline to avoid warning.
2396         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
2398         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
2399         Use it instead of locally defined resplen2 variable.
2400         (res_nsend): Adjust for __libc_res_nsend interface change.
2401         (send_vc): Initialize *resplen2 if necessary.  Read length of
2402         package into an appropriately aligned variable.  Store converted length
2403         in new variable and use it appropriately.
2404         Add branch prediction help.
2405         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
2406         and pass it on to __libc_res_nsend.  Adjust all callers.
2407         (__libc_res_nsearch): Likewise.
2408         (__libc_res_nqeurydomain): Likewise.
2409         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
2410         change.
2411         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
2412         Define resplen2 variable and pass it to __libc_res_nsearch and then
2413         to gaih_getanswer.
2414         (getanswer_r): In case of incorrect DNS data don't overread buffer.
2415         Add branch prediction.
2416         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
2417         (gaih_getanswer): Don't decode second slice if first one failed due
2418         to a too small buffer.  Don't let not found status of second
2419         decoder shadow results of the first.
2420         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
2421         and __libc_res_nquery interface changes
2422         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
2423         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
2424         __libc_res_nsearch, and __libc_res_nsend.
2425         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
2426         change.
2427         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
2428         __libc_res_nsearch interface changes.
2430 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
2432         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
2434         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
2435         file descriptors with close-on-exec set.
2436         (exec_comm_child): Fix the case where the write end of the pipe is
2437         STDOUT_FILENO already.  In case it is, clear close-on-exec.
2439         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
2440         * io/pipe2.c: Likewise.
2441         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
2442         instead of __ASSUME_PACCEPT.
2443         * include/unistd.h: Declare __have_pipe2.
2444         * libio/iopopen.c: Implement "e" flag.
2445         * libio/Makefile (tests): Add tst-popen1.
2446         * libio/tst-popen1.c: New file.
2448         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
2449         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2451 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
2453         [BZ #6771]
2454         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
2455         success call of _IO_SEEKOFF or calls which failed because the
2456         descriptor is for a pipe.
2458         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
2459         magic number.
2461         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
2463         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
2464         F_SETFD use if we know fopen set the flag.
2466         * login/utmp_file.c (setutent_file): Minor optimization in case
2467         O_CLOEXEC is available.
2469 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
2471         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
2472         * elf/Makefile: Use pie-ccflag variable.
2473         * nscd/Makefile: Likewise.
2474         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
2476 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
2478         [BZ #6724]
2479         * Versions.def: Add GLIBC_2.9 version tag for libutil.
2480         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
2481         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
2482         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
2483         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
2484         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
2485         utmp32, utmpx32 and login32.
2486         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
2487         versions of struct utmp functions to libc and libutil.
2488         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
2489         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
2490         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
2491         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
2492         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
2493         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
2494         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
2495         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
2496         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
2497         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
2498         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
2499         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
2500         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
2501         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
2502         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
2503         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
2504         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
2505         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
2506         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
2507         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
2508         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
2509         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
2511 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
2513         * scripts/gen-as-const.awk: Generate more widely usable code by
2514         using 64-bit arithmetic.
2516         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
2517         the same treatment as narrow output code in last patch.
2519         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
2521         [BZ #6763]
2522         * elf/dl-load.c (local_strdup): Remove inline.
2523         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
2524         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
2525         part of the object.
2527         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
2529 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
2531         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
2532         the new syscalls, too.
2534         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
2535         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
2537         [BZ #6698]
2538         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
2539         parameter for end of buffer.  If temporary copy is too large use
2540         malloc.
2541         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
2542         interface change.
2543         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
2544         string rewrite when allocating buffer.
2546         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
2547         syscalls, too.
2549         * nscd/connections.c (nscd_init): Clean up fcntl call.
2551         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
2552         SOCK_NONBLOCK if possible.
2554         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
2555         SOCK_CLOEXEC if available.
2557         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
2558         __libc_clntudp_bufcreate_internal.
2559         * include/sys/socket.h: Declare __have_sock_cloexec.
2560         * socket/Makefile (aux): Add have_sock_cloexec.
2561         * socket/have_sock_cloexec.c: New file.
2562         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
2563         __libc_clntudp_bufcreate.
2564         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
2565         which takes an additional parameter.  Create socket with non-blocking
2566         mode and close-on-exec flag set, if wanted.
2567         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
2568         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
2569         instead of clntudp_create.  The socket has already the close-on-exec
2570         flag set if SOCK_CLOEXEC is defined.
2572 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
2574         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2575         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
2576         appropriate.
2577         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
2578         non-blocking mode by using socket, paccept, and inotify_init1.
2580         * Versions.def (glibc): Add GLIBC_2.9.
2581         * io/Makefile (routines): Add dup3 and pipe2.
2582         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
2583         * io/dup3.c: New file.
2584         * io/pipe2.c: New file.
2585         * posix/unistd.h: Declare dup3 and pipe2.
2586         * socket/Makefile (routines): Add paccept.
2587         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
2588         * socket/paccept.c: New file.
2589         * socket/sys/socket.h: Declare paccept.
2590         * sysdeps/unix/syscalls.list: Add entry for dup3.
2591         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
2592         epoll_create2 and inotify_init1.
2593         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
2594         * sysdeps/unix/sysv/linux/paccept.c: New file.
2595         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
2596         possible.
2597         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
2598         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
2599         inotify_init1, and pipe2 entries.
2600         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
2601         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
2602         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
2603         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
2604         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
2605         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
2606         SOCK_NONBLOCK.
2607         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
2608         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
2609         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
2610         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
2611         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
2612         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
2613         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
2614         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
2615         EPOLL_NONBLOCK.  Declare epoll_create2.
2616         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
2617         EFD_NONBLOCK.
2618         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
2619         IN_NONBLOCK.  Declare inotify_init1.
2620         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
2621         SFD_NONBLOCK.
2622         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
2623         TFD_NONBLOCK.
2625         * elf/elf.h: Define AT_EXECFN.
2626         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
2627         LD_ORIGIN_PATH.
2628         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
2629         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
2630         if __ASSUME_AT_EXECFN is defined.
2631         (_dl_aux_init): Handle AT_EXECFN.
2632         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
2633         for 2.6.27 and up.
2634         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
2635         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
2636         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
2637         _dl_execfn if available and avoid compatibility code if
2638         __ASSUME_AT_EXECFN is defined.
2640         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
2641         _dl_discover_osversion only for older kernels.
2643 2008-07-22  Roland McGrath  <roland@frob.com>
2645         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
2647 2008-07-21  Roland McGrath  <roland@frob.com>
2649         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
2650         returned too much data out of line.
2652 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
2654         * locale/setlocale.c (setname): Remove inline to avoid compiler
2655         warning.
2657         [BZ #6712]
2658         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
2660 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
2662         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
2663         doesn't manage to write anything, fail.
2665         * malloc/hooks.c (__malloc_check_init): Remove printf.
2667 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2669         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
2671 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
2673         * nscd/connections.c (main_loop_poll): Fix handling of read errors
2674         from inotify.
2675         (main_loop_epoll): Likewise.
2677 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
2679         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
2681         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
2682         if DEBUG is defined.
2684         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
2685         query.  Adjust buffer size computation for padding.
2687 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
2689         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
2690         * stdio-common/tst-setvbuf1.c: New file.
2691         * stdio-common/tst-setvbuf1.expect: New file.
2693         [BZ #6719]
2694         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
2695         when selecting fully-buffered stream.
2696         Patch by Wang Xin <wxinee@gmail.com>.
2698 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2700         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
2701         (__open_2): New function.
2702         (__open64_2): New alias to __open_2.
2703         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
2704         (__openat_2): New function.
2705         (__openat64_2): New alias to __openat_2.
2707 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
2709         [BZ #6723]
2710         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2712 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2714         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
2715         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
2716         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
2717         __hurd_dfail.
2718         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2719         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2720         * sysdeps/mach/hurd/send.c (__send): Likewise.
2721         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
2722         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
2724 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2726         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
2727         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2728         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2729         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
2730         * hurd/get-host.c (_hurd_get_host_config): Likewise.
2731         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
2733 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
2735         [BZ #6657]
2736         * time/strptime_l.c: Don't clear s.era_cnt after successful match
2737         of %EY.
2738         Patch by Petr Baudis.
2740 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
2742         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
2743         Patch by Peter Jones <pjones@redhat.com>.
2745 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
2747         [BZ #6654]
2748         * stdlib/canonicalize.c (__realpath): readlink can write too much
2749         into the buffer on platforms without PATH_MAX.
2751 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
2753         [BZ #6653]
2754         * posix/tst-regex.c (main): Rename to...
2755         (do_test): ... this. Remove cmdline option processing.
2756         (TIMEOUT): Define.
2757         (TEST_FUNCTION): Define.
2758         (CMDLINE_OPTIONS): Define.
2760 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
2762         [BZ #5210]
2763         * configure.in: Add -Werror to -fstack-protector test to catch
2764         unsupported architectures.
2765         Patch by Gilles Esponasse <g.esp@free.fr>.
2767 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
2769         * stdlib/tst-setcontext.c: Set back_in_main before exit if
2770         getcontext returns ENOSYS.
2772 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
2774         * nscd/connections.c (main_loop_poll): Fix test for read error.
2775         (main_loop_epoll): Likewise.
2777 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
2779         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
2780         better place so it is not called when nscd is used.
2782         * nscd/connections.c: Also recognize and handle changes to the
2783         resolver configuration file.
2785 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
2787         * time/strftime.c: Pass reference to tzset_called around to handle
2788         recursive calls.
2790         [BZ #6612]
2791         * time/strftime.c (__strftime_internal): Call tzset() only
2792         when printing timezone-dependent values.
2793         Based on a patch by Petr Baudis <pasky@suse.cz>.
2795         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
2796         unconditionally use second gaih_getanswer_slice result.
2798         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
2799         (getaddrinfo): RES must always be non-NULL.
2801 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
2803         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
2804         cr[34] registers.
2805         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2806         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2807         Likewise.
2808         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
2809         register.
2811 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
2813         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
2814         fields.
2815         * nscd/connections.c (inotify_fd): New variable.
2816         (nscd_init): Try to open an inotify descriptor.
2817         If successful, watch files for databases using inotify instead of
2818         having prune threads stat the files.
2819         (nscd_run_prune): Recognize clear_cache flag being set and call
2820         prune_cache appropriately.
2821         (main_loop_poll): Add inotify descriptor to wait set and handle the
2822         reported changes.
2823         (main_loop_epoll): Likewise.
2824         * nscd/cache.c (prune_cache): Don't stat files for databases if
2825         inotify is used.
2826         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
2827         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
2829         * nscd/grpcache.c (cache_addgr): Correctly compute size of
2830         fixed-size portion of the record.
2831         * nscd/servicescache.c (cache_addserv): Likewise.
2832         * nscd/pwdcache.c (cache_addpw): Likewise.
2833         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2835 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
2837         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
2838         out we don't use uninitialized memory.
2840         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
2841         the client.
2843 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
2845         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
2846         ignore T_DNAME messages.
2847         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
2849 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
2851         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
2852         Avoid segfault if first GETC returns eof/'\0'/'\n'.
2854 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
2856         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
2857         instead of portstr to nscd_getserv_r.  Patch by
2858         Roman Kagan <rkagan@mail.ru>.
2860 2008-05-26  Jim Meyering  <meyering@redhat.com>
2862         Remove more useless "if" tests before "free".
2863         * include/inline-hashtab.h (htab_delete): Likewise.
2864         * libio/freopen.c (freopen): Likewise.
2865         * libio/freopen64.c (freopen64): Likewise.
2866         * locale/programs/ld-collate.c (collate_read): Likewise.
2867         * misc/fstab.c (libc_freeres_fn): Likewise.
2868         * posix/glob.c (globfree): Likewise.
2870 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
2872         * string/Makefile (strop-tests): Add memmem.
2873         * string/test-memmem.c: New file.
2874         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
2875         (test_init): Size buf1 according to BUF1PAGES.
2877 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
2879         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
2880         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
2881         (CFLAGS-scanf17.c): New.
2882         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
2883         * stdio-common/scanf15.c (main): Likewise.
2884         * stdio-common/scanf16.c: New file.
2885         * stdio-common/scanf17.c: New file.
2887 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
2889         * resolv/res_send.c (send_dg): If we already have one of two
2890         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
2891         use the one answer insted of failing.
2893 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
2895         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
2896         being executed on PowerPC as the expected result exceeds IBM
2897         long double 128 __LDBL_MAX__.
2899 2008-05-21  Roland McGrath  <roland@redhat.com>
2901         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
2903         * Makefile (check-data): Use $(abi-name) before other guesses.
2904         Look in $(add-ons) dirs before scripts/data/.
2905         * elf/Makefile (check-data): Likewise.
2907         * scripts/soversions.awk: Grok ABI line.
2908         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
2909         Emit definition for abi-name variable.
2911 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
2913         * string/endian.h: Define new fixed-size hto* and *toh macros only
2914         if [__USE_BSD].
2916         * iconvdata/Depend: Add localedata.
2918 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2920         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
2922 2008-05-08  David S. Miller  <davem@davemloft.net>
2924         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
2925         HIDDEN_JUMPTARGET.
2926         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2927         (__SYSCALL_CLOBBERS): Remove %g* registers.
2928         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2929         (__SYSCALL_CLOBBERS): Likewise.
2930         * scripts/data/localplt-sparc-linux-gnu.data: New file.
2931         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
2933 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
2935         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2936         (CALL_ERRNO_LOCATION): Define.
2937         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2938         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2939         (CALL_ERRNO_LOCATION): Define.
2940         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2941         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
2942         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
2944 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
2946         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
2947         variable.
2949 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
2951         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
2952         (FIRST_FRAME_POINTER): Define.
2954 2008-05-09  David S. Miller  <davem@davemloft.net>
2956         * sysdeps/sparc/sparc64/backtrace.c: New file.
2958 2008-05-14  David S. Miller  <davem@davemloft.net>
2960         * sysdeps/sparc/machine-gmon.h: New file.
2961         * sysdeps/sparc/sparc-mcount.S: Likewise.
2962         * sysdeps/sparc/Makefile: Add sparc-mcount target to
2963         sysdep_routines in gmon directory.
2965 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
2967         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
2969 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
2971         * resolv/res_query.c (__libc_res_nquery): In case one of two
2972         answer was too short don't try to read that answer's header.
2974         * resolv/res_send.c (send_dg): In case of timeout and there are
2975         two queries and one has been answered, return value indicating
2976         success.
2978 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
2980         * nscd/cache.c (cache_add): Take additional parameter specifying
2981         whether this is in response of a cache refill.  Check alignment
2982         of package data.  Revamp waking of pruning thread.
2983         (prune_cache): Small optimization.
2984         * nscd/nscd.h: Adjust cache_add prototypes.
2985         * nscd/aicache.c: Adjust cache_add calls.
2986         * nscd/grpcache.c: Likewise.
2987         * nscd/hstcache.c: Likewise.
2988         * nscd/initgrcache.c: Likewise.
2989         * nscd/pwdcache.c: Likewise.
2990         * nscd/servicescache.c: Likewise.
2991         * nscd/connections.c (restart): Really disable cache use before
2992         exec attempt.  If it fails, reenable cache.
2993         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
2994         time to max to be able to notice concurrent cache additions.  Unlock
2995         prune_lock while performing gc.  Afterwards compute wakeup time with
2996         current wakeup_time value in mind.
2998 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
3000         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
3002         * nscd/mem.c (gc): Correctly determine highest used array element
3003         in mark.
3005         * nscd/mem.c (markrange): Add assert to check entries are all
3006         aligned.  Small cleanup in bitmap use.
3008         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
3009         blockoff of type nscd_ssize_t.
3010         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
3011         (mempoll_alloc): Record block offset and not address.
3013         * nscd/mem.c (gc): Fix test for stack overuse.
3015         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
3016         more asserts.
3018         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
3019         entry is available, believe it.
3021         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
3022         no answers return NSS_STATUS_NOTFOUND.
3023         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
3024         buffer does not have any content.
3026 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
3028         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
3030         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
3031         lookup, don't assign canon unconditionally.
3033 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3035         * string/Makefile (distribute): Add str-two-way.h.
3037 2008-03-29  Eric Blake  <ebb9@byu.net>
3039         Rewrite string searches to O(n) rather than O(n^2).
3040         * string/str-two-way.h: New file.  For linear fixed-allocation
3041         string searching.
3042         * string/memmem.c: New implementation.
3043         * string/strstr.c: New implementation.
3044         * string/strcasestr.c: New implementation.
3046 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
3048         * posix/regcomp.c (optimize_utf8): Add a note on why we test
3049         opr.ctx_type.
3050         (calc_first): Initialize constraint field.
3051         (duplicate_node_closure): Use it instead of special casing ANCHORS.
3052         Use search_duplicated_node to avoid loops.  Fix grammar.
3053         (duplicate_node): Merge constraint field for all node types.
3054         (calc_eclosure_iter): Look at constraint field for all node types.
3055         * posix/regex_internal.c (create_cd_newstate): Don't look at
3056         create_cd_newstate.
3058 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3060         [BZ #6428]
3061         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
3063         [BZ #6442]
3064         * string/endian.h: Add macros for fixed-size endian conversion.
3065         * bits/byteswap.h: Allow inclusion from <endian.h>.
3066         * sysdeps/i386/bits/byteswap.h: Likewise.
3067         * sysdeps/ia64/bits/byteswap.h: Likewise.
3068         * sysdeps/s390/bits/byteswap.h: Likewise.
3069         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3070         * string/Makefile (tests): Add tst-endian.
3071         * string/tst-endian.c: New file.
3073         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
3074         Patch by Reuben Thomas.
3076 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
3078         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
3080 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3082         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
3084         [BZ #6461]
3085         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
3086         Add missing braces.
3087         (BODY for __gconv_transform_internal_ascii): Likewise.
3089         [BZ #6472]
3090         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
3091         to be treated like link-local addresses.
3092         (match_prefix): Don't treat IPv4 loopback address special when
3093         converting to v4 mapped addressed.
3095         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
3096         if necessary.
3097         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
3098         * posix/tst-rfc3484-2.c: Likewise.
3099         * posix/tst-rfc3484-3.c: Likewise.
3101         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
3102         and SCTP.
3104         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
3106         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
3108         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
3110 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
3112         * po/lt.po: New file.  From Lituanian translation team.
3114 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
3116         Introduce TLS descriptors for i386 and x86_64.
3117         * include/inline-hashtab.h: New file, copied from 2005's
3118         libiberty, with fix for memory leak imported afterwards by
3119         Glauber de Oliveira Costa.
3120         * elf/tlsdeschtab.h: New file.
3121         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
3122         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
3123         (CHECK_STATIC_TLS): Move to...
3124         * elf/dynamic-link.h: ... this file.
3125         (TRY_STATIC_TLS): New macro.
3126         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
3127         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
3128         R_386_TLS_DESC): Define.
3129         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
3130         binutils.
3131         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
3132         R_X86_64_TLSDESC): Define.
3133         (R_386_NUM, R_X86_64_NUM): Adjust.
3134         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
3135         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3136         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3137         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
3138         release tlsdesc_table.
3139         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
3140         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
3141         (elf_machine_rel): Handle R_386_TLS_DESC.
3142         (elf_machine_rela): Likewise.
3143         (elf_machine_lazy_rel): Likewise.
3144         (elf_machine_lazy_rela): Likewise.
3145         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
3146         * sysdeps/i386/dl-tlsdesc.S: New file.
3147         * sysdeps/i386/dl-tlsdesc.h: New file.
3148         * sysdeps/i386/tlsdesc.c: New file.
3149         * sysdeps/i386/tlsdesc.sym: New file.
3150         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
3151         tlsdesc_table.
3152         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
3153         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3154         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3155         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
3156         release tlsdesc_table.
3157         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
3158         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
3159         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
3160         (elf_machine_rel): Handle R_X86_64_TLSDESC.
3161         (elf_machine_rela): Likewise.
3162         (elf_machine_lazy_rel): Likewise.
3163         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
3164         (__tls_get_addr): Do not declare for non-shared compiles.
3165         * sysdeps/x86_64/dl-tlsdesc.S: New file.
3166         * sysdeps/x86_64/dl-tlsdesc.h: New file.
3167         * sysdeps/x86_64/tlsdesc.c: New file.
3168         * sysdeps/x86_64/tlsdesc.sym: New file.
3169         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
3170         tlsdesc_table for both 32- and 64-bit structs.
3172 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
3174         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
3175         its own function.  This reduces the frame setup costs and more.
3177 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
3179         [BZ #3406]
3180         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
3181         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
3183 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
3185         * io/openat.c (__openat_2): Also pass fd to __openat.
3186         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
3187         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
3189         * string/tester.c (test_memcmp): Add a few more tests.
3190         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
3192 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
3194         * nscd/cache.c (cache_add): Before returning with failure and this
3195         is the first use of the record, mark it as unusable.
3196         * nscd/aicache.c: Don't touch the dataset after cache_add returns
3197         reporting a failure.
3198         * nscd/grpcache.c: Likewise
3199         * nscd/hstcache.c: Likewise.
3200         * nscd/initgrcache.c: Likewise.
3201         * nscd/pwdcache.c: Likewise.
3202         * nscd/servicescache.c: Likewise.
3204 2008-05-10  Roland McGrath  <roland@redhat.com>
3206         [BZ #6505]
3207         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
3209 2008-05-08  David S. Miller  <davem@davemloft.net>
3211         * misc/truncate64.c (truncate64): Use __truncate not truncate.
3213         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
3214         (__ieee754_y0l): Likewise.
3215         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
3216         (__ieee754_y1l): Likewise.
3217         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
3218         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
3219         frexpl and ldexpl.  math_private.h provides them and the latter
3220         is not even used.
3221         (__log1pl): Use __frexpl.
3223 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
3225         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
3226         prototypes.
3227         * include/arpa/nameser_compat.h: Define T_UNSPEC.
3228         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
3229         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
3230         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
3231         af==AF_UNSPEC.
3232         (_nss_nis_gethostbyname4_r): New function.
3233         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3234         Change to also handle af==AF_UNSPEC.
3235         (get_tablename): New function.  Use it to avoid duplication.
3236         (_nss_nisplus_gethostbyname4_r): New function.
3237         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
3238         available.
3239         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
3240         * nss/nss.h: Define struct gaih_addrtuple.
3241         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
3242         af==AF_UNSPEC.
3243         (_nss_files_gethostbyname4_r): New function.
3244         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
3245         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
3246         calls.
3247         * resolv/res_query.c (__libc_res_nquery): Take two additional
3248         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
3249         look up IPv4 and IPv6.
3250         Change all callers.
3251         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
3252         for an additional query and answer buffer.  Pass to send_vc and
3253         send_dg.
3254         (send_vc): Send possibly two requests and receive two answers.
3255         (send_dg): Likewise.
3256         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
3257         __libc_res_nquery.
3258         (_nss_dns_gethostbyname4_r): New function.
3259         (gaih_getanswer_slice): Likewise.
3260         (gaih_getanswer): Likewise.
3261         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
3262         __libc_res_nquery call.
3263         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
3264         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
3265         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
3266         available.
3268 2008-05-05  David S. Miller  <davem@davemloft.net>
3270         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
3271         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
3273 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3275         Fix termios bit macros.
3276         Move *DLY definitions where they belong, in termios.h.
3277         Add *[0-3] definitions.
3278         Fixes confusion between VT and FF.
3279         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
3280         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
3281         are already defined to avoid collision with termios.h.
3282         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
3283         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
3284         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
3285         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
3286         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
3287         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
3288         VTDLY, VT0, VT1): New macros.
3289         [__USE_GNU] (OLCUC): Change value of macro.
3290         [__USE_XOPEN] (OFILL): New macro.
3291         [__USE_BSD] (CRTSCTS): Change value.
3292         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
3293         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
3294         (B7200, B14400, B28800, B76800): New macros.
3296 2008-05-01  David S. Miller  <davem@davemloft.net>
3298         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
3299         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
3300         (gen-as-const-headers): Add it.
3301         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
3302         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
3303         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
3304         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
3306         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
3307         six system call parameters.
3308         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
3310 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
3312         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
3313         RUSAGE_LWP.
3314         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
3315         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
3317 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
3319         * stdlib/tst-setcontext.c: Include unistd.h.
3321 2008-04-25  David S. Miller  <davem@davemloft.net>
3323         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
3324         Pass "union semun" properly in to sys_ipc, it must be passed
3325         by value, not by reference.
3327 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
3329         * nscd/Makefile (nscd-cflags): Set back to -fpie.
3330         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
3331         * nscd/connections.c (mem_in_flight): Likewise.
3333         * nscd/nscd.h (dbs): Make hidden.
3335         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
3336         Avoid returning -1, return 0 instead.
3338 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
3340         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
3342 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
3344         [BZ #5209]
3345         * sysdeps/unix/sysv/linux/times.c: New file.
3347         [BZ #5381]
3348         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
3349         mem_in_flight_list variables.  Add new parameter to mempool_alloc
3350         prototype.
3351         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
3352         appropriate mem_in_flight element.
3353         (gc): Take allocations which have not yet been committed to the
3354         database into account.
3355         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
3356         Reset mem_in_flight before returning.
3357         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
3358         cue it up in mem_in_flight_list.
3359         * nscd/aicache.c: Adjust mempool_alloc call.
3360         * nscd/grpcache.c: Likewise.
3361         * nscd/hstcache.c: Likewise.
3362         * nscd/initgrcache.c: Likewise.
3363         * nscd/pwdcache.c: Likewise.
3364         * nscd/servicescache.c: Likewise.
3365         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
3366         of -fpie.
3368         * nscd/connections.c (handle_request): Provide better error message
3369         in case SELinux forbids the service.
3371         * version.h (VERSION): Bump to 2.8.90.
3373 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
3375         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
3377 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
3379         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
3380         Also use for 32-bit.
3381         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
3382         __nextafter instead of nextafter to avoid local PLT.
3383         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
3384         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3386         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
3388         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
3389         __fe_nomask_env.
3390         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
3391         <fenv_libc.h> instead of <fenv.h>.
3392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
3393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
3395         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
3397         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
3398         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
3399         function from fegetexcept and make old name weak alias.
3400         * include/fenv.h: Declare __fegetexcept.
3401         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
3402         fegetexcept.
3403         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
3404         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
3405         to fetestexcept.
3406         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
3407         instead of frexpl to avoid local PLT.
3408         * math/s_significandl.c (__significandl): Use __ilogbl instead of
3409         ilogbl to avoid local PLT.
3410         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
3411         instead of ldexpl to avoid local PLT.
3412         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3413         __roundl not roundl to avoid local PLT.
3414         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
3415         local PLTs.  Use __sincosl instead of separate sinl and cosl
3416         calls.
3417         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3419         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
3420         version for ppc64 to 2.4.21 since without it makecontext will fail.
3422         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
3423         to the ABI in use.
3424         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
3425         .__tls_get_addr.
3426         [__powerpc64__] (TLS_GD): Likewise.
3428 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
3430         [BZ #4997]
3431         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
3432         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
3433         mantissa.
3434         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3435         Likewise.  Also account for when x is an odd number between 2^52
3436         and 2^53-1.
3437         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
3438         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3439         * math/libm-test.inc (lround_test, llround_test): Added test cases to
3440         detect aforementioned erroneous conditions.
3442 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
3444         * configure.in: Check for -fno-section-anchors in addition to
3445         -fno-toplevel-reorder.
3447 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
3449         * include/features.h (__GLIBC_MINOR__): Bump to 8.
3451         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
3452         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3453         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3454         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3455         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3456         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3458 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
3460         [BZ #5443]
3461         * time/era.c: Transform __libc_setlocale_lock into rwlock.
3462         * time/alt_digit.c: Likewise.
3463         * wcsmbs/wcsmbsload.c: Likewise.
3465 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
3467         * version.h (VERSION): Bump to 2.8.
3469         * timzeone/asia: Update from tzdata2008b.
3470         * timezone/backward: Likewise.
3471         * timezone/europe: Likewise.
3472         * timezone/northamerica: Likewise.
3473         * timezone/southamerica: Likewise.
3474         * timezone/iso3166.tab: Likewise.
3475         * timezone/leapseconds: Likewise.
3476         * timezone/zone.tab: Likewise.
3477         * timezone/private.h: Update from tzcode2008a.
3478         * timezone/zdump.c: Likewise.
3479         * timezone/zic.c: Likewise.
3481 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
3483         [BZ #5741]
3484         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
3485         Define additonal Data Cache Block instruction macros.
3486         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
3487         Replace dcbst with dcbf and sync with sync/isync.
3489 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
3491         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
3492         Always set ELF_RTYPE_CLASS_PLT.
3493         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
3495 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
3497         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
3498         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
3499         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
3500         For ISA 2.01 and later replace mftb with mfspr 268.
3502 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
3504         [BZ #5768]
3505         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
3506         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
3508 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
3510         [BZ #5768]
3511         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
3512         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
3513         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
3514         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
3516 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
3518         * stdlib/tst-makecontext.c (othervar): New variable.
3519         (cf): Test sign extending the argument to long.
3521 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
3523         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
3524         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
3525         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
3526         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
3527         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
3528         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
3529         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
3531 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
3533         * elf/Makefile (tests): Substitute tests-vis-yes here.
3534         (tests-vis-yes): Delete.
3535         (modules-name, modules-vis-yes): Similarly.
3537 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
3539         [BZ #4407]
3540         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3541         Preserve sign in signgamp when x is zero.
3543 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
3545         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
3546         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
3547         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
3548         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
3549         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
3550         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
3552 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
3554         [BZ #4314]
3555         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
3556         buffers.
3558         [BZ #5209]
3559         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
3560         a reserved error value.
3562         * stdlib/tst-makecontext.c: Change parameter to cf to negative
3563         value to check for correct sign extension.
3565         [BZ #5436]
3566         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3567         Copy 64-bit parameter values even though this is not required in
3568         the standard.
3570         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
3571         PC save.
3573 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
3575         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
3576         PC save.
3578 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
3580         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
3582 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
3584         [BZ #5998]
3585         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
3586         in line-buffered stream failed.
3587         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3589 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
3591         [BZ #6024]
3592         * scripts/abi-versions.awk: If the version specified by
3593         --enable-oldest-abi is older than the first version for this
3594         architecture, use the default version.
3596         * locale/programs/ld-collate.c (collate_read): Ignore script lines
3597         as well when ignoring the whole category.
3599 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
3601         [BZ #6042]
3602         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
3603         ETHERTYPE_* definitions.
3604         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
3606 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
3608         * stdlib/mbtowc.c (__no_r_state): Remove.
3609         (mbtowc): New static state variable.  Use it instead of
3610         __no_r_state.
3611         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
3612         (__wctomb_state): New hidden variable.
3613         (wctomb): Use __wctomb_state instead of __no_r_state.
3614         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
3615         (__wctomb_state): New extern decl.
3616         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
3618 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
3620         [BZ #5475]
3621         * resolv/res_init.c: Handle scope IDs in resolv.conf.
3623 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
3625         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
3627 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
3629         * po/nl.po: Update from translation team.
3631 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
3633         [BZ #6007]
3634         * string/strfry.c: Handle empty strings again.
3636 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
3638         [BZ #5443]
3639         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
3640         before looking for translation.
3641         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
3642         * locale/freelocale.c: Likewise.
3643         * locale/newlocale.c: Likewise.
3644         * locale/setlocale.c: Likewise.
3645         Based partially on a patch by ryo@np.css.fujitsu.com.
3647 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
3649         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
3650         acquiring wrlock.  Do conv_tab allocation while holding lock.
3651         * intl/Makefile: Add rules to build and run tst-gettext6.
3652         * intl/tst-gettext6.c: New test.
3653         * intl/tst-gettext6.sh: New file.
3655 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
3657         * po/nl.po: Update from translation team.
3659         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
3660         provided through st_blksize, try the default size before giving up.
3662 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
3664         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
3666         [BZ #5939]
3667         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
3669         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
3670         error message.  POSIX today does not require the messages to be in
3671         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
3673         [BZ #5979]
3674         * sunrpc/auth_unix.c: Unify printed strings.
3675         * sunrpc/clnt_tcp.c: Likewise.
3676         * sunrpc/clnt_udp.c: Likewise.
3677         * sunrpc/clnt_unix.c: Likewise.
3678         * sunrpc/svc_tcp.c: Likewise.
3679         * sunrpc/svc_udp.c: Likewise.
3680         * sunrpc/svc_unix.c: Likewise.
3681         * sunrpc/xdr.c: Likewise.
3682         * sunrpc/xdr_array.c: Likewise.
3683         * sunrpc/xdr_rec.c: Likewise.
3684         * sunrpc/xdr_ref.c: Likewise.
3685         * locale/programs/ld-time.c (time_finish): Unify messages.
3686         * locale/programs/locfile.c (handle_copy): Fix typo.
3687         * nscd/nscd.c (options): Fix typo.
3689         [BZ #5995]
3690         * stdlib/strtod_l.c: Use correct sign for result in one more
3691         underflow case.
3692         Patch by Eric Blake <ebb9@byu.net>.
3694 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
3696         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
3697         and creat system calls.
3698         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
3699         call.
3700         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
3701         system calls.
3702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
3703         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3704         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3706 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
3708         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
3709         <linux/limits.h> has defined it.
3710         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
3711         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
3712         headers.
3713         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
3714         it instead of ARG_MAX.
3716 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
3718         * posix/gai.conf: Fix comment for scope nullbits.
3719         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
3720         default to 128 bits for v4 mapped addresses.
3722 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3724         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
3725         ptrace call to get the ieee_instruction_pointer from the kernel.
3726         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
3727         ptrace call to set the ieee_instructtion_pointer.
3728         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
3729         Add comment that ieee_instruction_pointer is always 0.
3731 2008-03-09  Andreas Jaeger  <aj@suse.de>
3733         [BZ #5857]
3734         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
3735         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
3736         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
3738         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
3739         (rint_test): Likewise.
3741 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
3743         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
3744         call.
3745         (__nisfind_server): Similar for open readColdStartFile call.
3746         Patch partially by Jim Meyering.
3747         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
3748         around internal_setent call.
3750         * po/vi.po: New Vietnamese translation.
3752         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
3753         ADJ_OFFSET_SS_READ.
3755         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
3756         remove CLONE_STOPPED.
3758 2008-02-10  Jim Meyering  <meyering@redhat.com>
3760         Remove useless "if" before "free":
3761         * elf/ldconfig.c (parse_conf_include): Likewise.
3762         * gmon/gmon.c (weak_alias): Likewise.
3763         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
3764         * inet/rcmd.c (__validuser2_sa): Likewise.
3765         * intl/bindtextdom.c (set_binding_values): Likewise.
3766         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
3767         * libio/genops.c (save_for_backup): Likewise.
3768         * libio/wgenops.c (save_for_wbackup): Likewise.
3769         * locale/programs/ld-collate.c (collate_read): Likewise.
3770         * locale/programs/linereader.c (get_string): Likewise.
3771         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
3772         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
3773         * resolv/res_debug.c (do_section): Likewise.
3774         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
3775         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
3776         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3777         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
3778         * time/tzset.c (tzset_internal): Likewise.
3780 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
3782         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
3783         of ASSEMBLER.
3785 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
3787         [BZ #5903]
3788         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
3789         not stream for output file.  Open output file here.
3790         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
3791         and output file name.
3792         (process_fd): Likewise.
3793         (process_file): Likewise.
3794         (main): Adjust callers of changed functions.
3795         * iconv/iconv_prog.h: Adjust prototype.
3797 2008-03-09  Andreas Jaeger  <aj@suse.de>
3799         [BZ #5753]
3800         * sysdeps/ia64/ieee754.h: Use protected namespace
3801         __BIG_ENDIAN/__LITTLE_ENDIAN.
3802         * sysdeps/ieee754/ieee754.h: Likewise.
3803         Patch by Aurelien Jarno <aurelien@aurel32.net>.
3805 2008-03-08  Roland McGrath  <roland@frob.com>
3807         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
3808         ignore a signal that came from a machine exception, treat it as a
3809         fatal core-dump signal instead.
3810         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3812         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3813         Clear DF bit in thread state's eflags.
3814         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3816 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
3818         [BZ #5774]
3819         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
3820         of NAN(...) sequence.
3821         * stdlib/Makefile (tests): Add tst-strtod6.
3822         * stdlib/tst-strtod6.c: New file.
3824         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
3826         [BZ #5762]
3827         * posix/getopt.c (_getopt_internal_r): Clarify error message by
3828         putting offending option character in quotes.  Clean up error
3829         messages.
3830         * po/be.po: Adjust msgstr in translation file.
3831         * po/bg.po: Likewise.
3832         * po/ca.po: Likewise.
3833         * po/cs.po: Likewise.
3834         * po/da.po: Likewise.
3835         * po/de.po: Likewise.
3836         * po/es.po: Likewise.
3837         * po/fr.po: Likewise.
3838         * po/hr.po: Likewise.
3839         * po/ko.po: Likewise.
3840         * po/nl.po: Likewise.
3841         * po/rw.po: Likewise.
3842         * po/sk.po: Likewise.
3843         * po/sv.po: Likewise.
3844         * po/tr.po: Likewise.
3845         * po/zh_CN.po: Likewise.
3846         * po/zh_TW.po: Likewise.
3848         [BZ #5760]
3849         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
3850         Patch by Roland Bless <roland@bless.de>.
3852         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
3853         .o file.
3854         * elf/Makefile (routines): Add dl-sysdep.
3855         (elide-routines.os): Likewise.
3857 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
3859         [BZ #5786]
3860         * elf/dl-sysdep.c: Undefine ROUND after use.
3861         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
3862         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
3863         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
3864         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
3865         to ...
3866         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
3867         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
3868         if necessary.
3869         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
3871         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
3872         _dl_tls_get_addr_soft element.
3873         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
3874         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
3875         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
3876         GLRO.
3877         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
3878         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
3879         of internal_function.
3881         * stdlib/Makefile (aux): Add tens_in_limb.
3882         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
3883         * stdlib/tens_in_limb.c: ...here.  New file.
3885         [BZ #5778]
3886         * sysdeps/unix/sysv/linux/pathconf.h: Declare
3887         __statfs_chown_restricted.
3888         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
3889         for _PC_CHOWN_RESTRICTED.
3890         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
3891         Implement __statfs_chown_restricted.
3892         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
3893         _POSIX_CHOWN_RESTRICTED value to zero.
3894         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
3895         defined to zero.
3897         * sysdeps/x86_64/rtld-memset.c: New file.
3899 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
3901         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
3903         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
3904         Barcelona machine.  Make default fall through branch of
3905         __x86_64_preferred_memory_instruction check as the integer code path.
3907 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
3909         * sysdeps/x86_64/cacheinfo.c
3910         (__x86_64_preferred_memory_instruction): New variable.
3911         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3913         * sysdeps/x86_64/memset.S: Rewrite.
3915 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
3917         * include/stdio.h (__asprintf_chk, __dprintf_chk,
3918         __obstack_printf_chk): New prototypes.
3919         (__vasprintf_chk, __vdprintf_chk,
3920         __obstack_vprintf_chk): Likewise.
3921         Add libc_hidden_proto.
3922         * libio/obprintf.c
3923         (_IO_obstack_jumps): No longer static, add attribute_hidden.
3924         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
3925         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3926         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
3927         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
3928         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3929         __obstack_vprintf_chk): New prototypes.
3930         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
3931         obstack_vprintf): New inlines.
3932         * debug/dprintf_chk.c: New file.
3933         * debug/vdprintf_chk.c: New file.
3934         * debug/asprintf_chk.c: New file.
3935         * debug/vasprintf_chk.c: New file.
3936         * debug/obprintf_chk.c: New file.
3937         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
3938         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
3939         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
3940         @@GLIBC_2.8.
3941         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
3942         vdprintf_chk and obprintf_chk, set CFLAGS for them.
3943         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
3944         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
3945         libc_hidden_proto.
3946         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
3947         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
3948         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
3949         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
3950         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
3951         @@GLIBC_2.8.
3952         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
3953         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
3954         obstack_vprintf_chk.
3955         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
3956         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
3957         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
3958         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
3959         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
3960         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
3962 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
3964         [BZ #5779]
3965         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
3966         Patch by Roy Marples <roy@marples.name>.
3968         [BZ #5736]
3969         * malloc/malloc.c: Fix typo in comment.
3971         [BZ #5627]
3972         * locale/iso-639.def: Add Shuswap.
3974 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
3976         [BZ #5790]
3977         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
3978         overwrite *h_errnop/*errnop values from getanswer_r in case of
3979         failure.
3981 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
3983         [BZ #5818]
3984         * nscd/connections.c (dbs): Add initializers for .suggested_module.
3985         (verify_persistent_db): Remove one unnecessary test and add a new one
3986         for bad configuration.
3987         (nscd_init): Improve error reported when persistent database cannot
3988         be reused.
3989         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
3990         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
3991         .suggested_module and .max_db_size and case config file says the
3992         values are zero.
3993         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
3995         [BZ #5854]
3996         * nis/ypclnt.c (yp_order): Fix handling of return value of
3997         do_ypcall_tr call.
3998         Patch by Jeff Moyer <jmoyer@redhat.com>.
4000         * po/fr.po: Update from translation team.
4002 2008-02-22  Andreas Jaeger  <aj@suse.de>,
4003             Carlos O'Donell <carlos@systemhalted.org>
4005         [BZ #5012]
4006         * FAQ.in: Describe why glibc needs to be compiled with
4007         optimization.
4009 2008-02-19  Roland McGrath  <roland@redhat.com>
4011         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
4013 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
4015         [BZ #5737]
4016         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
4017         __USE_MISC is defined.
4019 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
4021         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
4022         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
4023         sys/timerfd.h.
4024         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
4025         timerfd_gettime, timerfd_settime.
4026         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
4027         timerfd_gettime, timerfd_settime for GLIBC_2.8.
4029 2008-02-08  Roland McGrath  <roland@redhat.com>
4031         * elf/elf.h (NT_PPC_SPE): New macro.
4033 2008-02-06  Roland McGrath  <roland@redhat.com>
4035         * Makerules ($(common-objpfx)sysd-rules):
4036         Depend on $(sysdep-makeconfigs).
4038 2008-01-31  Roland McGrath  <roland@redhat.com>
4040         [BZ #5442]
4041         * configure.in: Use -print-file-name if it yields a directory,
4042         for each of include and include-fixed.
4043         * configure: Regenerated.
4045         * Makeconfig (sysd-rules-targets): New variable.
4046         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
4047         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
4049 2008-01-30  Roland McGrath  <roland@redhat.com>
4051         * manual/libc.texinfo: Update back-cover text.
4053         * elf/elf.h (NT_386_TLS): New macro.
4055 2008-01-29  Roland McGrath  <roland@redhat.com>
4057         * Makeconfig (sysd-rules-patterns): New variable.
4058         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
4059         (check-inhibit-asm): New canned sequence, replaces ...
4060         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
4061         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
4062         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
4063         (CFLAGS-rtld): Variable removed.
4065 2008-01-24  Roland McGrath  <roland@redhat.com>
4067         * configure.in: Let configure fragments set base_os.
4068         * configure: Regenerated.
4070 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
4072         * po/ko.po: Update from translation team.
4074 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
4076         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
4078 2008-01-12  Andreas Jaeger  <aj@suse.de>
4080         [BZ #5040]
4081         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
4082         Add EPOLLRDHUP.
4084 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4086         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
4087         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
4088         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
4090 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
4092         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
4093         * elf/dl-close.c (_dl_close): Check for it.
4094         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
4095         (_dl_allocate_static_tls): Likewise.
4096         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
4097         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
4098         to it.
4099         * elf/tst-tls16.c: New file.
4100         * elf/tst-tlsmod16a.c: New file.
4101         * elf/tst-tlsmod16b.c: New file.
4102         * elf/Makefile: Add rules to build and run tst-tls16.
4104 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
4106         [BZ #5628]
4107         * bits/shm.h: Fix comment describing shmid_ds.
4108         * sysdeps/gnu/bits/shm.h: Likewise.
4109         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
4110         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
4111         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
4112         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
4113         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
4114         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
4115         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
4116         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
4117         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
4119         [BZ #5607]
4120         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
4121         prototypes.
4122         * conform/data/limits.h-data: Adjust limits changed in v6 and add
4123         additional suffixes.
4124         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
4125         Add optional functions mq_timedreceive and mq_timedsend.
4126         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
4127         * conform/data/pthread.h-data: Fix prototype of
4128         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
4129         * conform/data/semaphore.h-data: Allow time.h definitions.
4130         * conform/data/signal.h-data: Likewise.
4131         * conform/data/stdio.h-data: getw and putw are not required in v6.
4132         * conform/data/stdlib.h-data: Change setstate prototype.
4133         * conform/data/string.h-data: Fix strerror_r prototype.
4134         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
4135         * conform/data/unistd.h-data: pthread_atfork not required in v6.
4136         Fix readlink prototype.
4137         * conform/data/netinet/in.h-data: Add const to in6addr_any and
4138         in6addr_loopback.
4139         * inet/netinet/in.h: Cleanup namespace.
4140         * posix/regex.h: Likewise.
4141         * resolv/netdb.h: Likewise.
4142         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
4143         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4144         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4145         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
4146         of names of in in6_addr.
4147         (default_precedence): Likewise.
4148         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
4149         NULL definition.
4151 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
4153         * conform/data/fmtmsg.h-data: Add missing allows.
4154         * conform/data/ftw.h-data: Likewise.
4155         * conform/data/inttypes.h-data: Likewise.
4156         * conform/data/math.h-data: Likewise.
4157         * conform/data/signal.h-data: Likewise.
4158         * conform/data/net/if.h-data: Likewise.
4159         * conform/data/netinet/in.h-data: Likewise.
4160         * conform/data/sys/socket.h-data: Likewise.
4162         [BZ #5614]
4163         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
4164         (__strtok_r): Simplify.
4165         * string/tester.c (test_strtok_r): Add test case for futile search
4166         with single-character seach string.
4168 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
4170         * po/ko.po: Update from translation team.
4172 2008-01-11  Andreas Jaeger  <aj@suse.de>
4174         [BZ #5600]
4175         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
4176         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
4177         kernel header.
4179 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
4181         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
4182         native interface lookup in all the relevant places.
4184 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
4185             Ulrich Drepper  <drepper@redhat.com>
4187         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
4188         field.  Use sockaddr_in6 for source_addr.
4189         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
4190         (match_prefix): Likewise.
4191         (get_label): Likewise.
4192         (get_precedence): Likewise.
4193         (rfc3484_sort): Change to use indirect access to results array.
4194         Adjust to use of sockaddr_in6.  Replace service_order test with
4195         simple index comparison.
4196         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
4197         service_order field.  Adjust qsort_t calls.  Access sorted result
4198         array indirectly through order array.
4199         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
4200         * posix/tst-rfc3484-2.c: Likewise.
4201         * posix/tst-rfc3484-3.c: Likewise.
4203 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
4205         [BZ #5541]
4206         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
4207         pollfd structures.
4208         Patch by André Cruz.
4210         [BZ #5545]
4211         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
4212         (clnt_spcreateerror): Likewise.
4214         [BZ #5553]
4215         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
4216         (public_mEMALIGn): Likewise.
4217         Patch mostly by Daniel Jacobowitz.
4219 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
4221         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
4222         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
4223         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
4224         * stdlib/tst-makecontext2.c: New test.
4226 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
4228         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
4229         defined.
4230         (REINIT_PARAMS): Likewise.  Undefine before end of file.
4231         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
4232         transliteration hooks and REINIT_PARAMS afterwards.
4233         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
4234         status.
4235         (REINIT_PARAMS): Define.
4236         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
4237         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
4238         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
4239         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
4240         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
4241         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
4242         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
4243         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
4244         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
4245         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
4246         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
4247         * iconvdata/tst-iconv7.c: New test.
4249 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
4251         * libio/stdio.h (vscanf): Fix definition for loser compilers.
4253 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
4255         [BZ #5112]
4256         * nscd/connections.c (restart): Fix condition.
4258 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
4260         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
4261         __ctype_toupper_loc): Add __THROW.
4263 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
4265         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
4266         recognition of interface family.
4268         * posix/getconf.c: Update copyright year.
4269         * nss/getent.c: Likewise.
4270         * iconv/iconvconfig.c: Likewise.
4271         * iconv/iconv_prog.c: Likewise.
4272         * elf/ldconfig.c: Likewise.
4273         * catgets/gencat.c: Likewise.
4274         * csu/version.c: Likewise.
4275         * elf/ldd.bash.in: Likewise.
4276         * elf/sprof.c (print_version): Likewise.
4277         * locale/programs/locale.c: Likewise.
4278         * locale/programs/localedef.c: Likewise.
4279         * nscd/nscd.c (print_version): Likewise.
4280         * debug/xtrace.sh: Likewise.
4281         * malloc/memusage.sh: Likewise.
4282         * malloc/mtrace.pl: Likewise.
4283         * debug/catchsegv.sh: Likewise.
4285 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
4287         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
4288         second lookup.
4290 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
4292         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
4293         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4295 2007-12-17  Roland McGrath  <roland@redhat.com>
4297         * inet/ether_line.c (ether_line): Remove unused variable.
4299 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4301         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
4302         and winp.
4303         * login/openpty.c (openpty): Likewise.
4304         * login/pty.h (openpty, forkpty): Likewise.
4305         * manual/terminal.texi (openpty, forkpty): Likewise.
4307 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
4309         * malloc/malloc.c (public_cALLOc): For arenas other than
4310         main_arena, count all bytes inside the mprotect_size range of the
4311         heap as uninitialized.
4313 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
4315         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
4316         executable stacks.
4318         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
4319         mTRIm for all of them.
4320         (mTRIm): Additionally iterate over all free blocks and use madvise
4321         to free memory for all those blocks which contain at least one
4322         memory page.
4323         * malloc/tst-trim1.c: New file.
4324         * malloc/Makefile (tests): Add tst-trim1.
4326         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
4328 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
4330         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4331         First cast argument to long
4332         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
4333         Return long.
4334         (__vdso_clock_gettime): Likewise.
4335         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
4336         return long.
4338 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
4340         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
4341         * locale/nl_langinfo_l.c: Real implementation, copied from
4342         nl_langinfo.c.
4343         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
4345 2007-12-01  Jim Meyering  <meyering@redhat.com>
4347         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4348         that would inhibit utf8-optimization of a regexp containing line-
4349         or buffer-anchors, e.g., `^', `$'.
4351 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
4353         * time/bug-getdate1.c (do_test): Don't use century values which
4354         aren't valid on 32-bit systems.
4356 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
4358         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
4359         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
4360         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
4361         __strcat_g, __strncat_g): Add __asm__.
4363 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
4365         [BZ #5477]
4366         * io/fchmodat.c: Fix typo in stub_warning use.
4367         Patch by Petr Salinger.
4369 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
4371         * iconvdata/hp-thai8.c: New file.
4372         * iconvdata/Makefile: Add rules for hp-thai8.c.
4373         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
4374         * iconvdata/gconv-modules: Likewise.
4376         [BZ #5464]
4377         * iconvdata/hp-greek8.c: New file.
4378         * iconvdata/Makefile: Add rules for hp-greek8.c.
4379         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
4380         * iconvdata/gconv-modules: Likewise.
4382         [BZ #5463]
4383         * iconvdata/hp-turkish8.c: New file.
4384         * iconvdata/Makefile: Add rules for hp-turkish8.c.
4385         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
4386         * iconvdata/gconv-modules: Likewise.
4388         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
4389         (shrink_heap): ... this new function.
4390         (heap_trim): Call shrink_heap instead of grow_heap.
4392         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
4393         case don't call alloc_perturb.
4395 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
4397         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
4398         possible.
4399         * sysdeps/unix/sysv/linux/kernel-features.h
4400         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
4401         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
4403 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
4405         [BZ #5424]
4406         * stdio-common/vfprintf.c: Do not overflow when adding to done.
4407         * stdio-common/Makefile (tests): Add bug22.
4408         * stdio-common/bug22.c: New file.
4410         [BZ #5451]
4411         * time/getdate.c: Fix filling in default values.
4412         * time/bug-getdate1.c: New file.
4413         * time/Makefile: Add rules to build and run bug-getdate1.
4415         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
4416         * iconvdata/ebcdic-es.c: Likewise.
4417         * iconvdata/ebcdic-es-a.c: Likewise.
4418         * iconvdata/ebcdic-uk.c: Likewise.
4419         * iconvdata/iso8859-16.c: Likewise.
4420         * iconvdata/viscii.c: Likewise.
4421         * iconvdata/iso8859-9e.c: Likewise.
4422         * iconvdata/Makefile: Adjust appropriately.
4424         [BZ #5428]
4425         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
4426         __need_wint_t.
4428 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
4430         [BZ #5427]
4431         * iconvdata/hp-roman9.c: New file.
4432         * iconvdata/Makefile: Add rules for hp-roman9.c.
4433         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
4434         * iconvdata/gconv-modules: Likewise.
4436         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
4437         * iconvdata/Makefile: Adjust appropriately.
4439         [BZ #5441]
4440         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
4441         structure, it's allocated with alloca.
4442         * stdio-common/Makefile (tests): Add bug21.
4443         * stdio-common/bug21.c: New file.
4445 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
4447         [BZ #5452]
4448         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
4449         keyword for gcc's braced-groups.
4451 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
4453         [BZ #5454]
4454         * inet/ether_line.c: Strip hostname of whitespaces.
4455         * inet/Makefile (tests): Add tst-ether_line.
4456         * inet/tst-ether_line.c: New file.
4458 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
4460         [BZ #5439]
4461         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
4463         [BZ #5435]
4464         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
4466         * stdlib/tst-setcontext.c: Catch the case where the links gets
4467         messed up and we do not reach main again.
4469         * po/ca.po: Update from translation team.
4471 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
4473         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
4474         * posix/regex.h (REG_ENOSYS): Likewise.
4475         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
4477 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
4479         * nscd/nscd.h (MAX_STACK_USE): Define.
4480         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
4481         (gc): Initialize stack_used based on allocation in prune_cache.
4482         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
4483         Clear array before use.
4485         * nscd/aicache.c (addhstaiX): Update statistics counter in case
4486         memory allocation failed.
4487         * nscd/hstcache.c (cache_addhst): Likewise.
4488         * nscd/grpcache.c (cache_addgr): Likewise.
4489         * nscd/servicescache.c (cache_addserv): Likewise.
4490         * nscd/pwdcache.c (cache_addpw): Likewise.
4491         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4493 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
4495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
4496         and creat system calls.
4498         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
4500 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4502         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
4503         Add netiucv/iucv.h.
4504         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
4505         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
4506         protocol.
4507         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
4508         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
4509         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
4511 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4513         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
4514         strncat): Define as macros to avoid compile errors.
4516         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
4517         creat entries.
4519 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
4521         [BZ #5382]
4522         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
4523         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
4524         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
4525         overflow it.
4526         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4528         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
4529         Return zero in case the thread library is not NPTL.
4531         [BZ #5375]
4532         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
4533         initializing interface list.
4535         [BZ #5378]
4536         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
4537         use result of nss_getgrgid_r if nothing was found.  For other
4538         error return with a failure.
4539         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4541         * locale/programs/ld-collate.c (collate_read): Fix loop to match
4542         macro name.
4544 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
4546         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
4547         (get_scope): For IPv4 scope, use scopes table.
4548         (fini): Free scopes table if necessary.
4549         (free_scopelist): New function.
4550         (scopecmp): New function.
4551         (gaiconf_init): Also handle scopev4 entries.
4552         * posix/tst-rfc3484.c (do_test): Initialize scopes.
4553         * posix/tst-rfc3484-2.c (do_test): Likewise.
4554         * posix/gai.conf: Document scopev4 defaults.
4555         * posix/Makefile (tests): Add tst-rfc3484-3.
4556         * posix/tst-rfc3484-3.c: New file.
4558         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
4559         Teredo tunnels.
4560         * posix/gai.conf: Update for current default tables.
4562 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
4564         * po/tr.po: Update from translation team.
4566 2007-11-18  Roland McGrath  <roland@frob.com>
4568         * manual/arith.texi (Remainder Functions): Spelling fix.
4569         From Shaun Silk <genix@mysoul.com.au>.
4571         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
4573 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
4575         * po/zh_CN.po: Update from translation team.
4577         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
4578         Add sys/signalfd.h and sys/eventfd.h.
4580 2007-11-15  Bruno Haible  <bruno@clisp.org>
4582         [BZ #5346]
4583         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
4584         union.
4585         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
4586         (DCIGETTEXT): Change the allocation of the 'search' variable so that
4587         it needs only fixed stack space. Delay the initialization of
4588         msgid_len until it is needed.
4590 2007-11-15  Andreas Jaeger  <aj@suse.de>
4592         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
4593         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
4595 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
4597         * po/ko.po: Update from translation team.
4599 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
4601         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
4602         significantly.  The device type is also part of the ifinfomsg data.
4604         * po/sv.po: Update from translation team.
4605         * po/nl.po: Likewise.
4607         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
4608         to wake up in 24 hours.
4610         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
4612 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
4614         * po/cs.po: Update from translation team.
4615         * po/pl.po: Likewise.
4617         * include/ifaddrs.h: Remove in6ai_temporary.
4618         (struct in6addrinfo): Add index element.
4619         Declare __check_native.
4620         * inet/Makefile (aux): Add check_native.
4621         * sysdeps/unix/sysv/linux/check_native.c: New file.
4622         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
4623         IFA_F_TEMPORARY.  Pass back ifa_index.
4624         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
4625         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
4626         call __check_native if necessary.
4627         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
4628         to sort addresses.  Pass information about the results.
4629         * posix/tst-rfc3484.c: Adjust for addition of index field and change
4630         of rfc3484_sort interface.
4631         * posix/tst-rfc3484-2.c: Likewise.
4633         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
4634         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
4635         for _quicksort.
4636         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
4637         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
4638         on as third parameter to compare function and _quicksort.
4639         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
4640         to the compare function.
4641         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
4642         * Versions.def: Add GLIBC_2.8 for libc.
4644         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
4645         * posix/tst-rfc3484-2.c: Likewise.
4647         * include/kernel-features.h: Moved to...
4648         * sysdeps/mach/hurd/kernel-features.h: ...here.
4650 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
4652         * sysdeps/i386/i586/memcpy_chk.S: New file.
4653         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
4654         * sysdeps/i386/i586/memset_chk.S: Likewise.
4656 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
4658         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
4659         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
4660         list of interfaces.  Also store prefix length.
4661         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
4662         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
4663         prefix if source and destination address are in the same subnet.
4664         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
4665         Always look for matching record in in6ai list.
4666         Correct source_addr_len value for IPv6->IPv4 converted records.
4668 2007-11-11  Roland McGrath  <roland@frob.com>
4670         * include/kernel-features.h: New file.
4672 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
4674         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
4675         complications for 64-bit platforms.
4677         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
4678         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
4679         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
4680         open64_2.
4681         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
4682         entries.
4683         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4684         * sysdeps/wordsize-64/alphasort.c: New file.
4685         * sysdeps/wordsize-64/alphasort64.c: New file.
4686         * sysdeps/wordsize-64/fseeko.c: New file.
4687         * sysdeps/wordsize-64/fseeko64.c: New file.
4688         * sysdeps/wordsize-64/ftello.c: New file.
4689         * sysdeps/wordsize-64/ftello64.c: New file.
4690         * sysdeps/wordsize-64/ftw.c: New file.
4691         * sysdeps/wordsize-64/ftw64.c: New file.
4692         * sysdeps/wordsize-64/iofgetpos.c: New file.
4693         * sysdeps/wordsize-64/iofgetpos64.c: New file.
4694         * sysdeps/wordsize-64/iofopen.c: New file.
4695         * sysdeps/wordsize-64/iofopen64.c: New file.
4696         * sysdeps/wordsize-64/iofsetpos.c: New file.
4697         * sysdeps/wordsize-64/iofsetpos64.c: New file.
4698         * sysdeps/wordsize-64/lockf.c: New file.
4699         * sysdeps/wordsize-64/lockf64.c: New file.
4700         * sysdeps/wordsize-64/mkostemp.c: New file.
4701         * sysdeps/wordsize-64/mkostemp64.c: New file.
4702         * sysdeps/wordsize-64/mkstemp.c: New file.
4703         * sysdeps/wordsize-64/mkstemp64.c: New file.
4704         * sysdeps/wordsize-64/scandir.c: New file.
4705         * sysdeps/wordsize-64/scandir64.c: New file.
4706         * sysdeps/wordsize-64/tmpfile.c: New file.
4707         * sysdeps/wordsize-64/tmpfile64.c: New file.
4708         * sysdeps/wordsize-64/versionsort.c: New file.
4709         * sysdeps/wordsize-64/versionsort64.c: New file.
4710         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
4711         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
4712         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
4713         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
4714         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
4715         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
4716         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
4717         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
4718         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
4719         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
4720         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
4721         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
4723         * crypt/sha256-crypt.c: Fix a comment.
4724         * crypt/sha512-crypt.c: Likewise.
4726 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
4728         * sysdeps/x86_64/memset.S: Add sfence after movnti.
4730 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
4732         [BZ #5277]
4733         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
4734         because output buffer is too small break, don't loop.
4735         * iconvdata/Makefile (tests): Add bug-iconv6.
4736         * iconvdata/bug-iconv6.c: New file.
4738 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
4740         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
4741         with size_t type.
4742         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
4743         size_t.  Add casts where needed.
4745         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
4746         old headers, don't call avc_has_perm if we don't have the
4747         permission information.
4749 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
4751         * elf/rtld.c (dl_main): Use the page size to find the map start.
4753 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
4755         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
4756         Patch by Szymon Siwek <sls@poczta.wp.pl>.
4758         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
4759         when the lookup call failed.
4761         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
4762         Add prune_cond and wakeup_time.
4763         (CACHE_PRUNE_INTERNAL): Define.
4764         Update declarations of prune_cache and setup_thread.
4765         * nscd/connections.c (dbs): Update initializers.
4766         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
4767         (nscd_init): Default number of threads is now 4.
4768         (invalidate_cache): Take lock before calling prune_cache.
4769         (handle_request): If SELinux forbids the request, say so.
4770         (readylist_cond): Use static initializer.
4771         (nscd_run_prune): New function.  Used only by pruning threads.
4772         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
4773         here.
4774         (fd_ready): Update nscd_run reference.
4775         (start_threads): No need to initialize readylist_cond.
4776         Start pruning threads separately.
4777         * nscd/nscd_setup_thread.c: Change return value type to int and always
4778         return 0.
4779         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
4780         to int and return nonzero value if we can use the TID address hack.
4781         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
4782         the database is later than the new entry's timeout, update the
4783         wakeup time and wake the cleanup thread.
4784         (prune_cache): Return seconds the next entry in the database is still
4785         valid.  Remove locking for pruning here.
4786         * nscd/nscd.conf: Document default number of threads.
4788 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
4790         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
4791         stack is properly aligned for the target function.
4792         Correct unwind info.
4794         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
4795         when using auditing libraries.
4797 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
4799         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
4800         _nss_dns_getnetbyaddr2_r.
4801         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
4802         extra parameter to getanswer_r.
4803         (_nss_dns_getnetbyaddr_r): Now a wrapper around
4804         _nss_dns_getnetbyaddr2_r.
4806         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
4807         gethstbynm3_r.
4808         * nscd/gethstbynm2_r.c: Remove.
4809         * nscd/gethstbynm3_r.c: New file.
4810         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
4811         __gethostbyaddr_r.
4812         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
4813         __gethostbyaddr_r compatibility wrapper.
4814         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
4815         determining timeout of entry.
4816         (lookup): Take new parameter and pass it to __gethostbyname3_r and
4817         __gethostbyaddr2_r.
4818         (addhstbyX): Pass reference to variable for TTL to lookup and
4819         cache_addhst.
4820         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
4821         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
4822         and __nss_next2.  Remove __nss_services_lookup.
4823         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
4824         Add compat wrapper.
4825         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
4826         __nss_next2.
4827         * nss/getXXent_r.c: Likewise.
4828         * nss/getnssent_r.c: Likewise.
4829         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
4830         does not exist in module, try the optional second name.
4831         (__nss_next2): New function.
4832         (__nss_next): Now wrapper around __nss_next2.
4833         * nss/nsswitch.h: Adjust __nss_lookup prototype.
4834         Declare __nss_next2.
4835         Adjust definition of db_lookup_function type.
4836         * nss/service-lookup.c: Define NO_COMPAT.
4837         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
4838         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
4839         * inet/ether_ntoh.c: Likewise.
4840         * sunrpc/netname.c: Likewise.
4841         * sunrpc/publickey.c: Likewise.
4842         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
4843         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
4844         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4845         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4846         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4848         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
4850         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
4852 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
4854         [BZ #5204]
4855         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
4856         * crypt/sha512c-test.c: Likewise.
4858         [BZ #5225]
4859         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
4860         to keep track of end of %[ format string element.
4861         * stdio-common/Makefile (tests): Add bug20.
4862         * stdio-common/bug20.c: New file.
4864         [BZ #5222]
4865         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
4866         path elements in counting mode.
4868 2007-10-27  Andreas Jaeger  <aj@suse.de>
4870         [BZ #5040]
4871         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
4873         [BZ #3112]
4874         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
4875         (__cleanup): Free shared library when exiting.
4876         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
4877         (__cleanup): Free shared library when exiting.
4879 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
4881         [BZ #2549]
4882         * math/libm-test.inc (check_float_internal): Support
4883         denormalized return.
4885 2007-10-23  Andreas Jaeger  <aj@suse.de>
4887         [BZ #5208]
4888         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
4889         __LONG_LONG_PAIR to handle little endian byte order.
4890         Suggested by abhishekrai@google.com
4892 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
4894         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
4896 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
4898         * nscd/cache.c (prune_cache): Move test for modified file outside
4899         of locking.
4901 2007-10-21  Andreas Jaeger  <aj@suse.de>
4903         * manual/texinfo.tex: Update to latest version.
4905         * manual/sysinfo.texi (System Parameters): Fix Formatting.
4907         * manual/arith.texi (Status bit operations): Fix formatting.
4909         * manual/errno.texi (Error Messages): Fix formatting.
4911         * manual/sysinfo.texi (System Parameters): Fix formatting.
4913         * manual/libc.texinfo: Update VERSION and UPDATED.
4915 2007-10-19  Roland McGrath  <roland@redhat.com>
4917         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
4919 2007-10-06  David S. Miller  <davem@davemloft.net>
4921         * configure.in: Add sparcv9v2 and sparc64v2.
4922         * scripts/config.sub: Likewise.
4923         * configure: Regenerate.
4924         * elf/elf.h (HWCAP_SPARC_N2): New.
4925         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
4926         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
4927         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
4928         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
4929         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
4930         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
4931         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
4933 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
4935         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
4936         even if the poll result indicates there is data to read.
4937         Patch by Jeff Moyer <jmoyer@redhat.com>.
4939 2007-10-18  Roland McGrath  <roland@redhat.com>
4941         * elf/elf.h (NT_PPC_VMX): New macro.
4943 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
4945         * version.h (VERSION): Set to 2.7.90.
4947 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
4949         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
4950         weak_alias.
4952 2007-10-17  Roland McGrath  <roland@frob.com>
4954         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
4955         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
4957 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
4959         * version.h (VERSION): Bump to 2.7.
4960         * include/features.h (__GLIBC_MINOR__): Bump to 7.
4962         [BZ #5186]
4963         * time/tzset.c (__tz_convert): Don't force testing for a change of
4964         TZ if not called from localtime.  But then also see whether the
4965         file changed, in case __use_tzfile is set.
4967         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
4968         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4969         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4970         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4971         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4972         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4973         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
4974         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4976 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
4978         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
4979         and admin selects to be able to replace the gai.conf file, lock
4980         data structures around the qsort call.
4982 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
4984         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
4985         new memset.
4986         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
4987         too high for the improvements.  Implement bzero unconditionally for
4988         use in libc.
4990 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
4991             Jakub Jelinek  <jakub@redhat.com>
4993         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
4994         even when time_t is 32-bit.
4995         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
4996         timezone data read by __tzfile_default.  Ensure __tzname[0] is
4997         always set after the search.
4999 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
5001         * time/tzfile.c (__tzfile_read): Help the compiler recognize
5002         unreachable code on 32-bit machines.
5004 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5006         [BZ #5184]
5007         * time/strftime_l.c: Include stdbool.h.
5008         (my_strftime): New wrapper, old function renamed to...
5009         (__strftime_internal): ... new function.  Add tzset_called
5010         argument, pass it down to recursive calls, don't call tzset ()
5011         if already true, set to true after call to tzset ().
5013 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
5015         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
5016         into account when copying TZ string.
5018 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5020         * time/tzfile.c (__tzfile_compute): For use_last case set i to
5021         num_transition rather than num_transitions - 1.
5023 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5025         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
5026         PIC indirect jump.
5028         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
5029         a local label rather than HIDDEN_JUMPTARGET.
5031 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
5033         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
5034         (init_cacheinfo): Initialize it.
5035         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
5036         Always define bzero.
5037         Remove non-glibc code.
5038         * sysdeps/x86_64/bzero.S: Make an empty file.
5040 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
5042         * sysdeps/x86_64/cacheinfo.c
5043         (__x86_64_preferred_memory_instruction): New.
5044         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5046         * sysdeps/x86_64/memset.S: Rewrite.
5048 2007-10-15  Roland McGrath  <roland@redhat.com>
5050         * po/libc.pot: Regenerated.
5052 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
5054         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
5055         pointers.
5057         [BZ #3425]
5058         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
5059         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
5060         address record to T_A/T_AAAA requests.
5062 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
5064         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
5066         * posix/glob.c: Add some branch prediction throughout.
5068         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
5069         read from nscd.
5071         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
5072         service_order.
5073         (rfc3484_sort): Make sure that even if qsort doesn't support
5074         stable sorting out sorting here is stable by comparing service_order.
5075         (getaddrinfo): Initialize service_order.
5076         * posix/tst-rfc3484.c (do_test): Adjust for addition of
5077         service_order field to sorting structure.
5078         * posix/tst-rfc3484-2.c (do_test): Likewise.
5080         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
5081         * time/tzset.c (tzset_internal): Break TZ string parsing out into
5082         __tzset_parse_tz and updating of daylight, timezone, tzname into
5083         update_vars.
5084         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
5085         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
5086         happens in __tz_compute.
5087         * time/tzfile.c (__tzfile_read): Also read TZ string.
5088         (find_transition): Fold into __tzfile_compute.
5089         (__tzfile_compute): For times beyond the last transition try to
5090         use the TZ string.
5091         * timezone/tst-timezone.c: Information in daylight and tzname does
5092         change for Asia/Tokyo timezone with more concrete information.
5093         Remove the test.
5095         * include/stdio.h: Add libc_hidden_proto for ftello.
5096         * libio/ftello.c: Add libc_hidden_def.
5098         [BZ #1140]
5099         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
5100         on the specified time and not the last entries in the file.  Move
5101         code to determine tzname[] to...
5102         (find_transition): ...here.  Add ugly guess for times before the
5103         first transition.
5105 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
5107         [BZ #3195]
5108         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
5109         no entry.
5110         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
5111         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5112         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5113         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
5115         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
5116         read mechanism when there are no group members and avoid no-op
5117         read syscall in this case.
5119         [BZ #3242]
5120         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
5121         (__readall): If reading failed due to EAGAIN error wait a bit
5122         and possibly try again.
5123         (__readvall): Likewise.
5125 2007-10-13  Bruno Haible  <bruno@clisp.org>
5127         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
5128         when we cannot recode the message.
5130 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
5132         [BZ #4359]
5133         * libio/__freading.c (__freading): Don't return true for
5134         write-only streams.  For read/write streams, check whether we
5135         performed a read operation already.
5136         * libio/Makefile (tests): Add tst-ext2.
5137         * libio/tst-ext2.c: New file.
5139 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
5141         * locale/programs/repertoire.c (repertoire_read): Always free
5142         memory for repertoire file name [Coverity CID 270].
5144         * elf/cache.c (save_aux_cache): Free memory allocated for
5145         temporary file name [Coverity CID 267].
5147 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
5149         * misc/Makefile (headers): Add bits/error.h.
5151 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
5153         * posix/fnmatch_loop.c: Take rule index returned as part of
5154         findidx return value into account when accessing weights.
5155         * posix/regcomp.c: Likewise.
5156         * posix/regexec.c: Likewise.
5158         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
5159         (skip_to): Fix problems with parameter of elifdef/elifndef.
5161 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
5163         * iconv/gconv_simple.c: Add some branch prediction.
5165 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
5167         * locale/programs/ld-collate.c (collate_read): If ignore_content
5168         and nowtok is tok_define, eat any tok_eol tokens.
5170 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
5172         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
5173         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
5175         * inet/netinet/in.h: Don't include bits/socket.h.
5176         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
5177         macro.
5178         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
5180 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
5182         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
5183         and tok_elifndef.
5184         * locale/programs/locfile-kw.gperf: Likewise.
5185         * locale/programs/ld-collate.c: Implement primitive preprocessor.
5187 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
5189         * stdio-common/printf-parse.h: Include string.h and wchar.h.
5190         (__find_specwc): Change into __extern_always_inline function.
5191         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
5192         (__parse_one_specmb): Remove ps argument.
5193         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
5194         Adjust __find_specmb and __parse_one_specmb callers.
5195         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
5196         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
5197         Removed.
5198         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
5199         caller.
5201 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
5203         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
5204         with some Pentium Ds.
5206 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
5208         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
5209         __read not read.
5210         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
5211         __write not write.
5213 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
5215         [BZ #181]
5216         * locale/C-time.c: Set week_1stday data to 19971201.
5217         * locale/programs/ld-time.c (time_finish): Default for
5218         first_workday is Monday.
5220         [BZ #2633]
5221         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
5223         [BZ #5103]
5224         * posix/glob.c (glob): Recognize patterns starting \/.
5225         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
5226         (main): Add test for pattern starting \/.
5228         * misc/error.h: Use __const instead of const.
5229         * misc/bits/error.h: Likewise.
5231 2007-10-07  Andreas Jaeger  <aj@suse.de>
5233         * include/bits/error.h: New file.
5235         * misc/bits/error.h (error_at_line): Fix prototype.
5237 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
5239         [BZ #3924]
5240         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
5241         more little bugs in creating the stack frame when pltexit has to
5242         be called.
5244         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
5245         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
5247         [BZ #4407]
5248         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
5249         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5250         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5251         * math/libm-test.inc: Add test for this case.
5253         [BZ #5010]
5254         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
5255         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
5256         map service succeeded.
5257         (svc_is_mapped): New function.
5258         (svc_unregister): Use it before trying to unmap service.
5260 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
5262         * timezone/zic.c: Update from tzcode2007h.
5264         [BZ #5063]
5265         * timezone/africa: Update from tzdata2007h.
5266         * timezone/antarctica: Likewise.
5267         * timezone/asia: Likewise.
5268         * timezone/australasia: Likewise.
5269         * timezone/europe: Likewise.
5270         * timezone/leapseconds: Likewise.
5271         * timezone/northamerica: Likewise.
5272         * timezone/southamerica: Likewise.
5273         * timzeone/zone.tab: Likewise.
5275         [BZ #5104]
5276         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
5278         [BZ #5113]
5279         * string/bits/string2.h (__strdup): Cast parameters to calloc to
5280         avoid warning with -Wconversion.
5281         (__strndup): Likewise.
5282         Half the patch by Christian Iseli <christian.iseli@licr.org>.
5284         [BZ #5112]
5285         * nscd/connections.c (restart): Don't resync if database is
5286         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
5288         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
5289         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
5291         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
5292         evetnfd_read, eventfd_write.
5293         * sysdeps/unix/sysv/linux/eventfd.c: New file.
5294         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
5295         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
5296         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
5297         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
5298         eventfd_write for GLIBC_2.7.
5300         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
5301         * sysdeps/unix/sysv/linux/signalfd.c: New file.
5302         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
5303         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
5305 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
5307         * stdlib/msort.c: Include stdint.h.
5308         (struct msort_param): New type.
5309         (msort_with_tmp): Use struct msort_param pointer for unchanging
5310         parameters.  Add optimized handling for several common sizes
5311         and indirect sorting mode.
5312         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
5313         sorting.
5314         Suggested by Belazougui Djamel .
5316         * stdlib/Makefile (tests): Add tst-qsort2.
5317         * stdlib/tst-qsort2.c: New test.
5319 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
5321         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
5322         for dup2 in case another thread races with the current one.  Retry
5323         in this case.
5325         * misc/error.h: Remove support for use outside of libc.  We have to
5326         include <features.h> now.  Include <bits/error.h> if possible.
5327         * misc/bits/error.h: New file.
5329 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
5331         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
5332         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
5333         __extern_always_inline functions unconditionally, drop macros.
5335         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
5336         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
5337         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
5339         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
5340         add __artificial__ attribute.
5342 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
5344         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
5345         backward to forward direction.
5347         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
5349         [BZ #645]
5350         * locale/programs/ld-collate.c (collate_finish): Compare against last
5351         used section which is known to have rules defined.
5352         (collate_read): After order_start, correctly record order of sections
5353         and queue sections up.
5355 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
5357         [BZ #5071]
5358         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
5359         the same number of pages.
5360         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
5362         * locale/programs/ld-collate.c (collate_read): After initial copy
5363         statement, continue in state 0.
5365         * include/stdio_ext.h (__fsetlocking): Define as macro.
5367 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
5369         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
5370         of section order.
5372         * po/pt_BR.po: Fix typo.
5374 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
5376         * iconvdata/Makefile (modules): Add ISO8859-9E.
5377         (distribute): Add iso8859-9e.c.
5378         (gen-8bit-gap-modules): Add iso8859-9e.
5379         * iconvdata/iso8859-9e.c: New file.
5380         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
5381         * iconvdata/TESTS: Likewise.
5382         * iconvdata/tst-tables.sh: Likewise.
5384         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5386         * locale/iso-639.def: Add several new entries.
5388 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
5390         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
5391         void * pointers instead of struct link_map **.
5392         (_dl_scope_free): Change argument type to void *.
5393         * include/link.h (struct link_map): Change type of l_reldeps
5394         to struct link_map_reldeps, move l_reldepsact into that
5395         struct too.
5396         * elf/dl-deps.c: Include atomic.h.
5397         (_dl_map_object_deps): Only change l->l_initfini when it is
5398         fully populated, use _dl_scope_free for freeing it.  Optimize
5399         removal of libs from reldeps by using l_reserved flag, when
5400         some removal is needed, allocate a new list instead of
5401         reallocating and free the old with _dl_scope_free.  Adjust
5402         for l_reldeps and l_reldepsact changes.
5403         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
5404         searching in l_initfini and l_reldeps without holding dl_load_lock.
5405         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
5406         l_reldepsact changes.
5407         * elf/dl-close.c (_dl_close_worker): Likewise.
5408         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
5410 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
5412         * iconvdata/Makefile (modules): Add KOI8-RU.
5413         (distribute): Add koi8-ru.c.
5414         (gen-8bit-gap-modules): Add koi8-ru.
5415         * iconvdata/koi8-ru.c: New file.
5416         * iconvdata/gconv-modules: Add entries for KOI8-RU.
5417         * iconvdata/TESTS: Likewise.
5418         * iconvdata/tst-tables.sh: Likewise.
5420         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5422 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
5424         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
5425         with __warning__/__error__ attributes.
5426         (__warnattr): Define.
5427         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
5428         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
5429         __warnattr.
5430         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
5431         of __*_chk if compile time detectable overflow is found.
5432         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
5433         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
5434         with __warnattr.
5435         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
5436         instead of __*_chk if compile time detectable overflow is found.
5437         (__gets_alias): Rename to...
5438         (__gets_warn): ... this.  Add __warnattr.
5439         (gets): Call __gets_warn instead of __gets_alias.
5440         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
5441         aliases with __warnattr.
5442         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
5443         time detectable overflow is found.
5444         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
5445         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
5446         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
5447         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
5448         __getdomainname_chk_warn): New aliases with __warnattr.
5449         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
5450         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
5451         __*_chk_warn instead of __*_chk if compile time detectable overflow
5452         is found.
5453         (__getgroups_chk): Rename argument to __listlen from listlen.
5454         (__getwd_alias): Rename to...
5455         (__getwd_warn): ... this.  Add __warnattr.
5456         (getwd): Call __getwd_warn instead of __getwd_alias.
5457         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
5458         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
5459         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
5460         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
5461         __wcsnrtombs_chk_warn): New aliases with __warnattr.
5462         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
5463         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
5464         compile time detectable overflow is found.
5465         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
5466         to use __*_chk or not.
5467         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
5468         in comparisons which function should be called and in __*_chk*
5469         arguments.  Call __*_chk_warn instead of __*_chk if compile time
5470         detectable overflow is found.
5471         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
5472         __*_chk argument.
5473         * debug/tst-chk1.c (do_test): Add a few more tests.
5475 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
5477         [BZ #5058]
5478         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
5479         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
5480         (_nl_unload_domain): Finalize conversions_lock.
5481         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
5482         handling table of known conversions.
5484 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
5486         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
5487         close_not_cancel_no_status instead of close.
5489 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
5491         [BZ #5028]
5492         * posix/regcomp.c (lookup_collation_sequence_value): Check that
5493         nrules != 0 for multibyte chars.
5495 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
5497         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
5498         Provide better error message in case the type is unknown.
5500         [BZ #4963]
5501         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
5502         * string/stratcliff.c: Make usable to test wide char functions.
5503         * wcsmbs/wcsatcliff.c: New file.
5504         * wcsmbs/Makefiel (tests): Add wcsatcliff.
5506         [BZ #4972]
5507         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
5508         (distribute): Add mac-centraleurope.c.
5509         (gen-8bit-gap-modules): Add mac-centraleurope.
5510         * iconvdata/mac-centraleurope.c: New file.
5511         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
5512         * iconvdata/TESTS: Likewise.
5513         * iconvdata/tst-tables.sh: Likewise.
5515         [BZ #5043]
5516         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
5518 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
5520         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
5521         from __x86_64_core_cache_size_half.
5522         (init_cacheinfo): Compute shared cache size for AMD processors with
5523         shared L3 correctly.
5524         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
5525         name change.
5526         Patch in large parts by Evandro Menezes.
5528 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
5530         * elf/dl-lookup.c (add_dependency): Handle failing memory
5531         allocation for dependency list.  Remove unnecessary check.
5533         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
5534         open/close when determining source addresses.
5536         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
5537         sha512-crypt, and sha512.
5538         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
5539         (distribute): Add sha256.h and sha512.h.
5540         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
5541         and call the appropriate code.
5542         * crypt/sha256-crypt.c: New file.
5543         * crypt/sha256.c: New file.
5544         * crypt/sha256.h: New file.
5545         * crypt/sha256c-test.c: New file.
5546         * crypt/sha256test.c: New file.
5547         * crypt/sha512-crypt.c: New file.
5548         * crypt/sha512.c: New file.
5549         * crypt/sha512.h: New file.
5550         * crypt/sha512c-test.c: New file.
5551         * crypt/sha512test.c: New file.
5553 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
5555         * misc/bits/syslog.h (syslog): Remove extraneous argument from
5556         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
5557         __syslog_chk.
5559 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
5561         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
5562         %as in fscanf format strings.
5564         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
5565         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
5566         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
5567         Likewise.
5568         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
5569         Likewise.
5571         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
5572         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
5573         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
5574         * elf/dl-sym.c (do_sym): Likewise.
5575         * include/link.h (struct link_map): Add l_serial field.
5576         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
5577         * elf/dl-lookup.c (add_dependency): Add flags argument.
5578         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
5579         flags, use THREAD_GSCOPE_RESET_FLAG before and
5580         THREAD_GSCOPE_SET_FLAG after
5581         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
5582         Don't dereference map until it has been found on some list.
5583         If map->l_serial changed, return -1.
5585 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
5587         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
5588         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
5589         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
5590         libc_hidden_proto.
5591         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
5592         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
5593         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
5594         add libc_hidden_proto.
5595         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5596         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5597         conformance requested.
5598         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
5599         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5600         conformance requested.
5601         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5602         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
5603         conformance requested.
5604         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
5605         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
5606         ISO C99 or POSIX conformance requested.
5607         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
5608         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
5609         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
5610         and __isoc99_vsscanf@@GLIBC_2.7.
5611         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
5612         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
5613         (tests): Add scanf14.
5614         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
5615         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
5616         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
5617         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
5618         CFLAGS-isoc99_scanf.c): Add $(exceptions).
5619         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
5620         from using internal headers.
5621         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
5622         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
5623         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
5624         and __isoc99_vswscanf@@GLIBC_2.7.
5625         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
5626         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
5627         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
5628         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
5629         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
5630         * stdio-common/isoc99_scanf.c: New file.
5631         * stdio-common/isoc99_vsscanf.c: New file.
5632         * stdio-common/isoc99_vscanf.c: New file.
5633         * stdio-common/isoc99_vfscanf.c: New file.
5634         * stdio-common/isoc99_fscanf.c: New file.
5635         * stdio-common/isoc99_sscanf.c: New file.
5636         * wcsmbs/isoc99_fwscanf.c: New file.
5637         * wcsmbs/isoc99_vswscanf.c: New file.
5638         * wcsmbs/isoc99_swscanf.c: New file.
5639         * wcsmbs/isoc99_wscanf.c: New file.
5640         * wcsmbs/isoc99_vwscanf.c: New file.
5641         * wcsmbs/isoc99_vfwscanf.c: New file.
5642         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
5643         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
5644         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
5645         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
5646         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
5647         * stdio-common/scanf14.c: New test.
5648         * stdio-common/scanf15.c: New test.
5649         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
5650         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
5651         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
5652         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
5653         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
5654         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
5655         __nldbl___isoc99_scanf@@GLIBC_2.7,
5656         __nldbl___isoc99_fscanf@@GLIBC_2.7,
5657         __nldbl___isoc99_sscanf@@GLIBC_2.7,
5658         __nldbl___isoc99_vscanf@@GLIBC_2.7,
5659         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
5660         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
5661         __nldbl___isoc99_wscanf@@GLIBC_2.7,
5662         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
5663         __nldbl___isoc99_swscanf@@GLIBC_2.7,
5664         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
5665         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
5666         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
5667         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
5668         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
5669         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
5670         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
5671         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
5672         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5673         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
5674         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
5675         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
5676         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
5677         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
5678         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
5679         functions.
5680         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
5681         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
5682         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
5683         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
5684         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
5685         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
5686         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
5687         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
5688         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
5689         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
5690         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
5691         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
5693         * stdio-common/Makefile (tests): Add scanf13.
5694         (scanf13-ENV): New.
5695         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
5696         m modifier followed by l.
5697         (STRING_ARG): Add width argument.
5698         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
5699         <case L_('C')>: Handle %mlc and %mC.
5700         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
5701         arguments.
5702         * stdio-common/scanf13.c: New test.
5704         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
5705         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
5707 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
5709         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
5710         type and __THROW marker of splice, vmsplice, and tee.
5711         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5712         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5713         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5714         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5715         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5716         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5717         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5718         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
5719         as cancellation points.
5721 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
5723         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
5724         parse more than three parts of the version number.
5726 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
5728         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
5729         modifier.  Patch by Jakub Jelinek.
5731 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
5733         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
5734         call_fallocate in misc subdir.
5735         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
5736         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
5737         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
5738         instead of __fallocate64.
5739         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
5741 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
5743         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
5744         * rt/Makefile (headers): Add bits/mqueue2.h.
5745         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
5746         optimizing with GCC and __va_arg_pack_len is defined.
5747         * rt/bits/mqueue2.h: New file.
5748         * rt/mq_open.c (__mq_open): Renamed from mq_open.
5749         (mq_open): New strong_alias.
5750         (__mq_open_2): New function.
5751         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
5752         (mq_open): New strong_alias.
5753         (__mq_open_2): New function.
5754         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
5755         * Versions.def (librt): Add GLIBC_2.7 version.
5756         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
5757         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
5759         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
5760         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
5761         is defined rather than when not C++.
5762         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
5763         __openat64_alias): New redirects.
5764         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
5765         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
5766         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
5767         (open, open64, openat, openat64): Rewrite as __extern_always_inline
5768         functions instead of function-like macros.
5770 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
5772         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
5773         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
5774         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
5776 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
5778         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
5779         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
5781 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
5783         * inet/tst-network.c: Increment ERRORS for failing tests.
5785 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
5787         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
5788         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
5789         implement as __extern_always_inline function.
5790         (vsyslog): Define as __extern_always_inline function unconditionally.
5791         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
5792         When __va_arg_pack is defined, implement as __extern_always_inline
5793         functions.
5794         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5795         __extern_always_inline functions unconditionally.
5796         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
5797         bits/stdio2.h will be included.
5798         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
5799         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
5800         implement as __extern_always_inline functions.
5801         (vswprintf, vwprintf, vfwprintf): Define as
5802         __extern_always_inline functions unconditionally.
5803         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
5805 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
5807         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
5808         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
5809         attribute.
5810         * include/features.h (__USE_EXTERN_INLINES): Define only when
5811         __extern_inline is defined.
5812         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
5813         is defined instead of when not __cplusplus.
5814         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
5815         is defined instead of when not __cplusplus.
5816         * socket/sys/socket.h: Include bits/socket2.h when
5817         __extern_always_inline is defined instead of when not __cplusplus.
5818         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
5819         is defined instead of when not __cplusplus.
5820         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
5821         is defined instead of when not __cplusplus.
5822         * string/string.h: Include bits/string3.h when __extern_always_inline
5823         is defined instead of when not __cplusplus.
5824         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
5825         is defined instead of when not __cplusplus.
5826         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
5827         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
5828         is not defined.
5829         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
5830         defined __extern_always_inline instead of !defined __cplusplus.
5831         * libio/bits/stdio-ldbl.h: Likewise.
5832         * wcsmbs/bits/wchar-ldbl.h: Likewise.
5833         * misc/bits/syslog.h (syslog): Don't define for C++.
5834         (vsyslog): Use __extern_always_inline function for C++ instead of
5835         a macro.
5836         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
5837         whenever that macro is defined.
5838         (vprintf): Don't provide the inline for C++.
5839         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
5840         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
5841         define the macros for C++.
5842         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5843         __extern_always_inline functions for C++.
5844         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
5845         stat64, lstat64, fstat64, fstatat64): Don't define if not
5846         __USE_EXTERN_INLINES.
5847         * wcsmbs/bits/wchar2.h: Fix #error message.
5848         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
5849         (vswprintf, vwprintf, vfwprintf): Define using
5850         __extern_always_inline functions for C++.
5851         * string/bits/string3.h: Don't #undef macros if __cplusplus.
5852         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
5853         strncpy, strcat, strncat): Define as __extern_always_inline
5854         functions instead of macros for C++.
5855         * math/bits/cmathcalls.h: Guard __extern_inline routines with
5856         defined __extern_inline.
5857         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
5858         to __extern_inline whenever that macro is defined.
5859         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5860         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5861         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
5862         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
5863         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5864         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5865         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5866         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5867         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
5868         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
5869         prototypes.  Only provide __extern_inline routines if
5870         __USE_EXTERN_INLINES.
5871         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
5872         tests.
5873         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
5874         For now avoid some *printf tests in C++.  Skip all testing
5875         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
5876         is not.
5877         * debug/tst-chk4.cc: New file.
5878         * debug/tst-chk5.cc: New file.
5879         * debug/tst-chk6.cc: New file.
5880         * debug/tst-lfschk4.cc: New file.
5881         * debug/tst-lfschk5.cc: New file.
5882         * debug/tst-lfschk6.cc: New file.
5883         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
5884         prototypes in C++.
5885         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
5886         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
5887         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
5889 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
5891         * po/cs.po: Update from translation team.
5893 2007-09-11  Roland McGrath  <roland@redhat.com>
5895         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
5896         compiling.
5898 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5900         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
5902 2007-09-05  Roland McGrath  <roland@redhat.com>
5904         * manual/signal.texi (Signaling Another Process): Typo fix.
5905         From Karl Berry <karl@freefriends.org>.
5907 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
5909         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
5910         zero if not defined.
5911         (make_request): Recognize optimistic addresses and treat them like
5912         deprecated addresses.
5913         Reported by Neil Horman <nhorman@redhat.com>.
5915 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
5917         * nscd/connections.c (send_ro_fd): Also transfer file size.
5918         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
5919         file size don't call fstat.
5921         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
5922         ahead and map the file.  This should always be correct and we can
5923         catch problems later.
5925 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
5927         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
5928         prototypes.
5929         (__fread_alias, __fread_unlocked_alias): New aliases.
5930         (fread): New extern inline.
5931         (fread_unlocked): Likewise.  Undef macro before definition of
5932         the inline function.
5933         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
5934         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
5935         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
5936         and __fread_unlocked_chk@@GLIBC_2.7.
5937         * debug/fread_chk.c: New file.
5938         * debug/fread_u_chk.c: New file.
5939         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
5941 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
5943         * sysdeps/unix/sysv/linux/syscalls.list
5944         (personality): Change caller to EXTRA.
5946 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
5948         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
5949         to keep gcc quiet.
5950         * iconvdata/iso-2022-cn.c (BODY): Likewise.
5952         * locale/programs/ld-collate.c (collate_output): Avoid warning if
5953         NDEBUG is defined.
5955         * Makerules: Use -p option with mkdir.
5957         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
5958         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
5959         (_xdr_directory_obj): Likewise.
5960         (xdr_entry_obj): Likewise.
5961         (xdr_group_obj): Likewise.
5962         (xdr_link_obj): Likewise.
5963         (xdr_table_obj): Likewise.
5964         (_xdr_nis_result): Likewise.
5965         (_xdr_ns_request): Likewise.
5966         (_xdr_ib_request): Likewise.
5967         (_xdr_nis_taglist): Likewise.
5968         (xdr_cback_data): Likewise.
5969         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
5970         (xdr_ypresp_maplist): Likewise.
5972         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
5974         * posix/regex_internal.h: Prevent some declarations and definitions
5975         to be seen when used in tests.
5977         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
5978         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
5980         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
5982         * config.make.in (datarootdir): Add to shut up configure.
5984         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
5985         associativity for fully-associative caches.
5987         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
5988         requests.  Fill on more associativity values for L2.
5989         Patch mostly by Evandro Menezes.
5991 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
5993         * sysdeps/unix/sysv/linux/x86_64/init-first.c
5994         (_libc_vdso_platform_setup): Avoid using exported variable by using
5995         alias.
5997         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
5999         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
6000         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
6001         defined.
6003 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
6005         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
6006         align stack for call if pltexit is to be used.
6008         [BZ #3924]
6009         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
6010         align for function call in case pltexit has to be called later.
6012         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
6013         implicit atomic operation when storing function pointer.
6014         (_dl_runtime_profile): Likewise.
6016 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
6018         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
6019         NIS_NOTFOUND.
6021 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
6023         [BZ #4566]
6024         * string/strtok.c: Fix typo in comment.
6026         [BZ #4582]
6027         * debug/segfault.c: Fix typos in comments.
6029         [BZ #4588]
6030         * stdio-common/tempnam.c: Fix comment, it is not checked that
6031         TMPDIR points to a writable directory.
6033         [BZ #4726]
6034         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
6035         memory allocated for the name server address.
6037         [BZ #4946]
6038         * nscd/connections.c (handle_request): Using sendfile always
6039         requires that mmap is used for the database.
6040         Patch by Petr Baudis <pasky@suse.cz>.
6042         [BZ #4905]
6043         * nscd/hstcache.c (cache_addhst): When reloading an entry which
6044         suddenly has two or more addresses, ignore it and remove the old
6045         entry.
6047         [BZ #4814]
6048         * resolv/res_hconf.c: Prepare for compiling outside libc.
6049         * nscd/res_hconf.c: New file.
6050         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
6051         the new file.
6052         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
6053         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
6055         * nscd/hstcache.c (cache_addhst): Minimal optimization.
6057         [BZ #4925]
6058         * debug/pcprofiledump.c: Turn on internationalization by calling
6059         setlocale.  Patch mostly by Benno Schulenberg.
6061         [BZ #4936]
6062         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
6063         the state.
6064         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
6065         * iconvdata/bug-iconv5.c: New file.
6067 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
6069         [BZ #4896]
6070         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
6071         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
6072         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
6073         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
6074         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
6075         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
6076         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
6077         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
6079 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
6081         [BZ #4937]
6082         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
6083         lookup loop.  Suggested by John Reiser.
6085 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
6087         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
6089 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
6091         * csu/libc-start.c: Don't handle VDSO_SETUP here.
6092         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
6093         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
6094         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
6095         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
6096         to...
6097         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
6099 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
6101         * po/nl.po: Update from translation team.
6103 2007-08-16  Andreas Jaeger  <aj@suse.de>
6105         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
6106         Reported by Peter Festner <peter.festner@ewetel.net>.
6108 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
6110         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
6112 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
6114         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
6115         to check for undefined symbols.
6117         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
6118         If the syscall fails, set errno to the actual returned error number
6119         rather than EINVAL.
6120         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
6121         arguments are incorrect, set errno to EINVAL, if the syscall
6122         fails, set errno to the actual returned error number.
6124         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
6125         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
6127         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
6128         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
6129         file.
6130         (ASI_PNF, ASI_BLK_P): Don't define.
6131         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
6132         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
6133         file.
6134         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
6135         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
6136         file.
6138 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
6140         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
6141         FE_UNDERFLOW on Niagara CPUs.
6143         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
6144         exceptions.
6146 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
6148         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
6149         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
6150         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
6151         flush should be used or not inside of the function.
6152         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
6154         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
6155         __thread_start): Use HIDDEN_JUMPTARGET.
6156         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
6157         __thread_start): Likewise.
6158         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
6160         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
6161         Add libc_hidden_proto.
6162         (STRTOF): Add libc_hidden_proto.
6163         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
6164         (strtold_l, wcstold_l): Use them as second argument for
6165         long_double_symbol.
6167 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
6169         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
6171 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6173         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
6175 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
6177         * po/bg.po: New file.  From the translation team.
6179 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
6181         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
6182         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
6183         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
6184         when each feature was introduced.
6186         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
6187         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
6188         (CHECK_HASH): New macro.
6189         (PREPARE_VERSION): Use it.
6191         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
6192         prototype if not __ASSUME_PSELECT.
6193         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
6194         prototype if not __ASSUME_PPOLL.
6196         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
6198         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
6199         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
6200         is defined.
6202 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
6204         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6205         (_libc_vdso_platform_setup): If vDSO is not available point
6206         __vdso_gettimeofday to the vsyscall.
6207         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
6208         __vdso_gettimeofday instead of vsyscall.
6210 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
6212         * nscd/servicescache.c: Include kernel-features.h.
6213         * nscd/gai.c: Likewise.
6214         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
6215         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
6216         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
6217         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
6218         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
6219         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
6220         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
6221         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
6222         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6224 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
6226         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
6227         and _dl_get_origin defines anymore.
6229         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
6230         Build fix for systems which might lack POSIX timer support.
6232         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6233         (_libc_vdso_platform_setup): Mangle function pointers before storing
6234         them.
6235         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
6236         Demangle vdso pointer before use.
6237         (INTERNAL_VSYSCALL): Likewise.
6239         * elf/cache.c (primes): Mark as const.
6240         Noted by Roland McGrath.
6242 2007-08-01  Andreas Jaeger  <aj@suse.de>
6243             Jakub Jelinek  <jakub@redhat.com>
6245         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
6246         (options): Add option.
6247         (parse_opt): Handle option.
6248         (manual_link): Adjust process_file caller.  Call implicit_soname.
6249         (search_dir): Formatting.  Use and populate auxiliary cache.
6250         (main): Load and save auxiliary cache.
6251         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
6252         stat64 from fstat64 to caller.
6253         (implicit_soname): New function.
6254         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
6255         leave *soname as NULL.
6256         * elf/cache.c: Include libgen.h.
6257         (print_entry, print_cache, compare, save_cache, add_to_cache):
6258         Formatting and cleanups.
6259         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
6260         aux_cache_file): New structures.
6261         (AUX_CACHEMAGIC): Define.
6262         (primes): New array.
6263         (aux_hash_size, aux_hash): New variables.
6264         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
6265         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
6266         load_aux_cache, save_aux_cache): New functions.
6267         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
6268         (init_aux_cache, search_aux_cache, add_to_aux_cache,
6269         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
6270         (process_file): Adjust prototype.
6272 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
6274         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
6275         with __need_size_t.
6277 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
6279         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
6280         r_found_version structure as second parameter.
6281         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
6282         (_dl_vdso_vsym): Change type of second parameter accordingly.
6283         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
6284         (_libc_vdso_platform_setup): Adjust.
6285         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6286         (_libc_vdso_platform_setup): Likewise.
6288         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
6289         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
6290         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
6291         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
6292         * csu/libc-start.c: Pretty printing.
6293         Use VDSO_SETUP if defined.
6294         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
6295         and let generic code call into _libc_vdso_platform_setup.
6296         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
6297         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
6298         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
6299         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
6300         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
6301         for GLIBC_PRIVATE.
6302         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
6303         (sysdep_rountines): Add dl-vdso.
6305         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
6306         of routines.
6308         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
6309         attribute_hidden to __vdso_gettimeofday prototype.
6311 2007-08-12  Roland McGrath  <roland@redhat.com>
6313         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
6314         From: Karl Berry <karl@freefriends.org>.
6316 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
6318         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
6319         an atime update for the files we read.
6321 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
6323         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
6325         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
6326         instead of mkstemp.
6328         * misc/Makefile (routines): Add mkostemp and mkostemp64.
6329         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
6330         * misc/mkostemp.c: New file.
6331         * misc/mkostemp64.c: New file.
6332         * stdlib/stdlib.h: Declare the new functions.
6333         * sysdeps/posix/tempname.c: Add new parameter which is added to
6334         the flags for open.  Remove __GT_BIGFILE handling.
6335         * stdio-common/tempname.c: Likewise.
6336         * include/stdio.h: Adjust __gen_tempname prototype.
6337         Renumber __GT_* constants.
6338         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
6339         * misc/mkdtemp.c: Likewise.
6340         * misc/mkstemp.c: Likewise.
6341         * misc/mkstemp64.c: Likewise.
6342         * misc/mktemp.c: Likewise.
6343         * stdio-common/tempnam.c: Likewise.
6344         * stdio-common/tmpfile.c: Likewise.
6345         * stdio-common/tmpfile64.c: Likewise.
6346         * stdio-common/tmpnam.c: Likewise.
6347         * stdio-common/tmpnam_r.c: Likewise.
6349 2007-08-10  Roland McGrath  <roland@frob.com>
6351         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
6352         New macros.
6353         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
6354         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6356 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
6358         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
6359         possible.
6360         * nss/nss_files/files-alias.c (internal_setent): Likewise.
6361         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
6362         * nss/nss_files/files-have_o_cloexec.c: New file.
6364         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
6365         available.
6367 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
6369         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
6370         ___new_wcstold_l): New weak aliases.
6371         (strtold_l, wcstold_l): Use them as second argument for
6372         long_double_symbol.
6374 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
6376         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
6377         register in test for error.
6379         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
6380         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
6382         * po/sv.po: Update from translation team.
6384 2007-08-06  Roland McGrath  <roland@redhat.com>
6386         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
6387         Remove __strto*_l inlines.
6388         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
6389         * stdlib/strtod.c: Add libc_hidden_def.
6390         * stdlib/strtod_l.c: Likewise.
6391         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
6392         for __new_strtold and __new_wcstold.
6393         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
6394         __STRTOF, STRTOF.
6395         * stdlib/strtol.c: Add libc_hidden_def.
6396         * stdlib/strtol_l.c: Likewise.
6397         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
6398         strtoq.
6400         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
6402         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
6403         * scripts/data/localplt-generic.data: ... here.
6404         * elf/Makefile (check-data): Get generic file if no other.
6405         ($(objpfx)check-localplt.out): Make target unconditional.
6407         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
6408         Use ElfW(Nhdr).
6410 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
6412         * po/zh_CN.po: Updated translation from translation team.
6414 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
6416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
6417         Don't use CGOTSETUP and CGOTRESTORE macros.
6419 2007-08-04  Roland McGrath  <roland@redhat.com>
6421         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
6423 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
6425         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
6426         __extension__ around the whole statement expression.
6428 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
6430         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
6431         elements during initialization.
6433         * po/pl.po: Updated translation from translation team.
6434         * po/tr.po: Likewise.
6435         * po/nl.po: Likewise.
6437 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
6439         * rt/aio.h: Add __nonnull attributes.
6441 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
6443         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
6444         * stdlib/Makefile (tests): Add tst-strtod5.
6445         (tst-strtod5-ENV): New.
6446         * stdlib/tst-strtod5.c: New file.
6448         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
6449         failed.
6450         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
6451         on failure.
6453         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
6454         allocated.
6456 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
6458         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
6459         numbers.
6461 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
6463         * io/Makefile (aux): Add have_o_cloexec.
6464         * include/fcntl.h: Declare __have_o_cloexec.
6465         * io/have_o_cloexec.c: New file.
6466         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
6467         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
6468         fcntl call if not necessary.
6469         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
6470         of local variable.
6472         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
6473         Avoid memset, add explicit initialization.
6474         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
6475         to the end and change into zero-sized array.
6476         Move lock member to fill a hole on 64-bit platforms.
6478         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
6479         inline functions.
6480         * include/stdlib.h: Add __strto*_internal prototypes here.
6481         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
6482         inline functions.
6483         * include/wchar.h: Add __wcsto*_internal prototypes.
6484         * sysdeps/generic/inttypes.h: No need to protect the declaration
6485         of the __strto*_internal and __wcsto*_internal members here.
6487         * rt/mqueue.h: Change const to __const and add nonnull attributes.
6489 2007-08-02  Roland McGrath  <roland@redhat.com>
6491         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
6492         $(inst_bindir)/getconf if possible.
6494         * posix/Makefile ($(objpfx)getconf.speclist): New target.
6495         (generated): Add it.
6496         ($(inst_libexecdir)/getconf): Use it.
6498 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
6500         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
6501         /proc is faster and sufficient.  /sys is still needed for
6502         __get_nprocs_conf.
6504 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
6506         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
6507         syscall as __fallocate64.
6508         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
6509         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
6511 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
6513         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
6514         value.
6516         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
6517         if off_t is different rank from size_t.
6519         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
6520         uw_frame_state_for): Avoid type punning warnings.
6521         * sysdeps/generic/unwind-dw2-fde-glibc.c
6522         (_Unwind_IteratePhdrCallback): Likewise.
6523         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
6524         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
6525         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
6526         pointers.
6528 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
6530         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
6531         total processors using sysfs.
6532         (__get_nprocs): Use sysfs to determine which processors are online.
6534 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
6536         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
6537         syscall arguments count.
6539         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
6541 2007-07-30  Roland McGrath  <roland@redhat.com>
6543         * manual/libc.texinfo: Update copyrights, formatting magic, and
6544         @dircategory.  From Karl Berry <karl@freefriends.org>.
6546 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
6548         [BZ #4860]
6549         * io/Makefile (headers): Add bits/fcntl2.h.
6551         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
6552         using gcc builtin.
6553         (__CPU_EQUAL_S): Likewise.
6555         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
6556         (tests): Add tst-cpuset.
6557         * posix/sched_cpualloc.c: New file.
6558         * posix/sched_cpufree.c: New file.
6559         * posix/tst-cpuset.c: New file.
6560         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
6561         GLIBC_2.7.
6562         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
6563         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
6564         macros.  Define CPU_*_S macros.
6566 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
6568         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
6569         entry.
6571         [BZ #4858]
6572         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
6573         #.0g and value rounded to 1.0.
6574         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
6576 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
6578         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
6579         for int_frac_digits and frac_digits.
6581         * login/logout.c (logout): Avoid aliasing violation.
6582         * login/logwtmp.c (logwtmp): Likewise.
6584         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
6586         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
6587         to avoid warning.
6588         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
6589         warning.
6590         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
6591         warning.
6592         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
6593         to avoid warnings.
6595         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
6596         void **.
6597         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
6599         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
6600         char * to avoid warning.
6601         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
6603         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
6605         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
6606         allocate_arrays): Cast second argument to charmap_find_symbol
6607         to char * to avoid warnings.
6609         * locale/programs/repertoire.c (repertoire_new_char): Change
6610         from_nr, to_nr and cnt to unsigned long, adjust printf format
6611         string.
6613         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
6614         Cast second argument to new_element to char * to avoid warnings.
6616         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
6618         * intl/gettextP.h (struct loaded_domain): Change plural to const
6619         struct expression *.
6620         * intl/plural-eval.c (plural_eval): Change first argument to
6621         const struct expression *.
6622         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
6623         argument to const struct expression **.
6624         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
6625         prototypes.
6626         * intl/loadmsgcat (_nl_unload_domain): Cast away const
6627         in call to __gettext_free_exp.
6629         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
6630         unitialized wstring/wpattern var warnings.
6632         * posix/runtests.c (struct a_test): Make data field const char *.
6634         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
6635         vars if not LDBL_MANT_DIG >= 106.
6637         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
6639         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
6640         __find_specmb to avoid warning.
6642         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
6644         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
6645         to avoid warnings.
6647         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
6648         initializer.
6650         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
6651         tv var when it will be actually used.
6653         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
6654         to avoid warnings.
6656         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
6657         char array resp. pointer.
6658         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
6659         char array.
6660         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
6661         to const unsigned char **.
6662         (ucs4_to_cns11643): Change second argument to unsigned char *.
6663         * iconvdata/euc-tw.c (BODY): Change endp type to
6664         const unsigned char *.
6665         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
6666         to unsigned char *.
6667         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
6668         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
6669         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
6670         types to unsigned char pointers/arrays instead of char.
6671         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
6672         to unsigned char *.
6673         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
6674         * iconvdata/jis0212.h: Include assert.h.
6675         (ucs4_to_jisx0212): Change second argument to unsigned char *.
6676         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
6677         of trying to handle that.
6678         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
6679         shut up a warning.
6680         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
6681         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
6682         two dimensional const unsigned char arrays.
6683         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
6684         Initialize endp to inptr to shut up a warning.
6686 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
6688         [BZ #4772]
6689         * time/strptime_l.c (__strptime_internal): Silently ignore
6690         strftime modifiers and field width in recursive calls.
6692         * include/time.h (enum ptime_locale_status): Remove.
6693         (__strptime_internal): Remove decided and era_cnt arguments,
6694         add statep argument.
6695         * time/strptime_l.c (__strptime_internal): Remove decided
6696         and era_cnt arguments, add statep argument.  Don't recompute
6697         any fields in recursive calls, only update caller's tm
6698         and state, if recursive call fails, don't change tm nor
6699         any state.
6700         (get_alt_number): Adjust.
6701         (recursive): Adjust caller.
6702         (strptime): Likewise.
6703         * time/strptime.c (strptime): Likewise.
6705 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
6707         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
6708         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
6709         if from and to charsets are the same.
6710         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
6711         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
6712         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
6714 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
6716         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
6717         Don't define wint_t when __need_mbstate_t unless it
6718         is necessary.
6719         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
6720         in the typedef if possible.
6721         * wctype/wctype.h (wint_t): Define by including
6722         wchar.h with __need_wint_t instead of including stddef.h
6723         with __need_wint_t and as fallback definining it ourselves.
6724         * iconv/gconv.h (__need_wint_t): Define before including
6725         wchar.h.
6726         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
6727         or _GLIBCPP_USE_WCHAR_T.
6728         (__need_wchar_t): Don't define
6729         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6730         (__need_wint_t): Don't define before including stddef.h,
6731         define before including wchar.h only if _LIBC or
6732         _GLIBCPP_USE_WCHAR_T.
6733         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6734         * sysdeps/mach/hurd/_G_config.h: Likewise.
6735         * sysdeps/generic/_G_config.h: Likewise.
6736         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
6737         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
6738         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
6739         if _LIBC or _GLIBCPP_USE_WCHAR_T.
6741 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
6743         * sysdeps/posix/posix_fallocate64.c: Undefine
6744         __posix_fallocate64_l64 before alias handling.
6745         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
6746         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
6747         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
6748         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
6750         * io/tst-posix_fallocate.c: Include <fcntl.h>.
6752 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
6754         * locale/programs/ld-collate.c (atwc): New variable.
6755         (add_to_tablewc): New toplevel function, moved from collate_output.
6756         (collate_output): Remove add_to_tablewc nested function.
6758         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
6759         (name_insert): New function.
6760         (write_output): Remove hash_table and hash_size vars and name_insert
6761         nested function.
6763 2007-07-24  Roland McGrath  <roland@redhat.com>
6765         * Makerules (install-others-programs-nosubdir): New target.
6766         (install-no-libc.a-nosubdir): Depend on it.
6768         * iconv/Makefile (install-others-programs): Set this instead of
6769         install-others.
6770         * login/Makefile (install-others-programs): Likewise.
6771         * posix/Makefile (install-others-programs): Likewise.
6773         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
6774         dependencies.
6776 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
6778         * io/Makefile (tests): Add tst-posix_fallocate.
6779         * io/tst-posix_fallocate.c: New file.
6781         * sysdeps/unix/sysv/linux/kernel-features.h: Define
6782         __ASSUME_FALLOCATE.
6784 2007-07-22  Roland McGrath  <roland@frob.com>
6786         * hurd/getdport.c: Add missing copyright year update.
6788         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
6789         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
6791 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
6793         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
6795         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
6796         O_CLOEXEC is needed.
6797         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
6798         Avoid additional fcntl to set O_CLOEXEC if not needed.
6799         * nis/nss_compat/compat-initgroups.c: Likewise.
6800         * nis/nss_compat/compat-pwd.c: Likewise.
6801         * nis/nss_compat/compat-spwd.c: Likewise.
6803 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6805         [BZ #3665]
6806         * manual/errno.texi: Change ECANCELED value to 119.
6808         [BZ #4610]
6809         * mach/lock-intern.h: Include <sys/cdefs.h>.
6811         [BZ #4178]
6812         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
6813         reading A.
6815         [BZ #4126]
6816         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
6817         to __sigsuspend.
6819         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
6821 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
6823         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
6824         `__ASSEMBLER__'.
6825         * sysdeps/mach/hurd/i386/tls.h: Likewise.
6827 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
6829         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
6830         descriptor received from nscd.
6832         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
6834         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
6835         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6836         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6837         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6838         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6839         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6841 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
6843         [BZ #4816]
6844         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
6846         [BZ #4813]
6847         * login/forkpty.c (forkpty): Close master and slave fds on
6848         fork failure.  Patch by
6849         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
6851 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
6853         * include/features.h (__USE_ISOC95): New define.
6854         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
6855         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
6856         for -std=iso9899:199409.
6857         * CONFORMANCE: Remove comments about unsupported AMD1.
6859 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
6861         * sysdeps/ia64/sched_cpucount.c: New file.
6862         * sysdeps/powerpc/sched_cpucount.c: New file.
6864         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
6865         __BEGIN_DECLS/__END_DECLS around the prototype.
6866         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
6867         pointer to const cpu_set_t.
6869         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
6870         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
6871         __need_size_t and include stddef.h.
6872         * sysvipc/sys/msg.h: Likewise.
6873         * posix/sched.h: Likewise.
6874         * hurd/hurd/signal.h (__need_size_t): Define.
6876         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
6877         neither does signal.h in pedantic ISO C namespaces.  stdio.h
6878         no longer defines wint_t or wchar_t.
6880         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
6881         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
6882         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
6883         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
6884         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
6885         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
6886         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
6887         * debug/printf_chk.c (__printf_chk): Likewise.
6888         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
6889         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
6891         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
6892         Define.
6894         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
6895         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
6897 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
6899         [BZ #4792]
6900         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
6901         * malloc/malloc.h (realloc): Likewise.
6903         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
6904         if one of proc_file_chain streams has that fileno.
6905         * stdio-common/Makefile (tests): Add tst-popen2.
6906         * stdio-common/tst-popen2.c: New test.
6908 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
6910         * elf/ldconfig.c: Allow GPLv2 or any later version.
6911         * elf/readlib.c: Likewise.
6912         * elf/chroot_canon.c: Likewise.
6913         * elf/cache.c: Likewise.
6914         * nscd/mem.c: Likewise.
6915         * nscd/getpwuid_r.c: Likewise.
6916         * nscd/grpcache.c: Likewise.
6917         * nscd/aicache.c: Likewise.
6918         * nscd/getsrvbynm_r.c: Likewise.
6919         * nscd/nscd.c: Likewise.
6920         * nscd/servicescache.c: Likewise.
6921         * nscd/getsrvbypt_r.c: Likewise.
6922         * nscd/initgrcache.c: Likewise.
6923         * nscd/gethstbyad_r.c: Likewise.
6924         * nscd/gethstbynm2_r.c: Likewise.
6925         * nscd/getgrnam_r.c: Likewise.
6926         * nscd/nscd_setup_thread.c: Likewise.
6927         * nscd/getpwnam_r.c: Likewise.
6928         * nscd/gai.c: Likewise.
6929         * nscd/connections.c: Likewise.
6930         * nscd/dbg_log.c: Likewise.
6931         * nscd/cache.c: Likewise.
6932         * nscd/hstcache.c: Likewise.
6933         * nscd/nscd_conf.c: Likewise.
6934         * nscd/getgrgid_r.c: Likewise.
6935         * nscd/pwdcache.c: Likewise.
6936         * catgets/gencat.c: Likewise.
6937         * locale/programs/linereader.h: Likewise.
6938         * locale/programs/locarchive.c: Likewise.
6939         * locale/programs/ld-paper.c: Likewise.
6940         * locale/programs/locfile-kw.h: Likewise.
6941         * locale/programs/ld-address.c: Likewise.
6942         * locale/programs/xmalloc.c: Likewise.
6943         * locale/programs/ld-time.c: Likewise.
6944         * locale/programs/localedef.c: Likewise.
6945         * locale/programs/simple-hash.c: Likewise.
6946         * locale/programs/xstrdup.c: Likewise.
6947         * locale/programs/ld-numeric.c: Likewise.
6948         * locale/programs/locfile-kw.gperf: Likewise.
6949         * locale/programs/ld-collate.c: Likewise.
6950         * locale/programs/charmap-kw.gperf: Likewise.
6951         * locale/programs/charmap.h: Likewise.
6952         * locale/programs/charmap-kw.h: Likewise.
6953         * locale/programs/config.h: Likewise.
6954         * locale/programs/locfile.c: Likewise.
6955         * locale/programs/ld-ctype.c: Likewise.
6956         * locale/programs/charmap.c: Likewise.
6957         * locale/programs/ld-messages.c: Likewise.
6958         * locale/programs/repertoire.h: Likewise.
6959         * locale/programs/locale.c: Likewise.
6960         * locale/programs/ld-name.c: Likewise.
6961         * locale/programs/linereader.c: Likewise.
6962         * locale/programs/locfile.h: Likewise.
6963         * locale/programs/3level.h: Likewise.
6964         * locale/programs/ld-monetary.c: Likewise.
6965         * locale/programs/ld-measurement.c: Likewise.
6966         * locale/programs/charmap-dir.c: Likewise.
6967         * locale/programs/ld-identification.c: Likewise.
6968         * locale/programs/localedef.h: Likewise.
6969         * locale/programs/charmap-dir.h: Likewise.
6970         * locale/programs/repertoire.c: Likewise.
6971         * locale/programs/simple-hash.h: Likewise.
6972         * locale/programs/ld-telephone.c: Likewise.
6973         * locale/programs/locale-spec.c: Likewise.
6974         * locale/programs/locfile-token.h: Likewise.
6975         * posix/getconf.c: Likewise.
6976         * iconv/dummy-repertoire.c: Likewise.
6977         * iconv/iconv_charmap.c: Likewise.
6978         * iconv/iconvconfig.c: Likewise.
6979         * iconv/iconv_prog.c: Likewise.
6980         * malloc/memusagestat.c: Likewise.
6981         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
6983 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6985         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
6986         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
6987         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
6988         check for the first argument.
6990 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
6992         [BZ #4775]
6993         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
6994         (__tgmath_real_type): Fix if expr is const int or other const
6995         qualified integral type.
6996         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
6997         expressions and handle const qualified arguments.
6998         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
6999         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
7000         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
7001         statement expressions.
7002         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
7003         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
7004         (__TGMATH_UNARY_IMAG): Define.
7005         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
7006         * math/Makefile (tests): Add test-tgmath2.
7007         (CFLAGS-test-tgmath2.c): Add.
7008         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
7009         count_cfloat, count_cldouble): New variables.
7010         (NCCALLS): Define.
7011         (main): Check number of complex calls as well.
7012         (F(compile_test)): Add complex tests and tests with const qualified
7013         arguments.
7014         (y, z, ccount): Define.
7015         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
7016         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
7017         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
7018         F(cproj)): New functions.
7019         * math/test-tgmath2.c: New test.
7021 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
7023         [BZ #4776]
7024         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
7025         RPATH etc. as "/" rather than "", don't segfault on empty paths,
7026         instead output ".".
7027         * dlfcn/Makefile (distribute): Add glreflib3.c.
7028         (module-names): Add glreflib3.
7029         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
7030         glreflib1.so.
7031         (LDFLAGS_glreflib3.so): New.
7032         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
7033         glreflib1.so.
7034         * dlfcn/glreflib3.c: New file.
7036         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
7037         returned -1, return NULL.
7038         * intl/explodename.c (_nl_explode_name): Return -1 if
7039         _nl_normalize_codeset failed.
7041 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
7043         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
7044         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
7045         and avoid branch misspredicts for > 31 bytes memset case.
7046         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
7047         Remove toc ref to __cache_line_size.
7049         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
7050         to get ISA-V2.0 branch hints.
7051         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
7052         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
7053         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
7054         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
7055         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
7056         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
7057         Remove toc ref to __cache_line_size.
7059         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
7060         Include math_ldbl_opt.h.
7062 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
7064         [BZ #4773]
7065         * time/strptime_l.c (__strptime_internal): Implement greedy
7066         matching of weekday and month names.
7068 2007-07-09  Roland McGrath  <roland@redhat.com>
7070         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
7071         (ELF_NOTE_ABI): Use it.
7072         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
7074 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
7076         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
7077         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7079 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
7081         [BZ #4745]
7082         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
7083         in loop to look for conversion specifier to avoid testing of
7084         wrong errno value.
7085         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
7086         * stdio-common/bug18.c: New file.
7087         * stdio-common/bug18a.c: New file.
7088         * stdio-common/bug19.c: New file.
7089         * stdio-common/bug19a.c: New file.
7091 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
7093         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
7094         running awk script.
7096 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
7098         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
7099         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
7100         Return NULL if mmap failed instead of asserting it does not.
7101         (calloc): Check for integer overflow.
7103         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
7104         than LONG_MAX / 10.
7106 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
7108         [BZ #4702]
7109         * nis/nss-default.c: Include errno.h.
7110         (init): Preserve errno.
7112 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
7114         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
7116 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
7118         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
7120 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7122         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
7124 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7126         * sysdeps/s390/dl-procinfo.c: New file.
7127         * sysdeps/s390/dl-procinfo.h: New file.
7128         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
7130 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
7132         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
7133         in PT_NOTE segments with multiple notes.
7134         * elf/readelflib.c (process_elf_file): Likewise.
7136 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
7138         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
7139         ISO C compliant.
7141 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
7143         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
7145 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
7147         * include/link.h: Don't include rtld-lowlevel.h.
7148         (struct link_map): Remove l_scope_lock.
7149         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
7150         (_dl_scope_free_list): New field (variable) in _rtld_global.
7151         (DL_LOOKUP_SCOPE_LOCK): Remove.
7152         (_dl_scope_free): New prototype.
7153         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
7154         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
7155         (_dl_profile_fixup): Likewise.
7156         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
7157         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
7158         THREAD_GSCOPE_RESET_FLAG around it.
7159         * elf/dl-close.c (_dl_close_worker): Don't use
7160         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
7161         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
7162         scopes were queued or if l_scope_mem has been abandoned.
7163         * elf/dl-open.c (_dl_scope_free): New function.
7164         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
7165         * elf/dl-support.c (_dl_scope_free_list): New variable.
7166         * elf/dl-lookup.c (add_dependency): Remove flags argument.
7167         Remove DL_LOOKUP_SCOPE_LOCK handling.
7168         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
7169         handling.
7170         * elf/dl-object.c (_dl_new_object): Don't use
7171         __rtld_mrlock_initialize.
7173 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
7175         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
7176         to fill in holes
7177         (rtld_global_ro): Likewise.
7179 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7181         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
7182         Move PT_LOAD checking to...
7183         (_dl_addr_inside_object): ... here, new function.
7184         * elf/dl-sym.c (do_sym): If not l_contiguous,
7185         call _dl_addr_inside_object.
7186         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7187         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7188         * elf/dl-open.c (dl_open_worker): Likewise.
7189         (_dl_addr_inside_object): New function if IS_IN_rtld.
7190         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
7191         holes are present or are PROT_NONE protected.
7192         * include/link.h (struct link_map): Add l_contiguous field.
7193         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
7195 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7196             Tomas Janousek  <tjanouse@redhat.com>
7197             Ulrich Drepper  <drepper@redhat.com>
7199         [BZ #4647]
7200         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
7201         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
7202         socket.
7203         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
7204         unused member a bitmap.
7205         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
7206         servers are configured.
7208 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7210         * elf/rtld.c (dl_main): Don't call init_tls more than once.
7212 2007-06-17  Andreas Schwab  <schwab@suse.de>
7214         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
7216 2007-06-16  Andreas Jaeger  <aj@suse.de>
7218         [BZ #4125]
7219         * sysdeps/unix/sysv/linux/sys/ptrace.h
7220         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
7221         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
7222         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
7223         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
7224         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
7225         Define.
7226         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7227         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7228         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7229         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7231 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
7233         [BZ #4599]
7234         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
7235         determining whether there are IPv4/IPv6 addresses, ignore loopback
7236         addresses.
7238 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
7240         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
7241         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
7242         as the return type.  Change type of "r" variable to CMPtype.
7243         * soft-fp/eqsf2.c (__eqsf2): Likewise.
7244         * soft-fp/eqtf2.c (__eqtf2): Likewise.
7245         * soft-fp/gedf2.c (__gedf2): Likewise.
7246         * soft-fp/gesf2.c (__gesf2): Likewise.
7247         * soft-fp/getf2.c (__getf2): Likewise.
7248         * soft-fp/ledf2.c (__ledf2): Likewise.
7249         * soft-fp/lesf2.c (__lesf2): Likewise.
7250         * soft-fp/letf2.c (__letf2): Likewise.
7251         * soft-fp/unorddf2 (__unorddf2): Likewise.
7252         * soft-fp/unordsf2 (__unordsf2): Likewise.
7253         * soft-fp/unordtf2 (__unordtf2): Likewise.
7255 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
7257         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
7258         make sure gcc doesn't mess around with this.
7260 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
7262         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
7264 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
7266         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
7267         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
7268         at most once per _dl_close_worker.
7270 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
7272         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
7273         __sched_cpucount as const.
7274         * posix/sched_cpucount.c: Adjust.
7276         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
7277         instruction for counting bits.
7278         * sysdeps/x86_64/sched_cpucount.c: New file.
7280 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
7282         * configure.in: Avoid variable named BASH.
7283         * config.make.in: Likewise.
7284         Patch in part by Mike Frysinger.
7286 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
7288         [BZ #4586]
7289         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
7290         pseudo-zeros as zero.
7291         * sysdeps/x86_64/ldbl2mpn.c: New file.
7292         * sysdeps/ia64/ldbl2mpn.c: New file.
7294 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
7296         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
7297         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
7298         Remove unreachable code at the end.
7300 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
7302         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
7303         ldbl-128ibm in comment.
7304         (fpclassifyl): Correct classification of denormals.
7305         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
7306         return value for MIN denormal. Rewrite using long double math too
7307         correctly handle denormals and canonicalize the results.
7309 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
7311         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
7312         (__mpn_construct_long_double): Fix conversion where result ought
7313         to be smaller than __LDBL_MIN__, or the low double should be
7314         denormal.  Fix decision where to negate low double - honor round
7315         to even rules.
7316         * stdio-common/tst-sprintf2.c: Include string.h.
7317         (COMPARE_LDBL): Define.
7318         (TEST): Also test whether a string hexadecimal float representation
7319         can be parsed back to the number.
7320         (main): Add a couple of further tests.
7322 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
7324         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
7325         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
7326         is non-zero, but smaller than 2 * __DBL_MIN__.
7327         * stdio-common/tst-sprintf2.c: New test.
7328         * stdio-common/Makefile (tests): Add tst-sprintf2.
7330         * math/test-misc.c (main): Don't run last batch of tests with
7331         IBM long double format.
7333 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7335         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
7336         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
7337         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
7338         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
7339         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7340         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
7341         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
7342         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
7343         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
7344         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
7346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
7347         New file.
7348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
7349         New file.
7350         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
7351         New file.
7352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
7353         New file.
7354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
7355         New file.
7356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
7357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
7358         New file.
7359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
7360         New file.
7361         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
7362         New file.
7363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
7364         New file.
7365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
7366         New file.
7368 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7370         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
7371         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
7372         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
7373         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
7374         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
7375         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
7376         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
7377         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
7379 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
7381         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
7382         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7383         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
7384         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7385         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
7386         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7387         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
7388         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7390 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
7392         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
7393         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
7394         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
7395         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
7397 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
7399         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
7400         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
7402 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
7404         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
7405         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
7406         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
7407         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
7409 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
7411         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
7412         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
7414 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
7416         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
7417         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
7419         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
7420         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
7421         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
7422         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
7424 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
7426         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
7427         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
7428         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
7429         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
7431 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
7433         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
7434         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
7435         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
7436         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7437         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
7438         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7440 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
7442         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
7443         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
7444         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
7445         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
7447 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
7449         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
7450         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
7451         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
7452         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
7453         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
7454         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
7455         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
7456         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
7457         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
7458         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
7459         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
7460         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
7461         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
7462         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
7463         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
7464         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
7466 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
7468         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
7469         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
7471 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
7473         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
7474         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
7476 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7478         * sysdeps/powerpc/powerpc32/970/Implies: New file.
7479         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
7480         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
7481         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
7482         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
7483         * sysdeps/powerpc/powerpc64/970/Implies: New file.
7484         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
7485         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
7486         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
7487         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
7489 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
7491         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
7493 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
7495         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
7496         branch miss-predicts. Ensure that cache line crossing does not impact
7497         dispatch grouping.
7499 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
7501         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
7502         "../../powerpc32/power4/memcopy.h".
7503         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
7504         "../../powerpc32/power4/wordcopy.c".
7506 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
7508         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
7509         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
7510         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
7511         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
7512         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
7513         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7515 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
7517         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
7519 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
7521         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
7522         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
7523         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
7524         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
7525         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
7526         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
7527         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
7528         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
7530 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
7532         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
7534 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
7536         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
7537         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
7538         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
7539         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
7540         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
7541         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
7542         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
7544 2007-05-29  Roland McGrath  <roland@redhat.com>
7546         * po/Makefile (po-sed-cmd): New variable.
7547         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
7549 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
7551         * crypt/md5-crypt.c: Fix comment.
7553         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
7554         of crashing.  When this is the case or if the reply is malformed,
7555         don't try to close the new file descriptor since it does not
7556         exist.
7557         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
7559 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
7561         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
7562         if __NR_utimensat is not defined.
7564 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
7566         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
7568 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
7570         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
7571         (open): Fix comment typos.  Don't call __open_2 if flags
7572         is a compile time constant without O_CREAT.
7573         (__open64_2): Add nonnull attribute.
7574         (open64): Fix comment typos.  Don't call __open64_2 if flags
7575         is a compile time constant without O_CREAT.
7576         (__openat_2): Add nonnull attribute, fix nonnull attribute
7577         on redirect.
7578         (openat): Fix comment typos.  Don't call __openat_2 if flags
7579         is a compile time constant without O_CREAT.
7580         (__openat64_2): Add nonnull attribute, fix nonnull attribute
7581         on redirect.
7582         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
7583         is a compile time constant without O_CREAT.
7585 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
7587         * Makerules (sysd-rules): Define PTW for ptw-* files.
7588         * Versions: Define GLIBC_2.7 for libc.
7589         * include/stdio.h: Declare __fortify_fail.
7590         * debug/fortify_fail.c: New file.
7591         * debug/Makefile (routines): Add fortify_fail.
7592         * debug/chk_fail.c: Use __fortify_fail.
7593         * debug/stack_chk_fail.c: Likewise.
7594         * io/Versions: Export __open_2, __open64_2, __openat_2, and
7595         __openat64_2 for GLIBC_2.7.
7596         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
7597         * io/open.c: Define *_2 variant of function which checks for O_CREAT
7598         and fails if necessary.
7599         * io/open64.c: Likewise.
7600         * io/openat.c: Likewise.
7601         * io/openat64.c: Likewise.
7602         * sysdeps/unix/sysv/linux/open64.c: Likewise.
7603         * sysdeps/unix/sysv/linux/openat.c: Likewise.
7604         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
7605         * io/bits/fcntl2.h: New file.
7606         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
7607         __openat64_2.
7608         * include/bits/fcntl2.h: New file.
7609         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7610         Add open_2.
7611         * sysdeps/unix/sysv/linux/open_2.c: New file.
7613 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
7615         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
7616         as second parameter to handle_intel.
7618         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
7619         the entry.
7621         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
7622         handling to ...
7623         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
7624         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
7625         cacheinfo.
7626         * sysdeps/x86_64/memcpy.S: Complete rewrite.
7627         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
7628         Patch by Evandro Menezes <evandro.menezes@amd.com>.
7630         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
7632 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
7634         [BZ #4525]
7635         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
7636         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
7637         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
7639         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
7641         [BZ #4514]
7642         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
7643         reinitialize workend at the start of each do_positional format spec
7644         loop, free workstart before do_positional loops.
7645         (printf_unknown): Fix size of work_buffer.
7646         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
7648         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
7649         (public_sET_STATe): If ms->version < 3, put all chunks into
7650         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
7651         chunks.
7653         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
7654         * malloc/hooks.c: Likewise.
7655         * malloc/arena.c: Likewise.
7656         * malloc/malloc.c (do_check_malloc_state): Don't assert
7657         n_mmaps is not greater than n_mmaps_max.  This removes the need
7658         for the previous change.
7660         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
7661         2007-05-07 commit.
7663 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
7665         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
7666         Define for kernel >= 2.6.22.
7668 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
7670         * elf/dl-close.c (_dl_close_worker): When removing object from
7671         global scope, wait for all lookups to finish afterwards.
7672         * elf/dl-open.c (add_to_global): When global scope array must
7673         grow, allocate a new one and free old array only after all
7674         lookups finish.
7675         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
7676         (_dl_lookup_symbol_x): Likewise.
7677         * elf/dl-support.c: Define _dl_wait_lookup_done.
7678         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
7679         _dl_wait_lookup_done.
7681         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
7682         not overlapping with arena.
7684         * malloc/mcheck.c (reallochook): If size==0, free the block.
7686         * rt/tst-shm.c: Use fstat64 instead of fstat.
7688         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
7689         __NR_sync_file_range is not defined.
7691 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
7693         Dummy files to prevent stub versions from being used.
7694         * sysdeps/x86_64/fpu/k_cosl.c: New file.
7695         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
7696         * sysdeps/x86_64/fpu/k_sinl.c: New file.
7697         * sysdeps/x86_64/fpu/k_tanl.c: New file.
7699         * version.h (VERSION): Set to 2.6.90.
7701 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
7703         * version.h (VERSION): Define to 2.6.
7704         * include/features.h (__GLIBC_MINOR__): Define to 6.
7706         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
7708         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
7709         sizes.
7711 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
7713         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
7714         number of mmaps.  n_mmaps_max is the target.
7715         * malloc/hooks.c: Likewise.
7716         * malloc/arena.c: Likewise.
7718 2007-05-12  Andreas Jaeger  <aj@suse.de>
7720         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
7721         getpid.
7723 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
7725         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
7726         adding new variables.
7728         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
7729         optimize.  Completely extend global scope array before making the
7730         new entries visible.
7732 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
7734         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
7735         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
7736         tst-getcpu.
7738         * include/link.h: Move l_version and l_nversion members around to
7739         fill gaps.
7741         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
7743         * sysdeps/unix/sysv/linux/sched_setaffinity.c
7744         (__sched_setaffinity_new): If syscall was successful and
7745         RESET_VGETCPU_CACHE is defined, use it before returning.
7746         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
7748         * io/sys/stat.h: Make sure struct timespec is defined for
7749         __USE_ATFILE.
7751         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
7752         UTIME_OMIT.
7753         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7754         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7755         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
7756         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7757         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
7758         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7759         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
7760         * io/sys/stat.h: Declare utimensat, futimens.
7761         * io/utimensat.c: New file.
7762         * io/futimens.c: New file.
7763         * sysdeps/unix/sysv/linux/utimensat.c: New file.
7764         * sysdeps/unix/sysv/linux/futimens.c: New file.
7765         * io/Makefile (routines): Add utimensat, futimens.
7766         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
7767         * sysdeps/unix/sysv/linux/lutimes.c: New file.
7768         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
7769         available.
7771         * include/sys/cdefs.h: Redefine __nonnull so that test for
7772         incorrect parameters in the libc code itself are not omitted.
7774 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
7776         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
7777         exception in addition to inexact when asked to raise only FE_INEXACT.
7779         [BZ #3427]
7780         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
7781         in *envp.
7783 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
7785         [BZ #4403]
7786         * string/strfry.c (strfry): Make result more random.
7788 2007-05-07  Richard Henderson  <rth@redhat.com>
7790         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
7791         if __NO_LONG_DOUBLE_MATH.
7792         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
7793         available in the compiler, add .arch directive to the assembly.
7795 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
7797         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
7798         compat_symbol to GLIBC_2_1.
7799         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
7800         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
7801         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
7802         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
7803         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
7804         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
7805         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
7806         libc, not libm.
7807         (__isnanl): New compat_symbol.
7809 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
7810             Jakub Jelinek  <jakub@redhat.com>
7812         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
7813         (new_heap): Initialize mprotect_size.
7814         (grow_heap): When growing, only mprotect from mprotect_size till
7815         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
7816         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
7818 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
7819             Peter Bergner  <bergner@us.ibm.com>
7821         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
7822         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
7823         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
7824         * sysdeps/powerpc/fpu/fe_mask.c: New file.
7825         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
7826         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
7827         Call __fe_mask_env() if all FP exceptions disabled.
7828         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
7829         from old FPSCR to new fenv to propagate DFP rounding modes.
7830         Call __fe_mask_env() if FP exceptions previously enabled.
7831         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
7832         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
7833         transitioning from all exceptions disabled to any exception enabled
7834         or visa versa.
7835         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
7836         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
7837         when transitioning from all exceptions disabled to any exception
7838         enabled or visa versa.
7839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
7840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
7841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
7842         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
7843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
7844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
7846 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
7848         [BZ #4465]
7849         * posix/unistd.h: Remove __THROW from fdatasync.
7851 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
7853         [BZ #4465]
7854         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
7856 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
7858         * stdio-common/vfprintf.c (process_string_arg): Optimize
7859         ridiculous precision in wide char code printing multi-byte string.
7860         Reported by Jim Meyering <jim@meyering.net>.
7862         [BZ #4131]
7863         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
7864         boundaries to work around systems with overlapping binary loading.
7865         Based on a patch by Suzuki <suzuki@in.ibm.com>.
7867 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
7869         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
7870         __mbsnrtowcs after last change.
7872         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
7873         (get_ident): Likewise.
7875 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
7877         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
7878         with setting the sticky bit.
7879         * math/test-misc.c (main): Add more truncation tests.
7881 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
7883         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
7884         double in the function declaration.
7885         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
7886         double in the function declaration.
7887         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7888         float in the function declaration.
7889         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7890         float in the function declaration.
7892         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
7893         denormal operands.  Do not generate FP_EX_DENORM exception.
7894         (FP_UNPACK_RAW_EP): Ditto.
7895         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
7896         undefined _FP_UNPACK_RAW_E.
7897         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
7898         undefined _FP_UNPACK_RAW_EP.
7899         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
7900         undefined _FP_PACK_RAW_E.
7901         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
7902         undefined _FP_PACK_RAW_EP.
7904         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
7905         _FP_FRAC_COPY_2.
7906         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
7907         _FP_FRAC_COPY_4.
7909 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
7910             Jakub Jelinek  <jakub@redhat.com>
7912         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
7913         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
7914         this case.
7915         * soft-fp/op-common.h (FP_TRUNC): Ditto.
7917 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
7919         * math/test-misc.c (main): Add tests for rounding long double
7920         values close to smallest double denormalized value to double.
7922 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
7924         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
7925         condition for truncating to 0.  Set sticky bit for such
7926         truncation.
7928 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
7930         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
7931         fixed length array for ignore.
7933 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
7935         [BZ #4438]
7936         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
7937         stack for large precisions.
7938         * stdio-common/test-vfprintf.c (main): Add test for large
7939         precision.
7941 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
7943         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
7944         for exponent 0.
7945         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
7947         [BZ #4439]
7948         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
7949         account in the size check.
7950         * resolv/tst-inet_ntop.c: New test.
7951         * resolv/Makefile (tests): Add tst-inet_ntop.
7953 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
7954             Jakub Jelinek  <jakub@redhat.com>
7956         [BZ #4349]
7957         * malloc/malloc.c: Keep separate list for first blocks on the bin
7958         lists with a given size.  This helps skipping over list elements
7959         we know won't fit in two places.
7960         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
7962 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
7964         [BZ #4102]
7965         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
7966         label to Teredo tunnel addresses 2001://32.
7968 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
7970         * locale/programs/ld-collate.c (collate_read): Allow order_start
7971         after copy.
7973         * locale/programs/ld-collate.c (collate_read): Fix printing of
7974         error message.
7976         [BZ #3213]
7977         * locale/C-translit.h.in: Add entry for U2044.
7979         [BZ #4342]
7980         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
7981         hexa-decimal floats without exponent.
7982         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
7984 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
7986         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
7987         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
7988         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
7989         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
7990         GLIBC_2.6.
7991         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
7992         Add sched_getcpu.
7994 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
7996         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
7997         of 0 after the out_fail label.
7999 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
8001         [BZ #4406]
8002         * iconv/gconv_charset.h (strip): Allow ':'.
8003         * iconv/iconv_open.c (iconv_open): Adjust comment.
8005 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
8007         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
8008         version.
8010 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
8012         [BZ #4381]
8013         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
8014         alignment of buffer and tmp_buffer.
8015         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
8016         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
8017         alignment of buffer.
8018         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
8019         bigger than INT_MAX.
8020         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
8021         h_errnop arguments.  Fail if buflen is too small.
8022         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
8024 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
8026         [BZ #4405]
8027         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
8028         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
8030 2007-04-22  Roland McGrath  <roland@redhat.com>
8032         * elf/elf.h (NT_PRXFPREG): New macro.
8034 2007-04-19  Andreas Jaeger  <aj@suse.de>
8036         [BZ #3905]
8037         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
8038         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
8039         Added.
8041 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
8043         * include/sys/mman.h: Mark madvise hidden.
8044         * misc/madvise.c: Add libc_hidden_def.
8046 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
8048         * nis/nis_domain_of.c (__nis_domain_of): New function.
8049         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
8050         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
8051         * nis/nis_call.c (rec_dirsearch): Likewise.
8052         (first_shoot): Likewise.  Remove search_parent_first argument.
8053         (struct nis_server_cache): Rename search_parent_first field
8054         to search_parent.
8055         (nis_server_cache_search, nis_server_cache_add): Rename
8056         search_parent_first argument to search_parent.
8057         (__nisfind_server): Likewise.  If search_parent, call
8058         __nis_domain_of.
8060 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
8062         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
8064 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
8066         [BZ #4368]
8067         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
8069 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
8071         [BZ #4364]
8072         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
8074 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
8076         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
8077         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
8078         current number of locales in SUPPORTED.
8079         (create_archive): Initialize serial.
8080         (enlarge_archive): Preserve aliases rather than duplicating
8081         their locrecs.
8083 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
8085         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
8086         after _IO_un_link, not before it.
8088         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
8089         special case handling when wcp == wstartp + 1.  Fix a comment typo.
8090         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
8092 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
8094         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
8095         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
8096         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
8097         Remove __THROW.
8098         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
8099         _IO_file_xsgetn_maybe_mmap): Likewise.
8100         * libio/oldfileops.c (old_do_write): Likewise.
8101         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
8102         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
8103         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
8104         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
8105         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
8106         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
8107         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
8108         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
8109         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
8110         _IO_file_underflow, _IO_file_underflow_mmap,
8111         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
8112         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
8113         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
8114         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
8115         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
8116         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
8117         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
8118         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
8119         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
8120         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
8121         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
8122         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
8123         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
8124         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
8125         _IO_adjust_column_internal, _IO_default_uflow_internal,
8126         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
8127         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
8128         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
8129         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
8130         _IO_file_close_it_internal, _IO_file_underflow_internal,
8131         _IO_file_overflow_internal, _IO_file_attach_internal,
8132         _IO_file_fopen_internal, _IO_file_sync_internal,
8133         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
8134         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
8135         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
8136         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
8137         _IO_seekpos_unlocked): Likewise.
8138         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
8139         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
8141 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
8143         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
8144         argument in xmalloc size computation.
8146 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
8148         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
8149         math_opt_barrier and math_force_eval macros.
8151 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
8153         [BZ #3306]
8154         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
8155         * sysdeps/i386/fpu/math_private.h: New file.
8156         * sysdeps/x86_64/fpu/math_private.h: New file.
8157         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
8158         math_force_eval macros.  Use "+m" constraint on asm rather than
8159         "=m" and "m".
8160         * math/s_nextafter.c (__nextafter): Likewise.
8161         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
8162         Likewise.
8163         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
8164         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
8165         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8166         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
8167         math_opt_barrier and math_force_eval macros.
8168         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
8169         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
8170         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
8171         (__nexttoward): Use math_opt_barrier and
8172         math_force_eval macros.  Use "+m" constraint on asm rather than
8173         "=m" and "m".  Only use asm to force double result if
8174         FLT_EVAL_METHOD is 2.
8175         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
8176         (__nexttowardf): Use math_opt_barrier and
8177         math_force_eval macros.  Use "+m" constraint on asm rather than
8178         "=m" and "m".  Only use asm to force double result if
8179         FLT_EVAL_METHOD is not 0.
8180         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
8181         (__nexttowardf): Use math_opt_barrier and
8182         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
8183         x to float using asm.
8184         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
8185         (__nldbl_nexttowardf): Use math_opt_barrier and
8186         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
8187         x to float using asm.
8188         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
8189         (__nexttowardf): Use math_opt_barrier and math_force_eval
8190         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
8191         * math/bug-nextafter.c (zero, inf): New variables.
8192         (main): Add new tests.
8193         * math/bug-nexttoward.c (zero, inf): New variables.
8194         (main): Add new tests.
8196 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
8198         [BZ #3427]
8199         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
8200         exceptions both in SW and MXCSR.
8201         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
8202         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
8203         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
8204         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8205         in MXCSR if SSE is available.
8206         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
8207         and ldsodefs.h.
8208         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
8209         Fix comment typo.
8210         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
8211         Return 0 rather than 1.
8212         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
8213         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
8214         * math/test-fenv.c (feholdexcept_tests): New function.
8215         (main): Call it.
8217 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
8219         [BZ #3427]
8220         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8221         in SW.
8223 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
8225         [BZ #4344]
8226         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
8227         Reported by David Anderson <davea42@earthlink.net>.
8229 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
8231         * posix/sys/wait.h: Remove unnecessary forward declaration.
8233 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
8235         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
8236         with obj->do_servers after first_shoot.
8238 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
8240         * posix/Makefile (routines): Add sched_cpucount.
8241         (tests): Add tst-cpucount.
8242         * posix/sched_cpucount.c: New file.
8243         * posix/tst-cpucount.c: New file.
8244         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
8245         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
8246         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8247         * posix/sched.h: Define CPU_COUNT.
8249 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
8251         * posix/fnmatch.c (STRUCT): Define.
8252         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
8253         * posix/fnmatch_loop.c (struct STRUCT): New type.
8254         (FCT): Add ends argument.  If ends != NULL and normal * is
8255         seen in the pattern, store current pattern and string pointers
8256         and return.  Adjust recursive calls.
8257         (EXT): Adjust FCT callers.
8258         (STRUCT): Undef at the end of the file.
8259         * posix/Makefile (tests): Add tst-fnmatch2.
8260         * posix/tst-fnmatch2.c: New test.
8262 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
8264         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
8265         and 1 on failure.
8267         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
8268         Change last argument to unsigned int.
8270 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
8272         * scripts/check-local-headers.sh: Filter out sys/capability.h.
8274 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
8276         * config.h.in (HAVE_LIBCAP): Add.
8277         * nscd/selinux.h: Include sys/capability.h rather than non-existent
8278         sys/capabilities.h.
8279         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
8280         free_caps.  Cast away const from 4th cap_set_flag argument.
8282 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
8284         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
8285         GLIBC_2.6.
8286         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8287         Add sync_file_range.
8288         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
8290 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
8292         * sysdeps/powerpc/bits/atomic.h
8293         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
8294         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
8295         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8296         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
8297         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8298         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
8299         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
8300         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8301         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8302         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8303         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
8304         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8305         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8306         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8307         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8308         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
8309         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8310         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
8311         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8312         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
8314 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
8316         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8317         (__cache_line_size): Define the variable here.  Add
8318         attribute_hidden, remove weak_extern.
8319         (__libc_start_main): Set __cache_line_size
8320         unconditionally.
8321         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
8322         (__cache_line_size): Define the variable here.  Add
8323         attribute_hidden, remove weak_extern.
8324         (DL_PLATFORM_AUXV): Set __cache_line_size
8325         unconditionally.
8326         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
8327         weak_extern, add attribute_hidden.
8328         (__elf_machine_runtime_setup): Assume __cache_line_size is always
8329         defined in ld.so.
8330         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
8331         definition.
8332         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
8334 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
8336         [BZ #4276]
8337         * timezone/africa: Update from tzdata2007d.
8338         * timezone/asia: Likewise.
8339         * timezone/australasia: Likewise.
8340         * timezone/backward: Likewise.
8341         * timezone/europe: Likewise.
8342         * timezone/iso3166.tab: Likewise.
8343         * timezone/leapseconds: Likewise.
8344         * timezone/northamerica: Likewise.
8345         * timezone/southamerica: Likewise.
8346         * timezone/zone.tab: Likewise.
8348         * timezone/private.h: Update from tzcode2007d.
8349         * timezone/zdump.c: Likewise.
8350         * timezone/zic.c: Likewise.
8352 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
8354         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
8355         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
8356         variables.
8357         (nis_server_cache_search, nis_server_cache_add): New functions.
8358         (__nisfind_server): Use them.  Add dbp and flags argument, if
8359         call __nisbind_create.
8360         (__nisbind_create): Add server_used and current_ep arguments,
8361         only call __nis_findfastest if server_used is ~0.
8362         (__do_niscall2, __prepare_niscall): Adjust callers.
8363         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
8364         ckey_cache_euid, ckey_cache_lock): New variables.
8365         (get_ckey): New function.
8366         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
8367         __pmap_getnisport.  Save __pmap_getnisport result in
8368         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
8369         key.
8370         * nis/nis_lookup.c (nis_lookup): Likewise.
8371         * nis/nis_table.c (nis_list): Likewise.
8372         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
8373         prototypes.
8375         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
8376         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
8377         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
8378         _nss_nisplus_getservbyport_r): Likewise.
8379         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
8380         _nss_nisplus_getnetbyaddr_r): Likewise.
8381         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
8382         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
8383         _nss_nisplus_getntohost_r): Likewise.
8384         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
8385         _nss_nisplus_getrpcbynumber_r): Likewise.
8387 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
8389         * configure.in (libc_cv_gnu89_inline): Only do compile test.
8390         * configure: Rebuilt.
8392         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
8393         bit-fields.
8394         * soft-fp/extended.h (_FP_UNION_E): Likewise.
8396 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
8398         [BZ #2831]
8399         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
8400         bit-fields.
8402 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
8404         * nscd/gai.c: Include alloca.h.
8405         (__libc_use_alloca): Define.
8407 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
8409         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
8410         smaller scopes.
8411         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
8412         (DL_DST_REQUIRED): Adjust user.
8414         * include/dlfcn.h (struct link_map): New forward decl.
8416         * inet/getnameinfo.c: Include stddef.h.
8417         (getnameinfo): Use offsetof.
8419         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
8421         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
8423         * string/strerror_l.c: Include stdlib.h.
8425         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
8426         * config.make.in (gnu89-inline-CFLAGS): New variable.
8427         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
8428         -std=gnu99.
8429         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
8430         * argp/argp.h: Use it.
8431         * bits/mathinline.h: Likewise.
8432         * bits/sigset.h: Likewise.
8433         * bits/string.h: Likewise.
8434         * ctype/ctype.h: Likewise.
8435         * hurd/hurd.h: Likewise.
8436         * hurd/hurd/fd.h: Likewise.
8437         * hurd/hurd/port.h: Likewise.
8438         * hurd/hurd/signal.h: Likewise.
8439         * hurd/hurd/threadvar.h: Likewise.
8440         * hurd/hurd/userlink.h: Likewise.
8441         * io/sys/stat.h: Likewise.
8442         * libio/bits/stdio.h: Likewise.
8443         * libio/bits/stdio2.h: Likewise.
8444         * mach/lock-intern.h: Likewise.
8445         * mach/mach/mig_support.h: Likewise.
8446         * math/bits/cmathcalls.h: Likewise.
8447         * posix/bits/unistd.h: Likewise.
8448         * socket/bits/socket2.h: Likewise.
8449         * stdlib/bits/stdlib.h: Likewise.
8450         * stdlib/stdlib.h: Likewise.
8451         * string/argz.h: Likewise.
8452         * string/bits/string2.h: Likewise.
8453         * string/bits/string3.h: Likewise.
8454         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
8455         * sysdeps/generic/inttypes.h: Likewise.
8456         * sysdeps/generic/machine-lock.h: Likewise.
8457         * sysdeps/generic/machine-sp.h: Likewise.
8458         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8459         * sysdeps/i386/i486/bits/string.h: Likewise.
8460         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
8461         * sysdeps/mach/alpha/machine-lock.h: Likewise.
8462         * sysdeps/mach/alpha/machine-sp.h: Likewise.
8463         * sysdeps/mach/i386/machine-lock.h: Likewise.
8464         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8465         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
8466         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
8467         * sysdeps/s390/bits/string.h: Likewise.
8468         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
8469         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8470         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8471         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8472         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8473         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
8474         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
8475         * wcsmbs/bits/wchar2.h: Likewise.
8476         * wcsmbs/wchar.h: Likewise.
8477         * stdlib/gmp.h: Likewise.  Include <features.h> to get
8478         __extern_inline definition.
8480 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
8482         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
8483         NULL.
8485         [BZ #3919]
8486         * math/libm-test.inc (log_test): Test -Inf and NaN.
8487         (log10_test, log1p_test, log2_test): Test -Inf.
8488         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
8489         FE_INVALID when argument is qNaN.
8490         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
8491         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
8492         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
8493         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
8494         andb $1, %ah with testb $1, %ah, don't test for parity, instead
8495         testb $4, %ah and jump if non-zero.
8496         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
8497         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
8499         [BZ #4101]
8500         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
8501         ancestors with the same depths.
8502         Patch by Niels Moeller <nisse@lysator.liu.se>.
8503         (filter_doc): Don't crash if argp is NULL.
8504         * argp/Makefile (tests): Add tst-argp2.
8505         * argp/tst-argp2.c: New test.
8507         [BZ #4130]
8508         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
8509         open_not_cancel_2.
8510         (updwtmp_file): Likewise.
8512         [BZ #4181]
8513         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
8514         (inet6_opt_append): Don't check extlen is big enough if extbuf
8515         is NULL.
8516         (inet6_opt_finish): Likewise.
8517         * inet/Makefile (tests): Add test-inet6_opt.
8518         * inet/test-inet6_opt.c: New test.
8520         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
8521         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
8522         NLMSG_ERR.  Instead use a page sized buffer.
8523         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
8524         buffer.
8526 2007-03-14  Richard Henderson  <rth@redhat.com>
8528         * sysdeps/alpha/fpu/s_llround.c: New file.
8529         * sysdeps/alpha/fpu/s_llroundf.c: New file.
8530         * sysdeps/alpha/fpu/s_lround.c: New file.
8531         * sysdeps/alpha/fpu/s_lroundf.c: New file.
8532         * sysdeps/alpha/fpu/s_round.c: New file.
8533         * sysdeps/alpha/fpu/s_roundf.c: New file.
8534         * sysdeps/alpha/fpu/s_trunc.c: New file.
8535         * sysdeps/alpha/fpu/s_truncf.c: New file.
8537         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
8538         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
8539         * sysdeps/alpha/fpu/s_floor.c: Likewise.
8540         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
8541         * sysdeps/alpha/fpu/s_rint.c: Likewise.
8542         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8544         * sysdeps/alpha/fpu/s_fmax.S: New file.
8545         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
8546         * sysdeps/alpha/fpu/s_fmin.S: New file.
8547         * sysdeps/alpha/fpu/s_fminf.S: New file.
8548         * sysdeps/alpha/fpu/s_isnan.c: New file.
8549         * sysdeps/alpha/fpu/s_isnanf.c: New file.
8550         * sysdeps/alpha/fpu/s_llrint.c: New file.
8551         * sysdeps/alpha/fpu/s_llrintf.c: New file.
8552         * sysdeps/alpha/fpu/s_lrint.c: New file.
8553         * sysdeps/alpha/fpu/s_lrintf.c: New file.
8554         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
8555         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
8557         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
8558         (__fdimf, fdimf, __fdim, fdim): Remove.
8559         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
8560         (__isnanf, __isnan, __isnanl): New.
8562 2007-03-13  Richard Henderson  <rth@redhat.com>
8564         * sysdeps/ieee754/ldbl-128/Makefile: New file.
8566 2007-03-13  Richard Henderson  <rth@redhat.com>
8568         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
8569         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
8570         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
8571         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
8572         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
8573         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
8575 2007-03-13  Richard Henderson  <rth@redhat.com>
8577         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
8578         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
8579         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
8580         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
8581         Move to dl-auxv.h; initialize instead of extern weak.
8582         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
8583         weak symbol.
8584         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
8585         Extern instead of initialized.
8587 2007-03-13  Richard Henderson  <rth@redhat.com>
8589         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
8590         __sigsuspend_nocancel.
8592 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
8594         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
8595         172.16/12 address range.
8597 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
8599         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
8600         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
8601         message.
8603 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
8605         [BZ #4069]
8606         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
8607         earlier.
8608         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
8610         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
8611         for x qNaN and y either +-inf or non-integer value.
8612         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
8613         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
8614         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8616 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
8618         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
8619         from sysdep_headers.
8621 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
8623         * time/tzfile.c (find_transition): Instead of a linear search try to
8624         guess the transition index, use a linear search if the result is at
8625         most 10 transitions away from the guess or binary search otherwise.
8627 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
8629         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
8630         memory reallocation.
8632 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
8634         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
8635         and fix some typos.
8636         Optimize use of TOLOWER.
8638         [BZ #3325]
8639         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
8640         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8641         * sysdeps/i386/fpu/e_fmod.S: Likewise.
8643         [BZ #3458]
8644         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
8645         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
8647         [BZ #4076]
8648         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
8649         (open_dir_stream): Likewise.
8650         * io/Makefile (tests): Add bug-ftw5.
8651         * io/bug-ftw5.c: New file.
8653         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
8654         * nscd/servicescache.c (cache_addserv): Likewise.
8656         * nscd/grpcache.c (cache_addgr): In case a record changed on
8657         refresh, adjust key_copy.
8659         [BZ #4074]
8660         * nscd/pwdcache.c (cache_addpw): In case a record changed on
8661         refresh, adjust key_copy.
8663         [BZ #4070]
8664         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
8665         special cases.
8666         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
8668 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
8670         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
8671         optimization.
8673         * stdio-common/vfscanf.c: Small cleanups throughout.
8675 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
8677         [BZ #3325]
8678         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
8679         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8680         * sysdeps/i386/fpu/e_fmod.S: Likewise.
8681         Patch by Jared Casper <jaredcasper@gmail.com>.
8683         * sysdeps/unix/closedir.c: Outside libc don't use locking.
8684         * sysdeps/unix/opendir.c: Likewise.
8685         * sysdeps/unix/readdir.c: Likewise.
8687         [BZ #2211]
8688         * stdio-common/vfscanf.c: Handle localized digits etc for floating
8689         point numbers.
8690         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
8692         * stdio-common/vfscanf.c: Fix problems in width accounting.
8693         * stdio-common/tst-sscanf.c (double_tests): New tests.
8694         (main): Hook them up.
8696         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
8697         More simplifications of floating-point reader.
8699         * stdio-common/Makefile (tests): Add tst-swscanf.
8700         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
8701         testing.
8702         * stdio-common/tst-swscanf.c: New file.
8704 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
8706         [BZ #2633]
8707         * libio/stdio.h: Define struct _IO_FILE in global namespace.
8708         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
8709         Remove using for __jmp_buf_tag.
8710         * locale/locale.h (struct lconv): Also define in std namespace.
8711         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
8713         [BZ #3842]
8714         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
8715         using __libc_enable_secure.
8717         [BZ #3818]
8718         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
8720         [BZ #3745]
8721         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
8722         of names for ellipsises.
8724         [BZ #3348]
8725         * malloc/memusage.sh: Cleanups.
8726         * debug/xtrace.sh: Quoting and trap changes.
8728 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
8730         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
8732         * locale/iso-3166.def: Update entry for Serbia.
8733         * locale/iso-4217.def: Define RSD, remove CSD.
8735         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
8736         and 64-bit operations.
8738         [BZ #4040]
8739         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
8740         16-bit operations.
8742         * nscd/nscd.c (parse_opt): One more conversion to use send instead
8743         of writev.
8745 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
8747         [BZ #3991]
8748         * assert/assert.h (assert): Simplify.
8749         (assert_perror): Likewise.
8750         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
8752         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
8753         reqdata.
8755         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
8756         change: don't pass NULL in place of an integer.
8758 2007-02-02  Bruno Haible  <bruno@clisp.org>
8760         [BZ #3954]
8761         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
8762         Add mapping for U+327E.
8763         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
8764         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8765         mapping of 0xD9 0xE8.
8766         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
8767         mapping of U+327E.
8768         Reported by Jungshik Shin <jungshik@google.com>.
8770         [BZ #3955]
8771         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8772         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
8773         Reported by Jungshik Shin <jungshik@google.com>.
8775 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
8777         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
8778         byte variants.
8780         [BZ #4040]
8781         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
8782         byte variants.  Patch mostly be tom@tommay.net.
8784 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
8786         [BZ #3996]
8787         * posix/glob.c (attribute_hidden): Define if not defined.
8788         (glob): Unescape dirname, filename or username when needed and not
8789         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
8790         is NULL.  Handle unescaped [ in pattern without closing ].
8791         Don't pass GLOB_CHECK down to recursive glob for directories.
8792         (__glob_pattern_type): New function.
8793         (__glob_pattern_p): Implement using __glob_pattern_type.
8794         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8795         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8796         Remove unreachable code.
8797         * posix/globtest.sh: Add a couple of new tests.
8799 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
8801         * po/ru.po: Update from translation team.
8803 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
8805         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
8806         to the list of i486+ CPUs.
8807         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8809 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
8811         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
8812         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
8813         references.
8815 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
8817         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
8819         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
8820         * resolv/res_mkquery.c: Define __res_nopt.
8821         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
8822         try adding EDNS0 record.
8823         * resolv/res_send.c (send_dg): If request failed with FORMERR and
8824         EDNS0 record was send make sure we don't try it again.
8825         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
8826         * include/resolv.h: Declare __res_nopt.
8828 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
8830         [BZ #3944]
8831         * time/strptime_l.c (__strptime_internal): Set have_mon for
8832         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
8833         have been computed from tm_yday and tm_year.  Don't crash
8834         in day_of_the_week or day_of_the_year if not have_mon
8835         and tm_mon contains bogus value.
8836         * time/Makefile (tests): Add tst-strptime3.
8837         * time/tst-strptime3.c: New test.
8839 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
8841         [BZ #3957]
8842         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
8843         bit for RE_HAT_LISTS_NOT_NEWLINE.
8844         (build_charclass_op): Remove bogus comment.
8845         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
8846         * posix/bug-regex27.c: New test.
8847         * posix/bug-regex28.c: New test.
8849 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
8851         * po/sv.po: Update from translation team.
8853 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
8855         * nscd/nscd_helper.c (open_socket): Minor size optimization.
8857 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
8859         * include/locale.h (__uselocale): Add libc_hidden_proto.
8860         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
8862         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
8863         gettimeofday.
8865 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
8867         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
8868         returning.
8869         (PTR_DEMANGLE): Real definition now that it's not the same as
8870         PRT_MANGLE anymore.
8871         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8873         * string/strerror_l.c: New file.
8874         * string/Makefile (routines): Add strerror_l.
8875         * string/string.h: Declare strerror_l.
8876         * string/Versions: Export strerror_l for GLIBC_2.6.
8878 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
8880         * nscd/nscd_helper.c (open_socket): Now takes request type and key
8881         as parameter.  Construct request record.  Try sending request
8882         before the first poll use, it usually succeeds.  Adjust all
8883         callers.
8884         * nscd/nscd-client.h: Define MAXKEYLEN.
8885         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
8887 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
8889         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
8890         from return value.
8891         * nscd/nscd_helper.c: Include string.h.
8892         (__nscd_cache_search): Remove const qualifier from return value.
8893         On strict alignment architectures check hash entry and data head
8894         alignment.
8895         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
8896         mmapped data during GC cycle contains garbage.  If
8897         __nscd_drop_map_ref fails, decrement mapped->counter when returning
8898         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
8899         dropped to 0.
8900         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8901         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8902         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8903         * nscd/nscd_getai.c (__nscd_getai): Likewise.
8904         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8906 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
8908         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
8910 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
8912         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
8913         names not numbers in cfi_*.
8915 2007-01-26  Andreas Jaeger  <aj@suse.de>
8917         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
8918         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
8919         Correct values of PER_HPUX and PER_OSF4.
8921 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
8923         * elf/dl-minimal.c: Undefine _itoa first.
8924         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
8925         * malloc/mtrace.c: Revert last change.
8926         * posix/wordexp.c: Likewise.
8928 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
8930         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
8931         and __geode__ to the list of i486+ CPUs.
8932         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8934 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
8936         * stdio-common/_itoa.c: Include <limits.h>.
8937         * stdio-common/_itowa.c: Likewise.
8939 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
8941         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
8942         platforms.
8943         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
8944         64-bit platforms.
8945         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
8946         possible.
8947         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
8948         if possible.
8950         [BZ #3902]
8951         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
8952         * stdio-common/Makefile (tests): Add bug17.
8953         * stdio-common/bug17.c: New file.
8955 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
8957         * iconvdata/brf.c: New file.
8958         * iconvdata/testdata/BRF: New file.
8959         * iconvdata/testdata/BRF..UTF8: New file.
8960         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8961         * iconvdata/Makefile: Add rules to build BRF.
8962         * iconvdata/TESTS: Add BRF entry.
8963         * iconvdata/gconv-modules: Likewise.
8964         * iconvdata/tst-tables.sh: Likewise.
8966 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
8968         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
8969         type `long long int', not `long int'.
8970         (wcstoq): Likewise.
8972 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
8974         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
8975         of values on 64-bit platforms which are too large.
8977 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
8978             Joe Kerian  <jkerian@us.us.ibm.com>
8980         [BZ #2749]
8981         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
8982         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
8983         (__copysignl): Use signbit() for comparison.
8984         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
8985         SET_LDOUBLE_WORDS64.
8987         [BZ #2423, #2749]
8988         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
8989         (__ceill): Remove calls to fegetround(), fesetround().
8990         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
8991         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8992         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8994 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
8996         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
8998         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
9000 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
9002         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
9003         demangle pointer.
9004         * csu/libc-start.c: Likewise.
9006 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
9008         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
9009         really work anyway.
9011 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
9013         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
9014         users.
9015         (handle_request): Remove unnecessary tests.
9017         * nscd/cache.c (cache_add): Record the failure to add to the cache.
9019 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
9021         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
9022         workbits in semi-raw fraction.
9024         * math/test-misc.c: Add new tests.
9026 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
9028         * math/basic-test.c: Include test-skeleton.c.
9029         (TEST_TRUNC): Define.
9030         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
9031         (main): Rename to ...
9032         (do_test): ...this.  Run new tests.
9033         (TEST_FUNCTION): Define.
9035 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
9036             Joe Kerian  <jkerian@us.us.ibm.com>
9038         [BZ #2749]
9039         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
9040         handling for high words.
9041         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
9042         and overflow for infinity.
9044 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
9046         * nscd/connections.c (handle_request): Add a __builtin_expect.
9048         * nscd/connections.c (serv2db): Change type into structure which
9049         also says whether this is a request for data.  Renamed to
9050         servinfo.  All users changed.
9051         (handle_request): Much simpler test whether we should search the cache.
9053         * nscd/connections.c (handle_request): Fix thinko in selinux test
9054         invocation.
9056         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
9057         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
9058         it before getting dl_load_lock and then relock.
9059         (_dl_lookup_symbol_x): Pass flags to add_dependency.
9060         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
9061         case we unlocked the scope.
9062         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
9063         _dl_lookup_symbol_x in case we locked the scope.
9064         (_dl_profile_fixup): Likewise.
9065         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
9066         set DL_LOOKUP_SCOPE_LOCK.
9068 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
9070         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
9071         CFLAGS-getsrvbynpt_r.c.
9072         * nscd/getsrvbynm_r.c: New file.
9073         * nscd/getsrvbypt_r.c: New file.
9074         * nscd/nscd_getserv_r.c: New file.
9075         * nscd/servicescache.c: New file.
9076         * nscd/Makefile (routines): Add nscd_getserv_r.
9077         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
9078         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
9079         CFLAGS-getsrvbypt_r.c.
9080         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
9081         table.  Add entries for services database.
9082         * nscd/connections.c (serv2str): Mark as const.  Add entries for
9083         services database.
9084         (dbs): Add .reset_res and servdb initialization.
9085         (serv2db): Add entries for services database.
9086         (verify_persistent_db): Accept dbnr == servdb.
9087         (invalidate_cache): Rewrite database name recognition to use a table.
9088         Call res_init() if .reset_res is set for database.
9089         (handle_request): Add code to handle services database.
9090         * nscd/gai.c: Don't define __getservbyname_r.
9091         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
9092         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
9093         (serv_response_header): Define.
9094         (struct datahead): Add serv_response_header member.
9095         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
9096         using table.
9097         * nscd/nscd.conf: Add entries for services database.
9098         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
9099         Declare serv_iov_disabled.
9100         Declare addservbyname, readdservbyname, addservbyport, and
9101         readdservbyport.
9102         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
9103         (find_db): Fix error message.
9104         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
9105         __nscd_getservbyname_r, and __nscd_getservbyport_r.
9106         * nscd/selinux.c (perms): Add entries for services database.
9107         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
9108         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
9110         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
9111         * nscd/hstcache.c: Likewise.
9112         * nscd/pwdcache.c: Likewise.
9114         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
9115         computation of keylen.
9117         * include/string.h: Only redefine strndupa if this is really for
9118         libc code.
9120 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
9122         * nscd/nscd_gethst_r.c: Minor cleanups.
9124         * nscd/connections.c (handle_request): Check selinux permissions
9125         for all non-admin commands.
9127         * sysdeps/i386/i486/bits/atomic.h: Define
9128         atomic_compare_and_exchange_val_acq,
9129         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
9130         using __sync_* built-ins for gcc >= 4.1.
9131         * sysdeps/x86_64/bits/atomic.h: Likewise.
9133         [BZ #3840]
9134         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
9135         and .oS.d files.
9137 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
9139         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
9140         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
9141         (do_test): Check errno and exit(0) if ENOSYS.
9143 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
9145         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
9146         thousands separators.
9147         * stdlib/Makefile: Add rules to build and run tst-strtod4.
9148         * stdlib/tst-strtod4.c: New test.
9150         [BZ #3855]
9151         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
9152         hexadecimal digit should accept just the initial 0.
9153         * stdlib/tst-strtod2.c (tests): New variable.
9154         (do_test): Run several tests rather than just one.
9156 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
9158         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
9159         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
9161 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
9163         * io/fts.c: Make sure fts_cur is always valid after return from
9164         fts_read.
9165         Patch by Miloslav Trmac <mitr@redhat.com>.
9167 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
9169         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
9170         (R_MIPS_NUM): Bump by 1.
9172 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
9174         * posix/execvp.c: Include alloca.h.
9175         (allocate_scripts_argv): Renamed to...
9176         (scripts_argv): ... this.  Don't allocate buffer here nor count
9177         arguments.
9178         (execvp): Use alloca if possible.
9179         * posix/Makefile: Add rules to build and run tst-vfork3 test.
9180         * posix/tst-vfork3.c: New test.
9182 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
9184         * string/Makefile (tst-strxfrm2-ENV): Define.
9185         * stdlib/Makefile (tst-strtod3-ENV): Define.
9187 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
9189         * posix/getconf.c: Update copyright year.
9190         * nss/getent.c: Likewise.
9191         * iconv/iconvconfig.c: Likewise.
9192         * iconv/iconv_prog.c: Likewise.
9193         * elf/ldconfig.c: Likewise.
9194         * catgets/gencat.c: Likewise.
9195         * csu/version.c: Likewise.
9196         * elf/ldd.bash.in: Likewise.
9197         * elf/sprof.c (print_version): Likewise.
9198         * locale/programs/locale.c: Likewise.
9199         * locale/programs/localedef.c: Likewise.
9200         * nscd/nscd.c (print_version): Likewise.
9201         * debug/xtrace.sh: Likewise.
9202         * malloc/memusage.sh: Likewise.
9203         * malloc/mtrace.pl: Likewise.
9204         * debug/catchsegv.sh: Likewise.
9206 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
9208         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
9209         attempts.
9211 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
9213         * posix/wordexp.c: Remove some unnecessary tests.
9215 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
9217         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
9218         blacklist the group till after we look it up.
9220 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
9222         * include/atomic.h (atomic_forced_read): New macro.
9224 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
9226         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
9228 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
9230         * nss/getXXbyYY_r.c: Include atomic.h.
9231         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
9232         add atomic_write_barrier () in between.
9234         * stdlib/Makefile (tests): Add tst-makecontext.
9235         * stdlib/tst-makecontext.c: New test.
9237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
9238         (__makecontext): Don't realign uc_mcontext.uc_regs.
9240 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
9242         * elf/dl-support.c: Include dl-procinfo.h.
9243         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
9244         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
9245         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
9246         Define.
9247         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
9248         hardcoded constants.
9249         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
9250         PPC_PLATFORM_* macros for array designators.
9252 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
9254         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
9255         names to the beginning.
9256         (_dl_powerpc_platforms): Add "power6x".
9257         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9258         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
9259         (_DL_PLATFORMS_COUNT): Increase.
9260         (_dl_string_platform): Handle power6x case.
9261         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
9262         PPC_FEATURE_POWER6_EXT): Define.
9263         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
9265 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
9267         [BZ #3747]
9268         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
9269         [-2^31 .. 2^31) range.
9270         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
9271         targets.
9272         * stdlib/tst-rand48-2.c: New test.
9273         * stdlib/Makefile (tests): Add tst-rand48-2.
9275 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
9277         * misc/tst-pselect.c (do_test): Fix sigblock argument.
9279 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
9281         * misc/tst-pselect.c (do_test): Make sure the helper process is
9282         terminating when the test is aborted.
9284 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
9286         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
9287         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
9288         Handle relatime mount option.
9290         [BZ #2337]
9291         * libio/Makefile (tests): Add tst-setvbuf1.
9292         * libio/tst-setvbuf1.c: New file.
9294 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
9296         [BZ #2337]
9297         * libio/genops.c (__uflow): Fix a typo.
9298         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
9299         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
9300         the narrow buffer size.
9302 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
9304         [BZ #2337]
9305         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
9306         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
9307         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
9308         in _flags.
9309         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
9310         _IO_wstr_finish): Likewise.
9311         * libio/wmemstream.c (open_wmemstream): Likewise.
9312         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
9313         even for wide streams.
9315 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
9317         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
9318         kernel-features.h.
9320 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
9322         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
9323         separators also if no non-zero digits found.
9324         * stdlib/Makefile (tests): Add tst-strtod3.
9326 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
9328         [BZ #3632]
9329         * include/features.h: Fix comment about default value for
9330         _POSIX_C_SOURCE.
9332         [BZ #3664]
9333         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
9334         empty parsed strings.
9335         * stdlib/Makefile (tests): Add tst-strtod2.
9336         * stdlib/tst-strtod2.c: New file.
9338         [BZ #3673]
9339         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
9340         computation.
9341         * stdlib/Makefile (tests): Add tst-atof2.
9342         * stdlib/tst-atof2.c: New file.
9344         [BZ #3674]
9345         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
9346         correctly if removing trailing zero of hex-float.
9347         * stdlib/Makefile (tests): Add tst-atof1.
9348         * stdlib/tst-atof1.c: New file.
9350 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
9352         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
9353         Start searching for next comma at p rather than rest.
9354         * misc/Makefile (tests): Add tst-mntent2.
9355         * misc/tst-mntent2.c: New test.
9357         * misc/getusershell.c (initshells): Check for integer overflows.
9358         Make strings buffer one bigger as fgets always succeeds when second
9359         argument is 1.  Don't use calloc for shells array.  Disallow
9360         / as shell.
9362 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
9364         * malloc/memusage.c: Handle realloc with new size of zero and
9365         non-NULL pointer correctly.
9366         (me): Really write first record twice.
9367         (struct entry): Make format bi-arch safe.
9368         (dest): Write out more realloc statistics.
9369         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
9371 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
9373         * nis/nis_subr.c (nis_getnames): Revert last change.
9375 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
9377         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
9378         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
9379         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
9380         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
9381         ENOTTY.
9382         * io/Makefile: Add rules to build and run tst-ttyname_r test.
9383         * io/tst-ttyname_r.c: New test.
9385 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9387         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
9389 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
9391         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
9392         jump table entries.
9394 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
9396         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
9397         `clone' function to ensure proper unwinding stop of gdb.
9398         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
9400 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
9402         * nscd/nscd.init: Remove obsolete and commented-out -S option
9403         handling.
9405 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
9407         [BZ #3514]
9408         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
9410         [BZ #3515]
9411         * manual/string.texi (strtok): Remove duplicate paragraph.
9413 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9415         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
9416         libgcc not supporting `rflags' unwinding (register # >= 17).
9418 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
9420         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
9421         succeeded.
9423 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
9424             Jakub Jelinek  <jakub@redhat.com>
9425             Jan Kratochvil  <jan.kratochvil@redhat.com>
9427         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
9428         unwind information.
9429         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
9430         'restore_rt' even in the 'signal' directory.
9431         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
9433 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
9435         [BZ #3559]
9436         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
9437         malloc crashed.  Don't allocate memory unnecessarily in each
9438         loop.
9440 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
9442         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
9444 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
9446         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
9448 2006-11-18  Bruno Haible  <bruno@clisp.org>
9450         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
9451         __sysconf only after having tried to call getgroups32.
9453 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
9455         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
9456         addresses for IPv4 queries if they can be mapped.
9458 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
9460         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
9461         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
9462         (signmask): Add .size directive.
9463         (othermask): Add .type directive.
9465 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
9467         * po/nl.po: Update from translation team.
9469         * timezone/zdump.c: Redo fix for BZ #3137.
9471 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
9473         * nss/nss_files/files-alias.c (get_next_alias): Set line back
9474         to first_unused after parsing :include: file.
9476 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
9478         * timezone/africa: Update from tzdata2006o.
9479         * timezone/antarctica: Likewise.
9480         * timezone/asia: Likewise.
9481         * timezone/australasia: Likewise.
9482         * timezone/backward: Likewise.
9483         * timezone/europe: Likewise.
9484         * timezone/iso3166.tab: Likewise.
9485         * timezone/northamerica: Likewise.
9486         * timezone/southamerica: Likewise.
9487         * timezone/zone.tab: Likewise.
9489         * time/tzfile.c (__tzfile_read): Extend to handle new file format
9490         on machines with 64-bit time_t.
9492         * timezone/checktab.awk: Update from tzcode2006o.
9493         * timezone/ialloc.c: Likewise.
9494         * timezone/private.h: Likewise.
9495         * timezone/scheck.c: Likewise.
9496         * timezone/tzfile.h: Likewise.
9497         * timezone/tzselect.ksh: Likewise.
9498         * timezone/zdump.c: Likewise.
9499         * timezone/zic.c: Likewise.
9501         [BZ #3483]
9502         * elf/ldconfig.c (main): Call setlocale and textdomain.
9503         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9505         [BZ #3480]
9506         * manual/argp.texi: Fix typos.
9507         * manual/charset.texi: Likewise.
9508         * manual/errno.texi: Likewise.
9509         * manual/filesys.texi: Likewise.
9510         * manual/lang.texi: Likewise.
9511         * manual/maint.texi: Likewise.
9512         * manual/memory.texi: Likewise.
9513         * manual/message.texi: Likewise.
9514         * manual/resource.texi: Likewise.
9515         * manual/search.texi: Likewise.
9516         * manual/signal.texi: Likewise.
9517         * manual/startup.texi: Likewise.
9518         * manual/stdio.texi: Likewise.
9519         * manual/sysinfo.texi: Likewise.
9520         * manual/syslog.texi: Likewise.
9521         * manual/time.texi: Likewise.
9522         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9524         [BZ #3465]
9525         * sunrpc/clnt_raw.c: Minimal message improvements.
9526         * sunrpc/pm_getmaps.c: Likewise.
9527         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9528         * nis/nis_print_group_entry.c: Likewise.
9529         * locale/programs/repertoire.c: Likewise.
9530         * locale/programs/charmap.c: Likewise.
9531         * malloc/memusage.sh: Likewise.
9532         * elf/dl-deps.c: Likewise.
9533         * locale/programs/ld-collate.c: Likewise.
9534         * libio/vswprintf.c: Likewise.
9535         * malloc/memusagestat.c: Likewise.
9536         * sunrpc/auth_unix.c: Likewise.
9537         * sunrpc/rpc_main.c: Likewise.
9538         * nscd/cache.c: Likewise.
9539         * locale/programs/repertoire.c: Unify output messages.
9540         * locale/programs/charmap.c: Likewise.
9541         * locale/programs/ld-ctype.c: Likewise.
9542         * locale/programs/ld-monetary.c: Likewise.
9543         * locale/programs/ld-numeric.c: Likewise.
9544         * locale/programs/ld-time.c: Likewise.
9545         * elf/ldconfig.c: Likewise.
9546         * nscd/selinux.c: Likewise.
9547         * elf/cache.c: Likewise.
9548         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9550         [BZ #3451]
9551         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
9552         change atomic.
9553         (ceil): Likewise.
9555 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
9557         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
9558         if N is one bigger than return value.
9559         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
9560         and l1 last arguments, if buf is defined, verify the return value
9561         equals to strlen (buf) and verify no byte beyond passed length
9562         is modified.
9564 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
9566         * po/sv.po: Update from translation team.
9568 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
9570         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
9571         noinline attribute.
9573 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
9575         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
9576         noinline attribute.
9578         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
9579         Use __new_sys_siglist instead of _sys_siglist_internal as
9580         second macro argument.
9581         (_old_sys_siglist): Use declare_symbol_alias macro instead of
9582         strong_alias.
9584 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
9586         [BZ #3493]
9587         * posix/unistd.h (sysconf): Remove const attribute.
9589         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
9590         temporary or deprecated addresses.
9591         Patch by Sridhar Samudrala <sri@us.ibm.com>.
9593         * string/Makefile (tests): Add tst-strxfrm2.
9594         * string/tst-strxfrm2.c: New file.
9596 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
9598         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
9599         rather than r->r_brk.
9601 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
9603         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
9604         optimization even if needed > n.
9606         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
9607         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
9608         return false, otherwise return true.
9609         (cache_rpath): Return decompose_rpath return value.
9611 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
9613         * include/libc-symbols.h (declare_symbol): Rename to...
9614         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
9615         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
9616         .size directive.
9617         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
9618         changes.
9619         * sysdeps/gnu/siglist.c: Likewise.
9621 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
9623         * sysdeps/powerpc/fpu/bits/mathinline.h
9624         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
9625         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
9627 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
9629         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9630         Update handling of cache descriptor 0x49 for new models.
9631         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
9632         Likewise.
9634 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
9636         * malloc/memusage.c (dest): Reset not_me back to false after
9637         printing statistics.
9639 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
9641         * configure.in: Work around ld --help change and avoid -z relro
9642         test completely if the architecture doesn't care about security.
9644 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
9646         * po/sv.po: Update from translation team.
9648 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
9650         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
9651         generate compatibility version.
9653 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
9655         * configure.in: Relax -z relro requirement a bit.
9657         * po/sv.po: Update from translation team.
9659 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
9661         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
9662         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
9663         * elf/dl-close.c (_dl_close_worker): Likewise.
9664         * elf/dl-open.c (_dl_open_worker): Likewise.
9665         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
9667 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
9669         * configure.in: Require assembler support for visibility, compiler
9670         support for visibility and aliases, linker support for various -z
9671         options.
9672         * Makeconfig: Remove conditional code which now is unnecessary.
9673         * config.h.in: Likewise.
9674         * config.make.in: Likewise.
9675         * dlfcn/Makefile: Likewise.
9676         * elf/Makefile: Likewise.
9677         * elf/dl-load.c: Likewise.
9678         * elf/rtld.c: Likewise.
9679         * include/libc-symbols.h: Likewise.
9680         * include/stdio.h: Likewise.
9681         * io/Makefile: Likewise.
9682         * io/fstat.c: Likewise.
9683         * io/fstat64.c: Likewise.
9684         * io/fstatat.c: Likewise.
9685         * io/fstatat64.c: Likewise.
9686         * io/lstat.c: Likewise.
9687         * io/lstat64.c: Likewise.
9688         * io/mknod.c: Likewise.
9689         * io/mknodat.c: Likewise.
9690         * io/stat.c: Likewise.
9691         * io/stat64.c: Likewise.
9692         * libio/stdio.c: Likewise.
9693         * nscd/Makefile: Likewise.
9694         * stdlib/Makefile: Likewise.
9695         * stdlib/atexit.c: Likewise.
9696         * sysdeps/generic/ldsodefs.h: Likewise.
9697         * sysdeps/i386/dl-machine.h: Likewise.
9698         * sysdeps/i386/sysdep.h: Likewise.
9699         * sysdeps/i386/i686/memcmp.S: Likewise.
9700         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9701         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9702         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
9704         * Makerules: USE_TLS support is now default.
9705         * tls.make.c: Likewise.
9706         * csu/Versions: Likewise.
9707         * csu/libc-start.c: Likewise.
9708         * csu/libc-tls.c: Likewise.
9709         * csu/version.c: Likewise.
9710         * dlfcn/dlinfo.c: Likewise.
9711         * elf/dl-addr.c: Likewise.
9712         * elf/dl-cache.c: Likewise.
9713         * elf/dl-close.c: Likewise.
9714         * elf/dl-iteratephdr.c: Likewise.
9715         * elf/dl-load.c: Likewise.
9716         * elf/dl-lookup.c: Likewise.
9717         * elf/dl-object.c: Likewise.
9718         * elf/dl-open.c: Likewise.
9719         * elf/dl-reloc.c: Likewise.
9720         * elf/dl-support.c: Likewise.
9721         * elf/dl-sym.c: Likewise.
9722         * elf/dl-sysdep.c: Likewise.
9723         * elf/dl-tls.c: Likewise.
9724         * elf/ldconfig.c: Likewise.
9725         * elf/rtld.c: Likewise.
9726         * elf/tst-tls-dlinfo.c: Likewise.
9727         * elf/tst-tls1.c: Likewise.
9728         * elf/tst-tls10.h: Likewise.
9729         * elf/tst-tls14.c: Likewise.
9730         * elf/tst-tls2.c: Likewise.
9731         * elf/tst-tls3.c: Likewise.
9732         * elf/tst-tls4.c: Likewise.
9733         * elf/tst-tls5.c: Likewise.
9734         * elf/tst-tls6.c: Likewise.
9735         * elf/tst-tls7.c: Likewise.
9736         * elf/tst-tls8.c: Likewise.
9737         * elf/tst-tls9.c: Likewise.
9738         * elf/tst-tlsmod1.c: Likewise.
9739         * elf/tst-tlsmod13.c: Likewise.
9740         * elf/tst-tlsmod13a.c: Likewise.
9741         * elf/tst-tlsmod14a.c: Likewise.
9742         * elf/tst-tlsmod2.c: Likewise.
9743         * elf/tst-tlsmod3.c: Likewise.
9744         * elf/tst-tlsmod4.c: Likewise.
9745         * elf/tst-tlsmod5.c: Likewise.
9746         * elf/tst-tlsmod6.c: Likewise.
9747         * include/errno.h: Likewise.
9748         * include/link.h: Likewise.
9749         * include/tls.h: Likewise.
9750         * locale/global-locale.c: Likewise.
9751         * locale/localeinfo.h: Likewise.
9752         * malloc/arena.c: Likewise.
9753         * malloc/hooks.c: Likewise.
9754         * malloc/malloc.c: Likewise.
9755         * resolv/Versions: Likewise.
9756         * sysdeps/alpha/dl-machine.h: Likewise.
9757         * sysdeps/alpha/libc-tls.c: Likewise.
9758         * sysdeps/generic/ldsodefs.h: Likewise.
9759         * sysdeps/generic/tls.h: Likewise.
9760         * sysdeps/i386/dl-machine.h: Likewise.
9761         * sysdeps/ia64/dl-machine.h: Likewise.
9762         * sysdeps/ia64/libc-tls.c: Likewise.
9763         * sysdeps/mach/hurd/fork.c: Likewise.
9764         * sysdeps/mach/hurd/i386/tls.h: Likewise.
9765         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
9766         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
9767         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
9768         * sysdeps/s390/libc-tls.c: Likewise.
9769         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9770         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9771         * sysdeps/sh/dl-machine.h: Likewise.
9772         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9773         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9774         * sysdeps/x86_64/dl-machine.h: Likewise.
9776         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
9777         split out locking and parameter checking.
9778         (_dl_close): Call _dl_close_worker after locking and checking.
9779         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
9780         _dl_close.
9781         * elf/Makefile: Add rules to build and run tst-thrlock.
9782         * elf/tst-thrlock.c:  New file.
9784         [BZ #3426]
9785         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
9786         reality.
9788         [BZ #3429]
9789         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
9790         we are sure we do not need it anymore for _dl_close.  Also move
9791         the asserts inside the lock region.
9792         Patch mostly by Suzuki <suzuki@in.ibm.com>.
9794 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
9796         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
9797         argument.
9798         (_dl_lookup_symbol_x): Adjust caller.
9800         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
9801         _ns_global_scope.
9802         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
9804         * elf/dl-libc.c: Revert l_scope name changes.
9805         * elf/dl-load.c: Likewise.
9806         * elf/dl-object.c: Likewise.
9807         * elf/rtld.c: Likewise.
9808         * elf/dl-close.c (_dl_close): Likewise.
9809         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
9810         always use __rtld_mrlock_{change,done}.  Always free old scope list
9811         here if not l_scope_mem.
9812         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
9813         change.  Never free scope list here.  Just __rtld_mrlock_lock before
9814         the lookup and __rtld_mrlock_unlock it after the lookup.
9815         * elf/dl-sym.c: Likewise.
9816         * include/link.h (struct r_scoperec): Remove.
9817         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
9818         with l_scope_mem and l_scoperec_lock with l_scope_lock.
9820 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
9822         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
9824 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
9826         * configure.in: Disable building profile libraries by default.
9828 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9830         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
9831         as signed longs, check for x_base + pos overflow.
9832         * sunrpc/Makefile (tests): Add tst-xdrmem2.
9833         * sunrpc/tst-xdrmem2.c: New test.
9835 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
9837         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
9838         _dl_lookup_symbol_x code.
9840 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9842         * elf/dl-runtime.c: Include sysdep-cancel.h.
9843         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
9844         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
9845         instead of catomic_* macros.
9846         * elf/dl-sym.c: Include sysdep-cancel.h.
9847         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
9848         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
9849         * elf/dl-close.c: Include sysdep-cancel.h.
9850         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
9851         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
9852         * elf/dl-open.c: Include sysdep-cancel.h.
9853         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
9854         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
9856 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9858         [BZ #3313]
9859         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
9860         fastbin rather than end of fastbin array.
9862 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
9864         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
9865         body macro.
9866         * sysdeps/x86_64/bits/atomic.h
9867         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
9868         (catomic_decrement): Use correct body macro.
9870 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9872         * include/atomic.h: Add a unique prefix to all local variables
9873         in macros.
9874         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
9876 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
9878         [BZ #3369]
9879         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
9880         and 7.
9882 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
9884         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
9886 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
9888         [BZ #3313]
9889         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
9890         determine highest fast bin to consolidate, always look into all of
9891         them.
9892         (do_check_malloc_state): Only require for empty bins for large
9893         sizes in main arena.
9895         * libio/stdio.h: Add more __wur attributes.
9897         * elf/dl-minimal.c (realloc): Optimize last patch.
9899 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
9901         [BZ #3352]
9902         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
9903         and use memcpy() if it does.
9905 2006-11-12  Andreas Jaeger  <aj@suse.de>
9907         [BZ #2510]
9908         * manual/search.texi (Hash Search Function): Clarify.
9909         (Array Search Function): Clarify.
9911 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
9913         [BZ #2830]
9914         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
9915         shifting.
9916         * math/atest-exp2.c (read_mpn_hex): Likewise.
9917         * math/atest-sincos.c (main): Likewise.
9919 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
9921         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
9922         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
9923         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
9924         version GLIBC_2.6.
9925         * Versions.def: Add GLIBC_2.6 for libc.
9927         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
9929         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
9931 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
9933         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
9935         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
9937         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
9938         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
9940 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
9942         * include/atomic.c: Define catomic_* operations.
9943         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
9944         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
9945         * malloc/memusage.c: Likewise.
9946         * gmon/mcount.c: Likewise.
9947         * elf/dl-close.c: Likewise.
9948         * elf/dl-open.c: Likewise.
9949         * elf/dl-profile.c: Likewise.
9950         * elf/dl-sym.c: Likewise.
9951         * elf/dl-runtime.c: Likewise.
9952         * elf/dl-fptr.c: Likewise.
9953         * resolv/res_libc.c: Likewise.
9955 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
9957         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
9958         components which lack them.
9960         * nis/nis_subr.c (nis_getnames): Make sure that we always return
9961         at least one entry consisting of the parameter concatenated with
9962         the domain.
9964 2006-10-10  Roland McGrath  <roland@frob.com>
9966         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
9967         * sysdeps/mach/hurd/futimes.c: Likewise.
9968         * sysdeps/mach/hurd/lutimes.c: Likewise.
9970 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
9971             Jakub Jelinek  <jakub@redhat.com>
9973         Implement reference counting of scope records.
9974         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
9975         from the list in objects which remain.  Always allocate new scope
9976         record.
9977         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
9978         don't resize, allocate a new one.
9979         * elf/dl-runtime.c: Update reference counters before using a scope
9980         array.
9981         * elf/dl-sym.c: Likewise.
9982         * elf/dl-libc.c: Adjust for l_scope name change.
9983         * elf/dl-load.c: Likewise.
9984         * elf/dl-object.c: Likewise.
9985         * elf/rtld.c: Likewise.
9986         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
9987         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
9988         Add l_scoperec_lock.
9989         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
9990         * sysdeps/generic/rtld-lowlevel.h: New file.
9992         * include/atomic.h: Rename atomic_and to atomic_and_val and
9993         atomic_or to atomic_or_val.  Define new macros atomic_and and
9994         atomic_or which do not return values.
9995         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
9996         Various cleanups.
9997         * sysdeps/i386/i486/bits/atomic.h: Likewise.
9999         * po/sv.po: Update from translation team.
10001 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
10003         * Versions.def: Add GLIBC_2.6 to libpthread.
10005         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
10006         (versioned_symbol): Likewise.
10007         (compat_symbol): Likewise.
10009         * po/tr.po: Update from translation team.
10011 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10013         * nis/Banner: Removed.  It's been integral part forever and the
10014         author info is incomplete anyway.
10015         * libio/Banner: Likewise.
10017         * nis/nis_table.c (nis_list): If __follow_path fails in the new
10018         code, make sure the nis_freeresult call doesn't crash and that the
10019         result is reported correctly.
10021 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
10023         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
10024         when callback is NULL.
10026         * nis/Versions (libnss_nisplus): Add
10027         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
10028         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
10029         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
10030         _nss_create_tablename): Rename to...
10031         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
10032         ... these.  No longer static.
10033         (internal_setgrent): Adjust users.
10034         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
10035         Don't use locking around _nss_grp_create_tablename call.
10036         * nis/nss_nisplus/nisplus-initgroups.c: New file.
10038 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10040         * version.h (VERSION): Bump to 2.5.90 for new development tree.
10042 2006-10-06  Andreas Jaeger  <aj@suse.de>
10044         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
10046 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10048         * po/pl.po: Update from translation team.
10050         * nscd/nscd.c (main): Fix typo in message.
10051         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
10053 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
10055         [BZ #3291]
10056         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
10057         errno.h, signal.h, unistd.h and sysdep-cancel.h.
10058         (__sigprocmask): Define.
10060 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
10062         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
10063         used.
10065 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
10067         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
10068         in oldtotal and newtotal calculation.
10069         * nscd/nscd-client.h (struct mapped_database): Add datasize
10070         field.
10071         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
10072         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
10073         increased.
10074         (__nscd_cache_search): Add checks to make sure we never reference
10075         data beyond the current mapping.
10077 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
10079         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
10080         variables const to avoid compiler warnings.
10082         * io/fts.c (fts_close): Remove redundant checks.
10083         (fts_build): Likewise.
10084         (fts_palloc): Likewise.
10086         * manual/message.texi (Advanced gettext functions,
10087         Using gettextized software): Fix typos.
10089 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
10091         * posix/glob.c (glob_in_dir): Add some comments and asserts to
10092         explain why there are no leaks.
10094 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
10096         * libio/wmemstream.c: Include <wchar.h>.
10097         * libio/bug-wmemstream1.c: Likewise.
10098         * libio/tst-wmemstream1.c: Likewise.
10099         * libio/tst-wmemstream2.c: Likewise.
10101         * version.h (RELEASE): Bump to 2.5.
10102         * README: Regenerated.
10104         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
10106         [BZ #3273]
10107         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
10108         found no group members.
10109         Patch by Petr Baudis.
10111 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
10113         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
10114         assert bootstrap_map.l_tls_modid is zero.
10115         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
10116         if USE___THREAD.
10118 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
10120         * libio/stdio.h: Move open_wmemstream prototype to ...
10121         * wcsmbs/wchar.h: ... here.
10123 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
10125         [BZ #3252]
10126         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
10127         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
10128         __{,l}chown to handle the rest.
10129         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
10130         fchownat syscall and __ASSUME_32BITUIDS case inline, call
10131         __{,l}chown to handle the rest.
10132         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
10133         i386/fchownat.c.
10134         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
10135         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
10137         [BZ #3253]
10138         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10139         time, rather allocate increasingly bigger arrays of pointers, if
10140         possible with alloca, if too large with malloc.
10142 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
10144         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
10146         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
10148 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
10150         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
10151         home addresses.
10152         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
10153         IFA_F_HOMEADDRESS flag for interfaces.
10154         * include/ifaddrs.h (struct in6addrinfo): Define
10155         in6ai_homeaddress.
10157 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
10159         [BZ #3225]
10160         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
10161         PTR_DEMANGLE3): Define.
10162         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
10163         PTR_DEMANGLE3): Likewise.
10164         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
10165         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
10166         Likewise.
10167         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
10169 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
10171         * po/libc.pot: Regenerated.
10172         * po/be.po: Updated.
10173         * po/ca.po: Likewise.
10174         * po/cs.po: Likewise.
10175         * po/da.po: Likewise.
10176         * po/de.po: Likewise.
10177         * po/el.po: Likewise.
10178         * po/en_GB.po: Likewise.
10179         * po/es.po: Likewise.
10180         * po/fi.po: Likewise.
10181         * po/fr.po: Likewise.
10182         * po/gl.po: Likewise.
10183         * po/hr.po: Likewise.
10184         * po/hu.po: Likewise.
10185         * po/ja.po: Likewise.
10186         * po/ko.po: Likewise.
10187         * po/nb.po: Likewise.
10188         * po/nl.po: Likewise.
10189         * po/pl.po: Likewise.
10190         * po/pt_BR.po: Likewise.
10191         * po/ru.po: Likewise.
10192         * po/rw.po: Likewise.
10193         * po/sk.po: Likewise.
10194         * po/sv.po: Likewise.
10195         * po/tr.po: Likewise.
10196         * po/zh_CN.po: Likewise.
10197         * po/zh_TW.po: Likewise.
10199         [BZ #3137]
10200         * iconv/iconv_prog.c (main): Fix spelling in error message.
10201         * iconv/iconvconfig.c (main): Likewise.
10202         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
10203         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
10204         * locale/programs/localedef.c (main): Likewise.
10205         * locale/programs/repertoire.c (repertoire_read): Likewise.
10206         * timezone/zdump.c (main): Likewise.
10207         * nscd/connections.c (handle_request): Fix spelling in log message.
10208         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
10210 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
10212         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
10213         interfaces.
10215 2006-09-20  Andreas Jaeger  <aj@suse.de>
10217         * math/libm-test.inc (lrint_test_upward): Fix typo.
10219 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
10221         [BZ #2592]
10222         * math/libm-test.inc (lrint_test_tonearest): New function.
10223         (lrint_test_towardzero): New function.
10224         (lrint_test_downward): New function.
10225         (lrint_test_upward): New function.
10226         (main): Run these new tests.
10227         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
10228         of values near to 0.
10229         (two52): Use double not long double.
10230         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10231         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10232         (two23): Use float not double.
10233         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10234         (two23): Use float not double.
10235         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10236         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10237         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10238         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10240 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10242         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
10243         Cast sp to unsigned long to avoid compiler warning.
10244         Use __makecontext_ret function instead of a trampoline on the stack.
10245         (__makecontext_ret): New function.
10246         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
10248 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
10250         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
10251         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
10252         bits.
10254 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
10256         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
10257         sure no reference to the unloaded map's search list remains in the
10258         dependency's scope.
10260 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
10262         * elf/Makefile: Add rules to build and run unload7 test.
10263         * elf/unload7.c: New test.
10264         * elf/unload7mod1.c: New file.
10265         * elf/unload7mod2.c: New file.
10267 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
10269         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
10270         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
10271         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10272         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
10273         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10274         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
10275         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10276         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
10277         PTRACE_GETEVENTMSG): Likewise.
10278         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
10279         values.
10281 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
10283         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
10284         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10285         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
10286         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
10288 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
10290         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
10291         write '\0' to the fd.
10292         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
10293         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
10294         Change regs to unsigned long pointer from unsigned int, fix fscr
10295         offset.
10297 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
10299         * io/Makefile (CFLAGS-fstatat.c): Set.
10300         (CFLAGS-fstatat64.c): Likewise.
10301         (CFLAGS-mknodat.c): Likewise.
10303         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
10304         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10305         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
10306         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
10308 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
10309             Steven Munroe  <sjmunroe@us.ibm.com>
10311         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
10312         names to the beginning.  Rename "cell" to "cellbe".
10313         (_dl_powerpc_platforms): New.
10314         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10315         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
10316         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
10317         (_DL_HWCAP_PLATFORM): Define to new mask.
10318         (_dl_platform_string, _dl_string_platform): New functions.
10319         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
10320         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
10322 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
10324         [BZ #2526]
10325         * README.libm: Fix a thinko in sqrt algorithm description.
10327         [BZ #3143]
10328         * manual/string.texi (argz_delete): Fix prototype.
10329         Patch by <alpt@freaknet.org>.
10331 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
10333         [BZ #3138]
10334         * io/test-lfs.c (do_prepare): Give name_len type size_t.
10335         * io/tst-fcntl.c (do_prepare): Likewise.
10336         * posix/tst-exec.c (do_prepare): Likewise.
10337         * posix/tst-preadwrite.c (do_prepare): Likewise.
10338         * posix/tst-spawn.c (do_prepare): Likewise.
10339         * posix/tst-truncate.c (do_prepare): Likewise.
10340         * rt/tst-aio.c (do_prepare): Likewise.
10341         * rt/tst-aio64.c (do_prepare): Likewise.
10342         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
10343         size_t.
10345 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
10347         [BZ #2821]
10348         * time/mktime.c (guess_time_tm): Fix overflow detection.
10349         * time/Makefile (tests): Add bug-mktime1.
10350         * time/bug-mktime1.c: New file.
10352         [BZ #3189, #3188]
10353         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
10354         (mremap): Likewise.
10356 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
10358         [BZ #1006]
10359         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
10360         Ensure relocation doesn't clobber any bits outside of the
10361         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
10362         R_SPARC_HI22 and R_SPARC_H44.
10364         [BZ #2775]
10365         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
10366         (long) (MINSIZE + nb - old_size) is positive.
10368         * malloc/arena.c (grow_heap): When growing bail even if new_size
10369         is negative.
10371         [BZ #3155]
10372         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
10373         stack below r1.
10375 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
10377         * posix/regex_internal.c (re_string_reconstruct): Handle
10378         offset < pstr->valid_raw_len && pstr->offsets_needed case.
10379         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
10380         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10381         re_string_context_at.
10382         * posix/Makefile: Add rules to build and run bug-regex26 test.
10383         * posix/bug-regex26.c: New test.
10385         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
10386         rather than col_sym_free.  Move seqp declaration earlier.
10388         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
10390 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
10392         * nscd/initgrcache.c (addinitgroupsX): Move any_success
10393         decl before first goto out.
10395 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
10397         * Makerules (shlib.lds): If have-hash-style, put .hash section
10398         at the end of the RO segment.
10400 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
10402         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
10403         style hash table format is used.
10405 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
10407         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
10408         randomization rather than before.
10409         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
10411 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
10413         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
10415         * malloc/malloc.c (_int_malloc): Use full list insert and not
10416         shortcut which assumes the list is empty for large requests
10417         too.
10419         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
10421 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
10423         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
10424         and offout arguments to the prototype.
10425         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
10426         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
10427         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
10428         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
10429         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
10430         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
10431         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
10432         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
10434 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
10436         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
10438         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
10439         dlopen parameters.
10441 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
10443         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
10444         only if herrno is NETDB_INTERNAL.  Handle errors other than
10445         ERANGE outside of the loops, handle TRY_AGAIN.
10447         * locale/programs/ld-ctype.c (translit_flatten): Issue error
10448         if other's ctype category was missing.
10449         * locale/programs/ld-collate.c (collate_read): Return if
10450         copy_locale's collate category is missing.
10452 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
10454         [BZ #2684]
10455         * malloc/malloc.c (public_rEALLOc): Try harder by using other
10456         arenas if allocation failed.
10457         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
10459 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
10461         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
10462         waste bins[0..1].
10463         (malloc_state): Reduce bins size by 2.
10464         (_int_malloc): Fix test for large enough buffer for early termination.
10465         When no unsorted block matches perfectly and an exiting block has
10466         to be split, use full list insert and not shortcut which assumes
10467         the list is empty.
10469         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
10470         failure.
10472 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
10474         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
10475         do anything.
10477         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
10478         symbol require exact match (these are PLTs).
10479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10480         (_dl_ppc64_addr_sym_match): Likewise.
10482         [BZ #2683]
10483         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
10484         If symbol has a value use it.
10485         * elf/tst-dladdr1.c: New file.
10486         * elf/Makefile: Add rules to build and run tst-addr1.
10488 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
10490         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
10491         keeps failing and heap growth or new heap creation isn't
10492         successful either.
10493         * malloc/tst-malloc.c (main): Add new tests.
10495 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
10497         [BZ #2734]
10498         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
10499         as in the x86-64 code to use bswap.
10501 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
10503         [BZ #2680]
10504         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
10505         __USE_UNIX98.
10506         * posix/bits/unistd.h: Likewise.
10508 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
10510         [BZ #2751]
10511         * string/strchr.c: Add cast to avoid warning.
10513 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
10515         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
10516         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
10517         limit is needed to avoid the exploding of the address space
10518         requirement for secondary heaps.
10519         * malloc/arena.c (HEAP_MAX_SIZE): Define using
10520         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
10522 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
10524         [BZ #3018]
10525         * Makerules (depfiles): Handle extra-test-objs the same as
10526         extra-objs.
10527         (common-mostlyclean): Likewise.
10528         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
10529         instead.
10530         * elf/Makefile (extra-objs): Likewise.
10531         * stdlib/Makefile (extra-objs): Likewise.
10533 2006-08-14  Eric Blake  <ebb9@byu.net>
10535         [BZ #3044]
10536         * misc/error.h: Assume C89 or better.
10537         * misc/error.c: Likewise.
10539 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
10541         [BZ #3040]
10542         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
10543         __ASSUME_ATFCTS is defined.
10545 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
10547         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
10548         to sort in each call.
10550         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
10551         is empty simply return and use next service.
10552         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
10554         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
10555         tells us when not finding a charmap file is an error.
10556         * locale/programs/charmap.h: Adjust charmap_read prototype.
10557         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
10558         cannot find a charmap.
10559         * locale/programs/localedef.c (main): Adjust charmap_read call.
10561 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
10563         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
10564         sysdeps/posix/pause.c implementation instead.
10566 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
10568         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
10569         to EPERM.
10571 2006-08-13  Andreas Schwab  <schwab@suse.de>
10573         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
10574         Don't clobber caller's LRSAVE.
10575         (_dl_prof_resolve): Likewise.
10577 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
10579         [BZ #1996]
10580         * libio/memstream.c (open_memstream): Allocate initial buffer with
10581         calloc.
10582         * libio/wmemstream.c (open_wmemstream): Likewise.
10583         * libio/strops.c: Pretty printing.
10584         (_IO_str_overflow): Clear uninitialized part of the new buffer.
10585         (enlarge_userbuf): New function.
10586         (_IO_str_seekoff): Call it if seek position is larger than current
10587         buffer.
10588         * libio/wstrops.c: Likewise.
10589         * libio/vasprintf.c: Add comment as to why we do not have to use
10590         calloc instead of malloc to allocate initial buffer.
10591         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
10592         * libio/bug-memstream1.c: New file.
10593         * libio/bug-wmemstream1.c: New file.
10595 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
10597         * libio/wstrops.c: Remove dead macro definitions and comments.
10598         * libio/strops.c: Likewise.
10600         [BZ #2764]
10601         * login/utmpname.c (__utmpname): Remove unnecessary test.
10603 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
10605         [BZ #2832]
10606         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
10607         0s from integers.
10609 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
10611         [BZ #2987]
10612         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
10613         for CPU clocks.
10614         * sysdeps/unix/clock_settime.c: Add support for platform-specific
10615         setting of CPU clocks.
10617 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10619         [BZ #2841]
10620         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
10621         since C99 requires the result to promote to 'int' when uint_least8_t
10622         and uint_least16_t promote to 'int'.
10624 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
10626         [BZ #3013]
10627         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
10628         lenght of one output field, correct bitmask creation.
10629         * locale/programs/ld-time.c: Add alignment.
10631         [BZ #2997]
10632         * misc/error.c: Add space between program name and message if file
10633         name is missing.
10635 2006-08-03  Eric Blake  <ebb9@byu.net>
10637         [BZ #2998]
10638         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
10640 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
10642         * malloc/memusagestat.c: Silence warnings.
10644         * malloc/malloc.c: Dynamically size mmap treshold if the program
10645         frees mmaped blocks.
10646         Patch by Valerie Henson and Arjan van de Ven.
10648 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
10650         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
10651         __USE_GNU.
10653         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
10654         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
10655         (DEF): Don't put the var into .gnu.linkonce.r.* section.
10656         Only provide var definitions in strtol_l (or for *ull*
10657         in strtoll_l).
10659         * stdio-common/bug16.c (tests): New array.
10660         (do_tests): Allow the first hexadecimal digit
10661         to be 1, 2, 4 or 8.  Do 3 additional tests.
10663         * sysdeps/s390/fpu/libm-test-ulps: Update.
10665         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
10666         fchownat syscall if available.
10667         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
10668         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
10669         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
10671 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
10673         * nis/nis_xdr.c: Avoid some function calls.
10675 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
10676             Ulrich Drepper  <drepper@redhat.com>
10678         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
10679         short cut if only one name component is stripped away.
10681 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
10683         * nis/nis_call.c: Minor cleanups throughout.
10684         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
10685         (first_shoot): Add search_parent_first parameter.  Only if it is set
10686         search parent server first.
10687         If directory for table found through cold start cache is not the same
10688         as referenced in the cache, don't use it.
10689         (__nisfind_server): Take additional parameter.  Pass it on to
10690         first_shoot.
10691         (__prepare_niscall): Adjust __nisfind_server call.
10692         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
10693         * nis/nis_table.c: Adjust __nisfind_server call.
10694         * nis/nis_lookup.c: Likewise.
10695         (nis_lookup): Don't loop endlessly if name is reduced to ".".
10697 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
10699         [BZ #2182]
10700         * math/s_cacosh.c: Return values from positive branch.
10701         * math/s_cacoshf.c: Likewise.
10702         * math/s_cacoshl.c: Likewise.
10704         [BZ #2883]
10705         * sysvipc/sys/msg.h: Change return value to ssize_t.
10706         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
10707         * sysvipc/msgrcv.c: Likewise.
10708         * include/sys/msg.h: Likewise.
10710         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
10711         test introduced in patch for bz #661.
10712         (getgrouplist): Simplify code a bit.  Don't allocate one additional
10713         element for NEWGROUPS.
10715         [BZ #2908]
10716         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
10717         'f', use '1' as leading digit not '\1'.
10718         * stdio-common/Makefile (tests): Add bug16.
10719         * stdio-common/bug16.c: New file.
10721         [BZ #2914]
10722         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
10723         and don't try to open it.  The patch introducing the macro
10724         contained a bug and used the same file name as the new file
10725         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
10726         this out completely.
10728         [BZ #2926]
10729         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
10730         Patch by Jerry James <Jerry.James@usu.edu>.
10732         * rt/Makefile (tests): Add tst-clock2.
10733         * rt/tst-clock2.c: New file.
10735         [BZ #2978]
10736         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
10737         function and its parameters and pass it to new thread.
10738         (__gai_notify): Add support for alternative waiting for completion.
10739         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
10740         waiting for completion.
10741         * resolv/getaddrinfo_a.c: Likewise.
10742         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
10743         waiting for completion is used.
10744         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
10745         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
10746         * resolv/gai_error.c: Likewise.
10747         * resolv/gai_sigqueue.c: Likewise.
10749 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
10751         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
10752         errno to EBADF and return MACH_PORT_NULL.
10754 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
10756         [BZ #2980]
10757         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
10759 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
10761         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
10762         walk them instead of the symbol table.
10764 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
10766         [BZ #2098]
10767         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
10768         status of NSS calls, not the number of returned entries.
10770         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
10771         request_key, keyctl.
10773 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10775         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
10777 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
10779         * elf/tst-auditmod1.c: Fix typo in #error.
10781 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10783         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
10785         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
10787 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
10789         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
10790         that the directory is empty even on non-POSIX filesystems.
10792 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10794         * elf/dl-open.c (dl_open_worker): Add branch prediction.
10796         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
10797         the backend NSS module.  If backend setgrent call failed, don't have
10798         internal_setgrent fail.  Just remember this until it is needed.
10799         * nis/nss_compat/compat-pwd.c: Likewise.
10800         * nis/nss_compat/compat-spwd.c: Likewise.
10802 2006-07-30  Roland McGrath  <roland@redhat.com>
10804         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
10805         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
10806         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
10807         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
10809         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
10810         (nanosleep_not_cancel): New macro.
10811         (sigsuspend_not_cancel): new macro.
10812         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
10813         (do_sigsuspend): Define as inline.
10814         (__sigsuspend): Always use do_sigsuspend.
10815         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
10816         * include/signal.h: Declare __sigsuspend_nocancel.
10817         * sysdeps/posix/pause.c
10818         [! NO_CANCELLATION] (__pause_nocancel): New function.
10820         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
10821         * include/time.h (__nanosleep_nocancel): Likewise.
10823 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
10825         * locale/programs/localedef.c (add_to_readlist): Rename local
10826         variables to avoid confusion.
10828         * locale/programs/charmap.c (charmap_read): Emit error message if
10829         charmap couldn't be found or read.
10831 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
10833         * sysdeps/unix/sysv/linux/kernel-features.h: Define
10834         __ASSUME_FUTEX_LOCK_PI.
10835         * include/time.h: Declare __nanosleep_nocancel.
10836         * include/unistd.h: Declare __pause_nocancel.
10838         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
10839         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
10840         get the __stack_chk_fail_local definition when it's needed.
10842 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
10844         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
10845         * dlfcn/bug-atexit3.c: New file.
10846         * dlfcn/bug-atexit3-lib.cc: New file.
10848         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
10849         used when the namespace is not the base namespace.
10851 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
10853         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
10854         (__new_exitfn): Bump it in every successful call.
10855         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
10856         more exit handlers, call them right away.
10857         * stdlib/exit.h: Declare __new_exitfn_called.
10859 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
10861         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
10862         calling registered handler.
10864         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
10865         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10866         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10867         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10868         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10869         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10870         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10871         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10873 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
10875         * elf/dl-lookup.c (dl_new_hash): New functions.
10876         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
10877         value here.  Compute new-style hash value.  Pass new hash value
10878         and reference to variable with the old value to do_lookup_x.
10879         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
10880         old-style hash table.
10881         (_dl_debug_bindings): Pass new hash value and reference to variable
10882         with the old value to do_lookup_x.
10883         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
10884         new-style hash value and change old-style hash value parameter to
10885         be a reference.  Reoganize functions to determine whether
10886         new-style hash table is available.  Only fall back on old-style
10887         table.  If old-style hash value is needed, compute it here.
10888         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
10889         entry.
10890         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
10891         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
10892         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
10893         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
10894         * Makeconfig: If linker supports --hash-style option add it to all
10895         linker command lines to build DSOs.
10896         * config.make.in: Define have-hash-style.
10897         * configure.in: Test whether linker supports --hash-style option.
10899         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
10900         * sysdeps/generic/ldsodefs.h: Adjust prototype.
10902 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
10904         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
10905         auditing.
10907         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
10908         RPATH of main map twice.
10910 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
10912         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
10913         look further, return original strings.
10914         (_nl_find_msg): Do not return found translation if the conversion
10915         failed.  Either signal the string is unusable or that something went
10916         wrong and the original should be used.
10918 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
10920         * string/_strerror.c (__strerror_r): Add __builtin_expect.
10922 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
10924         [BZ #2766]
10925         * misc/insremque.c (insque): Handle prev == NULL.
10926         * misc/Makefile (tests): Add tst-insremque.
10927         * misc/tst-insremque.c: New test.
10929 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
10931         [BZ #2792]
10932         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
10933         conflict with DL_DST_REQUIRED.
10935 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
10937         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
10938         match what Solaris does.
10940 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
10942         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
10943         local_setegid instead of seteuid and setegid.
10944         * sysdeps/generic/local-setxid.h: New file.
10945         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
10947         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
10949         * string/Makefile (tests): Add bug-envz1.
10950         * string/bug-envz1.c: New file.
10952 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
10954         * posix/regex_internal.c (re_string_skip_chars): If no character has
10955         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
10956         to the byte which couldn't be converted.
10957         (re_string_reconstruct): Don't clear valid_raw_len before calling
10958         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
10959         tip_context using re_string_context_at.
10960         * posix/Makefile: Add rules to build and run bug-regex25 test.
10961         * posix/bug-regex25.c: New test.
10963 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
10965         [BZ #2703]
10966         * string/envz.c (envz_strip): Correct erroneously reversed src
10967         and dest parameters to memmove() invocation.
10969 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
10971         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
10972         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
10973         to make sure the database has been already invalidated.
10974         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
10975         after the cache has been invalidated.  Use pthread_mutex_lock rather
10976         than pthread_mutex_trylock if fd != -1.
10977         * nscd/connections.c (invalidate_cache): Add fd argument, write
10978         response to fd if not calling prune_cache, pass fd to prune_cache.
10979         (handle_request): Adjust invalidate_cache caller.
10980         (nscd_run): Pass -1 as fd to prune_cache.
10982 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
10984         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
10985         the correct place.
10987 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
10989         * nscd/nscd.h (struct database_dyn): Add prunelock field.
10990         * nscd/cache.c (prune_cache): Take prunelock before starting the
10991         work.  Just return in case it is already taken.
10992         * nscd/connections.c (dbs): Initialize .prunelock.
10994 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
10996         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
10997         copying.  No need to allocate new array for group members.  Just
10998         move the pointers and update the size.
11000         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
11001         Avoid memory leak in case realloc fails.  Simplification for
11002         better code generation.
11004         Avoid deprecation warning because of libc_hidden_proto for
11005         inet6_option_alloc.
11006         * inet/inet6_option.c (option_alloc): Renamed from
11007         inet6_option_alloc.  Made static.
11008         (inet6_option_alloc): Now a simple wrapper around option_alloc.
11009         (inet6_option_append): Call option_alloc.
11010         * include/netinet/in.h: Remove libc_hidden_proto for
11011         inet6_option_alloc.
11013         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
11014         for cleanup when cb!=NULL [Coverity CID 233].
11016 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
11018         [BZ #2693]
11019         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
11020         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
11021         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
11022         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
11023         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
11024         and inet6_rth_getaddr.
11025         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
11026         array.
11027         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
11028         Mark inet6_option_* interfaces as deprecated.
11029         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
11030         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
11031         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
11032         inet6_rth_segments, and inet6_rth_getaddr.
11033         * inet/inet6_opt.c: New file.
11034         * inet/inet6_rth.c: New file.
11036         * inet/netinet/icmp6.h: Pretty printing.
11038         [BZ #2683]
11039         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
11041 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
11043         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
11044         doing it all here.  When server does not know the answer do not
11045         fail immediate, try parent first.
11047         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
11048         overflow test.
11050 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
11052         * nis/nis_call.c (__prepare_niscall): New function.  Split out
11053         from __do_niscall.
11054         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
11055         and exported.
11056         (__follow_path): New function.  Split out from nis_list.
11057         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
11058         _xdr_nis_result.
11059         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
11060         _xdr_nis_result.
11061         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
11062         and __follow_path.
11063         * nis/Versions: Export __prepare_niscall, __create_ib_request,
11064         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
11065         from libnsl for version GLIBC_PRIVATE.
11066         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
11067         Remove entry parameter from _nss_nisplus_parse_pwent and
11068         _nss_nisplus_parse_grent.
11069         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11070         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
11071         again.  Rewrite getpwent handling to not use nis_first_entry and
11072         nis_next_entry.  Roll out own niscall handling.
11073         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11075         * sunrpc/xdr_rec.c: Fix typo in comment.
11077 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
11079         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
11080         handling.
11082         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
11083         to allocate memory for my_pollfd.  Better initialization of
11084         cb_is_running.  Use TEMP_FAILURE_RETRY.
11086         * malloc/memusage.sh (memusageso): Add quotes.
11087         (memusagestat): Likewise.
11088         * debug/xtrace.sh (pcprofileso): Likewise.
11089         (pcprofiledump): Likewise.
11090         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
11091         replacement.
11092         * malloc/Makefile ($(objpfx)memusage): Likewise.
11094         * nis/nis_callback.c (__nis_create_callback): Calls to
11095         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
11096         asprintf call fails.
11098         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
11099         no uninitialized memory is passed to sendto.
11101 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
11103         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
11104         of snprintf+strdup.  Handle OOM.
11105         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
11106         cb->serv together.  Remove now obsolete free calls.
11107         (__nis_destroy_callback): Remove now obsolete free call.
11109 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
11111         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
11112         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
11113         and ULA respectively). Set precedence for IPv4 address to 10 as
11114         defined in RFC3484 for preferring IPv6.
11115         * posix/gai.conf: Update to match the new default tables.
11117 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
11119         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
11120         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
11121         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
11122         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
11124         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
11125         Removed.
11126         (init_nss_interface): Remove initialization of these variables.
11128 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
11130         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
11131         nis_free_directory forward to avoid duplication.
11133 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
11135         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
11136         rec_dirsearch returning NULL.
11137         (first_shoot): Handle __nis_finddirectory returning NULL.
11138         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
11140         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
11141         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
11143 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
11145         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
11146         pid changed.
11148 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
11150         * include/rpc/pmap_prot.h: Mark all functions as hidden.
11152         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
11153         * nscd/nscd_getgr_r.c: Likewise.
11155         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
11157         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
11158         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
11160         * stdlib/longlong.h (__clz_tab): Mark as hidden.
11162         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
11164         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
11166         * include/rpc/auth.h: Mark xdr_des_block_internal and
11167         xdr_opaque_auth_internal as hidden.
11169         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
11170         hidden.
11172         * include/rpc/xdr.h: Mark all _internal functions as hidden.
11174         * misc/getusershell.c (okshells): Don't use static initializers,
11175         do it dynamically.
11177         * stdlib/fmtmsg.c (keywords): Change type of len element to
11178         uint32_t to not waste space on 64bit machines.
11180         * locale/setlocale.c: Change _nl_category_names into a string.
11181         Add new _nl_category_name_idxs.  Change all users.
11182         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
11183         Declare _nl_category_name_idxs.
11184         * locale/findlocale.c: Adjust for _nl_category_names change.
11185         * locale/loadlocale.c: Likewise.
11186         * locale/newlocale.c: Likewise.
11187         * intl/dcigettext.c: Likewise.
11189         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
11190         (add_alias2): ...here.  New function.
11191         (__gconv_read_conf): Simplify builtin alias handling.
11192         (builtin_aliases): Convert to string to avoid relocations.
11193         * iconv/gconv_builtin.h: Add comment about correct formatting.
11195 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
11197         * resolv/res_debug.c (loc_ntoa): Make error const.
11199 2006-05-14  Andreas Schwab  <schwab@suse.de>
11201         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
11203 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
11205         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
11206         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
11207         sizeof (cpu_set_t).
11209 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
11211         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
11213         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
11215         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
11216         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
11218         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
11219         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
11221         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
11222         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
11223         xdr_cback_data.
11225         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
11226         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11227         xdr_ypupdate_args.
11229         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
11230         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
11232         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
11233         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
11235         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
11236         * include/rpcsvc/nis_callback.h: New file.
11238         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
11239         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
11241         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11242         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11244         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
11245         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
11247         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11248         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11250         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
11251         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11252         xdr_ypdelete_args.
11254         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
11255         __BEGIN_DECLS and __END_DECLS, the header is not installed.
11257         * nis/nis_error.c: Remove table of strings.  Use position
11258         independent mechanism.
11259         * nis/nis_error.h: New file.
11261 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
11263         * locale/programs/ld-time.c (time_finish): If wide era name or
11264         format aren't provided, set both wname and wformat to L"".
11266 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
11268         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
11269         results if the call was succesful.
11271         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
11273         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
11274         as hidden.
11276 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
11278         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
11280 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
11282         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
11283         caller makes sure this is not the case.
11284         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
11286 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
11288         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
11289         calls.
11291         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
11292         [Coverity CID 229, 230]
11294         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
11295         DGETTEXT calls.
11296         (hol_help): Likewise.  [Coverity CID 226, 227]
11298         * string/argz-replace.c (__argz_replace): Unconditionally call
11299         free on SRC.  [Coverity CID 225]
11301         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
11302         the return value of __nis_default_owner and __nis_default_group,
11303         it has been especially allocated.  [Coverity CID 224]
11305         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
11306         searchgroup and searchowner.  Significantly simplified.
11307         (__nis_default_owner): Remove duplication.  Do not locally copy the
11308         string before duplicating it.
11309         (__nis_default_group): Likewise.
11311         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
11312         we must clear the variable before calling __nisfind_server.
11314         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
11315         nis_getnames.  [Coverity CID 223]
11317         * locale/programs/locfile.c (locfile_read): Use alloca instead of
11318         xmalloc to allocate local repertoire name.  [Coverity CID 222]
11320         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
11321         allocate memory for the input to add_bytes.  [Coverity CID 221]
11323         * posix/wordexp.c (w_addword): Free word if realloc fails and it
11324         was allocated here.  [Coverity CID 219, 220]
11326         * posix/getconf.c (print_all): Free confstr data after printing.
11327         [Coverity CID 218]
11329         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
11330         list allocation fails.  [Coverity CID 215]
11332         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
11333         [Coverity CID 213]
11335         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
11336         string is NULL.  [Coverity CID 212]
11337         * argp/Makefile: Add rules to build and run bug-argp1.
11338         * argp/bug-argp1.c: New file.
11340         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
11341         end of string.
11342         * stdlib/canonicalize.c (__realpath): Likewise.
11344         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
11345         pointer.  [Coverity CID 206]
11347         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
11348         in statically linked code.
11349         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
11350         statically built code, be prepared to have no link map.
11351         [Coverity CID 205]
11353         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
11354         dgettext calls. [Coverity CID 204]
11356         * argp/argp-help.c (struct uparams): Remove valid member.  Change
11357         the one user.
11358         (uparam_names): Reduce size.  Avoid relative relocations.
11359         Moved to read-only segment.
11360         (fill_in_uparams): Update for new layout.
11362         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
11363         assumed to always be != NULL. [Coverity CID 202]
11365         * argp/argp-help.c (hol_entry_help): Remove some dead code
11366         [Coverity CID 200].
11368         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
11369         away a few more unconditional yperr2nss calls.
11370         (_nss_nis_getservbyname_r): Likewise.
11372 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
11374         * sysdeps/generic/ldsodefs.h: Remove support for non-core
11375         architectures.
11377         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
11378         that unused memory passed to sendto is nevertheless initialized.
11380         [BZ #2499]
11381         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
11382         possibly unaligned memory accesses.
11384         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
11385         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
11386         and __putlong respectively.  Correct buffer overflow check for
11387         NS_NOTIFY_OP.
11389         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
11391         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
11392         (send_dg): Rewrite error handling to be more compact and avoid
11393         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
11395         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
11397         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
11398         instead of ns_get16.
11399         (res_queriesmatch): Likewise.  Minor optimization.
11401         [BZ #2499]
11402         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
11403         __libc_res_nsend might reallocate the buffer for the answer.  In
11404         this case we have to reload the HP pointer.
11406 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11408         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
11409         some branch prediction hints.
11411         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
11412         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11413         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11414         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11415         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11416         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11417         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11418         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11420 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11422         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
11423         by a GOT relocation to make Scrt1.o position independent.
11424         * sysdeps/s390/s390-64/elf/start.S: Likewise.
11426         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
11427         six system call parameters.
11428         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
11430 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11432         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
11433         malloc&bzero.
11435         * sunrpc/svc_udp.c (BZERO): Remove definition.
11436         (CALLOC): Define.
11437         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
11439         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
11440         (des_SPtrans): Use uint32_t type.
11441         (des_skb): Likewise.
11443         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
11445 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
11447         [BZ #2509]
11448         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
11449         on 32-bit arches.
11451 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11453         * locale/programs/ld-address.c (address_finish): Fix one more
11454         place where the iso639 array might be accessed beyond the limits.
11456 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
11458         * nis/nis_table.c (nis_list): Avoid clearing res twice before
11459         filling it for the first time.
11461         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
11462         Adjust all callers.
11463         Free res object content before returning.
11465         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
11467         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
11468         client->cl_auth.
11470         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
11471         cleanup for initial thread, just the free call on TVP.
11473         * nscd/gai.c (__getline): Define.
11476 See ChangeLog.16 for earlier changes.