Ignore Emacs backup files.
[glibc.git] / ChangeLog
blobd976903bb18ca37098ead1aec042c8ff5114ede7
1 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3         * version.h: Bump for 2.11 development.
5         * elf/check-execstack.c: New file.
6         * elf/Makefile: Add rules to build and run check-execstack.
8 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
10         * version.h (VERSION): Bump to 2.10.1.
12         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
13         compatibility functions.
14         * nss/getXXent_r.c: Likewise.
15         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
16         * gshadow/getsgnam_r.c: Likewise.
17         * gshadow/Version: Remove duplicate entries.
19         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
20         for recent processor.
21         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
22         Likewise.
24 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
26         * version.h (VERSION): Bump for 2.10 release.
27         * include/features.h (__GLIBC_MINOR__): Bump to 10.
29         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
30         same place we add ASFLAGS-config.
32 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
34         [BZ #10128]
35         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
36         or FORMERR and the other NOERROR, don't raise an error.
38 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
40         [BZ #10118]
41         * Makeconfig (+asflags): New variable based upon ASFLAG or
42         asflags-cpu.
43         (ASFLAGS): Add override to set ASFLAGS to +asflags.
44         * config.make.in (asflags-cpu): Add variable based upon
45         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
46         the assembler.
47         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
48         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
49         recognizes power6 instruction set due to passing -mcpu=power6 from
50         --with-cpu=power6 when compiling .S files.
51         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
52         Likewise.
53         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
54         Likewise.
55         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
56         Likewise.
58 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
60         * string/stratcliff.c (do_test): Test for zero length
61         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
62         at the end of the page.
64 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
66         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
68         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
69         count is zero.
71         * po/da.po: Update from translation team.
73 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
75         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
76         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
78 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
80         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
81         and READ_IMPLIES_EXEC.
83 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
85         * po/da.po: Update from translation team.
87 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
89         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
90         comment change.
92 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
94         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
95         to MAP_ANON in PROT_NONE mmap64 call.
96         (open_archive): Likewise.
97         (file_data_available_p): Use mmap64 instead of mremap.
98         (enlarge_archive): Likewise.  Update head if ah->addr changed.
99         Attempt to reserve address space after mmap64 region.
101 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
103         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
104         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
105         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
107         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
108         atanh should set ERANGE.
110         [BZ #10087]
111         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
112         result of lookup to make call to implement STT_GNU_IFUNC.
113         (_dl_profile_fixup): Likewise.
114         Patch by H.J. Lu <hjl.tools@gmail.com>.
116         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
117         warning.
119         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
120         from definition.
122         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
123         label if it is not used.
125         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
126         of gmon_hist_hdr and gmon_hdr structures and use them.
127         * elf/sprof.c: Likewise.
129         * elf/dl-load.c (open_verify): Add temporary variable to avoid
130         warning.
132         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
134         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
135         to avoid cast.
137         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
138         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
139         to avoid warnings.
140         (iruserok_af): Use ss_family instead of casts.
142         * gmon/gmon.c (write_hist): Define real-type variant of
143         gmon_hist_hdr structure and use it.
144         (write_gmon): Likewise for gmon_hdr.
146         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
147         function if we are not going to define it.
148         * sysdeps/unix/sysv/linux/writev.c: Likewise.
150         * inet/inet6_option.c (option_alloc): Add temporary variable to
151         avoid warning.
153         * libio/strfile.h (struct _IO_streambuf): Use correct type and
154         name of VTable element.
155         * libio/iovsprintf.c: Avoid casts to avoid warnings.
156         * libio/iovsscanf.c: Likewise.
157         * libio/vasprintf.c: Likewise.
158         * libio/vsnprintf.c: Likewise.
159         * stdio-common/isoc99_vsscanf.c: Likewise.
160         * stdlib/strfmon_l.c: Likewise.
161         * debug/vasprintf_chk.c: Likewise.
162         * debug/vsnprintf_chk.c: Likewise.
163         * debug/vsprintf_chk.c: Likewise.
165         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
166         function pointers.
168 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
170         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
172 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
174         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
176         * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
177         * sysdeps/i386/fpu/s_tanf.S: Likewise.
178         * sysdeps/i386/fpu/s_tanl.S: Likewise.
179         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
180         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
181         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
182         * math/libm-test.inc: Add tests for errno after tan calls with
183         ±Inf.
185         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
186         errno value vor pow(+-0,neg).
187         * math/libm-test.inc (pow_test): Add tests for errno value for
188         pole errors.
190         * math/w_fmod.c: Also handle x=±Inf as error.
191         * math/w_fmodf.c: Likewise.
192         * math/w_fmodl.c: Likewise.
193         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
194         x=±Inf or y=0.
196         * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
197         * sysdeps/i386/fpu/s_cosf.S: Likewise.
198         * sysdeps/i386/fpu/s_cosl.S: Likewise.
199         * sysdeps/i386/fpu/s_sin.S: Likewise.
200         * sysdeps/i386/fpu/s_sinf.S: Likewise.
201         * sysdeps/i386/fpu/s_sinl.S: Likewise.
202         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
203         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
204         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
205         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
206         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
207         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
208         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
209         * math/libm-test.inc: Add tests for errno after sin/cos calls with
210         ±Inf.
212         * stdlib/strtod_l.c (round_and_return): We have to set errno to
213         ERANGE for underflows.
214         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
216         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
217         the 2001 revision.
219         * libio/tst-widetext.input: Remove surrogates.
221         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
223         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
224         for lgamma should set errno to ERANGE, not EDOM.
225         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
227 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
229         [BZ #10093]
230         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
231         UTF-16 surrogates.
233         * locale/programs/locarchive.c (enlarge_archive): Conserve address
234         space when temporarily mapping the whole content of the old file.
236         [BZ #10100]
237         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
238         not zero.
240 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
242         * iconvdata/sjis.c (BODY): Don't advance inptr before
243         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
244         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
245         two byte chars.
247 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
249         * locale/locarchive.h (struct locarhandle): Rename len field to
250         mmaped and add new reserved field.
251         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
252         (create_archive): Reserve address space and then map file into it.
253         (open_archive): Likewise.
254         (file_data_available_p): New function.
255         (compare_from_file): New function.
256         (close_archive): Adjust to member name changes.
257         (add_locale): Before comparing locale data, check it is mapped.
258         Otherwise fall back to reading from the file.
260 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
262         * stdio-common/psiginfo.c: Include <errno.h>.
264 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
266         [BZ #9920]
267         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
268         to get consistency between 32 and 64 bit architectures.
270         [BZ #10052]
271         * sysdeps/unix/make-syscalls.sh: Add rule to create target
272         directory for dummy syscall rules.
273         Patch by Chris Steinbroner <hesh@pobox.com>.
275 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
277         [BZ #10092]
278         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
279         MNT_EXPIRE.
281 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
283         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
284         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
286 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
288         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
289         data from vector to temporary buffer and call PWRITEV after it
290         instead of vice versa.
291         * sysdeps/posix/preadv.c: Fix up comment.
292         * misc/preadv.c: Likewise.
293         * misc/preadv64.c: Likewise.
294         * misc/pwritev.c: Likewise.
295         * misc/pwritev64.c: Likewise.
296         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
298 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
300         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
302         * shadow/Makefile (tests): Add tst-shadow.
303         * shadow/tst-shadow.c: New file.
305         [BZ #9955]
306         * gshadow/Makefile: New file.
307         * gshadow/Versions: New file.
308         * gshadow/fgetsgent.c: New file.
309         * gshadow/fgetsgent_r.c: New file.
310         * gshadow/getsgent.c: New file.
311         * gshadow/getsgent_r.c: New file.
312         * gshadow/getsgnam.c: New file.
313         * gshadow/getsgnam_r.c: New file.
314         * gshadow/gshadow.h: New file.
315         * gshadow/putsgent.c: New file.
316         * gshadow/sgetsgent.c: New file.
317         * gshadow/sgetsgent_r.c: New file.
318         * gshadow/tst-gshadow.c: New file.
319         * include/gshadow.h: New file.
320         * Makeconfig (all-subdirs): Add gshadow.
321         * Makefile (installed-headers): Add gshadow/gshadow.h.
322         * nss/Makefile (databases): Add sgrp.
323         * nss/Versions: Add gshadow functions as private exports.
324         * nss/nsswitch.conf: Add gshadow entry.
325         * nss/sgrp-lookup.c: New file.
326         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
327         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
328         * nss/nss_files/files-sgrp.c: New file.
329         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
330         * sysdeps/unix/sysv/linux/paths.h: Likewise.
332 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
334         * stdio-common/printf.h: Add missing const to register_printf_modifier.
335         * stdio-common/reg-modifier.c: Likewise.
337 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
339         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
340         is no FPU.
342 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
344         [BZ #10086]
345         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
346         headers up to 2.6.30.
348         * po/ca.po: Update from translation team.
350 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
352         [BZ #10069]
353         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
354         an object that uses static TLS if the TLS modid is higher than the
355         reserve we always allocate.  At least for multi-threaded code.
357 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
359         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
360         Numerically stable check for valid width.
362         * locale/programs/locarchive.c (open_archive): Map the entire file
363         and not just the administrative data.
364         (add_locale): When we find a hash sum match compare the content
365         to be sure.
367         * malloc/malloc.c (malloc_info): Output address space information.
369 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
371         * malloc/malloc.c (malloc_info): Also output system memory information.
373         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
374         architectures have preadv/pwritev in 2.6.30.
376         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
377         * sysdeps/posix/readv.c: Likewise.
378         Reported by Markus Armbruster <armbru@redhat.com>.
380         * malloc/hooks.c (top_check): Force hook value into register.
382 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
384         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
385         calls to _dl_relocate_object.
387 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
389         [BZ #9957]
390         * malloc/malloc.c (force_reg): Define.
391         (sYSMALLOc): Load hook variable into variable
392         before test and force into register.
393         (sYSTRIm): Likewise.
394         (public_mALLOc): Force hook value into register.
395         (public_fREe): Likewise.
396         (public_rEALLOc): Likewise.
397         (public_mEMALIGn): Likewise.
398         (public_vALLOc): Likewise.
399         (public_pVALLOc): Likewise.
400         (public_cALLOc): Likewise.
401         (__posix_memalign): Likewise.
402         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
403         before test and force into register.
404         * malloc/hooks.c (top_check): Likewise.
405         (public_sET_STATe): Pretty printing.
407         * resolv/res_send.c (send_dg): Don't just ignore the result we got
408         in case we only receive one reply in single-request mode.
410 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
412         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
413         are dlopened in statically linked program even for __LM_ID_CALLER.
415 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
417         * resolv/res_send.c (send_dg): Don't switch into single-request
418         mode if we already are in it.
420 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
422         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
423         are always at least 4 bytes in the returned line.
425 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
427         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
428         __libc_use_alloca (8192), if the stack is too small use 512 bytes
429         instead of 8K.  Stop searching in /proc/stat after hitting first
430         line not starting with cpu.
431         (next_line): Truncate too long
432         lines at buffer size * 3/4 instead of pretending there were line
433         breaks inside of large lines.
435 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
437         * sysdeps/x86_64/mp_clz_tab.c: New file.
439 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
440             Ulrich Drepper  <drepper@redhat.com>
442         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
443         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
444         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
446 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
448         * sysdeps/sh/libc-tls.c: New file.
450         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
452 2009-04-14  Roland McGrath  <roland@redhat.com>
454         * elf/elf.h: Add various missing ARM constants, to match binutils.
456 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
458         Optimizations from GMP.
459         * sysdeps/x86_64/add_n.S: New file.
460         * sysdeps/x86_64/addmul_1.S: New file.
461         * sysdeps/x86_64/lshift.S: New file.
462         * sysdeps/x86_64/mul_1.S: New file.
463         * sysdeps/x86_64/rshift.S: New file.
464         * sysdeps/x86_64/sub_n.S: New file.
465         * sysdeps/x86_64/submul_1.S: New file.
467 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
469         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
470         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
471         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
472         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
474 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
476         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
477         preadv/pwritev.
479 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
481         * sysdeps/x86-64/strrchr.S: New file.
483 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
485         * stdio-common/printf.h (struct printf_info): Add user element.
486         New types printf_arginfo_size_function, printf_va_arg_function.
487         Declare register_printf_specifier, register_printf_modifier,
488         register_printf_type.
489         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
490         (union printf_arg): Add pa_user element.
491         Adjust __printf_arginfo_table type.
492         Add __printf_va_arg_table, __printf_modifier_table,
493         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
494         declarations.
495         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
496         If registered arginfo call failed try normal specifier.
497         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
498         function.
499         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
500         * stdio-common/Versions: Export register_printf_modifier,
501         register_printf_type, and register_printf_specifier for GLIBC_2.10.
502         * stdio-common/reg-modifier.c: New file.
503         * stdio-common/reg-type.c: New file.
504         * stdio-common/reg-printf.c (__register_printf_specifier): New
505         function.  Mostly the old __register_printf_function function but
506         uses locking and type of third parameter changed.
507         (__register_printf_function): Implement using
508         __register_printf_specifier.
509         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
510         calls to arginfo functions.  Allocate enough memory for user-defined
511         types.  Call new va_arg functions to get user-defined types.
512         Try installed handlers even for existing format specifiers first.
514 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
516         * sysdeps/x86_64/rawmemchr.S: New file.
518         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
519         Simplified code and possible copy problem fixed.
521         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
522         function if it is not defined.  Add some necessary casts.
523         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
525         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
526         have preadv/pwritev in 2.6.30.
528 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
530         * malloc/malloc.c (malloc_info): New function.
531         * malloc/malloc.h: Declare it.
532         * malloc/Versions: Export malloc_info for GLIBC_2.10.
534         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
535         to avoid PLT slot.
537         * malloc/malloc.c (_int_realloc): Add parameter with old block
538         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
539         Adjust all callers.
540         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
542 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
544         * sysdeps/x86_64/strchrnul.S: New file.
546         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
547         depending libcrypt on -lfreebl3.
549         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
550         preadv/pwritev in 2.6.30.
552         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
553         instead of __strcasecmp.
555         * string/stratcliff.c (do_test): Add memchr tests..
556         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
557         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
558         first read quad word.
560 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
562         * string/strverscmp.c (__strverscmp): Fix last cleanups.
563         * string/tst-svc.input: Add new test case.
564         * string/tst-svc.expect: Adjust.
565         * string/Makefile: Don't ignore tst-svc error.
567         * sysdeps/x86_64/memchr.S: New file.
569         * resolv/resolv.h (RES_SNGLKUP): Define.
570         * resolv/res_init.c (res_setoptions): Recognize single-request option.
571         * resolv/res_send.c (send_dg): If we sent two requests at once and
572         only get one reply before timeout switch to mode where we send the
573         second request only after the first answer has been received.
575 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
577         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
578         * sysdeps/x86_64/strchr.S: Likewise.
580 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
582         * configure.in: We need to test for the compiler earlier.
584         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
585         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
586         GLIBC_2.10.
587         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
588         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
589         and pwritev.
590         * misc/preadv.c: New file.
591         * misc/preadv64.c: New file.
592         * misc/pwritev.c: New file.
593         * misc/pwritev64.c: New file.
594         * sysdeps/posx/preadv.c: New file.
595         * sysdeps/posx/preadv64.c: New file.
596         * sysdeps/posx/pwritev.c: New file.
597         * sysdeps/posx/pwritev64.c: New file.
598         * sysdeps/unix/sysv/linux/preadv.c: New file.
599         * sysdeps/unix/sysv/linux/preadv64.c: New file.
600         * sysdeps/unix/sysv/linux/pwritev.c: New file.
601         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
602         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
603         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
605         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
606         compatibility code.
607         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
609         * sysdeps/unix/sysv/linux/kernel-features.h: Define
610         __ASSUME_COMPLETE_READV_WRITEV.
611         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
612         with modern kernels.
613         * sysdeps/unix/sysv/linux/writev.c: Likewise.
615         * sysdeps/posix/readv.c: Since read is a cancellation point we have
616         to free a possible malloced buffer in case of cancellation.
617         * sysdeps/posix/writev.c: Likewise for write.
619 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
621         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
623         * configure.in: Recognize --enable-nss-crypt.
624         * config.make.in: Add nss-crypt entry.
625         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
626         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
627         and include path for NSS directory to compiler for md5-crypt,
628         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
629         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
630         function implementation, use NSS.  Introduce wrappers around the
631         hash function calls.  Little code size optimization.
632         * crypt/sha256-crypt.c: Likewise.
633         * crypt/sha512-crypt.c: Likewise.
634         * scripts/check-local-headers.sh: Ignore nss3 directory.
636         * configure.in: Rename pic_default to libc_cv_pic_default.
637         * config.make.in: Likewise.
639 2009-04-01  Roland McGrath  <roland@redhat.com>
641         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
642         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
643         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
644         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
645         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
646         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
647         (R_SPARC_NUM): Update.
648         From Dave Miller <davem@davemloft.net>.
650 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
652         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
654 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
656         * elf/dl-open.c: Keep track of used name spaces and only iterate over
657         those which are used.
658         * elf/dl-addr.c: Likewise.
659         * elf/dl-caller.c: Likewise.
660         * elf/dl-fini.c: Likewise.
661         * elf/dl-iteratephdr.c: Likewise.
662         * elf/dl-libc.c: Likewise.
663         * elf/dl-load.c: Likewise.
664         * elf/dl-support.c: Likewise.
665         * elf/dl-sym.c: Likewise.
666         * elf/rtld.c: Likewise.
667         * sysdeps/generic/ldsodefs.h: Likewise.
669         * elf/dl-load.c: Remove support for systems without MAP_ANON.
670         * elf/dl-minimal.c: Likewise.
671         * elf/dl-misc.c: Likewise.
672         * elf/rtld.c: Likewise.
673         * sysdeps/generic/ldsodefs.h: Likewise.
675 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
677         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
678         Avoid reuse of complex expression.
680         * po/fr.po: Update from translation team.
682 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
684         * include/dirent.h: Yet more changes to match sort function type
685         change.
686         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
687         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
688         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
690 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
692         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
694 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
696         * nscd/connections.c (restart): Try to preserve the process name
697         by reading the /proc/self/exe symlink and using the return name.
698         Patch by Jeff Bastian <jbastian@redhat.com>.
700 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
702         [BZ #9733]
703         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
704         if we are not loading a new audit library.
705         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
706         Only use profiling trampoline for auditing if we are not relocating
707         an audit library.
708         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
709         * elf/rtld.c: Likewise.
710         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
712         * elf/rtld.c (dl_main): Extend help message for --audit option.
714         [BZ #9759]
715         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
716         alphasort64, versionsort, and versionsort64 to POSIX 2008.
717         * dirent/alphasort.c: Adjust implementation to type change.
718         * dirent/alphasort64.c: Likewise.
719         * dirent/scandir.c: Likewise.
720         * dirent/versionsort.c: Likewise.
721         * dirent/versionsort64.c: Likewise.
722         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
723         declaration.
724         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
725         declaration.
727         [BZ #9880]
728         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
729         correctly.  Set segleft member in output as required.
730         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
731         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
733         [BZ #9881]
734         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
735         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
736         * inet/Makefile (tests): Add tst-inet6_rth.
737         * inet/tst-inet6_rth.c: New file.
739         [BZ #5807]
740         * string/strlen.c (strlen): Fix omission in the expression to test
741         for NUL bytes.
743 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
745         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
747         * elf/dl-runtime.c (reloc_offset): Define.
748         (reloc_index): Define.
749         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
750         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
751         computing index from reloc_offset.
752         (_dl_call_pltexit): Likewise.
753         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
754         the relocation index to _dl_fixup.
755         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
756         _dl_call_pltexit.
757         * sysdeps/x86_64/dl-runtime.c: New file.
759         [BZ #9893]
760         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
761         alignment of La_x86_64_regs.  Store xmm parameters.
762         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
764         [BZ #9913]
765         * string/strverscmp.c (__strverscmp): Fix case of different digits
766         in fractional part of string.
767         Patch by Jingyu Liu <jyliu@fortinet.com>.
768         * string/Makefile (tests): Add tst-svc2.
769         * string/tst-svc2.c: New file.
771         * string/strverscmp.c (__strverscmp): Optimize size of tables.
773         * locale/iso-639.def: Add Min Nan.
775 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
777         [BZ #9948]
778         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
780 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
782         * elf/dl-sysdep.c (auxvars): Compress data structure.
784         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
785         STT_GNU_IFUNC handling.
786         (elf_machine_rela): Likewise.
788 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
790         * config.h.in (USE_MULTIARCH): Define.
791         * configure.in: Handle --enable-multi-arch.
792         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
793         (_dl_fixup_profile): Likewise.
794         * elf/do-lookup.c (dl_lookup_x): Likewise.
795         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
796         * elf/elf.h (STT_GNU_IFUNC): Define.
797         * include/libc-symbols.h (libc_ifunc): Define.
798         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
799         framework in init-arch.h to get CPUID values.
800         * sysdeps/x86_64/multiarch/Makefile: New file.
801         * sysdeps/x86_64/multiarch/init-arch.c: New file.
802         * sysdeps/x86_64/multiarch/init-arch.h: New file.
803         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
805         * config.make.in (experimental-malloc): Define.
806         * configure.in: Handle --enable-experimental-malloc.
807         * malloc/Makefile: Handle experimental-malloc flag.
808         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
809         * malloc/arena.c: Likewise.
810         * malloc/hooks.c: Likewise.
811         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
813 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
815         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
816         prediction.  A few size optimizations.
818 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
820         * time/tzset.c: Optimize a bit for size.
822 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
824         * include/stdio.h (fmemopen): Add libc_hidden_proto.
825         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
827         * elf/sprof.c: Avoid warning about multi-line comment.
829 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
831         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
832         DST name.
833         * time/tst-posixtz.c: Add tests for quoted timezone names.
835 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
837         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
838         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
839         200809L instead of 200112L.
840         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
841         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
843         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
844         instead of __quick_exit_funcs to __run_exit_handlers.
845         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
846         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
847         (__cxa_at_quick_exit): Remove attribute_hidden.
848         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
849         to __run_exit_handlers.
850         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
851         attribute_hidden.
853 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
855         * po/id.po: Update from translation team.
857 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
860         .machine push; .machine "power6" and .machine pop around mtfsf
861         insns outside of _ARCH_PWR6 define.
862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
863         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
864         Likewise.
865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
866         Likewise.
867         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
868         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
869         relax_fenv_state): Likewise.
871 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
873         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
874         cxa_at_quick_exit.
875         (static-only-routines): Add at_quick_exit.
876         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
877         GLIBC_2.10.
878         * stdlib/quick_exit.c: New file.
879         * stdlib/at_quick_exit.c: New file.
880         * stdlib/cxa_at_quick_exit.c: New file.
881         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
882         it appropriately.
883         (__internal_atexit): New function.
884         (__new_exitfn): Now takes parameter to point to the list to use.
885         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
886         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
887         (exit): ...here.  Just call __run_exit_handlers appropriately.
888         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
889         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
890         * stdlib/on_exit.c: Adjust call to __new_exitfn.
891         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
893         * po/id.po: Update from translation team.
895 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
897         * po/ru.po: Update from translation team.
899 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
901         * po/nl.po: Update from translation team.
903 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
905         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
906         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
907         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
908         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
909         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
910         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
911         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
913         * po/pl.po: Update from translation team.
915 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
917         [BZ #7083]
918         * sysdeps/unix/sysv/linux/fallocate.c: New file.
919         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
920         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
921         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
922         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
923         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
924         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
925         for GLIBC_2.10.
926         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
927         Add fallocate and fallocate64.
929         * io/fcntl.h: Pretty printing.
931 2009-03-02  Richard Guenther  <rguenther@suse.de>
933         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
934         attribute also for non-C99 inline semantics variant.
936 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
938         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
939         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
940         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
941         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
942         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
943         Likewise.
944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
945         Likewise.
947 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
949         * po/cs.po: Update from translation team.
951 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
953         * po/bg.po: Update from translation team.
954         * po/sv.po: Likewise.
955         * po/fi.po: Likewise.
956         * po/vi.po: Likewise.
958 2009-02-27  Roland McGrath  <roland@redhat.com>
960         * Makeconfig (%.v.i): Depend on Makeconfig.
961         Exclude % lines from initial #-comment removal.
963 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
965         * po/ko.po: Update from translation team.
967 2009-02-26  Roland McGrath  <roland@redhat.com>
969         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
970         avoids unused warning.
972 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
973             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
975         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
976         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
977         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
978         and asm/user.h.  Include asm/ptrace.h.
979         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
980         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
981         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
982         Undefine.
983         (start_thread): Don't undefine.
984         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
985         Define.
987 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
989         * wctype/wctype.h: The *_l functions are in POSIX 2008.
990         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
991         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
992         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
993         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
994         200112L to 200809L.
995         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
996         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
997         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
998         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
999         _SC_THREAD_ROBUST_PRIO_PROTECT.
1000         * posix/unistd.h: fexecve is in POSIX 2008.
1001         * time/time.h: strftime_l is in POSIX 2008.
1002         * io/sys/stat.h: futimens is in POSIX 2008.
1003         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
1004         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
1005         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
1006         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
1007         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
1008         open_memstream, and vdprintf are in POSIX 2008.
1010 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
1012         * include/features.h: Define macros for XPG7/POSIX 2008.
1013         * ctype/ctype.h: The *_l functions are in POSIX 2008.
1014         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
1015         POSIX 2008.
1016         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
1017         * locale/xlocale.h: Define locale_t type.
1018         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
1019         in POSIX 2008.  Don't define locale_t here.
1020         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
1021         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
1022         UTIME_OMIT only with __USE_ATFILE.
1023         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
1024         * stdio-common/psiginfo.c: New file.
1025         * stdio-common/psiginfo-data.h: New file.
1026         * stdio-common/psiginfo-define.h: New file.
1027         * stdio-common/Makefile (routines): Add psiginfo.
1028         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
1029         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1030         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1031         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1032         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1033         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1034         * io/sys/stat.h: Move mknodat definition into same conditional as
1035         mknod.
1036         * time/sys/time.h: futimesat is not among the functions accepted
1037         into the POSIX standard.
1039         * include/features.h: If no feature selection given and we select
1040         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
1041         * posix/Versions: Export __posix_getopt.
1042         * posix/getopt.c (_getopt_initialize): Take additional parameter.
1043         Use it to alternatively initialize __posixly_correct.
1044         (_getopt_internal_r): Take addition parameter.  Pass on to
1045         _getopt_initialize.
1046         (_getopt_internal): Take addition parameter.  Pass on to
1047         _getopt_internal_r.
1048         (getopt): Pass additional zero to _getopt_internal.
1049         (__posix_getopt): New function.
1050         * posix/getopt.h: Add redirection for getopt.
1051         * posix/getopt1.c (getopt_long): Pass additional zero to
1052         _getopt_internal.
1053         (getopt_long_only): Likewise.
1054         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
1055         (_getopt_long_only_r): Likewise.
1056         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
1057         _getopt_internal_r.
1059 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
1061         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
1062         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1063         * sysdeps/posix/sysconf.c (__sysconf): Handle
1064         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
1065         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1067 2009-02-24  Roland McGrath  <roland@redhat.com>
1069         [BZ #9895]
1070         * README.template: Reworded not to use substituted version number.
1071         Renamed to ...
1072         * README: ... here (no longer generated).
1073         * Makefile (README): Target removed.
1075 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
1077         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
1078         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
1079         instead.
1081         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
1083         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
1085 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
1087         * po/bg.po: Update from translation team.
1089 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
1091         * stdlib/monetary.h: Uglify function parameter names.
1092         * sunrpc/rpc/pmap_clnt.h: Likewise.
1093         * sunrpc/rpc/svc.h: Likewise.
1094         * sunrpc/rpc/xdr.h: Likewise.
1095         * sunrpc/rpc/clnt.h: Likewise.
1096         * resolv/netdb.h: Likewise.
1097         * resolv/arpa/nameser.h: Likewise.
1098         * resolv/resolv.h: Likewise.
1099         * argp/argp.h: Likewise.
1100         * locale/langinfo.h: Likewise.
1101         * io/sys/stat.h: Likewise.
1102         * posix/spawn.h: Likewise.
1103         * nis/rpcsvc/nislib.h: Likewise.
1104         * malloc/obstack.h: Likewise.
1105         * sysdeps/ia64/bits/link.h: Likewise.
1106         * sysdeps/i386/bits/link.h: Likewise.
1107         * sysdeps/s390/bits/link.h: Likewise.
1108         * sysdeps/powerpc/bits/link.h: Likewise.
1109         * sysdeps/x86_64/bits/link.h: Likewise.
1110         * sysdeps/sparc/bits/link.h: Likewise.
1111         * sysdeps/sh/bits/link.h: Likewise.
1112         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
1113         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
1114         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
1115         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
1117 2008-12-01  Fredrik Unger  <fred@tree.se>
1119         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
1120         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
1121         _FP_UNPACK_RAW_2, fix up first argument.
1123 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
1125         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
1126         (GET_NPROCS_PARSER): Change parameters and use next_line.
1127         (__get_nprocs): Rewrite to not use stdio routines.
1128         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
1129         Change parameters and use next_line.
1131 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
1133         [BZ #5381]
1134         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
1135         Change mempool_alloc prototype.
1136         * nscd/mem.c (gc): Don't handle mem_in_flight.
1137         (mempool_alloc): Third parameter now only indicates whether this is the
1138         first call (to allocate data) or not.  If it is, get db rdlock.
1139         Release it on error.  Don't handle mem_in_flight.
1140         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
1141         Adjust third parameter of mempool_alloc calls.
1142         Nothing to do here in case mempool_alloc fails.
1143         Avoid local variable shadowing parameter.  No need to get db rdlock
1144         before calling cache_add.
1145         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
1146         no mem_in_flight array anymore.
1147         * nscd/connections.c: Remove definition and handling of mem_in_flight.
1148         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
1149         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
1150         in case mempool_alloc fails. No need to get db rdlock before calling
1151         cache_add.
1152         * nscd/hstcache.c (cache_addhst): Likewise.
1153         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1154         * nscd/servicescache.c (cache_addserv): Likewise.
1155         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
1157 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
1159         * po/lt.po: Update from translation team.
1161 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
1163         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
1164         defined, allow additional data to be added using the optional
1165         MORE_ELF_HEADER_DATA macro.
1166         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
1167         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
1169 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
1171         * include/atomic.h: Define catomic_and if not already defined.
1172         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
1173         * sysdeps/i386/i486/bits/atomic.h: Likewise.
1175 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
1177         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
1178         Change all callers.
1179         (_int_realloc): Likewise.  Third argument is now padded size
1180         All _int_* functions are now static.
1182         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
1183         * malloc/arena.c: Likewise.
1184         * include/malloc.h: Remove now unnecessary declarations of the _int_*
1185         functions.
1187         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
1188         easily.
1190         * malloc/malloc.c: Add branch prediction for use of the hooks.
1192         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
1194 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1196         [BZ #7095]
1197         * bits/confname.h: Add SUSv7 macros for getconf environments.
1198         * bits/environments.h: Likewise.
1199         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
1200         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
1201         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
1202         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
1203         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
1204         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
1205         * posix/getconf.c: Likewise.
1206         * posix/sysconf.c: Likewise.
1207         * sysdeps/posix/sysconf.c: Likewise.
1208         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
1209         environments.
1211 2009-01-16  Petr Baudis  <pasky@suse.cz>
1213         [BZ #9753]
1214         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
1215         even if we currently have zero nscount.
1217 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1219         [BZ #9781]
1220         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
1221         the input line is too long.
1223         * po/Makefile (libc.pot): Add f_print as function taking c-format
1224         parameter.
1226         * debug/xtrace.sh: Unify translatable messages.
1227         * elf/ldd.bash.in: Likewise.
1228         * elf/sprof.c: Likewise.
1229         * locale/programs/locale.c: Likewise.
1230         * malloc/memusage.sh: Likewise.
1231         * nss/getent.c: Likewise.
1233 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
1235         * debug/pcprofiledump.c (print_version,
1236         argp_program_version_hook): New function.
1237         * elf/ldconfig.c (more_help): New function.
1238         (argp): Use it.
1239         * elf/sln.c (usage): New function.
1240         (main): Support --help and --version.
1241         * malloc/memusagestat.c (print_version): New function.
1242         (argp_program_version_hook): New variable.
1243         * nscd/nscd.c (more_help): New function.
1244         (argp): Use it.
1245         * posix/getconf.c (main): Send --version output to stdout.
1246         Support --help.
1247         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
1248         arguments.  All callers changed.
1249         (print_version): New function.
1250         (parseargs): Support --help and --version.
1251         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
1252         changed.
1253         (print_version): New function.
1254         (main): Use getopt_long.  Support --help and --version.
1255         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
1256         --version.
1258 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1260         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
1261         (update_data): Fix handling of wrapping back
1262         to the beginning of the buffer.
1264         [BZ #9823]
1265         * stdio-common/psignal.c (psignal): Fix test for empty string.
1267 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
1269         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
1270         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
1271         move _null_auth to .rodata.
1273         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
1274         value of 24.
1276         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
1278         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
1279         today than when the original code was written.  Use larger
1280         buffers.  This also makes it unnecessary to have stat information,
1281         if this causes extra efforts.
1282         (__opendir): In case O_DIRECTORY works, don't call fstat just for
1283         __alloc_dir.
1285 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
1287         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
1288         is set.
1289         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
1290         * sysdeps/sh/sh4/__longjmp.S: Likewise.
1291         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
1292         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
1293         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
1294         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1296 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
1298         * po/ru.po: Update from translation team.
1300 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
1302         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
1303         Add _tid slot to maintain consistency with kernel.
1305 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
1307         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
1308         incomplete characters at end of input buffer.
1309         * libio/Makefile (tests): Add tst-fgetwc.
1310         * libio/tst-fgetwc.c: New file.
1311         * libio/tst-fgetwc.input: New file.
1313 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
1315         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
1317 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
1319         [BZ #9793]
1320         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
1321         *OUTBUFSTART unless the whole output fit into the buffer.
1322         * iconv/Makefile (tests): Add tst-iconv4.
1323         * iconv/tst-iconv4.c: New file.
1325 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
1327         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
1328         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1330 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
1332         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
1333         newer linker scripts.
1335 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
1337         [BZ #7040]
1338         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
1339         inotify_rm_watch should have type int.
1341 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
1343         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1344         Make aligned_restore_vmx a local symbol.
1345         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
1346         Likewise.
1348 2009-01-30  Andreas Jaeger  <aj@suse.de>
1350         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
1351         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
1352         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
1353         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
1354         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
1355         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
1356         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
1358 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
1360         [BZ #9726]
1361         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
1362         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
1364 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
1366         [BZ #9726]
1367         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1368         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1370         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1372 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
1374         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
1375         memcpy instead of memcmp.
1376         (_dl_setup_pointer_guard): Likewise.
1378 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
1380         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
1381         manipulated brk, use malloc_printerr.
1382         * misc/sbrk.c (__sbrk): Better error handling for nonsense
1383         requests.
1385 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
1387         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
1388         rindex): For C++ add inlines so that they can be recognized as
1389         builtins.
1390         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
1392 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
1393             Jakub Jelinek  <jakub@redhat.com>
1395         * string/string.h: Define correct C++ prototypes for gcc 4.4.
1396         * wcsmbs/wchar.h: Likewise.
1398 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
1400         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
1401         (stackinfo_sub_sp): Define.
1403 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
1405         [BZ #9750]
1406         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
1407         * include/alloca.h (alloca_account): Define.
1408         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
1409         (stackinfo_sub_sp): Define.
1411         * nscd/connections.c (nscd_init): If database file access fails
1412         check whether this is due to permission problems and bail in that
1413         case.
1415         [BZ #9741]
1416         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
1417         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
1419 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1421         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
1422         Add "t" to clobber list.
1423         (INTERNAL_SYSCALL_NCS): Likewise.
1425 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
1427         * nss/getent.c (print_networks): Don't print comma between aliases.
1429 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
1431         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
1433         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
1434         the hash table.
1435         * misc/Makefile (tests): Add bug-hsearch1.
1436         * misc/bug-hsearch1.c: New file.
1438 2009-01-22  Roland McGrath  <roland@redhat.com>
1440         * Makeconfig (%.v.i): Strip trailing # comments,
1441         not only whole-line comments.
1443 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
1445         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
1446         one parameter.  If non-NULL use it to initialize return value.
1447         (_dl_setup_pointer_guard): New function.
1448         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1449         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
1450         * elf/rtld.c (security_init): Pass _dl_random to
1451         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
1452         pointer_chk_guard.
1453         * elf/dl-sysdep.c (_dl_random): New variable.
1454         (_dl_sysdep_start): Handle AT_RANDOM.
1455         (_dl_show_auxv): Likewise.
1456         * elf/dl-support.c (_dl_random): New variable.
1457         (_dl_aux_init): Handle AT_RANDOM.
1458         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
1459         to _dl_setup_stack_chk_guard.
1461         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
1463 2009-01-10  Roland McGrath  <roland@redhat.com>
1465         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
1467 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
1469         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
1471         [BZ #9706]
1472         * nss/nss_files/files-parse.c (strtou32): New function.
1473         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
1474         across 32-bit and 64-bit platforms.
1475         (INT_FIELD_MAYBE_NULL): Likewise.
1477 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
1479         [BZ #9720]
1480         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
1481         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
1482         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
1483         Likewise.
1485 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
1487         [BZ #697]
1488         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
1489         being NULL also if there are no backreferences.
1490         * posix/rxspencer/tests: Add testcases.
1492 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
1494         [BZ #9697]
1495         * posix/bug-regex17.c: Add testcases.
1496         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
1497         handling.
1499 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1501         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
1502         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
1503         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
1504         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
1505         for elf subdir.
1506         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
1507         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
1508         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
1509         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
1510         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
1511         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1513 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
1515         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
1516         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
1517         re_string_skip_chars, re_string_reconstruct): Likewise.
1518         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
1520 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
1522         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
1523         adjust the buffer alignment.
1525 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1527         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
1528         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
1529         net/route.h.
1531         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
1532         flavor to description only when flavor is not NULL.
1534         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
1535         mutex after SIGIO/SIGURG lookup loop.
1537 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1539         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
1541 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
1543         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
1544         handling.
1546 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
1548         * sysdeps/unix/sysv/linux/kernel-features.h
1549         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
1551         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
1552         if no output is written.
1554         * version.h: Bump to 2.10 development.
1556         * posix/getconf.c: Update copyright year.
1557         * nss/getent.c: Likewise.
1558         * iconv/iconvconfig.c: Likewise.
1559         * iconv/iconv_prog.c: Likewise.
1560         * elf/ldconfig.c: Likewise.
1561         * catgets/gencat.c: Likewise.
1562         * csu/version.c: Likewise.
1563         * elf/ldd.bash.in: Likewise.
1564         * elf/sprof.c (print_version): Likewise.
1565         * locale/programs/locale.c: Likewise.
1566         * locale/programs/localedef.c: Likewise.
1567         * nscd/nscd.c (print_version): Likewise.
1568         * debug/xtrace.sh: Likewise.
1569         * malloc/memusage.sh: Likewise.
1570         * malloc/mtrace.pl: Likewise.
1571         * debug/catchsegv.sh: Likewise.
1573 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
1575         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
1576         script.
1578 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
1580         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
1581         gethostbyname4_r function call succeeded, just leave the loop.
1583         [BZ #9694]
1584         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
1585         very end.
1586         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
1587         * wctype/Makefile (tests): Add bug-wctypeh.
1588         * wctype/bug-wctypeh.c: New file.
1590         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
1591         LOCALDOMAIN is defined.
1592         * nscd/nscd_getai.c (__nscd_getai): Likewise.
1594         * sysdeps/x86_64/bits/select.h: New file.
1596         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
1598 2008-12-21  Bruno Haible  <bruno@clisp.org>
1600         [BZ #9677]
1601         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
1602         if no output is written.
1604 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
1606         * login/utmp_file.c (pututline_file): Replace call to dup2 with
1607         libc internal symbol __dup2 to avoid access through the PLT.
1609 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
1611         [BZ #6545]
1612         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
1613         available only for __USE_GNU.
1615         * inet/Makefile (tests): Add tst-getni2.
1616         * inet/tst-getni2.c: New file.
1618         [BZ #7080]
1619         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
1620         NULL when NI_NAMEREQD is set.
1621         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1622         * inet/Makefile (tests): Add tst-getni1.
1623         * inet/tst-getni1.c: New file.
1625 2008-12-03  Petr Baudis  <pasky@suse.cz>
1627         [BZ #7067]
1628         * nscd/connections.c (invalidate_cache): Use prune_run_lock
1629         instead of prune_lock.
1630         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
1631         * nscd/nscd.h (database_dyn): Add prune_run_cache.
1633 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
1635         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
1636         use.
1638         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
1639         handling.
1641         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
1642         after reading name server list.
1644         [BZ #7058]
1645         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
1646         handling for host name aliases.
1648 2008-11-24  Arkadiusz Miśkiewicz  <arekm@maven.pl>
1650         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
1651         instead of doing things manually.
1653 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
1655         * posix/regex_internal.h (build_wcs_upper_buffer):
1656         Return type is reg_error_t.
1658 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
1660         * posix/globtest.sh: Use mktemp to create temporary file and
1661         directory.
1663         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
1664         sets correctly.
1665         (__CPU_CLR_S): Likewise.
1666         (__CPU_ISSET_S): Likewise.
1668 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
1669             Ulrich Drepper  <drepper@redhat.com>
1671         * scripts/firstversion.awk: Use custom comparison function to compare
1672         version numbers.
1673         * scripts/versions.awk: Use sort invocation which can handle
1674         multi-digit sub-version numbers.
1676 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
1678         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
1679         * locale/iso-639.def: Add Chhattisgarhi entry.
1681 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
1683         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
1684         ESRCH return value.
1685         (_nss_dns_gethostbyname4_r): Likewise.
1686         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
1687         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
1688         gethostbyname4_r, we don't have a separate IPv6 status, so copy
1689         the no_data variable.
1691         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
1692         information at the correct index.
1694         * socket/sys/socket.h: Declare accept4.
1695         * socket/accept4.c: New file.
1696         * sysdeps/unix/sysv/linux/accept4.c: New file.
1697         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
1698         * socket/Makefile (routines): Add accept4.
1699         * socket/Versions: Export accept4 with version GLIBC_2.10.
1700         * socket/paccept.c: Removed.
1701         * sysdeps/unix/sysv/linux/paccept.c: Removed.
1702         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
1703         * Versions.def: Define GLIBC_2.10 for libc.
1704         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
1706         * nscd/connections.c: Use accept4.
1708         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
1710 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
1712         * resolv/res_send.c (send_dg): Create sockets with non-blocking
1713         flag already set.
1715         * stdlib/setenv.c (unsetenv): Don't search environment if it does
1716         not exist.
1717         * stdlib/Makefile (tests): Add tst-unsetenv1.
1718         * stdlib/tst-unsetenv1.c: New file.
1720 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
1722         * login/utmp_file.c (file_writable): New variable.
1723         (setutent_file): Don't try to open file for writing.
1724         (pututline_file): Before writing, make descriptor writable if
1725         necessary.
1727 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
1729         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
1730         to IPv4 or IPv6 if an interface has been found.
1732 2008-11-26  Roland McGrath  <roland@redhat.com>
1734         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
1735         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
1737         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
1738         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
1739         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
1741         * elf/elf.h (NT_386_IOPERM): New macro.
1742         (NT_PPC_VSX): New macro.
1744 2008-11-25  Roland McGrath  <roland@redhat.com>
1746         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
1747         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
1748         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
1749         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
1750         Subdirectories moved to ports repository.
1751         * configure.in (base_machine): Remove alpha case.
1753 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
1755         * sysdeps/mach/strerror_l.c: New file.
1757 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
1759         [BZ #6411]
1760         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
1761         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
1762         magic numbers.
1763         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
1764         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
1765         (relax_fenv_state): Same as above.
1766         (FPSCR_29): Reserve bit in ISA 2.05.
1767         (FPSCR_NI): Provide define for compat.
1768         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
1769         magic numbers.
1770         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
1771         magic numbers.
1772         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
1773         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
1774         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
1775         access to hwcap to account for hwcap size increase to uint64_t.
1776         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
1777         Likewise.
1778         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
1779         (*setcontext): Likewise.
1780         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1781         New file.
1782         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1783         New file.
1784         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1785         (*setcontext): dynamically select mtfsf insn based on
1786         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1787         increase to uint64_t.
1788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1789         (*swapcontext): dynamically select mtfsf insn based on
1790         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
1791         increase to uint64_t.
1792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1793         New file.
1794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1795         New file.
1796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1797         (*setcontext): dynamically select mtfsf insn based on
1798         PPC_FEATURE_HAS_DFP.
1799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1800         (*swapcontext): dynamically select mtfsf insn based on
1801         PPC_FEATURE_HAS_DFP.
1803 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
1805         * version.h: Bump for 2.9 release.
1806         * include/features.h (__GLIBC_MINOR__): Bump to 9.
1808         [BZ #7029]
1809         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
1810         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
1811         all the rounding.
1813 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
1815         [BZ #7009]
1816         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
1817         unknown request types for now.
1819 2008-11-11  Roland McGrath  <roland@redhat.com>
1821         * sysdeps/x86_64/configure: New file.
1823         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
1824         * configure: Regenerated.
1826 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1828         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
1829         correct instruction to remove the stack frame.
1831 2008-11-03  Michael Matz  <matz@suse.de>
1833         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
1834         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
1836 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
1838         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
1839         Remove.
1841         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
1842         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
1843         of the thread variable instead of void *.
1844         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
1845         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
1846         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1847         __libc_tsd_define arguments.
1848         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
1849         __libc_tsd_address arguments.  Remove union hack.
1850         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
1851         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
1852         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
1853         Adjust __libc_tsd_{set,get} arguments.
1854         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1855         __libc_tsd_define arguments.
1856         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
1857         arguments.
1858         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1859         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
1860         (LOCALE): Adjust __libc_tsd_define arguments.
1861         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
1862         arguments.
1863         (LOCALE): Adjust __libc_tsd_define arguments.
1864         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
1865         arguments.
1866         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
1867         arguments.
1869 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
1871         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
1872         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1874 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
1876         [BZ #6966]
1877         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
1879 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
1880             Ulrich Drepper  <drepper@redhat.com>
1882         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
1883         definition for GCC 3.1 and later.
1885 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
1887         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
1888         refetch dtv, as it might have changed.
1889         * elf/Makefile: Add rules to build and run tst-tls18.
1890         * elf/tst-tls18.c: New test.
1891         * elf/tst-tlsmod18a.c: New file.
1893 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
1895         [BZ #6875]
1896         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
1898 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
1900         [BZ #6867]
1901         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
1903         [BZ #6919]
1904         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
1905         Fix length of copy operation.
1907 2008-10-02  Pierre Habouzit <madcoder@debian.org>
1909         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
1910         and fix its calling convention.
1912 2008-10-07  Andreas Schwab  <schwab@suse.de>
1914         [BZ #6942]
1915         * resolv/res_send.c (send_vc): Fix last change.
1916         (send_dg): Align here as well.
1918 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
1920         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
1921         return value in case rlimit is RLIM_INFINITY.
1923         [BZ #6947]
1924         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
1925         for UL_SETFSIZE.
1926         * resource/Makefile (tests): Add bug-ulimit1.
1927         * resource/bug-ulimit1.c: New file.
1929         [BZ #6974]
1930         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
1931         without dot.  Properly terminate the string with a null byte.
1932         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
1934         [BZ #6980]
1935         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
1936         negative sizees.
1937         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
1938         negative __size.
1940         [BZ #6995]
1941         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
1943 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
1945         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
1946         abort if there is no initgroups_dyn function.
1948         * resolv/res_send.c (send_dg): On timeout, only return nonzero
1949         result if any of the queries really provided an answer.
1951 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
1953         * po/lt.po: Update from translation team.
1955 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
1957         * po/id.po: Update from translation team.
1959 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
1961         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
1962         Fix tests for existence of second reply.
1964 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
1966         * po/id.po: New file.
1967         Contributed by the Indonesian translation team.
1969 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
1971         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
1972         initialization.
1974 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
1976         * elf/Makefile: Add rules to build and run tst-tls17.
1977         * elf/tst-tls17.c: New test.
1978         * elf/tst-tlsmod17a.c: New file.
1979         * elf/tst-tlsmod17b.c: Likewise.
1981 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
1983         * stdlib/divmod_1.c: Use correct type for dummy variable.
1984         * stdlib/mod_1.c: Likewise.
1986 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
1988         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
1990 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
1992         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
1993         __nonnull order for C++.
1994         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
1995         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
1997 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
1999         * stdlib/longlong.h: Update from GCC.
2001 2008-10-09  Jakub Jelinek <jakub@redhat.com>
2002             David S. Miller  <davem@davemloft.net>
2004         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
2005         make sure any registers used with 64-bit 'branch-on-register'
2006         instructions have their top 32-bits clear.
2007         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
2008         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
2010 2008-09-18  Andreas Schwab  <schwab@suse.de>
2012         [BZ #6942]
2013         * resolv/res_send.c (send_vc): Fix use of unaligned address.
2014         Properly handle partial reads.
2016 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
2018         * elf/elf.h (STO_MIPS_PLT): New.
2019         (R_MIPS_COPY): New.
2020         (R_MIPS_JUMP_SLOT): New.
2021         (R_MIPS_NUM): Redefine to 128.
2022         (DT_MIPS_PLTGOT): New.
2023         (DT_MIPS_RWPLT): New.
2024         (DT_MIPS_NUM): Redefine to 0x35.
2026 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
2028         * timezone/africa: Update from tzdata2008f.
2029         * timezone/asia: Likewise.
2030         * timezone/australasia: Likewise.
2031         * timezone/europe: Likewise.
2032         * timezone/leapseconds: Likewise.
2033         * timezone/northamerica: Likewise.
2034         * timezone/southamerica: Likewise.
2035         * timezone/zone.tab: Likewise.
2037 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
2039         * nscd/connections.c: Disable use of paccept for now.
2041 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
2043         * socket/Versions: Remove paccept export for GLIBC_2.9.
2044         * socket/Makefile (routines): Remove paccept.
2045         * socket/sys/socket.h: Remove paccept declaration.
2047         * po/sv.po: Update from translation team.
2049 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
2051         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
2052         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2054 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
2056         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
2057         Patch by Olivier Fourdan <ofourdan@redhat.com>.
2059 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
2061         * sunrpc/rpc/svc.h: Declare svcfd_create.
2062         Patch by Michael Solberg <msolberg@redhat.com>.
2064 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
2065             Ulrich Drepper  <drepper@redhat.com>
2067         * malloc/malloc.c (public_vALLOc): Try other arenas in case
2068         _int_valloc fails.
2069         (public_pVALLOc): Likewise.
2071 2008-09-02  Andreas Jaeger  <aj@suse.de>
2073         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
2074         commit.
2076 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
2078         [BZ #6860]
2079         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
2081 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
2083         * Makefile (check-data): Check data directory in add-ons.
2084         * elf/Makefile (check-data): Likewise.
2086 2008-08-18  Roland McGrath  <roland@redhat.com>
2088         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
2089         * configure: Regenerated.
2090         * config.make.in (cflags-cpu): New substituted variable.
2091         (with-cpu): Variable removed.
2092         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
2094 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
2096         [BZ #6845]
2097         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
2098         __signbitl definition and __LONG_DOUBLE_128__ guard from:
2099         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
2100         redundant.  Functions which call floating point assembler operations
2101         should go into a sysdeps powerpc/fpu directory.
2103 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
2105         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
2106         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2108 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
2110         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
2112         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
2113         change related to AT_EXECFN.  We cannot use that string.
2114         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
2115         _dl_execfn member.
2116         * elf/dl-support.c: Remove _dl_execfn variable.
2117         (_dl_aux_init): Remove handling of AT_EXECFN.
2118         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
2119         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
2121 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
2123         [BZ #6544]
2124         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
2125         byte gets added to writes and seeks from the end use the length of
2126         the buffer and not the currently terminating NUL byte.
2128         [BZ #6634]
2129         * login/utmp_file.c (getutent_r_file): Take additional parameter.
2130         Set to true if locking failed.
2131         (getutid_r_file): Adjust caller.
2132         (pututline_file): Likewise.  Return NULL in this case.
2133         Patch mostly by halesh.s@gmail.com.
2135 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
2137         [BZ #6589]
2138         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
2139         Define.
2140         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
2142 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
2144         [BZ #6839]
2145         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
2146         macro since it is now available in elf/dynamic-link.h.
2148 2008-08-12  Roland McGrath  <roland@frob.com>
2150         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
2151         in case used outside of libc.
2152         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
2154 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
2156         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
2157         directly instead of going through dn_comp.
2159 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
2161         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2162         Fix asm constraints.
2164 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
2166         [BZ #6790]
2167         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
2168         (IPV6_PMTUDISC_PROBE): Likewise.
2170 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
2172         [BZ #6791]
2173         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
2175 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
2176             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2178         [BZ #6817]
2179         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
2180         Added the members 'vsx' and 'arch_2_06'.
2181         (_dl_powerpc_platforms): Add the member 'power7'.
2182         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
2183         to reflect the changes required by VSX and ISA 2.06.
2184         Modify _DL_PLATFORMS_COUNT to reflect the addition of
2185         'power7'.
2186         Defined PPC_PLATFORM_POWER7.
2187         (_dl_string_platform): Add support for POWER7.
2188         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
2189         capability and ISA 2.06.
2191 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
2193         [BZ #6824]
2194         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
2195         macro to detect use of 128 bit long double.
2196         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
2198 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
2200         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
2202         [BZ #5794]
2203         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
2204         parameters.
2205         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2206         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2208 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
2210         * nscd/connections.c (main_loop_poll): Pass a buffer which is
2211         guaranteed to be large enough to read inotify event.  Ignore
2212         EAGAIN error.  Better error message.  Add branch predicition.
2213         (main_loop_epoll): Likewise.
2215 2008-08-02  Roland McGrath  <roland@frob.com>
2217         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2218         Add memory clobbers.
2220 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
2222         * manual/arith.texi: Avoid @strong{Note:}.
2223         * manual/creature.texi: Likewise.
2224         * manual/filesys.texi: Likewise.
2225         * manual/math.texi: Likewise.
2226         * manual/memory.texi: Likewise.
2227         * manual/resource.texi: Likewise.
2228         * manual/syslog.texi: Likewise.
2229         * manual/time.texi: Likewise.
2231         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
2232         to prevent warning.
2234 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
2236         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
2237         new epoll_create1 interface.
2238         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2239         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
2240         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2242         * include/arpa/nameser.h (NS_GET16): Use const pointer.
2243         (NS_GET32): Likewise.
2245         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
2246         syscalls, too.
2248         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
2249         use the AT_EXECFN value if it is no absolute path.
2250         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
2251         __ASSUME_AT_EXECFN.
2253         * Versions.def: Add GLIBC_2.9 to libresolv.
2254         * include/resolv.h: Remove hidden proto declarations for __ns_*
2255         functions.  Add them for __dn_count_labels and __p_secstodate.
2256         * include/arpa/nameser.h: Add a number of hidden proto declarations.
2257         Define ns_msg_getflags macro here.
2258         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
2259         and __p_secstodate.
2260         * resolv/Versions: Export functions from <arpa/nameser.h> from
2261         libresolv in version GLIBC_2.9.
2262         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
2263         hidden definitions.
2264         * resolv/ns_netint.c: Likewise.
2265         * resolv/ns_parse.c: Likewise.
2266         * resolv/ns_print.c: Likewise.
2267         * resolv/ns_samedomain.c: Likewise.
2268         * resolv/ns_ttl.c: Likewise.
2269         * resolv/arpa/nameser_compat.h: Likewise.
2270         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
2271         function calls.
2272         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
2273         instead of ns_get16.
2274         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
2275         __ns_get32 instead of ns_get16 and ns_get32 respectively.
2276         (gaih_getanswer_slice): Likewise.
2277         * resolv/Makefile (libresolv-routines): Add ns_date.
2278         * resolv/ns_date.c: New file.
2280         * elf/Makefile (check-localplt.out): Also check libresolv and
2281         libcrypt.
2283 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
2285         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2286         __ASSUME_O_CLOEXEC.
2288 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
2290         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
2291         buffer passed to NSS functions.
2293         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
2295         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
2296         Define.
2298         * misc/syslog.c (openlog_internal): Fix compile problem.
2300 2008-07-28  Roland McGrath  <roland@redhat.com>
2302         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
2304 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
2306         * io/ftw.c (add_object): Remove inline to avoid warning.
2308         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
2310         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
2311         Use it instead of locally defined resplen2 variable.
2312         (res_nsend): Adjust for __libc_res_nsend interface change.
2313         (send_vc): Initialize *resplen2 if necessary.  Read length of
2314         package into an appropriately aligned variable.  Store converted length
2315         in new variable and use it appropriately.
2316         Add branch prediction help.
2317         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
2318         and pass it on to __libc_res_nsend.  Adjust all callers.
2319         (__libc_res_nsearch): Likewise.
2320         (__libc_res_nqeurydomain): Likewise.
2321         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
2322         change.
2323         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
2324         Define resplen2 variable and pass it to __libc_res_nsearch and then
2325         to gaih_getanswer.
2326         (getanswer_r): In case of incorrect DNS data don't overread buffer.
2327         Add branch prediction.
2328         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
2329         (gaih_getanswer): Don't decode second slice if first one failed due
2330         to a too small buffer.  Don't let not found status of second
2331         decoder shadow results of the first.
2332         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
2333         and __libc_res_nquery interface changes
2334         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
2335         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
2336         __libc_res_nsearch, and __libc_res_nsend.
2337         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
2338         change.
2339         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
2340         __libc_res_nsearch interface changes.
2342 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
2344         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
2346         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
2347         file descriptors with close-on-exec set.
2348         (exec_comm_child): Fix the case where the write end of the pipe is
2349         STDOUT_FILENO already.  In case it is, clear close-on-exec.
2351         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
2352         * io/pipe2.c: Likewise.
2353         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
2354         instead of __ASSUME_PACCEPT.
2355         * include/unistd.h: Declare __have_pipe2.
2356         * libio/iopopen.c: Implement "e" flag.
2357         * libio/Makefile (tests): Add tst-popen1.
2358         * libio/tst-popen1.c: New file.
2360         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
2361         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2363 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
2365         [BZ #6771]
2366         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
2367         success call of _IO_SEEKOFF or calls which failed because the
2368         descriptor is for a pipe.
2370         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
2371         magic number.
2373         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
2375         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
2376         F_SETFD use if we know fopen set the flag.
2378         * login/utmp_file.c (setutent_file): Minor optimization in case
2379         O_CLOEXEC is available.
2381 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
2383         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
2384         * elf/Makefile: Use pie-ccflag variable.
2385         * nscd/Makefile: Likewise.
2386         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
2388 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
2390         [BZ #6724]
2391         * Versions.def: Add GLIBC_2.9 version tag for libutil.
2392         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
2393         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
2394         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
2395         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
2396         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
2397         utmp32, utmpx32 and login32.
2398         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
2399         versions of struct utmp functions to libc and libutil.
2400         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
2401         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
2402         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
2403         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
2404         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
2405         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
2406         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
2407         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
2408         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
2409         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
2410         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
2411         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
2412         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
2413         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
2414         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
2415         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
2416         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
2417         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
2418         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
2419         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
2420         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
2421         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
2423 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
2425         * scripts/gen-as-const.awk: Generate more widely usable code by
2426         using 64-bit arithmetic.
2428         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
2429         the same treatment as narrow output code in last patch.
2431         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
2433         [BZ #6763]
2434         * elf/dl-load.c (local_strdup): Remove inline.
2435         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
2436         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
2437         part of the object.
2439         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
2441 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
2443         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
2444         the new syscalls, too.
2446         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
2447         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
2449         [BZ #6698]
2450         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
2451         parameter for end of buffer.  If temporary copy is too large use
2452         malloc.
2453         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
2454         interface change.
2455         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
2456         string rewrite when allocating buffer.
2458         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
2459         syscalls, too.
2461         * nscd/connections.c (nscd_init): Clean up fcntl call.
2463         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
2464         SOCK_NONBLOCK if possible.
2466         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
2467         SOCK_CLOEXEC if available.
2469         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
2470         __libc_clntudp_bufcreate_internal.
2471         * include/sys/socket.h: Declare __have_sock_cloexec.
2472         * socket/Makefile (aux): Add have_sock_cloexec.
2473         * socket/have_sock_cloexec.c: New file.
2474         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
2475         __libc_clntudp_bufcreate.
2476         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
2477         which takes an additional parameter.  Create socket with non-blocking
2478         mode and close-on-exec flag set, if wanted.
2479         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
2480         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
2481         instead of clntudp_create.  The socket has already the close-on-exec
2482         flag set if SOCK_CLOEXEC is defined.
2484 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
2486         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2487         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
2488         appropriate.
2489         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
2490         non-blocking mode by using socket, paccept, and inotify_init1.
2492         * Versions.def (glibc): Add GLIBC_2.9.
2493         * io/Makefile (routines): Add dup3 and pipe2.
2494         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
2495         * io/dup3.c: New file.
2496         * io/pipe2.c: New file.
2497         * posix/unistd.h: Declare dup3 and pipe2.
2498         * socket/Makefile (routines): Add paccept.
2499         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
2500         * socket/paccept.c: New file.
2501         * socket/sys/socket.h: Declare paccept.
2502         * sysdeps/unix/syscalls.list: Add entry for dup3.
2503         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
2504         epoll_create2 and inotify_init1.
2505         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
2506         * sysdeps/unix/sysv/linux/paccept.c: New file.
2507         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
2508         possible.
2509         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
2510         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
2511         inotify_init1, and pipe2 entries.
2512         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
2513         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
2514         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
2515         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
2516         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
2517         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
2518         SOCK_NONBLOCK.
2519         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
2520         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
2521         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
2522         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
2523         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
2524         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
2525         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
2526         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
2527         EPOLL_NONBLOCK.  Declare epoll_create2.
2528         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
2529         EFD_NONBLOCK.
2530         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
2531         IN_NONBLOCK.  Declare inotify_init1.
2532         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
2533         SFD_NONBLOCK.
2534         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
2535         TFD_NONBLOCK.
2537         * elf/elf.h: Define AT_EXECFN.
2538         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
2539         LD_ORIGIN_PATH.
2540         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
2541         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
2542         if __ASSUME_AT_EXECFN is defined.
2543         (_dl_aux_init): Handle AT_EXECFN.
2544         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
2545         for 2.6.27 and up.
2546         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
2547         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
2548         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
2549         _dl_execfn if available and avoid compatibility code if
2550         __ASSUME_AT_EXECFN is defined.
2552         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
2553         _dl_discover_osversion only for older kernels.
2555 2008-07-22  Roland McGrath  <roland@frob.com>
2557         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
2559 2008-07-21  Roland McGrath  <roland@frob.com>
2561         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
2562         returned too much data out of line.
2564 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
2566         * locale/setlocale.c (setname): Remove inline to avoid compiler
2567         warning.
2569         [BZ #6712]
2570         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
2572 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
2574         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
2575         doesn't manage to write anything, fail.
2577         * malloc/hooks.c (__malloc_check_init): Remove printf.
2579 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2581         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
2583 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
2585         * nscd/connections.c (main_loop_poll): Fix handling of read errors
2586         from inotify.
2587         (main_loop_epoll): Likewise.
2589 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
2591         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
2593         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
2594         if DEBUG is defined.
2596         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
2597         query.  Adjust buffer size computation for padding.
2599 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
2601         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
2602         * stdio-common/tst-setvbuf1.c: New file.
2603         * stdio-common/tst-setvbuf1.expect: New file.
2605         [BZ #6719]
2606         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
2607         when selecting fully-buffered stream.
2608         Patch by Wang Xin <wxinee@gmail.com>.
2610 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2612         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
2613         (__open_2): New function.
2614         (__open64_2): New alias to __open_2.
2615         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
2616         (__openat_2): New function.
2617         (__openat64_2): New alias to __openat_2.
2619 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
2621         [BZ #6723]
2622         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2624 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2626         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
2627         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
2628         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
2629         __hurd_dfail.
2630         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2631         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2632         * sysdeps/mach/hurd/send.c (__send): Likewise.
2633         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
2634         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
2636 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2638         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
2639         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2640         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2641         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
2642         * hurd/get-host.c (_hurd_get_host_config): Likewise.
2643         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
2645 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
2647         [BZ #6657]
2648         * time/strptime_l.c: Don't clear s.era_cnt after successful match
2649         of %EY.
2650         Patch by Petr Baudis.
2652 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
2654         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
2655         Patch by Peter Jones <pjones@redhat.com>.
2657 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
2659         [BZ #6654]
2660         * stdlib/canonicalize.c (__realpath): readlink can write too much
2661         into the buffer on platforms without PATH_MAX.
2663 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
2665         [BZ #6653]
2666         * posix/tst-regex.c (main): Rename to...
2667         (do_test): ... this. Remove cmdline option processing.
2668         (TIMEOUT): Define.
2669         (TEST_FUNCTION): Define.
2670         (CMDLINE_OPTIONS): Define.
2672 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
2674         [BZ #5210]
2675         * configure.in: Add -Werror to -fstack-protector test to catch
2676         unsupported architectures.
2677         Patch by Gilles Esponasse <g.esp@free.fr>.
2679 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
2681         * stdlib/tst-setcontext.c: Set back_in_main before exit if
2682         getcontext returns ENOSYS.
2684 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
2686         * nscd/connections.c (main_loop_poll): Fix test for read error.
2687         (main_loop_epoll): Likewise.
2689 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
2691         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
2692         better place so it is not called when nscd is used.
2694         * nscd/connections.c: Also recognize and handle changes to the
2695         resolver configuration file.
2697 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
2699         * time/strftime.c: Pass reference to tzset_called around to handle
2700         recursive calls.
2702         [BZ #6612]
2703         * time/strftime.c (__strftime_internal): Call tzset() only
2704         when printing timezone-dependent values.
2705         Based on a patch by Petr Baudis <pasky@suse.cz>.
2707         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
2708         unconditionally use second gaih_getanswer_slice result.
2710         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
2711         (getaddrinfo): RES must always be non-NULL.
2713 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
2715         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
2716         cr[34] registers.
2717         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2718         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2719         Likewise.
2720         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
2721         register.
2723 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
2725         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
2726         fields.
2727         * nscd/connections.c (inotify_fd): New variable.
2728         (nscd_init): Try to open an inotify descriptor.
2729         If successful, watch files for databases using inotify instead of
2730         having prune threads stat the files.
2731         (nscd_run_prune): Recognize clear_cache flag being set and call
2732         prune_cache appropriately.
2733         (main_loop_poll): Add inotify descriptor to wait set and handle the
2734         reported changes.
2735         (main_loop_epoll): Likewise.
2736         * nscd/cache.c (prune_cache): Don't stat files for databases if
2737         inotify is used.
2738         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
2739         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
2741         * nscd/grpcache.c (cache_addgr): Correctly compute size of
2742         fixed-size portion of the record.
2743         * nscd/servicescache.c (cache_addserv): Likewise.
2744         * nscd/pwdcache.c (cache_addpw): Likewise.
2745         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2747 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
2749         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
2750         out we don't use uninitialized memory.
2752         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
2753         the client.
2755 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
2757         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
2758         ignore T_DNAME messages.
2759         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
2761 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
2763         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
2764         Avoid segfault if first GETC returns eof/'\0'/'\n'.
2766 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
2768         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
2769         instead of portstr to nscd_getserv_r.  Patch by
2770         Roman Kagan <rkagan@mail.ru>.
2772 2008-05-26  Jim Meyering  <meyering@redhat.com>
2774         Remove more useless "if" tests before "free".
2775         * include/inline-hashtab.h (htab_delete): Likewise.
2776         * libio/freopen.c (freopen): Likewise.
2777         * libio/freopen64.c (freopen64): Likewise.
2778         * locale/programs/ld-collate.c (collate_read): Likewise.
2779         * misc/fstab.c (libc_freeres_fn): Likewise.
2780         * posix/glob.c (globfree): Likewise.
2782 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
2784         * string/Makefile (strop-tests): Add memmem.
2785         * string/test-memmem.c: New file.
2786         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
2787         (test_init): Size buf1 according to BUF1PAGES.
2789 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
2791         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
2792         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
2793         (CFLAGS-scanf17.c): New.
2794         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
2795         * stdio-common/scanf15.c (main): Likewise.
2796         * stdio-common/scanf16.c: New file.
2797         * stdio-common/scanf17.c: New file.
2799 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
2801         * resolv/res_send.c (send_dg): If we already have one of two
2802         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
2803         use the one answer insted of failing.
2805 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
2807         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
2808         being executed on PowerPC as the expected result exceeds IBM
2809         long double 128 __LDBL_MAX__.
2811 2008-05-21  Roland McGrath  <roland@redhat.com>
2813         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
2815         * Makefile (check-data): Use $(abi-name) before other guesses.
2816         Look in $(add-ons) dirs before scripts/data/.
2817         * elf/Makefile (check-data): Likewise.
2819         * scripts/soversions.awk: Grok ABI line.
2820         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
2821         Emit definition for abi-name variable.
2823 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
2825         * string/endian.h: Define new fixed-size hto* and *toh macros only
2826         if [__USE_BSD].
2828         * iconvdata/Depend: Add localedata.
2830 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2832         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
2834 2008-05-08  David S. Miller  <davem@davemloft.net>
2836         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
2837         HIDDEN_JUMPTARGET.
2838         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2839         (__SYSCALL_CLOBBERS): Remove %g* registers.
2840         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2841         (__SYSCALL_CLOBBERS): Likewise.
2842         * scripts/data/localplt-sparc-linux-gnu.data: New file.
2843         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
2845 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
2847         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2848         (CALL_ERRNO_LOCATION): Define.
2849         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2850         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2851         (CALL_ERRNO_LOCATION): Define.
2852         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2853         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
2854         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
2856 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
2858         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
2859         variable.
2861 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
2863         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
2864         (FIRST_FRAME_POINTER): Define.
2866 2008-05-09  David S. Miller  <davem@davemloft.net>
2868         * sysdeps/sparc/sparc64/backtrace.c: New file.
2870 2008-05-14  David S. Miller  <davem@davemloft.net>
2872         * sysdeps/sparc/machine-gmon.h: New file.
2873         * sysdeps/sparc/sparc-mcount.S: Likewise.
2874         * sysdeps/sparc/Makefile: Add sparc-mcount target to
2875         sysdep_routines in gmon directory.
2877 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
2879         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
2881 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
2883         * resolv/res_query.c (__libc_res_nquery): In case one of two
2884         answer was too short don't try to read that answer's header.
2886         * resolv/res_send.c (send_dg): In case of timeout and there are
2887         two queries and one has been answered, return value indicating
2888         success.
2890 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
2892         * nscd/cache.c (cache_add): Take additional parameter specifying
2893         whether this is in response of a cache refill.  Check alignment
2894         of package data.  Revamp waking of pruning thread.
2895         (prune_cache): Small optimization.
2896         * nscd/nscd.h: Adjust cache_add prototypes.
2897         * nscd/aicache.c: Adjust cache_add calls.
2898         * nscd/grpcache.c: Likewise.
2899         * nscd/hstcache.c: Likewise.
2900         * nscd/initgrcache.c: Likewise.
2901         * nscd/pwdcache.c: Likewise.
2902         * nscd/servicescache.c: Likewise.
2903         * nscd/connections.c (restart): Really disable cache use before
2904         exec attempt.  If it fails, reenable cache.
2905         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
2906         time to max to be able to notice concurrent cache additions.  Unlock
2907         prune_lock while performing gc.  Afterwards compute wakeup time with
2908         current wakeup_time value in mind.
2910 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
2912         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
2914         * nscd/mem.c (gc): Correctly determine highest used array element
2915         in mark.
2917         * nscd/mem.c (markrange): Add assert to check entries are all
2918         aligned.  Small cleanup in bitmap use.
2920         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
2921         blockoff of type nscd_ssize_t.
2922         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
2923         (mempoll_alloc): Record block offset and not address.
2925         * nscd/mem.c (gc): Fix test for stack overuse.
2927         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
2928         more asserts.
2930         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
2931         entry is available, believe it.
2933         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
2934         no answers return NSS_STATUS_NOTFOUND.
2935         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
2936         buffer does not have any content.
2938 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
2940         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
2942         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
2943         lookup, don't assign canon unconditionally.
2945 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
2947         * string/Makefile (distribute): Add str-two-way.h.
2949 2008-03-29  Eric Blake  <ebb9@byu.net>
2951         Rewrite string searches to O(n) rather than O(n^2).
2952         * string/str-two-way.h: New file.  For linear fixed-allocation
2953         string searching.
2954         * string/memmem.c: New implementation.
2955         * string/strstr.c: New implementation.
2956         * string/strcasestr.c: New implementation.
2958 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
2960         * posix/regcomp.c (optimize_utf8): Add a note on why we test
2961         opr.ctx_type.
2962         (calc_first): Initialize constraint field.
2963         (duplicate_node_closure): Use it instead of special casing ANCHORS.
2964         Use search_duplicated_node to avoid loops.  Fix grammar.
2965         (duplicate_node): Merge constraint field for all node types.
2966         (calc_eclosure_iter): Look at constraint field for all node types.
2967         * posix/regex_internal.c (create_cd_newstate): Don't look at
2968         create_cd_newstate.
2970 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
2972         [BZ #6428]
2973         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
2975         [BZ #6442]
2976         * string/endian.h: Add macros for fixed-size endian conversion.
2977         * bits/byteswap.h: Allow inclusion from <endian.h>.
2978         * sysdeps/i386/bits/byteswap.h: Likewise.
2979         * sysdeps/ia64/bits/byteswap.h: Likewise.
2980         * sysdeps/s390/bits/byteswap.h: Likewise.
2981         * sysdeps/x86_64/bits/byteswap.h: Likewise.
2982         * string/Makefile (tests): Add tst-endian.
2983         * string/tst-endian.c: New file.
2985         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
2986         Patch by Reuben Thomas.
2988 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
2990         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
2992 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
2994         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
2996         [BZ #6461]
2997         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
2998         Add missing braces.
2999         (BODY for __gconv_transform_internal_ascii): Likewise.
3001         [BZ #6472]
3002         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
3003         to be treated like link-local addresses.
3004         (match_prefix): Don't treat IPv4 loopback address special when
3005         converting to v4 mapped addressed.
3007         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
3008         if necessary.
3009         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
3010         * posix/tst-rfc3484-2.c: Likewise.
3011         * posix/tst-rfc3484-3.c: Likewise.
3013         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
3014         and SCTP.
3016         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
3018         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
3020         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
3022 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
3024         * po/lt.po: New file.  From Lituanian translation team.
3026 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
3028         Introduce TLS descriptors for i386 and x86_64.
3029         * include/inline-hashtab.h: New file, copied from 2005's
3030         libiberty, with fix for memory leak imported afterwards by
3031         Glauber de Oliveira Costa.
3032         * elf/tlsdeschtab.h: New file.
3033         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
3034         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
3035         (CHECK_STATIC_TLS): Move to...
3036         * elf/dynamic-link.h: ... this file.
3037         (TRY_STATIC_TLS): New macro.
3038         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
3039         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
3040         R_386_TLS_DESC): Define.
3041         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
3042         binutils.
3043         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
3044         R_X86_64_TLSDESC): Define.
3045         (R_386_NUM, R_X86_64_NUM): Adjust.
3046         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
3047         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3048         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3049         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
3050         release tlsdesc_table.
3051         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
3052         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
3053         (elf_machine_rel): Handle R_386_TLS_DESC.
3054         (elf_machine_rela): Likewise.
3055         (elf_machine_lazy_rel): Likewise.
3056         (elf_machine_lazy_rela): Likewise.
3057         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
3058         * sysdeps/i386/dl-tlsdesc.S: New file.
3059         * sysdeps/i386/dl-tlsdesc.h: New file.
3060         * sysdeps/i386/tlsdesc.c: New file.
3061         * sysdeps/i386/tlsdesc.sym: New file.
3062         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
3063         tlsdesc_table.
3064         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
3065         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3066         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3067         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
3068         release tlsdesc_table.
3069         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
3070         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
3071         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
3072         (elf_machine_rel): Handle R_X86_64_TLSDESC.
3073         (elf_machine_rela): Likewise.
3074         (elf_machine_lazy_rel): Likewise.
3075         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
3076         (__tls_get_addr): Do not declare for non-shared compiles.
3077         * sysdeps/x86_64/dl-tlsdesc.S: New file.
3078         * sysdeps/x86_64/dl-tlsdesc.h: New file.
3079         * sysdeps/x86_64/tlsdesc.c: New file.
3080         * sysdeps/x86_64/tlsdesc.sym: New file.
3081         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
3082         tlsdesc_table for both 32- and 64-bit structs.
3084 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
3086         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
3087         its own function.  This reduces the frame setup costs and more.
3089 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
3091         [BZ #3406]
3092         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
3093         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
3095 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
3097         * io/openat.c (__openat_2): Also pass fd to __openat.
3098         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
3099         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
3101         * string/tester.c (test_memcmp): Add a few more tests.
3102         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
3104 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
3106         * nscd/cache.c (cache_add): Before returning with failure and this
3107         is the first use of the record, mark it as unusable.
3108         * nscd/aicache.c: Don't touch the dataset after cache_add returns
3109         reporting a failure.
3110         * nscd/grpcache.c: Likewise
3111         * nscd/hstcache.c: Likewise.
3112         * nscd/initgrcache.c: Likewise.
3113         * nscd/pwdcache.c: Likewise.
3114         * nscd/servicescache.c: Likewise.
3116 2008-05-10  Roland McGrath  <roland@redhat.com>
3118         [BZ #6505]
3119         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
3121 2008-05-08  David S. Miller  <davem@davemloft.net>
3123         * misc/truncate64.c (truncate64): Use __truncate not truncate.
3125         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
3126         (__ieee754_y0l): Likewise.
3127         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
3128         (__ieee754_y1l): Likewise.
3129         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
3130         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
3131         frexpl and ldexpl.  math_private.h provides them and the latter
3132         is not even used.
3133         (__log1pl): Use __frexpl.
3135 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
3137         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
3138         prototypes.
3139         * include/arpa/nameser_compat.h: Define T_UNSPEC.
3140         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
3141         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
3142         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
3143         af==AF_UNSPEC.
3144         (_nss_nis_gethostbyname4_r): New function.
3145         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3146         Change to also handle af==AF_UNSPEC.
3147         (get_tablename): New function.  Use it to avoid duplication.
3148         (_nss_nisplus_gethostbyname4_r): New function.
3149         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
3150         available.
3151         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
3152         * nss/nss.h: Define struct gaih_addrtuple.
3153         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
3154         af==AF_UNSPEC.
3155         (_nss_files_gethostbyname4_r): New function.
3156         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
3157         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
3158         calls.
3159         * resolv/res_query.c (__libc_res_nquery): Take two additional
3160         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
3161         look up IPv4 and IPv6.
3162         Change all callers.
3163         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
3164         for an additional query and answer buffer.  Pass to send_vc and
3165         send_dg.
3166         (send_vc): Send possibly two requests and receive two answers.
3167         (send_dg): Likewise.
3168         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
3169         __libc_res_nquery.
3170         (_nss_dns_gethostbyname4_r): New function.
3171         (gaih_getanswer_slice): Likewise.
3172         (gaih_getanswer): Likewise.
3173         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
3174         __libc_res_nquery call.
3175         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
3176         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
3177         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
3178         available.
3180 2008-05-05  David S. Miller  <davem@davemloft.net>
3182         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
3183         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
3185 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3187         Fix termios bit macros.
3188         Move *DLY definitions where they belong, in termios.h.
3189         Add *[0-3] definitions.
3190         Fixes confusion between VT and FF.
3191         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
3192         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
3193         are already defined to avoid collision with termios.h.
3194         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
3195         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
3196         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
3197         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
3198         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
3199         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
3200         VTDLY, VT0, VT1): New macros.
3201         [__USE_GNU] (OLCUC): Change value of macro.
3202         [__USE_XOPEN] (OFILL): New macro.
3203         [__USE_BSD] (CRTSCTS): Change value.
3204         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
3205         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
3206         (B7200, B14400, B28800, B76800): New macros.
3208 2008-05-01  David S. Miller  <davem@davemloft.net>
3210         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
3211         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
3212         (gen-as-const-headers): Add it.
3213         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
3214         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
3215         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
3216         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
3218         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
3219         six system call parameters.
3220         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
3222 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
3224         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
3225         RUSAGE_LWP.
3226         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
3227         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
3229 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
3231         * stdlib/tst-setcontext.c: Include unistd.h.
3233 2008-04-25  David S. Miller  <davem@davemloft.net>
3235         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
3236         Pass "union semun" properly in to sys_ipc, it must be passed
3237         by value, not by reference.
3239 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
3241         * nscd/Makefile (nscd-cflags): Set back to -fpie.
3242         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
3243         * nscd/connections.c (mem_in_flight): Likewise.
3245         * nscd/nscd.h (dbs): Make hidden.
3247         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
3248         Avoid returning -1, return 0 instead.
3250 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
3252         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
3254 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
3256         [BZ #5209]
3257         * sysdeps/unix/sysv/linux/times.c: New file.
3259         [BZ #5381]
3260         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
3261         mem_in_flight_list variables.  Add new parameter to mempool_alloc
3262         prototype.
3263         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
3264         appropriate mem_in_flight element.
3265         (gc): Take allocations which have not yet been committed to the
3266         database into account.
3267         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
3268         Reset mem_in_flight before returning.
3269         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
3270         cue it up in mem_in_flight_list.
3271         * nscd/aicache.c: Adjust mempool_alloc call.
3272         * nscd/grpcache.c: Likewise.
3273         * nscd/hstcache.c: Likewise.
3274         * nscd/initgrcache.c: Likewise.
3275         * nscd/pwdcache.c: Likewise.
3276         * nscd/servicescache.c: Likewise.
3277         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
3278         of -fpie.
3280         * nscd/connections.c (handle_request): Provide better error message
3281         in case SELinux forbids the service.
3283         * version.h (VERSION): Bump to 2.8.90.
3285 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
3287         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
3289 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
3291         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
3292         Also use for 32-bit.
3293         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
3294         __nextafter instead of nextafter to avoid local PLT.
3295         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
3296         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3298         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
3300         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
3301         __fe_nomask_env.
3302         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
3303         <fenv_libc.h> instead of <fenv.h>.
3304         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
3305         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
3307         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
3309         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
3310         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
3311         function from fegetexcept and make old name weak alias.
3312         * include/fenv.h: Declare __fegetexcept.
3313         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
3314         fegetexcept.
3315         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
3316         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
3317         to fetestexcept.
3318         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
3319         instead of frexpl to avoid local PLT.
3320         * math/s_significandl.c (__significandl): Use __ilogbl instead of
3321         ilogbl to avoid local PLT.
3322         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
3323         instead of ldexpl to avoid local PLT.
3324         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3325         __roundl not roundl to avoid local PLT.
3326         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
3327         local PLTs.  Use __sincosl instead of separate sinl and cosl
3328         calls.
3329         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3331         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
3332         version for ppc64 to 2.4.21 since without it makecontext will fail.
3334         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
3335         to the ABI in use.
3336         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
3337         .__tls_get_addr.
3338         [__powerpc64__] (TLS_GD): Likewise.
3340 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
3342         [BZ #4997]
3343         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
3344         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
3345         mantissa.
3346         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3347         Likewise.  Also account for when x is an odd number between 2^52
3348         and 2^53-1.
3349         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
3350         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3351         * math/libm-test.inc (lround_test, llround_test): Added test cases to
3352         detect aforementioned erroneous conditions.
3354 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
3356         * configure.in: Check for -fno-section-anchors in addition to
3357         -fno-toplevel-reorder.
3359 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
3361         * include/features.h (__GLIBC_MINOR__): Bump to 8.
3363         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
3364         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3365         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3366         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3367         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3368         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3370 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
3372         [BZ #5443]
3373         * time/era.c: Transform __libc_setlocale_lock into rwlock.
3374         * time/alt_digit.c: Likewise.
3375         * wcsmbs/wcsmbsload.c: Likewise.
3377 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
3379         * version.h (VERSION): Bump to 2.8.
3381         * timzeone/asia: Update from tzdata2008b.
3382         * timezone/backward: Likewise.
3383         * timezone/europe: Likewise.
3384         * timezone/northamerica: Likewise.
3385         * timezone/southamerica: Likewise.
3386         * timezone/iso3166.tab: Likewise.
3387         * timezone/leapseconds: Likewise.
3388         * timezone/zone.tab: Likewise.
3389         * timezone/private.h: Update from tzcode2008a.
3390         * timezone/zdump.c: Likewise.
3391         * timezone/zic.c: Likewise.
3393 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
3395         [BZ #5741]
3396         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
3397         Define additonal Data Cache Block instruction macros.
3398         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
3399         Replace dcbst with dcbf and sync with sync/isync.
3401 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
3403         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
3404         Always set ELF_RTYPE_CLASS_PLT.
3405         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
3407 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
3409         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
3410         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
3411         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
3412         For ISA 2.01 and later replace mftb with mfspr 268.
3414 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
3416         [BZ #5768]
3417         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
3418         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
3420 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
3422         [BZ #5768]
3423         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
3424         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
3425         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
3426         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
3428 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
3430         * stdlib/tst-makecontext.c (othervar): New variable.
3431         (cf): Test sign extending the argument to long.
3433 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
3435         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
3436         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
3437         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
3438         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
3439         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
3440         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
3441         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
3443 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
3445         * elf/Makefile (tests): Substitute tests-vis-yes here.
3446         (tests-vis-yes): Delete.
3447         (modules-name, modules-vis-yes): Similarly.
3449 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
3451         [BZ #4407]
3452         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3453         Preserve sign in signgamp when x is zero.
3455 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
3457         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
3458         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
3459         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
3460         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
3461         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
3462         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
3464 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
3466         [BZ #4314]
3467         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
3468         buffers.
3470         [BZ #5209]
3471         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
3472         a reserved error value.
3474         * stdlib/tst-makecontext.c: Change parameter to cf to negative
3475         value to check for correct sign extension.
3477         [BZ #5436]
3478         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3479         Copy 64-bit parameter values even though this is not required in
3480         the standard.
3482         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
3483         PC save.
3485 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
3487         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
3488         PC save.
3490 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
3492         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
3494 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
3496         [BZ #5998]
3497         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
3498         in line-buffered stream failed.
3499         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3501 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
3503         [BZ #6024]
3504         * scripts/abi-versions.awk: If the version specified by
3505         --enable-oldest-abi is older than the first version for this
3506         architecture, use the default version.
3508         * locale/programs/ld-collate.c (collate_read): Ignore script lines
3509         as well when ignoring the whole category.
3511 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
3513         [BZ #6042]
3514         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
3515         ETHERTYPE_* definitions.
3516         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
3518 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
3520         * stdlib/mbtowc.c (__no_r_state): Remove.
3521         (mbtowc): New static state variable.  Use it instead of
3522         __no_r_state.
3523         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
3524         (__wctomb_state): New hidden variable.
3525         (wctomb): Use __wctomb_state instead of __no_r_state.
3526         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
3527         (__wctomb_state): New extern decl.
3528         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
3530 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
3532         [BZ #5475]
3533         * resolv/res_init.c: Handle scope IDs in resolv.conf.
3535 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
3537         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
3539 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
3541         * po/nl.po: Update from translation team.
3543 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
3545         [BZ #6007]
3546         * string/strfry.c: Handle empty strings again.
3548 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
3550         [BZ #5443]
3551         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
3552         before looking for translation.
3553         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
3554         * locale/freelocale.c: Likewise.
3555         * locale/newlocale.c: Likewise.
3556         * locale/setlocale.c: Likewise.
3557         Based partially on a patch by ryo@np.css.fujitsu.com.
3559 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
3561         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
3562         acquiring wrlock.  Do conv_tab allocation while holding lock.
3563         * intl/Makefile: Add rules to build and run tst-gettext6.
3564         * intl/tst-gettext6.c: New test.
3565         * intl/tst-gettext6.sh: New file.
3567 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
3569         * po/nl.po: Update from translation team.
3571         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
3572         provided through st_blksize, try the default size before giving up.
3574 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
3576         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
3578         [BZ #5939]
3579         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
3581         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
3582         error message.  POSIX today does not require the messages to be in
3583         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
3585         [BZ #5979]
3586         * sunrpc/auth_unix.c: Unify printed strings.
3587         * sunrpc/clnt_tcp.c: Likewise.
3588         * sunrpc/clnt_udp.c: Likewise.
3589         * sunrpc/clnt_unix.c: Likewise.
3590         * sunrpc/svc_tcp.c: Likewise.
3591         * sunrpc/svc_udp.c: Likewise.
3592         * sunrpc/svc_unix.c: Likewise.
3593         * sunrpc/xdr.c: Likewise.
3594         * sunrpc/xdr_array.c: Likewise.
3595         * sunrpc/xdr_rec.c: Likewise.
3596         * sunrpc/xdr_ref.c: Likewise.
3597         * locale/programs/ld-time.c (time_finish): Unify messages.
3598         * locale/programs/locfile.c (handle_copy): Fix typo.
3599         * nscd/nscd.c (options): Fix typo.
3601         [BZ #5995]
3602         * stdlib/strtod_l.c: Use correct sign for result in one more
3603         underflow case.
3604         Patch by Eric Blake <ebb9@byu.net>.
3606 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
3608         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
3609         and creat system calls.
3610         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
3611         call.
3612         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
3613         system calls.
3614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
3615         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3616         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3618 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
3620         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
3621         <linux/limits.h> has defined it.
3622         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
3623         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
3624         headers.
3625         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
3626         it instead of ARG_MAX.
3628 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
3630         * posix/gai.conf: Fix comment for scope nullbits.
3631         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
3632         default to 128 bits for v4 mapped addresses.
3634 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3636         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
3637         ptrace call to get the ieee_instruction_pointer from the kernel.
3638         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
3639         ptrace call to set the ieee_instructtion_pointer.
3640         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
3641         Add comment that ieee_instruction_pointer is always 0.
3643 2008-03-09  Andreas Jaeger  <aj@suse.de>
3645         [BZ #5857]
3646         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
3647         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
3648         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
3650         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
3651         (rint_test): Likewise.
3653 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
3655         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
3656         call.
3657         (__nisfind_server): Similar for open readColdStartFile call.
3658         Patch partially by Jim Meyering.
3659         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
3660         around internal_setent call.
3662         * po/vi.po: New Vietnamese translation.
3664         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
3665         ADJ_OFFSET_SS_READ.
3667         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
3668         remove CLONE_STOPPED.
3670 2008-02-10  Jim Meyering  <meyering@redhat.com>
3672         Remove useless "if" before "free":
3673         * elf/ldconfig.c (parse_conf_include): Likewise.
3674         * gmon/gmon.c (weak_alias): Likewise.
3675         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
3676         * inet/rcmd.c (__validuser2_sa): Likewise.
3677         * intl/bindtextdom.c (set_binding_values): Likewise.
3678         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
3679         * libio/genops.c (save_for_backup): Likewise.
3680         * libio/wgenops.c (save_for_wbackup): Likewise.
3681         * locale/programs/ld-collate.c (collate_read): Likewise.
3682         * locale/programs/linereader.c (get_string): Likewise.
3683         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
3684         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
3685         * resolv/res_debug.c (do_section): Likewise.
3686         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
3687         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
3688         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3689         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
3690         * time/tzset.c (tzset_internal): Likewise.
3692 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
3694         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
3695         of ASSEMBLER.
3697 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
3699         [BZ #5903]
3700         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
3701         not stream for output file.  Open output file here.
3702         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
3703         and output file name.
3704         (process_fd): Likewise.
3705         (process_file): Likewise.
3706         (main): Adjust callers of changed functions.
3707         * iconv/iconv_prog.h: Adjust prototype.
3709 2008-03-09  Andreas Jaeger  <aj@suse.de>
3711         [BZ #5753]
3712         * sysdeps/ia64/ieee754.h: Use protected namespace
3713         __BIG_ENDIAN/__LITTLE_ENDIAN.
3714         * sysdeps/ieee754/ieee754.h: Likewise.
3715         Patch by Aurelien Jarno <aurelien@aurel32.net>.
3717 2008-03-08  Roland McGrath  <roland@frob.com>
3719         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
3720         ignore a signal that came from a machine exception, treat it as a
3721         fatal core-dump signal instead.
3722         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3724         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3725         Clear DF bit in thread state's eflags.
3726         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3728 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
3730         [BZ #5774]
3731         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
3732         of NAN(...) sequence.
3733         * stdlib/Makefile (tests): Add tst-strtod6.
3734         * stdlib/tst-strtod6.c: New file.
3736         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
3738         [BZ #5762]
3739         * posix/getopt.c (_getopt_internal_r): Clarify error message by
3740         putting offending option character in quotes.  Clean up error
3741         messages.
3742         * po/be.po: Adjust msgstr in translation file.
3743         * po/bg.po: Likewise.
3744         * po/ca.po: Likewise.
3745         * po/cs.po: Likewise.
3746         * po/da.po: Likewise.
3747         * po/de.po: Likewise.
3748         * po/es.po: Likewise.
3749         * po/fr.po: Likewise.
3750         * po/hr.po: Likewise.
3751         * po/ko.po: Likewise.
3752         * po/nl.po: Likewise.
3753         * po/rw.po: Likewise.
3754         * po/sk.po: Likewise.
3755         * po/sv.po: Likewise.
3756         * po/tr.po: Likewise.
3757         * po/zh_CN.po: Likewise.
3758         * po/zh_TW.po: Likewise.
3760         [BZ #5760]
3761         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
3762         Patch by Roland Bless <roland@bless.de>.
3764         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
3765         .o file.
3766         * elf/Makefile (routines): Add dl-sysdep.
3767         (elide-routines.os): Likewise.
3769 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
3771         [BZ #5786]
3772         * elf/dl-sysdep.c: Undefine ROUND after use.
3773         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
3774         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
3775         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
3776         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
3777         to ...
3778         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
3779         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
3780         if necessary.
3781         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
3783         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
3784         _dl_tls_get_addr_soft element.
3785         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
3786         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
3787         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
3788         GLRO.
3789         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
3790         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
3791         of internal_function.
3793         * stdlib/Makefile (aux): Add tens_in_limb.
3794         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
3795         * stdlib/tens_in_limb.c: ...here.  New file.
3797         [BZ #5778]
3798         * sysdeps/unix/sysv/linux/pathconf.h: Declare
3799         __statfs_chown_restricted.
3800         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
3801         for _PC_CHOWN_RESTRICTED.
3802         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
3803         Implement __statfs_chown_restricted.
3804         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
3805         _POSIX_CHOWN_RESTRICTED value to zero.
3806         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
3807         defined to zero.
3809         * sysdeps/x86_64/rtld-memset.c: New file.
3811 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
3813         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
3815         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
3816         Barcelona machine.  Make default fall through branch of
3817         __x86_64_preferred_memory_instruction check as the integer code path.
3819 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
3821         * sysdeps/x86_64/cacheinfo.c
3822         (__x86_64_preferred_memory_instruction): New variable.
3823         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3825         * sysdeps/x86_64/memset.S: Rewrite.
3827 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
3829         * include/stdio.h (__asprintf_chk, __dprintf_chk,
3830         __obstack_printf_chk): New prototypes.
3831         (__vasprintf_chk, __vdprintf_chk,
3832         __obstack_vprintf_chk): Likewise.
3833         Add libc_hidden_proto.
3834         * libio/obprintf.c
3835         (_IO_obstack_jumps): No longer static, add attribute_hidden.
3836         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
3837         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3838         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
3839         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
3840         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3841         __obstack_vprintf_chk): New prototypes.
3842         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
3843         obstack_vprintf): New inlines.
3844         * debug/dprintf_chk.c: New file.
3845         * debug/vdprintf_chk.c: New file.
3846         * debug/asprintf_chk.c: New file.
3847         * debug/vasprintf_chk.c: New file.
3848         * debug/obprintf_chk.c: New file.
3849         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
3850         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
3851         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
3852         @@GLIBC_2.8.
3853         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
3854         vdprintf_chk and obprintf_chk, set CFLAGS for them.
3855         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
3856         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
3857         libc_hidden_proto.
3858         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
3859         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
3860         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
3861         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
3862         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
3863         @@GLIBC_2.8.
3864         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
3865         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
3866         obstack_vprintf_chk.
3867         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
3868         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
3869         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
3870         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
3871         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
3872         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
3874 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
3876         [BZ #5779]
3877         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
3878         Patch by Roy Marples <roy@marples.name>.
3880         [BZ #5736]
3881         * malloc/malloc.c: Fix typo in comment.
3883         [BZ #5627]
3884         * locale/iso-639.def: Add Shuswap.
3886 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
3888         [BZ #5790]
3889         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
3890         overwrite *h_errnop/*errnop values from getanswer_r in case of
3891         failure.
3893 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
3895         [BZ #5818]
3896         * nscd/connections.c (dbs): Add initializers for .suggested_module.
3897         (verify_persistent_db): Remove one unnecessary test and add a new one
3898         for bad configuration.
3899         (nscd_init): Improve error reported when persistent database cannot
3900         be reused.
3901         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
3902         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
3903         .suggested_module and .max_db_size and case config file says the
3904         values are zero.
3905         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
3907         [BZ #5854]
3908         * nis/ypclnt.c (yp_order): Fix handling of return value of
3909         do_ypcall_tr call.
3910         Patch by Jeff Moyer <jmoyer@redhat.com>.
3912         * po/fr.po: Update from translation team.
3914 2008-02-22  Andreas Jaeger  <aj@suse.de>,
3915             Carlos O'Donell <carlos@systemhalted.org>
3917         [BZ #5012]
3918         * FAQ.in: Describe why glibc needs to be compiled with
3919         optimization.
3921 2008-02-19  Roland McGrath  <roland@redhat.com>
3923         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
3925 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
3927         [BZ #5737]
3928         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
3929         __USE_MISC is defined.
3931 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
3933         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
3934         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
3935         sys/timerfd.h.
3936         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
3937         timerfd_gettime, timerfd_settime.
3938         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
3939         timerfd_gettime, timerfd_settime for GLIBC_2.8.
3941 2008-02-08  Roland McGrath  <roland@redhat.com>
3943         * elf/elf.h (NT_PPC_SPE): New macro.
3945 2008-02-06  Roland McGrath  <roland@redhat.com>
3947         * Makerules ($(common-objpfx)sysd-rules):
3948         Depend on $(sysdep-makeconfigs).
3950 2008-01-31  Roland McGrath  <roland@redhat.com>
3952         [BZ #5442]
3953         * configure.in: Use -print-file-name if it yields a directory,
3954         for each of include and include-fixed.
3955         * configure: Regenerated.
3957         * Makeconfig (sysd-rules-targets): New variable.
3958         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
3959         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
3961 2008-01-30  Roland McGrath  <roland@redhat.com>
3963         * manual/libc.texinfo: Update back-cover text.
3965         * elf/elf.h (NT_386_TLS): New macro.
3967 2008-01-29  Roland McGrath  <roland@redhat.com>
3969         * Makeconfig (sysd-rules-patterns): New variable.
3970         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
3971         (check-inhibit-asm): New canned sequence, replaces ...
3972         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
3973         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
3974         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
3975         (CFLAGS-rtld): Variable removed.
3977 2008-01-24  Roland McGrath  <roland@redhat.com>
3979         * configure.in: Let configure fragments set base_os.
3980         * configure: Regenerated.
3982 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
3984         * po/ko.po: Update from translation team.
3986 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
3988         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
3990 2008-01-12  Andreas Jaeger  <aj@suse.de>
3992         [BZ #5040]
3993         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
3994         Add EPOLLRDHUP.
3996 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3998         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
3999         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
4000         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
4002 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
4004         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
4005         * elf/dl-close.c (_dl_close): Check for it.
4006         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
4007         (_dl_allocate_static_tls): Likewise.
4008         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
4009         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
4010         to it.
4011         * elf/tst-tls16.c: New file.
4012         * elf/tst-tlsmod16a.c: New file.
4013         * elf/tst-tlsmod16b.c: New file.
4014         * elf/Makefile: Add rules to build and run tst-tls16.
4016 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
4018         [BZ #5628]
4019         * bits/shm.h: Fix comment describing shmid_ds.
4020         * sysdeps/gnu/bits/shm.h: Likewise.
4021         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
4022         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
4023         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
4024         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
4025         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
4026         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
4027         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
4028         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
4029         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
4031         [BZ #5607]
4032         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
4033         prototypes.
4034         * conform/data/limits.h-data: Adjust limits changed in v6 and add
4035         additional suffixes.
4036         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
4037         Add optional functions mq_timedreceive and mq_timedsend.
4038         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
4039         * conform/data/pthread.h-data: Fix prototype of
4040         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
4041         * conform/data/semaphore.h-data: Allow time.h definitions.
4042         * conform/data/signal.h-data: Likewise.
4043         * conform/data/stdio.h-data: getw and putw are not required in v6.
4044         * conform/data/stdlib.h-data: Change setstate prototype.
4045         * conform/data/string.h-data: Fix strerror_r prototype.
4046         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
4047         * conform/data/unistd.h-data: pthread_atfork not required in v6.
4048         Fix readlink prototype.
4049         * conform/data/netinet/in.h-data: Add const to in6addr_any and
4050         in6addr_loopback.
4051         * inet/netinet/in.h: Cleanup namespace.
4052         * posix/regex.h: Likewise.
4053         * resolv/netdb.h: Likewise.
4054         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
4055         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4056         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4057         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
4058         of names of in in6_addr.
4059         (default_precedence): Likewise.
4060         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
4061         NULL definition.
4063 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
4065         * conform/data/fmtmsg.h-data: Add missing allows.
4066         * conform/data/ftw.h-data: Likewise.
4067         * conform/data/inttypes.h-data: Likewise.
4068         * conform/data/math.h-data: Likewise.
4069         * conform/data/signal.h-data: Likewise.
4070         * conform/data/net/if.h-data: Likewise.
4071         * conform/data/netinet/in.h-data: Likewise.
4072         * conform/data/sys/socket.h-data: Likewise.
4074         [BZ #5614]
4075         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
4076         (__strtok_r): Simplify.
4077         * string/tester.c (test_strtok_r): Add test case for futile search
4078         with single-character seach string.
4080 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
4082         * po/ko.po: Update from translation team.
4084 2008-01-11  Andreas Jaeger  <aj@suse.de>
4086         [BZ #5600]
4087         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
4088         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
4089         kernel header.
4091 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
4093         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
4094         native interface lookup in all the relevant places.
4096 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
4097             Ulrich Drepper  <drepper@redhat.com>
4099         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
4100         field.  Use sockaddr_in6 for source_addr.
4101         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
4102         (match_prefix): Likewise.
4103         (get_label): Likewise.
4104         (get_precedence): Likewise.
4105         (rfc3484_sort): Change to use indirect access to results array.
4106         Adjust to use of sockaddr_in6.  Replace service_order test with
4107         simple index comparison.
4108         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
4109         service_order field.  Adjust qsort_t calls.  Access sorted result
4110         array indirectly through order array.
4111         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
4112         * posix/tst-rfc3484-2.c: Likewise.
4113         * posix/tst-rfc3484-3.c: Likewise.
4115 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
4117         [BZ #5541]
4118         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
4119         pollfd structures.
4120         Patch by André Cruz.
4122         [BZ #5545]
4123         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
4124         (clnt_spcreateerror): Likewise.
4126         [BZ #5553]
4127         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
4128         (public_mEMALIGn): Likewise.
4129         Patch mostly by Daniel Jacobowitz.
4131 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
4133         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
4134         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
4135         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
4136         * stdlib/tst-makecontext2.c: New test.
4138 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
4140         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
4141         defined.
4142         (REINIT_PARAMS): Likewise.  Undefine before end of file.
4143         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
4144         transliteration hooks and REINIT_PARAMS afterwards.
4145         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
4146         status.
4147         (REINIT_PARAMS): Define.
4148         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
4149         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
4150         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
4151         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
4152         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
4153         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
4154         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
4155         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
4156         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
4157         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
4158         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
4159         * iconvdata/tst-iconv7.c: New test.
4161 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
4163         * libio/stdio.h (vscanf): Fix definition for loser compilers.
4165 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
4167         [BZ #5112]
4168         * nscd/connections.c (restart): Fix condition.
4170 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
4172         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
4173         __ctype_toupper_loc): Add __THROW.
4175 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
4177         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
4178         recognition of interface family.
4180         * posix/getconf.c: Update copyright year.
4181         * nss/getent.c: Likewise.
4182         * iconv/iconvconfig.c: Likewise.
4183         * iconv/iconv_prog.c: Likewise.
4184         * elf/ldconfig.c: Likewise.
4185         * catgets/gencat.c: Likewise.
4186         * csu/version.c: Likewise.
4187         * elf/ldd.bash.in: Likewise.
4188         * elf/sprof.c (print_version): Likewise.
4189         * locale/programs/locale.c: Likewise.
4190         * locale/programs/localedef.c: Likewise.
4191         * nscd/nscd.c (print_version): Likewise.
4192         * debug/xtrace.sh: Likewise.
4193         * malloc/memusage.sh: Likewise.
4194         * malloc/mtrace.pl: Likewise.
4195         * debug/catchsegv.sh: Likewise.
4197 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
4199         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
4200         second lookup.
4202 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
4204         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
4205         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4207 2007-12-17  Roland McGrath  <roland@redhat.com>
4209         * inet/ether_line.c (ether_line): Remove unused variable.
4211 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4213         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
4214         and winp.
4215         * login/openpty.c (openpty): Likewise.
4216         * login/pty.h (openpty, forkpty): Likewise.
4217         * manual/terminal.texi (openpty, forkpty): Likewise.
4219 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
4221         * malloc/malloc.c (public_cALLOc): For arenas other than
4222         main_arena, count all bytes inside the mprotect_size range of the
4223         heap as uninitialized.
4225 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
4227         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
4228         executable stacks.
4230         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
4231         mTRIm for all of them.
4232         (mTRIm): Additionally iterate over all free blocks and use madvise
4233         to free memory for all those blocks which contain at least one
4234         memory page.
4235         * malloc/tst-trim1.c: New file.
4236         * malloc/Makefile (tests): Add tst-trim1.
4238         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
4240 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
4242         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4243         First cast argument to long
4244         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
4245         Return long.
4246         (__vdso_clock_gettime): Likewise.
4247         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
4248         return long.
4250 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
4252         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
4253         * locale/nl_langinfo_l.c: Real implementation, copied from
4254         nl_langinfo.c.
4255         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
4257 2007-12-01  Jim Meyering  <meyering@redhat.com>
4259         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4260         that would inhibit utf8-optimization of a regexp containing line-
4261         or buffer-anchors, e.g., `^', `$'.
4263 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
4265         * time/bug-getdate1.c (do_test): Don't use century values which
4266         aren't valid on 32-bit systems.
4268 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
4270         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
4271         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
4272         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
4273         __strcat_g, __strncat_g): Add __asm__.
4275 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
4277         [BZ #5477]
4278         * io/fchmodat.c: Fix typo in stub_warning use.
4279         Patch by Petr Salinger.
4281 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
4283         * iconvdata/hp-thai8.c: New file.
4284         * iconvdata/Makefile: Add rules for hp-thai8.c.
4285         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
4286         * iconvdata/gconv-modules: Likewise.
4288         [BZ #5464]
4289         * iconvdata/hp-greek8.c: New file.
4290         * iconvdata/Makefile: Add rules for hp-greek8.c.
4291         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
4292         * iconvdata/gconv-modules: Likewise.
4294         [BZ #5463]
4295         * iconvdata/hp-turkish8.c: New file.
4296         * iconvdata/Makefile: Add rules for hp-turkish8.c.
4297         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
4298         * iconvdata/gconv-modules: Likewise.
4300         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
4301         (shrink_heap): ... this new function.
4302         (heap_trim): Call shrink_heap instead of grow_heap.
4304         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
4305         case don't call alloc_perturb.
4307 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
4309         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
4310         possible.
4311         * sysdeps/unix/sysv/linux/kernel-features.h
4312         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
4313         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
4315 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
4317         [BZ #5424]
4318         * stdio-common/vfprintf.c: Do not overflow when adding to done.
4319         * stdio-common/Makefile (tests): Add bug22.
4320         * stdio-common/bug22.c: New file.
4322         [BZ #5451]
4323         * time/getdate.c: Fix filling in default values.
4324         * time/bug-getdate1.c: New file.
4325         * time/Makefile: Add rules to build and run bug-getdate1.
4327         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
4328         * iconvdata/ebcdic-es.c: Likewise.
4329         * iconvdata/ebcdic-es-a.c: Likewise.
4330         * iconvdata/ebcdic-uk.c: Likewise.
4331         * iconvdata/iso8859-16.c: Likewise.
4332         * iconvdata/viscii.c: Likewise.
4333         * iconvdata/iso8859-9e.c: Likewise.
4334         * iconvdata/Makefile: Adjust appropriately.
4336         [BZ #5428]
4337         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
4338         __need_wint_t.
4340 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
4342         [BZ #5427]
4343         * iconvdata/hp-roman9.c: New file.
4344         * iconvdata/Makefile: Add rules for hp-roman9.c.
4345         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
4346         * iconvdata/gconv-modules: Likewise.
4348         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
4349         * iconvdata/Makefile: Adjust appropriately.
4351         [BZ #5441]
4352         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
4353         structure, it's allocated with alloca.
4354         * stdio-common/Makefile (tests): Add bug21.
4355         * stdio-common/bug21.c: New file.
4357 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
4359         [BZ #5452]
4360         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
4361         keyword for gcc's braced-groups.
4363 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
4365         [BZ #5454]
4366         * inet/ether_line.c: Strip hostname of whitespaces.
4367         * inet/Makefile (tests): Add tst-ether_line.
4368         * inet/tst-ether_line.c: New file.
4370 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
4372         [BZ #5439]
4373         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
4375         [BZ #5435]
4376         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
4378         * stdlib/tst-setcontext.c: Catch the case where the links gets
4379         messed up and we do not reach main again.
4381         * po/ca.po: Update from translation team.
4383 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
4385         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
4386         * posix/regex.h (REG_ENOSYS): Likewise.
4387         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
4389 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
4391         * nscd/nscd.h (MAX_STACK_USE): Define.
4392         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
4393         (gc): Initialize stack_used based on allocation in prune_cache.
4394         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
4395         Clear array before use.
4397         * nscd/aicache.c (addhstaiX): Update statistics counter in case
4398         memory allocation failed.
4399         * nscd/hstcache.c (cache_addhst): Likewise.
4400         * nscd/grpcache.c (cache_addgr): Likewise.
4401         * nscd/servicescache.c (cache_addserv): Likewise.
4402         * nscd/pwdcache.c (cache_addpw): Likewise.
4403         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4405 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
4407         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
4408         and creat system calls.
4410         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
4412 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4414         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
4415         Add netiucv/iucv.h.
4416         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
4417         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
4418         protocol.
4419         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
4420         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
4421         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
4423 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4425         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
4426         strncat): Define as macros to avoid compile errors.
4428         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
4429         creat entries.
4431 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
4433         [BZ #5382]
4434         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
4435         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
4436         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
4437         overflow it.
4438         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4440         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
4441         Return zero in case the thread library is not NPTL.
4443         [BZ #5375]
4444         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
4445         initializing interface list.
4447         [BZ #5378]
4448         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
4449         use result of nss_getgrgid_r if nothing was found.  For other
4450         error return with a failure.
4451         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4453         * locale/programs/ld-collate.c (collate_read): Fix loop to match
4454         macro name.
4456 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
4458         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
4459         (get_scope): For IPv4 scope, use scopes table.
4460         (fini): Free scopes table if necessary.
4461         (free_scopelist): New function.
4462         (scopecmp): New function.
4463         (gaiconf_init): Also handle scopev4 entries.
4464         * posix/tst-rfc3484.c (do_test): Initialize scopes.
4465         * posix/tst-rfc3484-2.c (do_test): Likewise.
4466         * posix/gai.conf: Document scopev4 defaults.
4467         * posix/Makefile (tests): Add tst-rfc3484-3.
4468         * posix/tst-rfc3484-3.c: New file.
4470         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
4471         Teredo tunnels.
4472         * posix/gai.conf: Update for current default tables.
4474 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
4476         * po/tr.po: Update from translation team.
4478 2007-11-18  Roland McGrath  <roland@frob.com>
4480         * manual/arith.texi (Remainder Functions): Spelling fix.
4481         From Shaun Silk <genix@mysoul.com.au>.
4483         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
4485 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
4487         * po/zh_CN.po: Update from translation team.
4489         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
4490         Add sys/signalfd.h and sys/eventfd.h.
4492 2007-11-15  Bruno Haible  <bruno@clisp.org>
4494         [BZ #5346]
4495         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
4496         union.
4497         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
4498         (DCIGETTEXT): Change the allocation of the 'search' variable so that
4499         it needs only fixed stack space. Delay the initialization of
4500         msgid_len until it is needed.
4502 2007-11-15  Andreas Jaeger  <aj@suse.de>
4504         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
4505         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
4507 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
4509         * po/ko.po: Update from translation team.
4511 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
4513         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
4514         significantly.  The device type is also part of the ifinfomsg data.
4516         * po/sv.po: Update from translation team.
4517         * po/nl.po: Likewise.
4519         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
4520         to wake up in 24 hours.
4522         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
4524 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
4526         * po/cs.po: Update from translation team.
4527         * po/pl.po: Likewise.
4529         * include/ifaddrs.h: Remove in6ai_temporary.
4530         (struct in6addrinfo): Add index element.
4531         Declare __check_native.
4532         * inet/Makefile (aux): Add check_native.
4533         * sysdeps/unix/sysv/linux/check_native.c: New file.
4534         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
4535         IFA_F_TEMPORARY.  Pass back ifa_index.
4536         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
4537         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
4538         call __check_native if necessary.
4539         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
4540         to sort addresses.  Pass information about the results.
4541         * posix/tst-rfc3484.c: Adjust for addition of index field and change
4542         of rfc3484_sort interface.
4543         * posix/tst-rfc3484-2.c: Likewise.
4545         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
4546         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
4547         for _quicksort.
4548         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
4549         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
4550         on as third parameter to compare function and _quicksort.
4551         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
4552         to the compare function.
4553         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
4554         * Versions.def: Add GLIBC_2.8 for libc.
4556         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
4557         * posix/tst-rfc3484-2.c: Likewise.
4559         * include/kernel-features.h: Moved to...
4560         * sysdeps/mach/hurd/kernel-features.h: ...here.
4562 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
4564         * sysdeps/i386/i586/memcpy_chk.S: New file.
4565         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
4566         * sysdeps/i386/i586/memset_chk.S: Likewise.
4568 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
4570         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
4571         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
4572         list of interfaces.  Also store prefix length.
4573         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
4574         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
4575         prefix if source and destination address are in the same subnet.
4576         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
4577         Always look for matching record in in6ai list.
4578         Correct source_addr_len value for IPv6->IPv4 converted records.
4580 2007-11-11  Roland McGrath  <roland@frob.com>
4582         * include/kernel-features.h: New file.
4584 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
4586         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
4587         complications for 64-bit platforms.
4589         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
4590         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
4591         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
4592         open64_2.
4593         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
4594         entries.
4595         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4596         * sysdeps/wordsize-64/alphasort.c: New file.
4597         * sysdeps/wordsize-64/alphasort64.c: New file.
4598         * sysdeps/wordsize-64/fseeko.c: New file.
4599         * sysdeps/wordsize-64/fseeko64.c: New file.
4600         * sysdeps/wordsize-64/ftello.c: New file.
4601         * sysdeps/wordsize-64/ftello64.c: New file.
4602         * sysdeps/wordsize-64/ftw.c: New file.
4603         * sysdeps/wordsize-64/ftw64.c: New file.
4604         * sysdeps/wordsize-64/iofgetpos.c: New file.
4605         * sysdeps/wordsize-64/iofgetpos64.c: New file.
4606         * sysdeps/wordsize-64/iofopen.c: New file.
4607         * sysdeps/wordsize-64/iofopen64.c: New file.
4608         * sysdeps/wordsize-64/iofsetpos.c: New file.
4609         * sysdeps/wordsize-64/iofsetpos64.c: New file.
4610         * sysdeps/wordsize-64/lockf.c: New file.
4611         * sysdeps/wordsize-64/lockf64.c: New file.
4612         * sysdeps/wordsize-64/mkostemp.c: New file.
4613         * sysdeps/wordsize-64/mkostemp64.c: New file.
4614         * sysdeps/wordsize-64/mkstemp.c: New file.
4615         * sysdeps/wordsize-64/mkstemp64.c: New file.
4616         * sysdeps/wordsize-64/scandir.c: New file.
4617         * sysdeps/wordsize-64/scandir64.c: New file.
4618         * sysdeps/wordsize-64/tmpfile.c: New file.
4619         * sysdeps/wordsize-64/tmpfile64.c: New file.
4620         * sysdeps/wordsize-64/versionsort.c: New file.
4621         * sysdeps/wordsize-64/versionsort64.c: New file.
4622         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
4623         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
4624         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
4625         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
4626         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
4627         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
4628         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
4629         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
4630         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
4631         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
4632         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
4633         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
4635         * crypt/sha256-crypt.c: Fix a comment.
4636         * crypt/sha512-crypt.c: Likewise.
4638 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
4640         * sysdeps/x86_64/memset.S: Add sfence after movnti.
4642 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
4644         [BZ #5277]
4645         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
4646         because output buffer is too small break, don't loop.
4647         * iconvdata/Makefile (tests): Add bug-iconv6.
4648         * iconvdata/bug-iconv6.c: New file.
4650 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
4652         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
4653         with size_t type.
4654         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
4655         size_t.  Add casts where needed.
4657         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
4658         old headers, don't call avc_has_perm if we don't have the
4659         permission information.
4661 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
4663         * elf/rtld.c (dl_main): Use the page size to find the map start.
4665 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
4667         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
4668         Patch by Szymon Siwek <sls@poczta.wp.pl>.
4670         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
4671         when the lookup call failed.
4673         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
4674         Add prune_cond and wakeup_time.
4675         (CACHE_PRUNE_INTERNAL): Define.
4676         Update declarations of prune_cache and setup_thread.
4677         * nscd/connections.c (dbs): Update initializers.
4678         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
4679         (nscd_init): Default number of threads is now 4.
4680         (invalidate_cache): Take lock before calling prune_cache.
4681         (handle_request): If SELinux forbids the request, say so.
4682         (readylist_cond): Use static initializer.
4683         (nscd_run_prune): New function.  Used only by pruning threads.
4684         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
4685         here.
4686         (fd_ready): Update nscd_run reference.
4687         (start_threads): No need to initialize readylist_cond.
4688         Start pruning threads separately.
4689         * nscd/nscd_setup_thread.c: Change return value type to int and always
4690         return 0.
4691         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
4692         to int and return nonzero value if we can use the TID address hack.
4693         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
4694         the database is later than the new entry's timeout, update the
4695         wakeup time and wake the cleanup thread.
4696         (prune_cache): Return seconds the next entry in the database is still
4697         valid.  Remove locking for pruning here.
4698         * nscd/nscd.conf: Document default number of threads.
4700 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
4702         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
4703         stack is properly aligned for the target function.
4704         Correct unwind info.
4706         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
4707         when using auditing libraries.
4709 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
4711         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
4712         _nss_dns_getnetbyaddr2_r.
4713         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
4714         extra parameter to getanswer_r.
4715         (_nss_dns_getnetbyaddr_r): Now a wrapper around
4716         _nss_dns_getnetbyaddr2_r.
4718         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
4719         gethstbynm3_r.
4720         * nscd/gethstbynm2_r.c: Remove.
4721         * nscd/gethstbynm3_r.c: New file.
4722         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
4723         __gethostbyaddr_r.
4724         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
4725         __gethostbyaddr_r compatibility wrapper.
4726         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
4727         determining timeout of entry.
4728         (lookup): Take new parameter and pass it to __gethostbyname3_r and
4729         __gethostbyaddr2_r.
4730         (addhstbyX): Pass reference to variable for TTL to lookup and
4731         cache_addhst.
4732         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
4733         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
4734         and __nss_next2.  Remove __nss_services_lookup.
4735         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
4736         Add compat wrapper.
4737         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
4738         __nss_next2.
4739         * nss/getXXent_r.c: Likewise.
4740         * nss/getnssent_r.c: Likewise.
4741         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
4742         does not exist in module, try the optional second name.
4743         (__nss_next2): New function.
4744         (__nss_next): Now wrapper around __nss_next2.
4745         * nss/nsswitch.h: Adjust __nss_lookup prototype.
4746         Declare __nss_next2.
4747         Adjust definition of db_lookup_function type.
4748         * nss/service-lookup.c: Define NO_COMPAT.
4749         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
4750         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
4751         * inet/ether_ntoh.c: Likewise.
4752         * sunrpc/netname.c: Likewise.
4753         * sunrpc/publickey.c: Likewise.
4754         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
4755         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
4756         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4757         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4758         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4760         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
4762         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
4764 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
4766         [BZ #5204]
4767         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
4768         * crypt/sha512c-test.c: Likewise.
4770         [BZ #5225]
4771         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
4772         to keep track of end of %[ format string element.
4773         * stdio-common/Makefile (tests): Add bug20.
4774         * stdio-common/bug20.c: New file.
4776         [BZ #5222]
4777         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
4778         path elements in counting mode.
4780 2007-10-27  Andreas Jaeger  <aj@suse.de>
4782         [BZ #5040]
4783         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
4785         [BZ #3112]
4786         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
4787         (__cleanup): Free shared library when exiting.
4788         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
4789         (__cleanup): Free shared library when exiting.
4791 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
4793         [BZ #2549]
4794         * math/libm-test.inc (check_float_internal): Support
4795         denormalized return.
4797 2007-10-23  Andreas Jaeger  <aj@suse.de>
4799         [BZ #5208]
4800         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
4801         __LONG_LONG_PAIR to handle little endian byte order.
4802         Suggested by abhishekrai@google.com
4804 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
4806         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
4808 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
4810         * nscd/cache.c (prune_cache): Move test for modified file outside
4811         of locking.
4813 2007-10-21  Andreas Jaeger  <aj@suse.de>
4815         * manual/texinfo.tex: Update to latest version.
4817         * manual/sysinfo.texi (System Parameters): Fix Formatting.
4819         * manual/arith.texi (Status bit operations): Fix formatting.
4821         * manual/errno.texi (Error Messages): Fix formatting.
4823         * manual/sysinfo.texi (System Parameters): Fix formatting.
4825         * manual/libc.texinfo: Update VERSION and UPDATED.
4827 2007-10-19  Roland McGrath  <roland@redhat.com>
4829         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
4831 2007-10-06  David S. Miller  <davem@davemloft.net>
4833         * configure.in: Add sparcv9v2 and sparc64v2.
4834         * scripts/config.sub: Likewise.
4835         * configure: Regenerate.
4836         * elf/elf.h (HWCAP_SPARC_N2): New.
4837         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
4838         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
4839         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
4840         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
4841         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
4842         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
4843         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
4845 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
4847         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
4848         even if the poll result indicates there is data to read.
4849         Patch by Jeff Moyer <jmoyer@redhat.com>.
4851 2007-10-18  Roland McGrath  <roland@redhat.com>
4853         * elf/elf.h (NT_PPC_VMX): New macro.
4855 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
4857         * version.h (VERSION): Set to 2.7.90.
4859 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
4861         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
4862         weak_alias.
4864 2007-10-17  Roland McGrath  <roland@frob.com>
4866         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
4867         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
4869 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
4871         * version.h (VERSION): Bump to 2.7.
4872         * include/features.h (__GLIBC_MINOR__): Bump to 7.
4874         [BZ #5186]
4875         * time/tzset.c (__tz_convert): Don't force testing for a change of
4876         TZ if not called from localtime.  But then also see whether the
4877         file changed, in case __use_tzfile is set.
4879         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
4880         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4881         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4882         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4883         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4884         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4885         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
4886         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4888 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
4890         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
4891         and admin selects to be able to replace the gai.conf file, lock
4892         data structures around the qsort call.
4894 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
4896         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
4897         new memset.
4898         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
4899         too high for the improvements.  Implement bzero unconditionally for
4900         use in libc.
4902 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
4903             Jakub Jelinek  <jakub@redhat.com>
4905         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
4906         even when time_t is 32-bit.
4907         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
4908         timezone data read by __tzfile_default.  Ensure __tzname[0] is
4909         always set after the search.
4911 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
4913         * time/tzfile.c (__tzfile_read): Help the compiler recognize
4914         unreachable code on 32-bit machines.
4916 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
4918         [BZ #5184]
4919         * time/strftime_l.c: Include stdbool.h.
4920         (my_strftime): New wrapper, old function renamed to...
4921         (__strftime_internal): ... new function.  Add tzset_called
4922         argument, pass it down to recursive calls, don't call tzset ()
4923         if already true, set to true after call to tzset ().
4925 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
4927         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
4928         into account when copying TZ string.
4930 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
4932         * time/tzfile.c (__tzfile_compute): For use_last case set i to
4933         num_transition rather than num_transitions - 1.
4935 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
4937         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
4938         PIC indirect jump.
4940         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
4941         a local label rather than HIDDEN_JUMPTARGET.
4943 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
4945         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
4946         (init_cacheinfo): Initialize it.
4947         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
4948         Always define bzero.
4949         Remove non-glibc code.
4950         * sysdeps/x86_64/bzero.S: Make an empty file.
4952 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
4954         * sysdeps/x86_64/cacheinfo.c
4955         (__x86_64_preferred_memory_instruction): New.
4956         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4958         * sysdeps/x86_64/memset.S: Rewrite.
4960 2007-10-15  Roland McGrath  <roland@redhat.com>
4962         * po/libc.pot: Regenerated.
4964 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
4966         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
4967         pointers.
4969         [BZ #3425]
4970         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
4971         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
4972         address record to T_A/T_AAAA requests.
4974 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
4976         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
4978         * posix/glob.c: Add some branch prediction throughout.
4980         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
4981         read from nscd.
4983         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
4984         service_order.
4985         (rfc3484_sort): Make sure that even if qsort doesn't support
4986         stable sorting out sorting here is stable by comparing service_order.
4987         (getaddrinfo): Initialize service_order.
4988         * posix/tst-rfc3484.c (do_test): Adjust for addition of
4989         service_order field to sorting structure.
4990         * posix/tst-rfc3484-2.c (do_test): Likewise.
4992         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
4993         * time/tzset.c (tzset_internal): Break TZ string parsing out into
4994         __tzset_parse_tz and updating of daylight, timezone, tzname into
4995         update_vars.
4996         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
4997         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
4998         happens in __tz_compute.
4999         * time/tzfile.c (__tzfile_read): Also read TZ string.
5000         (find_transition): Fold into __tzfile_compute.
5001         (__tzfile_compute): For times beyond the last transition try to
5002         use the TZ string.
5003         * timezone/tst-timezone.c: Information in daylight and tzname does
5004         change for Asia/Tokyo timezone with more concrete information.
5005         Remove the test.
5007         * include/stdio.h: Add libc_hidden_proto for ftello.
5008         * libio/ftello.c: Add libc_hidden_def.
5010         [BZ #1140]
5011         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
5012         on the specified time and not the last entries in the file.  Move
5013         code to determine tzname[] to...
5014         (find_transition): ...here.  Add ugly guess for times before the
5015         first transition.
5017 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
5019         [BZ #3195]
5020         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
5021         no entry.
5022         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
5023         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5024         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5025         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
5027         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
5028         read mechanism when there are no group members and avoid no-op
5029         read syscall in this case.
5031         [BZ #3242]
5032         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
5033         (__readall): If reading failed due to EAGAIN error wait a bit
5034         and possibly try again.
5035         (__readvall): Likewise.
5037 2007-10-13  Bruno Haible  <bruno@clisp.org>
5039         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
5040         when we cannot recode the message.
5042 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
5044         [BZ #4359]
5045         * libio/__freading.c (__freading): Don't return true for
5046         write-only streams.  For read/write streams, check whether we
5047         performed a read operation already.
5048         * libio/Makefile (tests): Add tst-ext2.
5049         * libio/tst-ext2.c: New file.
5051 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
5053         * locale/programs/repertoire.c (repertoire_read): Always free
5054         memory for repertoire file name [Coverity CID 270].
5056         * elf/cache.c (save_aux_cache): Free memory allocated for
5057         temporary file name [Coverity CID 267].
5059 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
5061         * misc/Makefile (headers): Add bits/error.h.
5063 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
5065         * posix/fnmatch_loop.c: Take rule index returned as part of
5066         findidx return value into account when accessing weights.
5067         * posix/regcomp.c: Likewise.
5068         * posix/regexec.c: Likewise.
5070         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
5071         (skip_to): Fix problems with parameter of elifdef/elifndef.
5073 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
5075         * iconv/gconv_simple.c: Add some branch prediction.
5077 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
5079         * locale/programs/ld-collate.c (collate_read): If ignore_content
5080         and nowtok is tok_define, eat any tok_eol tokens.
5082 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
5084         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
5085         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
5087         * inet/netinet/in.h: Don't include bits/socket.h.
5088         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
5089         macro.
5090         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
5092 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
5094         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
5095         and tok_elifndef.
5096         * locale/programs/locfile-kw.gperf: Likewise.
5097         * locale/programs/ld-collate.c: Implement primitive preprocessor.
5099 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
5101         * stdio-common/printf-parse.h: Include string.h and wchar.h.
5102         (__find_specwc): Change into __extern_always_inline function.
5103         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
5104         (__parse_one_specmb): Remove ps argument.
5105         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
5106         Adjust __find_specmb and __parse_one_specmb callers.
5107         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
5108         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
5109         Removed.
5110         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
5111         caller.
5113 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
5115         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
5116         with some Pentium Ds.
5118 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
5120         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
5121         __read not read.
5122         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
5123         __write not write.
5125 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
5127         [BZ #181]
5128         * locale/C-time.c: Set week_1stday data to 19971201.
5129         * locale/programs/ld-time.c (time_finish): Default for
5130         first_workday is Monday.
5132         [BZ #2633]
5133         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
5135         [BZ #5103]
5136         * posix/glob.c (glob): Recognize patterns starting \/.
5137         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
5138         (main): Add test for pattern starting \/.
5140         * misc/error.h: Use __const instead of const.
5141         * misc/bits/error.h: Likewise.
5143 2007-10-07  Andreas Jaeger  <aj@suse.de>
5145         * include/bits/error.h: New file.
5147         * misc/bits/error.h (error_at_line): Fix prototype.
5149 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
5151         [BZ #3924]
5152         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
5153         more little bugs in creating the stack frame when pltexit has to
5154         be called.
5156         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
5157         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
5159         [BZ #4407]
5160         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
5161         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5162         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5163         * math/libm-test.inc: Add test for this case.
5165         [BZ #5010]
5166         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
5167         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
5168         map service succeeded.
5169         (svc_is_mapped): New function.
5170         (svc_unregister): Use it before trying to unmap service.
5172 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
5174         * timezone/zic.c: Update from tzcode2007h.
5176         [BZ #5063]
5177         * timezone/africa: Update from tzdata2007h.
5178         * timezone/antarctica: Likewise.
5179         * timezone/asia: Likewise.
5180         * timezone/australasia: Likewise.
5181         * timezone/europe: Likewise.
5182         * timezone/leapseconds: Likewise.
5183         * timezone/northamerica: Likewise.
5184         * timezone/southamerica: Likewise.
5185         * timzeone/zone.tab: Likewise.
5187         [BZ #5104]
5188         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
5190         [BZ #5113]
5191         * string/bits/string2.h (__strdup): Cast parameters to calloc to
5192         avoid warning with -Wconversion.
5193         (__strndup): Likewise.
5194         Half the patch by Christian Iseli <christian.iseli@licr.org>.
5196         [BZ #5112]
5197         * nscd/connections.c (restart): Don't resync if database is
5198         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
5200         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
5201         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
5203         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
5204         evetnfd_read, eventfd_write.
5205         * sysdeps/unix/sysv/linux/eventfd.c: New file.
5206         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
5207         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
5208         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
5209         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
5210         eventfd_write for GLIBC_2.7.
5212         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
5213         * sysdeps/unix/sysv/linux/signalfd.c: New file.
5214         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
5215         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
5217 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
5219         * stdlib/msort.c: Include stdint.h.
5220         (struct msort_param): New type.
5221         (msort_with_tmp): Use struct msort_param pointer for unchanging
5222         parameters.  Add optimized handling for several common sizes
5223         and indirect sorting mode.
5224         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
5225         sorting.
5226         Suggested by Belazougui Djamel .
5228         * stdlib/Makefile (tests): Add tst-qsort2.
5229         * stdlib/tst-qsort2.c: New test.
5231 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
5233         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
5234         for dup2 in case another thread races with the current one.  Retry
5235         in this case.
5237         * misc/error.h: Remove support for use outside of libc.  We have to
5238         include <features.h> now.  Include <bits/error.h> if possible.
5239         * misc/bits/error.h: New file.
5241 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
5243         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
5244         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
5245         __extern_always_inline functions unconditionally, drop macros.
5247         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
5248         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
5249         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
5251         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
5252         add __artificial__ attribute.
5254 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
5256         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
5257         backward to forward direction.
5259         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
5261         [BZ #645]
5262         * locale/programs/ld-collate.c (collate_finish): Compare against last
5263         used section which is known to have rules defined.
5264         (collate_read): After order_start, correctly record order of sections
5265         and queue sections up.
5267 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
5269         [BZ #5071]
5270         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
5271         the same number of pages.
5272         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
5274         * locale/programs/ld-collate.c (collate_read): After initial copy
5275         statement, continue in state 0.
5277         * include/stdio_ext.h (__fsetlocking): Define as macro.
5279 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
5281         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
5282         of section order.
5284         * po/pt_BR.po: Fix typo.
5286 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
5288         * iconvdata/Makefile (modules): Add ISO8859-9E.
5289         (distribute): Add iso8859-9e.c.
5290         (gen-8bit-gap-modules): Add iso8859-9e.
5291         * iconvdata/iso8859-9e.c: New file.
5292         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
5293         * iconvdata/TESTS: Likewise.
5294         * iconvdata/tst-tables.sh: Likewise.
5296         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5298         * locale/iso-639.def: Add several new entries.
5300 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
5302         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
5303         void * pointers instead of struct link_map **.
5304         (_dl_scope_free): Change argument type to void *.
5305         * include/link.h (struct link_map): Change type of l_reldeps
5306         to struct link_map_reldeps, move l_reldepsact into that
5307         struct too.
5308         * elf/dl-deps.c: Include atomic.h.
5309         (_dl_map_object_deps): Only change l->l_initfini when it is
5310         fully populated, use _dl_scope_free for freeing it.  Optimize
5311         removal of libs from reldeps by using l_reserved flag, when
5312         some removal is needed, allocate a new list instead of
5313         reallocating and free the old with _dl_scope_free.  Adjust
5314         for l_reldeps and l_reldepsact changes.
5315         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
5316         searching in l_initfini and l_reldeps without holding dl_load_lock.
5317         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
5318         l_reldepsact changes.
5319         * elf/dl-close.c (_dl_close_worker): Likewise.
5320         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
5322 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
5324         * iconvdata/Makefile (modules): Add KOI8-RU.
5325         (distribute): Add koi8-ru.c.
5326         (gen-8bit-gap-modules): Add koi8-ru.
5327         * iconvdata/koi8-ru.c: New file.
5328         * iconvdata/gconv-modules: Add entries for KOI8-RU.
5329         * iconvdata/TESTS: Likewise.
5330         * iconvdata/tst-tables.sh: Likewise.
5332         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5334 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
5336         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
5337         with __warning__/__error__ attributes.
5338         (__warnattr): Define.
5339         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
5340         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
5341         __warnattr.
5342         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
5343         of __*_chk if compile time detectable overflow is found.
5344         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
5345         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
5346         with __warnattr.
5347         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
5348         instead of __*_chk if compile time detectable overflow is found.
5349         (__gets_alias): Rename to...
5350         (__gets_warn): ... this.  Add __warnattr.
5351         (gets): Call __gets_warn instead of __gets_alias.
5352         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
5353         aliases with __warnattr.
5354         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
5355         time detectable overflow is found.
5356         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
5357         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
5358         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
5359         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
5360         __getdomainname_chk_warn): New aliases with __warnattr.
5361         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
5362         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
5363         __*_chk_warn instead of __*_chk if compile time detectable overflow
5364         is found.
5365         (__getgroups_chk): Rename argument to __listlen from listlen.
5366         (__getwd_alias): Rename to...
5367         (__getwd_warn): ... this.  Add __warnattr.
5368         (getwd): Call __getwd_warn instead of __getwd_alias.
5369         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
5370         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
5371         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
5372         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
5373         __wcsnrtombs_chk_warn): New aliases with __warnattr.
5374         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
5375         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
5376         compile time detectable overflow is found.
5377         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
5378         to use __*_chk or not.
5379         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
5380         in comparisons which function should be called and in __*_chk*
5381         arguments.  Call __*_chk_warn instead of __*_chk if compile time
5382         detectable overflow is found.
5383         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
5384         __*_chk argument.
5385         * debug/tst-chk1.c (do_test): Add a few more tests.
5387 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
5389         [BZ #5058]
5390         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
5391         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
5392         (_nl_unload_domain): Finalize conversions_lock.
5393         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
5394         handling table of known conversions.
5396 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
5398         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
5399         close_not_cancel_no_status instead of close.
5401 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
5403         [BZ #5028]
5404         * posix/regcomp.c (lookup_collation_sequence_value): Check that
5405         nrules != 0 for multibyte chars.
5407 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
5409         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
5410         Provide better error message in case the type is unknown.
5412         [BZ #4963]
5413         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
5414         * string/stratcliff.c: Make usable to test wide char functions.
5415         * wcsmbs/wcsatcliff.c: New file.
5416         * wcsmbs/Makefiel (tests): Add wcsatcliff.
5418         [BZ #4972]
5419         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
5420         (distribute): Add mac-centraleurope.c.
5421         (gen-8bit-gap-modules): Add mac-centraleurope.
5422         * iconvdata/mac-centraleurope.c: New file.
5423         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
5424         * iconvdata/TESTS: Likewise.
5425         * iconvdata/tst-tables.sh: Likewise.
5427         [BZ #5043]
5428         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
5430 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
5432         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
5433         from __x86_64_core_cache_size_half.
5434         (init_cacheinfo): Compute shared cache size for AMD processors with
5435         shared L3 correctly.
5436         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
5437         name change.
5438         Patch in large parts by Evandro Menezes.
5440 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
5442         * elf/dl-lookup.c (add_dependency): Handle failing memory
5443         allocation for dependency list.  Remove unnecessary check.
5445         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
5446         open/close when determining source addresses.
5448         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
5449         sha512-crypt, and sha512.
5450         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
5451         (distribute): Add sha256.h and sha512.h.
5452         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
5453         and call the appropriate code.
5454         * crypt/sha256-crypt.c: New file.
5455         * crypt/sha256.c: New file.
5456         * crypt/sha256.h: New file.
5457         * crypt/sha256c-test.c: New file.
5458         * crypt/sha256test.c: New file.
5459         * crypt/sha512-crypt.c: New file.
5460         * crypt/sha512.c: New file.
5461         * crypt/sha512.h: New file.
5462         * crypt/sha512c-test.c: New file.
5463         * crypt/sha512test.c: New file.
5465 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
5467         * misc/bits/syslog.h (syslog): Remove extraneous argument from
5468         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
5469         __syslog_chk.
5471 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
5473         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
5474         %as in fscanf format strings.
5476         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
5477         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
5478         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
5479         Likewise.
5480         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
5481         Likewise.
5483         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
5484         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
5485         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
5486         * elf/dl-sym.c (do_sym): Likewise.
5487         * include/link.h (struct link_map): Add l_serial field.
5488         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
5489         * elf/dl-lookup.c (add_dependency): Add flags argument.
5490         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
5491         flags, use THREAD_GSCOPE_RESET_FLAG before and
5492         THREAD_GSCOPE_SET_FLAG after
5493         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
5494         Don't dereference map until it has been found on some list.
5495         If map->l_serial changed, return -1.
5497 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
5499         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
5500         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
5501         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
5502         libc_hidden_proto.
5503         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
5504         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
5505         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
5506         add libc_hidden_proto.
5507         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5508         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5509         conformance requested.
5510         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
5511         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5512         conformance requested.
5513         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5514         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
5515         conformance requested.
5516         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
5517         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
5518         ISO C99 or POSIX conformance requested.
5519         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
5520         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
5521         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
5522         and __isoc99_vsscanf@@GLIBC_2.7.
5523         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
5524         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
5525         (tests): Add scanf14.
5526         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
5527         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
5528         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
5529         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
5530         CFLAGS-isoc99_scanf.c): Add $(exceptions).
5531         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
5532         from using internal headers.
5533         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
5534         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
5535         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
5536         and __isoc99_vswscanf@@GLIBC_2.7.
5537         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
5538         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
5539         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
5540         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
5541         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
5542         * stdio-common/isoc99_scanf.c: New file.
5543         * stdio-common/isoc99_vsscanf.c: New file.
5544         * stdio-common/isoc99_vscanf.c: New file.
5545         * stdio-common/isoc99_vfscanf.c: New file.
5546         * stdio-common/isoc99_fscanf.c: New file.
5547         * stdio-common/isoc99_sscanf.c: New file.
5548         * wcsmbs/isoc99_fwscanf.c: New file.
5549         * wcsmbs/isoc99_vswscanf.c: New file.
5550         * wcsmbs/isoc99_swscanf.c: New file.
5551         * wcsmbs/isoc99_wscanf.c: New file.
5552         * wcsmbs/isoc99_vwscanf.c: New file.
5553         * wcsmbs/isoc99_vfwscanf.c: New file.
5554         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
5555         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
5556         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
5557         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
5558         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
5559         * stdio-common/scanf14.c: New test.
5560         * stdio-common/scanf15.c: New test.
5561         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
5562         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
5563         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
5564         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
5565         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
5566         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
5567         __nldbl___isoc99_scanf@@GLIBC_2.7,
5568         __nldbl___isoc99_fscanf@@GLIBC_2.7,
5569         __nldbl___isoc99_sscanf@@GLIBC_2.7,
5570         __nldbl___isoc99_vscanf@@GLIBC_2.7,
5571         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
5572         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
5573         __nldbl___isoc99_wscanf@@GLIBC_2.7,
5574         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
5575         __nldbl___isoc99_swscanf@@GLIBC_2.7,
5576         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
5577         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
5578         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
5579         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
5580         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
5581         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
5582         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
5583         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
5584         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5585         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
5586         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
5587         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
5588         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
5589         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
5590         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
5591         functions.
5592         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
5593         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
5594         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
5595         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
5596         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
5597         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
5598         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
5599         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
5600         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
5601         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
5602         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
5603         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
5605         * stdio-common/Makefile (tests): Add scanf13.
5606         (scanf13-ENV): New.
5607         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
5608         m modifier followed by l.
5609         (STRING_ARG): Add width argument.
5610         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
5611         <case L_('C')>: Handle %mlc and %mC.
5612         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
5613         arguments.
5614         * stdio-common/scanf13.c: New test.
5616         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
5617         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
5619 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
5621         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
5622         type and __THROW marker of splice, vmsplice, and tee.
5623         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5624         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5625         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5626         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5627         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5628         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5629         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5630         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
5631         as cancellation points.
5633 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
5635         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
5636         parse more than three parts of the version number.
5638 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
5640         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
5641         modifier.  Patch by Jakub Jelinek.
5643 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
5645         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
5646         call_fallocate in misc subdir.
5647         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
5648         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
5649         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
5650         instead of __fallocate64.
5651         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
5653 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
5655         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
5656         * rt/Makefile (headers): Add bits/mqueue2.h.
5657         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
5658         optimizing with GCC and __va_arg_pack_len is defined.
5659         * rt/bits/mqueue2.h: New file.
5660         * rt/mq_open.c (__mq_open): Renamed from mq_open.
5661         (mq_open): New strong_alias.
5662         (__mq_open_2): New function.
5663         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
5664         (mq_open): New strong_alias.
5665         (__mq_open_2): New function.
5666         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
5667         * Versions.def (librt): Add GLIBC_2.7 version.
5668         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
5669         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
5671         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
5672         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
5673         is defined rather than when not C++.
5674         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
5675         __openat64_alias): New redirects.
5676         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
5677         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
5678         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
5679         (open, open64, openat, openat64): Rewrite as __extern_always_inline
5680         functions instead of function-like macros.
5682 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
5684         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
5685         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
5686         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
5688 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
5690         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
5691         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
5693 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
5695         * inet/tst-network.c: Increment ERRORS for failing tests.
5697 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
5699         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
5700         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
5701         implement as __extern_always_inline function.
5702         (vsyslog): Define as __extern_always_inline function unconditionally.
5703         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
5704         When __va_arg_pack is defined, implement as __extern_always_inline
5705         functions.
5706         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5707         __extern_always_inline functions unconditionally.
5708         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
5709         bits/stdio2.h will be included.
5710         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
5711         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
5712         implement as __extern_always_inline functions.
5713         (vswprintf, vwprintf, vfwprintf): Define as
5714         __extern_always_inline functions unconditionally.
5715         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
5717 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
5719         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
5720         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
5721         attribute.
5722         * include/features.h (__USE_EXTERN_INLINES): Define only when
5723         __extern_inline is defined.
5724         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
5725         is defined instead of when not __cplusplus.
5726         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
5727         is defined instead of when not __cplusplus.
5728         * socket/sys/socket.h: Include bits/socket2.h when
5729         __extern_always_inline is defined instead of when not __cplusplus.
5730         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
5731         is defined instead of when not __cplusplus.
5732         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
5733         is defined instead of when not __cplusplus.
5734         * string/string.h: Include bits/string3.h when __extern_always_inline
5735         is defined instead of when not __cplusplus.
5736         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
5737         is defined instead of when not __cplusplus.
5738         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
5739         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
5740         is not defined.
5741         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
5742         defined __extern_always_inline instead of !defined __cplusplus.
5743         * libio/bits/stdio-ldbl.h: Likewise.
5744         * wcsmbs/bits/wchar-ldbl.h: Likewise.
5745         * misc/bits/syslog.h (syslog): Don't define for C++.
5746         (vsyslog): Use __extern_always_inline function for C++ instead of
5747         a macro.
5748         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
5749         whenever that macro is defined.
5750         (vprintf): Don't provide the inline for C++.
5751         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
5752         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
5753         define the macros for C++.
5754         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5755         __extern_always_inline functions for C++.
5756         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
5757         stat64, lstat64, fstat64, fstatat64): Don't define if not
5758         __USE_EXTERN_INLINES.
5759         * wcsmbs/bits/wchar2.h: Fix #error message.
5760         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
5761         (vswprintf, vwprintf, vfwprintf): Define using
5762         __extern_always_inline functions for C++.
5763         * string/bits/string3.h: Don't #undef macros if __cplusplus.
5764         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
5765         strncpy, strcat, strncat): Define as __extern_always_inline
5766         functions instead of macros for C++.
5767         * math/bits/cmathcalls.h: Guard __extern_inline routines with
5768         defined __extern_inline.
5769         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
5770         to __extern_inline whenever that macro is defined.
5771         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5772         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5773         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
5774         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
5775         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5776         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5777         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5778         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5779         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
5780         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
5781         prototypes.  Only provide __extern_inline routines if
5782         __USE_EXTERN_INLINES.
5783         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
5784         tests.
5785         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
5786         For now avoid some *printf tests in C++.  Skip all testing
5787         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
5788         is not.
5789         * debug/tst-chk4.cc: New file.
5790         * debug/tst-chk5.cc: New file.
5791         * debug/tst-chk6.cc: New file.
5792         * debug/tst-lfschk4.cc: New file.
5793         * debug/tst-lfschk5.cc: New file.
5794         * debug/tst-lfschk6.cc: New file.
5795         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
5796         prototypes in C++.
5797         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
5798         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
5799         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
5801 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
5803         * po/cs.po: Update from translation team.
5805 2007-09-11  Roland McGrath  <roland@redhat.com>
5807         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
5808         compiling.
5810 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5812         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
5814 2007-09-05  Roland McGrath  <roland@redhat.com>
5816         * manual/signal.texi (Signaling Another Process): Typo fix.
5817         From Karl Berry <karl@freefriends.org>.
5819 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
5821         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
5822         zero if not defined.
5823         (make_request): Recognize optimistic addresses and treat them like
5824         deprecated addresses.
5825         Reported by Neil Horman <nhorman@redhat.com>.
5827 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
5829         * nscd/connections.c (send_ro_fd): Also transfer file size.
5830         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
5831         file size don't call fstat.
5833         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
5834         ahead and map the file.  This should always be correct and we can
5835         catch problems later.
5837 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
5839         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
5840         prototypes.
5841         (__fread_alias, __fread_unlocked_alias): New aliases.
5842         (fread): New extern inline.
5843         (fread_unlocked): Likewise.  Undef macro before definition of
5844         the inline function.
5845         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
5846         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
5847         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
5848         and __fread_unlocked_chk@@GLIBC_2.7.
5849         * debug/fread_chk.c: New file.
5850         * debug/fread_u_chk.c: New file.
5851         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
5853 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
5855         * sysdeps/unix/sysv/linux/syscalls.list
5856         (personality): Change caller to EXTRA.
5858 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
5860         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
5861         to keep gcc quiet.
5862         * iconvdata/iso-2022-cn.c (BODY): Likewise.
5864         * locale/programs/ld-collate.c (collate_output): Avoid warning if
5865         NDEBUG is defined.
5867         * Makerules: Use -p option with mkdir.
5869         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
5870         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
5871         (_xdr_directory_obj): Likewise.
5872         (xdr_entry_obj): Likewise.
5873         (xdr_group_obj): Likewise.
5874         (xdr_link_obj): Likewise.
5875         (xdr_table_obj): Likewise.
5876         (_xdr_nis_result): Likewise.
5877         (_xdr_ns_request): Likewise.
5878         (_xdr_ib_request): Likewise.
5879         (_xdr_nis_taglist): Likewise.
5880         (xdr_cback_data): Likewise.
5881         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
5882         (xdr_ypresp_maplist): Likewise.
5884         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
5886         * posix/regex_internal.h: Prevent some declarations and definitions
5887         to be seen when used in tests.
5889         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
5890         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
5892         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
5894         * config.make.in (datarootdir): Add to shut up configure.
5896         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
5897         associativity for fully-associative caches.
5899         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
5900         requests.  Fill on more associativity values for L2.
5901         Patch mostly by Evandro Menezes.
5903 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
5905         * sysdeps/unix/sysv/linux/x86_64/init-first.c
5906         (_libc_vdso_platform_setup): Avoid using exported variable by using
5907         alias.
5909         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
5911         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
5912         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
5913         defined.
5915 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
5917         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
5918         align stack for call if pltexit is to be used.
5920         [BZ #3924]
5921         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
5922         align for function call in case pltexit has to be called later.
5924         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
5925         implicit atomic operation when storing function pointer.
5926         (_dl_runtime_profile): Likewise.
5928 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
5930         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
5931         NIS_NOTFOUND.
5933 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
5935         [BZ #4566]
5936         * string/strtok.c: Fix typo in comment.
5938         [BZ #4582]
5939         * debug/segfault.c: Fix typos in comments.
5941         [BZ #4588]
5942         * stdio-common/tempnam.c: Fix comment, it is not checked that
5943         TMPDIR points to a writable directory.
5945         [BZ #4726]
5946         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
5947         memory allocated for the name server address.
5949         [BZ #4946]
5950         * nscd/connections.c (handle_request): Using sendfile always
5951         requires that mmap is used for the database.
5952         Patch by Petr Baudis <pasky@suse.cz>.
5954         [BZ #4905]
5955         * nscd/hstcache.c (cache_addhst): When reloading an entry which
5956         suddenly has two or more addresses, ignore it and remove the old
5957         entry.
5959         [BZ #4814]
5960         * resolv/res_hconf.c: Prepare for compiling outside libc.
5961         * nscd/res_hconf.c: New file.
5962         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
5963         the new file.
5964         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
5965         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
5967         * nscd/hstcache.c (cache_addhst): Minimal optimization.
5969         [BZ #4925]
5970         * debug/pcprofiledump.c: Turn on internationalization by calling
5971         setlocale.  Patch mostly by Benno Schulenberg.
5973         [BZ #4936]
5974         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
5975         the state.
5976         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
5977         * iconvdata/bug-iconv5.c: New file.
5979 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
5981         [BZ #4896]
5982         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
5983         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
5984         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
5985         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
5986         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
5987         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
5988         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
5989         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
5991 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
5993         [BZ #4937]
5994         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
5995         lookup loop.  Suggested by John Reiser.
5997 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
5999         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
6001 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
6003         * csu/libc-start.c: Don't handle VDSO_SETUP here.
6004         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
6005         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
6006         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
6007         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
6008         to...
6009         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
6011 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
6013         * po/nl.po: Update from translation team.
6015 2007-08-16  Andreas Jaeger  <aj@suse.de>
6017         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
6018         Reported by Peter Festner <peter.festner@ewetel.net>.
6020 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
6022         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
6024 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
6026         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
6027         to check for undefined symbols.
6029         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
6030         If the syscall fails, set errno to the actual returned error number
6031         rather than EINVAL.
6032         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
6033         arguments are incorrect, set errno to EINVAL, if the syscall
6034         fails, set errno to the actual returned error number.
6036         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
6037         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
6039         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
6040         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
6041         file.
6042         (ASI_PNF, ASI_BLK_P): Don't define.
6043         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
6044         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
6045         file.
6046         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
6047         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
6048         file.
6050 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
6052         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
6053         FE_UNDERFLOW on Niagara CPUs.
6055         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
6056         exceptions.
6058 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
6060         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
6061         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
6062         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
6063         flush should be used or not inside of the function.
6064         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
6066         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
6067         __thread_start): Use HIDDEN_JUMPTARGET.
6068         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
6069         __thread_start): Likewise.
6070         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
6072         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
6073         Add libc_hidden_proto.
6074         (STRTOF): Add libc_hidden_proto.
6075         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
6076         (strtold_l, wcstold_l): Use them as second argument for
6077         long_double_symbol.
6079 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
6081         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
6083 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6085         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
6087 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
6089         * po/bg.po: New file.  From the translation team.
6091 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
6093         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
6094         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
6095         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
6096         when each feature was introduced.
6098         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
6099         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
6100         (CHECK_HASH): New macro.
6101         (PREPARE_VERSION): Use it.
6103         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
6104         prototype if not __ASSUME_PSELECT.
6105         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
6106         prototype if not __ASSUME_PPOLL.
6108         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
6110         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
6111         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
6112         is defined.
6114 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
6116         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6117         (_libc_vdso_platform_setup): If vDSO is not available point
6118         __vdso_gettimeofday to the vsyscall.
6119         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
6120         __vdso_gettimeofday instead of vsyscall.
6122 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
6124         * nscd/servicescache.c: Include kernel-features.h.
6125         * nscd/gai.c: Likewise.
6126         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
6127         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
6128         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
6129         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
6130         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
6131         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
6132         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
6133         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
6134         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6136 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
6138         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
6139         and _dl_get_origin defines anymore.
6141         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
6142         Build fix for systems which might lack POSIX timer support.
6144         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6145         (_libc_vdso_platform_setup): Mangle function pointers before storing
6146         them.
6147         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
6148         Demangle vdso pointer before use.
6149         (INTERNAL_VSYSCALL): Likewise.
6151         * elf/cache.c (primes): Mark as const.
6152         Noted by Roland McGrath.
6154 2007-08-01  Andreas Jaeger  <aj@suse.de>
6155             Jakub Jelinek  <jakub@redhat.com>
6157         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
6158         (options): Add option.
6159         (parse_opt): Handle option.
6160         (manual_link): Adjust process_file caller.  Call implicit_soname.
6161         (search_dir): Formatting.  Use and populate auxiliary cache.
6162         (main): Load and save auxiliary cache.
6163         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
6164         stat64 from fstat64 to caller.
6165         (implicit_soname): New function.
6166         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
6167         leave *soname as NULL.
6168         * elf/cache.c: Include libgen.h.
6169         (print_entry, print_cache, compare, save_cache, add_to_cache):
6170         Formatting and cleanups.
6171         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
6172         aux_cache_file): New structures.
6173         (AUX_CACHEMAGIC): Define.
6174         (primes): New array.
6175         (aux_hash_size, aux_hash): New variables.
6176         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
6177         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
6178         load_aux_cache, save_aux_cache): New functions.
6179         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
6180         (init_aux_cache, search_aux_cache, add_to_aux_cache,
6181         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
6182         (process_file): Adjust prototype.
6184 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
6186         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
6187         with __need_size_t.
6189 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
6191         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
6192         r_found_version structure as second parameter.
6193         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
6194         (_dl_vdso_vsym): Change type of second parameter accordingly.
6195         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
6196         (_libc_vdso_platform_setup): Adjust.
6197         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6198         (_libc_vdso_platform_setup): Likewise.
6200         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
6201         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
6202         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
6203         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
6204         * csu/libc-start.c: Pretty printing.
6205         Use VDSO_SETUP if defined.
6206         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
6207         and let generic code call into _libc_vdso_platform_setup.
6208         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
6209         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
6210         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
6211         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
6212         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
6213         for GLIBC_PRIVATE.
6214         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
6215         (sysdep_rountines): Add dl-vdso.
6217         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
6218         of routines.
6220         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
6221         attribute_hidden to __vdso_gettimeofday prototype.
6223 2007-08-12  Roland McGrath  <roland@redhat.com>
6225         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
6226         From: Karl Berry <karl@freefriends.org>.
6228 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
6230         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
6231         an atime update for the files we read.
6233 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
6235         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
6237         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
6238         instead of mkstemp.
6240         * misc/Makefile (routines): Add mkostemp and mkostemp64.
6241         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
6242         * misc/mkostemp.c: New file.
6243         * misc/mkostemp64.c: New file.
6244         * stdlib/stdlib.h: Declare the new functions.
6245         * sysdeps/posix/tempname.c: Add new parameter which is added to
6246         the flags for open.  Remove __GT_BIGFILE handling.
6247         * stdio-common/tempname.c: Likewise.
6248         * include/stdio.h: Adjust __gen_tempname prototype.
6249         Renumber __GT_* constants.
6250         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
6251         * misc/mkdtemp.c: Likewise.
6252         * misc/mkstemp.c: Likewise.
6253         * misc/mkstemp64.c: Likewise.
6254         * misc/mktemp.c: Likewise.
6255         * stdio-common/tempnam.c: Likewise.
6256         * stdio-common/tmpfile.c: Likewise.
6257         * stdio-common/tmpfile64.c: Likewise.
6258         * stdio-common/tmpnam.c: Likewise.
6259         * stdio-common/tmpnam_r.c: Likewise.
6261 2007-08-10  Roland McGrath  <roland@frob.com>
6263         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
6264         New macros.
6265         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
6266         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6268 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
6270         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
6271         possible.
6272         * nss/nss_files/files-alias.c (internal_setent): Likewise.
6273         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
6274         * nss/nss_files/files-have_o_cloexec.c: New file.
6276         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
6277         available.
6279 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
6281         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
6282         ___new_wcstold_l): New weak aliases.
6283         (strtold_l, wcstold_l): Use them as second argument for
6284         long_double_symbol.
6286 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
6288         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
6289         register in test for error.
6291         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
6292         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
6294         * po/sv.po: Update from translation team.
6296 2007-08-06  Roland McGrath  <roland@redhat.com>
6298         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
6299         Remove __strto*_l inlines.
6300         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
6301         * stdlib/strtod.c: Add libc_hidden_def.
6302         * stdlib/strtod_l.c: Likewise.
6303         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
6304         for __new_strtold and __new_wcstold.
6305         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
6306         __STRTOF, STRTOF.
6307         * stdlib/strtol.c: Add libc_hidden_def.
6308         * stdlib/strtol_l.c: Likewise.
6309         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
6310         strtoq.
6312         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
6314         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
6315         * scripts/data/localplt-generic.data: ... here.
6316         * elf/Makefile (check-data): Get generic file if no other.
6317         ($(objpfx)check-localplt.out): Make target unconditional.
6319         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
6320         Use ElfW(Nhdr).
6322 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
6324         * po/zh_CN.po: Updated translation from translation team.
6326 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
6328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
6329         Don't use CGOTSETUP and CGOTRESTORE macros.
6331 2007-08-04  Roland McGrath  <roland@redhat.com>
6333         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
6335 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
6337         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
6338         __extension__ around the whole statement expression.
6340 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
6342         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
6343         elements during initialization.
6345         * po/pl.po: Updated translation from translation team.
6346         * po/tr.po: Likewise.
6347         * po/nl.po: Likewise.
6349 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
6351         * rt/aio.h: Add __nonnull attributes.
6353 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
6355         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
6356         * stdlib/Makefile (tests): Add tst-strtod5.
6357         (tst-strtod5-ENV): New.
6358         * stdlib/tst-strtod5.c: New file.
6360         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
6361         failed.
6362         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
6363         on failure.
6365         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
6366         allocated.
6368 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
6370         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
6371         numbers.
6373 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
6375         * io/Makefile (aux): Add have_o_cloexec.
6376         * include/fcntl.h: Declare __have_o_cloexec.
6377         * io/have_o_cloexec.c: New file.
6378         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
6379         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
6380         fcntl call if not necessary.
6381         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
6382         of local variable.
6384         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
6385         Avoid memset, add explicit initialization.
6386         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
6387         to the end and change into zero-sized array.
6388         Move lock member to fill a hole on 64-bit platforms.
6390         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
6391         inline functions.
6392         * include/stdlib.h: Add __strto*_internal prototypes here.
6393         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
6394         inline functions.
6395         * include/wchar.h: Add __wcsto*_internal prototypes.
6396         * sysdeps/generic/inttypes.h: No need to protect the declaration
6397         of the __strto*_internal and __wcsto*_internal members here.
6399         * rt/mqueue.h: Change const to __const and add nonnull attributes.
6401 2007-08-02  Roland McGrath  <roland@redhat.com>
6403         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
6404         $(inst_bindir)/getconf if possible.
6406         * posix/Makefile ($(objpfx)getconf.speclist): New target.
6407         (generated): Add it.
6408         ($(inst_libexecdir)/getconf): Use it.
6410 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
6412         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
6413         /proc is faster and sufficient.  /sys is still needed for
6414         __get_nprocs_conf.
6416 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
6418         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
6419         syscall as __fallocate64.
6420         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
6421         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
6423 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
6425         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
6426         value.
6428         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
6429         if off_t is different rank from size_t.
6431         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
6432         uw_frame_state_for): Avoid type punning warnings.
6433         * sysdeps/generic/unwind-dw2-fde-glibc.c
6434         (_Unwind_IteratePhdrCallback): Likewise.
6435         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
6436         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
6437         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
6438         pointers.
6440 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
6442         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
6443         total processors using sysfs.
6444         (__get_nprocs): Use sysfs to determine which processors are online.
6446 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
6448         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
6449         syscall arguments count.
6451         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
6453 2007-07-30  Roland McGrath  <roland@redhat.com>
6455         * manual/libc.texinfo: Update copyrights, formatting magic, and
6456         @dircategory.  From Karl Berry <karl@freefriends.org>.
6458 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
6460         [BZ #4860]
6461         * io/Makefile (headers): Add bits/fcntl2.h.
6463         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
6464         using gcc builtin.
6465         (__CPU_EQUAL_S): Likewise.
6467         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
6468         (tests): Add tst-cpuset.
6469         * posix/sched_cpualloc.c: New file.
6470         * posix/sched_cpufree.c: New file.
6471         * posix/tst-cpuset.c: New file.
6472         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
6473         GLIBC_2.7.
6474         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
6475         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
6476         macros.  Define CPU_*_S macros.
6478 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
6480         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
6481         entry.
6483         [BZ #4858]
6484         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
6485         #.0g and value rounded to 1.0.
6486         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
6488 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
6490         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
6491         for int_frac_digits and frac_digits.
6493         * login/logout.c (logout): Avoid aliasing violation.
6494         * login/logwtmp.c (logwtmp): Likewise.
6496         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
6498         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
6499         to avoid warning.
6500         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
6501         warning.
6502         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
6503         warning.
6504         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
6505         to avoid warnings.
6507         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
6508         void **.
6509         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
6511         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
6512         char * to avoid warning.
6513         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
6515         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
6517         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
6518         allocate_arrays): Cast second argument to charmap_find_symbol
6519         to char * to avoid warnings.
6521         * locale/programs/repertoire.c (repertoire_new_char): Change
6522         from_nr, to_nr and cnt to unsigned long, adjust printf format
6523         string.
6525         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
6526         Cast second argument to new_element to char * to avoid warnings.
6528         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
6530         * intl/gettextP.h (struct loaded_domain): Change plural to const
6531         struct expression *.
6532         * intl/plural-eval.c (plural_eval): Change first argument to
6533         const struct expression *.
6534         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
6535         argument to const struct expression **.
6536         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
6537         prototypes.
6538         * intl/loadmsgcat (_nl_unload_domain): Cast away const
6539         in call to __gettext_free_exp.
6541         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
6542         unitialized wstring/wpattern var warnings.
6544         * posix/runtests.c (struct a_test): Make data field const char *.
6546         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
6547         vars if not LDBL_MANT_DIG >= 106.
6549         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
6551         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
6552         __find_specmb to avoid warning.
6554         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
6556         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
6557         to avoid warnings.
6559         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
6560         initializer.
6562         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
6563         tv var when it will be actually used.
6565         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
6566         to avoid warnings.
6568         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
6569         char array resp. pointer.
6570         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
6571         char array.
6572         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
6573         to const unsigned char **.
6574         (ucs4_to_cns11643): Change second argument to unsigned char *.
6575         * iconvdata/euc-tw.c (BODY): Change endp type to
6576         const unsigned char *.
6577         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
6578         to unsigned char *.
6579         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
6580         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
6581         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
6582         types to unsigned char pointers/arrays instead of char.
6583         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
6584         to unsigned char *.
6585         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
6586         * iconvdata/jis0212.h: Include assert.h.
6587         (ucs4_to_jisx0212): Change second argument to unsigned char *.
6588         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
6589         of trying to handle that.
6590         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
6591         shut up a warning.
6592         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
6593         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
6594         two dimensional const unsigned char arrays.
6595         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
6596         Initialize endp to inptr to shut up a warning.
6598 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
6600         [BZ #4772]
6601         * time/strptime_l.c (__strptime_internal): Silently ignore
6602         strftime modifiers and field width in recursive calls.
6604         * include/time.h (enum ptime_locale_status): Remove.
6605         (__strptime_internal): Remove decided and era_cnt arguments,
6606         add statep argument.
6607         * time/strptime_l.c (__strptime_internal): Remove decided
6608         and era_cnt arguments, add statep argument.  Don't recompute
6609         any fields in recursive calls, only update caller's tm
6610         and state, if recursive call fails, don't change tm nor
6611         any state.
6612         (get_alt_number): Adjust.
6613         (recursive): Adjust caller.
6614         (strptime): Likewise.
6615         * time/strptime.c (strptime): Likewise.
6617 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
6619         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
6620         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
6621         if from and to charsets are the same.
6622         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
6623         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
6624         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
6626 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
6628         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
6629         Don't define wint_t when __need_mbstate_t unless it
6630         is necessary.
6631         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
6632         in the typedef if possible.
6633         * wctype/wctype.h (wint_t): Define by including
6634         wchar.h with __need_wint_t instead of including stddef.h
6635         with __need_wint_t and as fallback definining it ourselves.
6636         * iconv/gconv.h (__need_wint_t): Define before including
6637         wchar.h.
6638         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
6639         or _GLIBCPP_USE_WCHAR_T.
6640         (__need_wchar_t): Don't define
6641         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6642         (__need_wint_t): Don't define before including stddef.h,
6643         define before including wchar.h only if _LIBC or
6644         _GLIBCPP_USE_WCHAR_T.
6645         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6646         * sysdeps/mach/hurd/_G_config.h: Likewise.
6647         * sysdeps/generic/_G_config.h: Likewise.
6648         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
6649         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
6650         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
6651         if _LIBC or _GLIBCPP_USE_WCHAR_T.
6653 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
6655         * sysdeps/posix/posix_fallocate64.c: Undefine
6656         __posix_fallocate64_l64 before alias handling.
6657         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
6658         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
6659         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
6660         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
6662         * io/tst-posix_fallocate.c: Include <fcntl.h>.
6664 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
6666         * locale/programs/ld-collate.c (atwc): New variable.
6667         (add_to_tablewc): New toplevel function, moved from collate_output.
6668         (collate_output): Remove add_to_tablewc nested function.
6670         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
6671         (name_insert): New function.
6672         (write_output): Remove hash_table and hash_size vars and name_insert
6673         nested function.
6675 2007-07-24  Roland McGrath  <roland@redhat.com>
6677         * Makerules (install-others-programs-nosubdir): New target.
6678         (install-no-libc.a-nosubdir): Depend on it.
6680         * iconv/Makefile (install-others-programs): Set this instead of
6681         install-others.
6682         * login/Makefile (install-others-programs): Likewise.
6683         * posix/Makefile (install-others-programs): Likewise.
6685         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
6686         dependencies.
6688 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
6690         * io/Makefile (tests): Add tst-posix_fallocate.
6691         * io/tst-posix_fallocate.c: New file.
6693         * sysdeps/unix/sysv/linux/kernel-features.h: Define
6694         __ASSUME_FALLOCATE.
6696 2007-07-22  Roland McGrath  <roland@frob.com>
6698         * hurd/getdport.c: Add missing copyright year update.
6700         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
6701         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
6703 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
6705         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
6707         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
6708         O_CLOEXEC is needed.
6709         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
6710         Avoid additional fcntl to set O_CLOEXEC if not needed.
6711         * nis/nss_compat/compat-initgroups.c: Likewise.
6712         * nis/nss_compat/compat-pwd.c: Likewise.
6713         * nis/nss_compat/compat-spwd.c: Likewise.
6715 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6717         [BZ #3665]
6718         * manual/errno.texi: Change ECANCELED value to 119.
6720         [BZ #4610]
6721         * mach/lock-intern.h: Include <sys/cdefs.h>.
6723         [BZ #4178]
6724         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
6725         reading A.
6727         [BZ #4126]
6728         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
6729         to __sigsuspend.
6731         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
6733 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
6735         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
6736         `__ASSEMBLER__'.
6737         * sysdeps/mach/hurd/i386/tls.h: Likewise.
6739 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
6741         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
6742         descriptor received from nscd.
6744         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
6746         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
6747         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6748         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6749         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6750         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6751         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6753 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
6755         [BZ #4816]
6756         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
6758         [BZ #4813]
6759         * login/forkpty.c (forkpty): Close master and slave fds on
6760         fork failure.  Patch by
6761         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
6763 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
6765         * include/features.h (__USE_ISOC95): New define.
6766         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
6767         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
6768         for -std=iso9899:199409.
6769         * CONFORMANCE: Remove comments about unsupported AMD1.
6771 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
6773         * sysdeps/ia64/sched_cpucount.c: New file.
6774         * sysdeps/powerpc/sched_cpucount.c: New file.
6776         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
6777         __BEGIN_DECLS/__END_DECLS around the prototype.
6778         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
6779         pointer to const cpu_set_t.
6781         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
6782         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
6783         __need_size_t and include stddef.h.
6784         * sysvipc/sys/msg.h: Likewise.
6785         * posix/sched.h: Likewise.
6786         * hurd/hurd/signal.h (__need_size_t): Define.
6788         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
6789         neither does signal.h in pedantic ISO C namespaces.  stdio.h
6790         no longer defines wint_t or wchar_t.
6792         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
6793         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
6794         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
6795         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
6796         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
6797         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
6798         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
6799         * debug/printf_chk.c (__printf_chk): Likewise.
6800         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
6801         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
6803         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
6804         Define.
6806         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
6807         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
6809 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
6811         [BZ #4792]
6812         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
6813         * malloc/malloc.h (realloc): Likewise.
6815         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
6816         if one of proc_file_chain streams has that fileno.
6817         * stdio-common/Makefile (tests): Add tst-popen2.
6818         * stdio-common/tst-popen2.c: New test.
6820 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
6822         * elf/ldconfig.c: Allow GPLv2 or any later version.
6823         * elf/readlib.c: Likewise.
6824         * elf/chroot_canon.c: Likewise.
6825         * elf/cache.c: Likewise.
6826         * nscd/mem.c: Likewise.
6827         * nscd/getpwuid_r.c: Likewise.
6828         * nscd/grpcache.c: Likewise.
6829         * nscd/aicache.c: Likewise.
6830         * nscd/getsrvbynm_r.c: Likewise.
6831         * nscd/nscd.c: Likewise.
6832         * nscd/servicescache.c: Likewise.
6833         * nscd/getsrvbypt_r.c: Likewise.
6834         * nscd/initgrcache.c: Likewise.
6835         * nscd/gethstbyad_r.c: Likewise.
6836         * nscd/gethstbynm2_r.c: Likewise.
6837         * nscd/getgrnam_r.c: Likewise.
6838         * nscd/nscd_setup_thread.c: Likewise.
6839         * nscd/getpwnam_r.c: Likewise.
6840         * nscd/gai.c: Likewise.
6841         * nscd/connections.c: Likewise.
6842         * nscd/dbg_log.c: Likewise.
6843         * nscd/cache.c: Likewise.
6844         * nscd/hstcache.c: Likewise.
6845         * nscd/nscd_conf.c: Likewise.
6846         * nscd/getgrgid_r.c: Likewise.
6847         * nscd/pwdcache.c: Likewise.
6848         * catgets/gencat.c: Likewise.
6849         * locale/programs/linereader.h: Likewise.
6850         * locale/programs/locarchive.c: Likewise.
6851         * locale/programs/ld-paper.c: Likewise.
6852         * locale/programs/locfile-kw.h: Likewise.
6853         * locale/programs/ld-address.c: Likewise.
6854         * locale/programs/xmalloc.c: Likewise.
6855         * locale/programs/ld-time.c: Likewise.
6856         * locale/programs/localedef.c: Likewise.
6857         * locale/programs/simple-hash.c: Likewise.
6858         * locale/programs/xstrdup.c: Likewise.
6859         * locale/programs/ld-numeric.c: Likewise.
6860         * locale/programs/locfile-kw.gperf: Likewise.
6861         * locale/programs/ld-collate.c: Likewise.
6862         * locale/programs/charmap-kw.gperf: Likewise.
6863         * locale/programs/charmap.h: Likewise.
6864         * locale/programs/charmap-kw.h: Likewise.
6865         * locale/programs/config.h: Likewise.
6866         * locale/programs/locfile.c: Likewise.
6867         * locale/programs/ld-ctype.c: Likewise.
6868         * locale/programs/charmap.c: Likewise.
6869         * locale/programs/ld-messages.c: Likewise.
6870         * locale/programs/repertoire.h: Likewise.
6871         * locale/programs/locale.c: Likewise.
6872         * locale/programs/ld-name.c: Likewise.
6873         * locale/programs/linereader.c: Likewise.
6874         * locale/programs/locfile.h: Likewise.
6875         * locale/programs/3level.h: Likewise.
6876         * locale/programs/ld-monetary.c: Likewise.
6877         * locale/programs/ld-measurement.c: Likewise.
6878         * locale/programs/charmap-dir.c: Likewise.
6879         * locale/programs/ld-identification.c: Likewise.
6880         * locale/programs/localedef.h: Likewise.
6881         * locale/programs/charmap-dir.h: Likewise.
6882         * locale/programs/repertoire.c: Likewise.
6883         * locale/programs/simple-hash.h: Likewise.
6884         * locale/programs/ld-telephone.c: Likewise.
6885         * locale/programs/locale-spec.c: Likewise.
6886         * locale/programs/locfile-token.h: Likewise.
6887         * posix/getconf.c: Likewise.
6888         * iconv/dummy-repertoire.c: Likewise.
6889         * iconv/iconv_charmap.c: Likewise.
6890         * iconv/iconvconfig.c: Likewise.
6891         * iconv/iconv_prog.c: Likewise.
6892         * malloc/memusagestat.c: Likewise.
6893         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
6895 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6897         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
6898         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
6899         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
6900         check for the first argument.
6902 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
6904         [BZ #4775]
6905         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
6906         (__tgmath_real_type): Fix if expr is const int or other const
6907         qualified integral type.
6908         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
6909         expressions and handle const qualified arguments.
6910         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
6911         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
6912         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
6913         statement expressions.
6914         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
6915         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
6916         (__TGMATH_UNARY_IMAG): Define.
6917         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
6918         * math/Makefile (tests): Add test-tgmath2.
6919         (CFLAGS-test-tgmath2.c): Add.
6920         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
6921         count_cfloat, count_cldouble): New variables.
6922         (NCCALLS): Define.
6923         (main): Check number of complex calls as well.
6924         (F(compile_test)): Add complex tests and tests with const qualified
6925         arguments.
6926         (y, z, ccount): Define.
6927         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
6928         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
6929         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
6930         F(cproj)): New functions.
6931         * math/test-tgmath2.c: New test.
6933 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
6935         [BZ #4776]
6936         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
6937         RPATH etc. as "/" rather than "", don't segfault on empty paths,
6938         instead output ".".
6939         * dlfcn/Makefile (distribute): Add glreflib3.c.
6940         (module-names): Add glreflib3.
6941         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
6942         glreflib1.so.
6943         (LDFLAGS_glreflib3.so): New.
6944         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
6945         glreflib1.so.
6946         * dlfcn/glreflib3.c: New file.
6948         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
6949         returned -1, return NULL.
6950         * intl/explodename.c (_nl_explode_name): Return -1 if
6951         _nl_normalize_codeset failed.
6953 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
6955         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
6956         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
6957         and avoid branch misspredicts for > 31 bytes memset case.
6958         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
6959         Remove toc ref to __cache_line_size.
6961         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
6962         to get ISA-V2.0 branch hints.
6963         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
6964         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
6965         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6966         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
6967         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
6968         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
6969         Remove toc ref to __cache_line_size.
6971         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
6972         Include math_ldbl_opt.h.
6974 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
6976         [BZ #4773]
6977         * time/strptime_l.c (__strptime_internal): Implement greedy
6978         matching of weekday and month names.
6980 2007-07-09  Roland McGrath  <roland@redhat.com>
6982         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
6983         (ELF_NOTE_ABI): Use it.
6984         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
6986 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
6988         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
6989         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6991 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
6993         [BZ #4745]
6994         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
6995         in loop to look for conversion specifier to avoid testing of
6996         wrong errno value.
6997         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
6998         * stdio-common/bug18.c: New file.
6999         * stdio-common/bug18a.c: New file.
7000         * stdio-common/bug19.c: New file.
7001         * stdio-common/bug19a.c: New file.
7003 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
7005         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
7006         running awk script.
7008 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
7010         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
7011         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
7012         Return NULL if mmap failed instead of asserting it does not.
7013         (calloc): Check for integer overflow.
7015         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
7016         than LONG_MAX / 10.
7018 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
7020         [BZ #4702]
7021         * nis/nss-default.c: Include errno.h.
7022         (init): Preserve errno.
7024 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
7026         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
7028 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
7030         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
7032 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7034         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
7036 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7038         * sysdeps/s390/dl-procinfo.c: New file.
7039         * sysdeps/s390/dl-procinfo.h: New file.
7040         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
7042 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
7044         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
7045         in PT_NOTE segments with multiple notes.
7046         * elf/readelflib.c (process_elf_file): Likewise.
7048 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
7050         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
7051         ISO C compliant.
7053 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
7055         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
7057 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
7059         * include/link.h: Don't include rtld-lowlevel.h.
7060         (struct link_map): Remove l_scope_lock.
7061         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
7062         (_dl_scope_free_list): New field (variable) in _rtld_global.
7063         (DL_LOOKUP_SCOPE_LOCK): Remove.
7064         (_dl_scope_free): New prototype.
7065         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
7066         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
7067         (_dl_profile_fixup): Likewise.
7068         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
7069         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
7070         THREAD_GSCOPE_RESET_FLAG around it.
7071         * elf/dl-close.c (_dl_close_worker): Don't use
7072         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
7073         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
7074         scopes were queued or if l_scope_mem has been abandoned.
7075         * elf/dl-open.c (_dl_scope_free): New function.
7076         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
7077         * elf/dl-support.c (_dl_scope_free_list): New variable.
7078         * elf/dl-lookup.c (add_dependency): Remove flags argument.
7079         Remove DL_LOOKUP_SCOPE_LOCK handling.
7080         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
7081         handling.
7082         * elf/dl-object.c (_dl_new_object): Don't use
7083         __rtld_mrlock_initialize.
7085 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
7087         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
7088         to fill in holes
7089         (rtld_global_ro): Likewise.
7091 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7093         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
7094         Move PT_LOAD checking to...
7095         (_dl_addr_inside_object): ... here, new function.
7096         * elf/dl-sym.c (do_sym): If not l_contiguous,
7097         call _dl_addr_inside_object.
7098         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7099         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7100         * elf/dl-open.c (dl_open_worker): Likewise.
7101         (_dl_addr_inside_object): New function if IS_IN_rtld.
7102         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
7103         holes are present or are PROT_NONE protected.
7104         * include/link.h (struct link_map): Add l_contiguous field.
7105         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
7107 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7108             Tomas Janousek  <tjanouse@redhat.com>
7109             Ulrich Drepper  <drepper@redhat.com>
7111         [BZ #4647]
7112         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
7113         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
7114         socket.
7115         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
7116         unused member a bitmap.
7117         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
7118         servers are configured.
7120 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7122         * elf/rtld.c (dl_main): Don't call init_tls more than once.
7124 2007-06-17  Andreas Schwab  <schwab@suse.de>
7126         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
7128 2007-06-16  Andreas Jaeger  <aj@suse.de>
7130         [BZ #4125]
7131         * sysdeps/unix/sysv/linux/sys/ptrace.h
7132         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
7133         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
7134         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
7135         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
7136         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
7137         Define.
7138         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7139         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7140         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7141         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7143 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
7145         [BZ #4599]
7146         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
7147         determining whether there are IPv4/IPv6 addresses, ignore loopback
7148         addresses.
7150 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
7152         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
7153         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
7154         as the return type.  Change type of "r" variable to CMPtype.
7155         * soft-fp/eqsf2.c (__eqsf2): Likewise.
7156         * soft-fp/eqtf2.c (__eqtf2): Likewise.
7157         * soft-fp/gedf2.c (__gedf2): Likewise.
7158         * soft-fp/gesf2.c (__gesf2): Likewise.
7159         * soft-fp/getf2.c (__getf2): Likewise.
7160         * soft-fp/ledf2.c (__ledf2): Likewise.
7161         * soft-fp/lesf2.c (__lesf2): Likewise.
7162         * soft-fp/letf2.c (__letf2): Likewise.
7163         * soft-fp/unorddf2 (__unorddf2): Likewise.
7164         * soft-fp/unordsf2 (__unordsf2): Likewise.
7165         * soft-fp/unordtf2 (__unordtf2): Likewise.
7167 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
7169         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
7170         make sure gcc doesn't mess around with this.
7172 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
7174         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
7176 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
7178         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
7179         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
7180         at most once per _dl_close_worker.
7182 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
7184         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
7185         __sched_cpucount as const.
7186         * posix/sched_cpucount.c: Adjust.
7188         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
7189         instruction for counting bits.
7190         * sysdeps/x86_64/sched_cpucount.c: New file.
7192 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
7194         * configure.in: Avoid variable named BASH.
7195         * config.make.in: Likewise.
7196         Patch in part by Mike Frysinger.
7198 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
7200         [BZ #4586]
7201         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
7202         pseudo-zeros as zero.
7203         * sysdeps/x86_64/ldbl2mpn.c: New file.
7204         * sysdeps/ia64/ldbl2mpn.c: New file.
7206 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
7208         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
7209         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
7210         Remove unreachable code at the end.
7212 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
7214         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
7215         ldbl-128ibm in comment.
7216         (fpclassifyl): Correct classification of denormals.
7217         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
7218         return value for MIN denormal. Rewrite using long double math too
7219         correctly handle denormals and canonicalize the results.
7221 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
7223         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
7224         (__mpn_construct_long_double): Fix conversion where result ought
7225         to be smaller than __LDBL_MIN__, or the low double should be
7226         denormal.  Fix decision where to negate low double - honor round
7227         to even rules.
7228         * stdio-common/tst-sprintf2.c: Include string.h.
7229         (COMPARE_LDBL): Define.
7230         (TEST): Also test whether a string hexadecimal float representation
7231         can be parsed back to the number.
7232         (main): Add a couple of further tests.
7234 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
7236         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
7237         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
7238         is non-zero, but smaller than 2 * __DBL_MIN__.
7239         * stdio-common/tst-sprintf2.c: New test.
7240         * stdio-common/Makefile (tests): Add tst-sprintf2.
7242         * math/test-misc.c (main): Don't run last batch of tests with
7243         IBM long double format.
7245 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7247         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
7248         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
7249         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
7250         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
7251         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7252         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
7253         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
7254         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
7255         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
7256         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
7258         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
7259         New file.
7260         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
7261         New file.
7262         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
7263         New file.
7264         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
7265         New file.
7266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
7267         New file.
7268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
7269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
7270         New file.
7271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
7272         New file.
7273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
7274         New file.
7275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
7276         New file.
7277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
7278         New file.
7280 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7282         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
7283         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
7284         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
7285         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
7286         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
7287         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
7288         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
7289         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
7291 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
7293         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
7294         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7295         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
7296         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7297         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
7298         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7299         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
7300         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7302 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
7304         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
7305         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
7306         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
7307         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
7309 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
7311         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
7312         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
7314 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
7316         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
7317         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
7318         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
7319         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
7321 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
7323         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
7324         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
7326 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
7328         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
7329         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
7331         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
7332         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
7333         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
7334         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
7336 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
7338         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
7339         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
7340         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
7341         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
7343 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
7345         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
7346         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
7347         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
7348         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7349         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
7350         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7352 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
7354         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
7355         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
7356         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
7357         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
7359 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
7361         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
7362         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
7363         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
7364         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
7365         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
7366         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
7367         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
7368         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
7369         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
7370         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
7371         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
7372         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
7373         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
7374         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
7375         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
7376         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
7378 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
7380         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
7381         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
7383 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
7385         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
7386         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
7388 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7390         * sysdeps/powerpc/powerpc32/970/Implies: New file.
7391         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
7392         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
7393         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
7394         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
7395         * sysdeps/powerpc/powerpc64/970/Implies: New file.
7396         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
7397         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
7398         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
7399         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
7401 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
7403         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
7405 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
7407         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
7408         branch miss-predicts. Ensure that cache line crossing does not impact
7409         dispatch grouping.
7411 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
7413         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
7414         "../../powerpc32/power4/memcopy.h".
7415         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
7416         "../../powerpc32/power4/wordcopy.c".
7418 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
7420         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
7421         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
7422         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
7423         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
7424         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
7425         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7427 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
7429         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
7431 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
7433         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
7434         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
7435         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
7436         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
7437         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
7438         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
7439         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
7440         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
7442 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
7444         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
7446 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
7448         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
7449         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
7450         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
7451         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
7452         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
7453         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
7454         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
7456 2007-05-29  Roland McGrath  <roland@redhat.com>
7458         * po/Makefile (po-sed-cmd): New variable.
7459         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
7461 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
7463         * crypt/md5-crypt.c: Fix comment.
7465         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
7466         of crashing.  When this is the case or if the reply is malformed,
7467         don't try to close the new file descriptor since it does not
7468         exist.
7469         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
7471 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
7473         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
7474         if __NR_utimensat is not defined.
7476 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
7478         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
7480 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
7482         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
7483         (open): Fix comment typos.  Don't call __open_2 if flags
7484         is a compile time constant without O_CREAT.
7485         (__open64_2): Add nonnull attribute.
7486         (open64): Fix comment typos.  Don't call __open64_2 if flags
7487         is a compile time constant without O_CREAT.
7488         (__openat_2): Add nonnull attribute, fix nonnull attribute
7489         on redirect.
7490         (openat): Fix comment typos.  Don't call __openat_2 if flags
7491         is a compile time constant without O_CREAT.
7492         (__openat64_2): Add nonnull attribute, fix nonnull attribute
7493         on redirect.
7494         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
7495         is a compile time constant without O_CREAT.
7497 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
7499         * Makerules (sysd-rules): Define PTW for ptw-* files.
7500         * Versions: Define GLIBC_2.7 for libc.
7501         * include/stdio.h: Declare __fortify_fail.
7502         * debug/fortify_fail.c: New file.
7503         * debug/Makefile (routines): Add fortify_fail.
7504         * debug/chk_fail.c: Use __fortify_fail.
7505         * debug/stack_chk_fail.c: Likewise.
7506         * io/Versions: Export __open_2, __open64_2, __openat_2, and
7507         __openat64_2 for GLIBC_2.7.
7508         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
7509         * io/open.c: Define *_2 variant of function which checks for O_CREAT
7510         and fails if necessary.
7511         * io/open64.c: Likewise.
7512         * io/openat.c: Likewise.
7513         * io/openat64.c: Likewise.
7514         * sysdeps/unix/sysv/linux/open64.c: Likewise.
7515         * sysdeps/unix/sysv/linux/openat.c: Likewise.
7516         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
7517         * io/bits/fcntl2.h: New file.
7518         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
7519         __openat64_2.
7520         * include/bits/fcntl2.h: New file.
7521         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7522         Add open_2.
7523         * sysdeps/unix/sysv/linux/open_2.c: New file.
7525 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
7527         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
7528         as second parameter to handle_intel.
7530         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
7531         the entry.
7533         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
7534         handling to ...
7535         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
7536         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
7537         cacheinfo.
7538         * sysdeps/x86_64/memcpy.S: Complete rewrite.
7539         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
7540         Patch by Evandro Menezes <evandro.menezes@amd.com>.
7542         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
7544 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
7546         [BZ #4525]
7547         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
7548         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
7549         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
7551         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
7553         [BZ #4514]
7554         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
7555         reinitialize workend at the start of each do_positional format spec
7556         loop, free workstart before do_positional loops.
7557         (printf_unknown): Fix size of work_buffer.
7558         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
7560         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
7561         (public_sET_STATe): If ms->version < 3, put all chunks into
7562         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
7563         chunks.
7565         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
7566         * malloc/hooks.c: Likewise.
7567         * malloc/arena.c: Likewise.
7568         * malloc/malloc.c (do_check_malloc_state): Don't assert
7569         n_mmaps is not greater than n_mmaps_max.  This removes the need
7570         for the previous change.
7572         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
7573         2007-05-07 commit.
7575 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
7577         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
7578         Define for kernel >= 2.6.22.
7580 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
7582         * elf/dl-close.c (_dl_close_worker): When removing object from
7583         global scope, wait for all lookups to finish afterwards.
7584         * elf/dl-open.c (add_to_global): When global scope array must
7585         grow, allocate a new one and free old array only after all
7586         lookups finish.
7587         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
7588         (_dl_lookup_symbol_x): Likewise.
7589         * elf/dl-support.c: Define _dl_wait_lookup_done.
7590         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
7591         _dl_wait_lookup_done.
7593         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
7594         not overlapping with arena.
7596         * malloc/mcheck.c (reallochook): If size==0, free the block.
7598         * rt/tst-shm.c: Use fstat64 instead of fstat.
7600         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
7601         __NR_sync_file_range is not defined.
7603 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
7605         Dummy files to prevent stub versions from being used.
7606         * sysdeps/x86_64/fpu/k_cosl.c: New file.
7607         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
7608         * sysdeps/x86_64/fpu/k_sinl.c: New file.
7609         * sysdeps/x86_64/fpu/k_tanl.c: New file.
7611         * version.h (VERSION): Set to 2.6.90.
7613 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
7615         * version.h (VERSION): Define to 2.6.
7616         * include/features.h (__GLIBC_MINOR__): Define to 6.
7618         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
7620         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
7621         sizes.
7623 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
7625         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
7626         number of mmaps.  n_mmaps_max is the target.
7627         * malloc/hooks.c: Likewise.
7628         * malloc/arena.c: Likewise.
7630 2007-05-12  Andreas Jaeger  <aj@suse.de>
7632         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
7633         getpid.
7635 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
7637         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
7638         adding new variables.
7640         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
7641         optimize.  Completely extend global scope array before making the
7642         new entries visible.
7644 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
7646         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
7647         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
7648         tst-getcpu.
7650         * include/link.h: Move l_version and l_nversion members around to
7651         fill gaps.
7653         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
7655         * sysdeps/unix/sysv/linux/sched_setaffinity.c
7656         (__sched_setaffinity_new): If syscall was successful and
7657         RESET_VGETCPU_CACHE is defined, use it before returning.
7658         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
7660         * io/sys/stat.h: Make sure struct timespec is defined for
7661         __USE_ATFILE.
7663         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
7664         UTIME_OMIT.
7665         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7666         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7667         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
7668         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7669         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
7670         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7671         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
7672         * io/sys/stat.h: Declare utimensat, futimens.
7673         * io/utimensat.c: New file.
7674         * io/futimens.c: New file.
7675         * sysdeps/unix/sysv/linux/utimensat.c: New file.
7676         * sysdeps/unix/sysv/linux/futimens.c: New file.
7677         * io/Makefile (routines): Add utimensat, futimens.
7678         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
7679         * sysdeps/unix/sysv/linux/lutimes.c: New file.
7680         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
7681         available.
7683         * include/sys/cdefs.h: Redefine __nonnull so that test for
7684         incorrect parameters in the libc code itself are not omitted.
7686 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
7688         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
7689         exception in addition to inexact when asked to raise only FE_INEXACT.
7691         [BZ #3427]
7692         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
7693         in *envp.
7695 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
7697         [BZ #4403]
7698         * string/strfry.c (strfry): Make result more random.
7700 2007-05-07  Richard Henderson  <rth@redhat.com>
7702         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
7703         if __NO_LONG_DOUBLE_MATH.
7704         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
7705         available in the compiler, add .arch directive to the assembly.
7707 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
7709         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
7710         compat_symbol to GLIBC_2_1.
7711         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
7712         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
7713         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
7714         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
7715         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
7716         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
7717         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
7718         libc, not libm.
7719         (__isnanl): New compat_symbol.
7721 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
7722             Jakub Jelinek  <jakub@redhat.com>
7724         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
7725         (new_heap): Initialize mprotect_size.
7726         (grow_heap): When growing, only mprotect from mprotect_size till
7727         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
7728         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
7730 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
7731             Peter Bergner  <bergner@us.ibm.com>
7733         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
7734         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
7735         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
7736         * sysdeps/powerpc/fpu/fe_mask.c: New file.
7737         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
7738         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
7739         Call __fe_mask_env() if all FP exceptions disabled.
7740         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
7741         from old FPSCR to new fenv to propagate DFP rounding modes.
7742         Call __fe_mask_env() if FP exceptions previously enabled.
7743         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
7744         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
7745         transitioning from all exceptions disabled to any exception enabled
7746         or visa versa.
7747         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
7748         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
7749         when transitioning from all exceptions disabled to any exception
7750         enabled or visa versa.
7751         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
7752         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
7753         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
7754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
7755         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
7756         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
7758 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
7760         [BZ #4465]
7761         * posix/unistd.h: Remove __THROW from fdatasync.
7763 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
7765         [BZ #4465]
7766         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
7768 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
7770         * stdio-common/vfprintf.c (process_string_arg): Optimize
7771         ridiculous precision in wide char code printing multi-byte string.
7772         Reported by Jim Meyering <jim@meyering.net>.
7774         [BZ #4131]
7775         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
7776         boundaries to work around systems with overlapping binary loading.
7777         Based on a patch by Suzuki <suzuki@in.ibm.com>.
7779 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
7781         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
7782         __mbsnrtowcs after last change.
7784         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
7785         (get_ident): Likewise.
7787 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
7789         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
7790         with setting the sticky bit.
7791         * math/test-misc.c (main): Add more truncation tests.
7793 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
7795         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
7796         double in the function declaration.
7797         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
7798         double in the function declaration.
7799         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7800         float in the function declaration.
7801         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7802         float in the function declaration.
7804         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
7805         denormal operands.  Do not generate FP_EX_DENORM exception.
7806         (FP_UNPACK_RAW_EP): Ditto.
7807         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
7808         undefined _FP_UNPACK_RAW_E.
7809         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
7810         undefined _FP_UNPACK_RAW_EP.
7811         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
7812         undefined _FP_PACK_RAW_E.
7813         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
7814         undefined _FP_PACK_RAW_EP.
7816         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
7817         _FP_FRAC_COPY_2.
7818         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
7819         _FP_FRAC_COPY_4.
7821 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
7822             Jakub Jelinek  <jakub@redhat.com>
7824         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
7825         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
7826         this case.
7827         * soft-fp/op-common.h (FP_TRUNC): Ditto.
7829 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
7831         * math/test-misc.c (main): Add tests for rounding long double
7832         values close to smallest double denormalized value to double.
7834 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
7836         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
7837         condition for truncating to 0.  Set sticky bit for such
7838         truncation.
7840 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
7842         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
7843         fixed length array for ignore.
7845 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
7847         [BZ #4438]
7848         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
7849         stack for large precisions.
7850         * stdio-common/test-vfprintf.c (main): Add test for large
7851         precision.
7853 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
7855         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
7856         for exponent 0.
7857         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
7859         [BZ #4439]
7860         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
7861         account in the size check.
7862         * resolv/tst-inet_ntop.c: New test.
7863         * resolv/Makefile (tests): Add tst-inet_ntop.
7865 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
7866             Jakub Jelinek  <jakub@redhat.com>
7868         [BZ #4349]
7869         * malloc/malloc.c: Keep separate list for first blocks on the bin
7870         lists with a given size.  This helps skipping over list elements
7871         we know won't fit in two places.
7872         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
7874 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
7876         [BZ #4102]
7877         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
7878         label to Teredo tunnel addresses 2001://32.
7880 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
7882         * locale/programs/ld-collate.c (collate_read): Allow order_start
7883         after copy.
7885         * locale/programs/ld-collate.c (collate_read): Fix printing of
7886         error message.
7888         [BZ #3213]
7889         * locale/C-translit.h.in: Add entry for U2044.
7891         [BZ #4342]
7892         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
7893         hexa-decimal floats without exponent.
7894         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
7896 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
7898         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
7899         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
7900         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
7901         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
7902         GLIBC_2.6.
7903         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
7904         Add sched_getcpu.
7906 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
7908         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
7909         of 0 after the out_fail label.
7911 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
7913         [BZ #4406]
7914         * iconv/gconv_charset.h (strip): Allow ':'.
7915         * iconv/iconv_open.c (iconv_open): Adjust comment.
7917 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
7919         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
7920         version.
7922 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
7924         [BZ #4381]
7925         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
7926         alignment of buffer and tmp_buffer.
7927         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
7928         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
7929         alignment of buffer.
7930         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
7931         bigger than INT_MAX.
7932         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
7933         h_errnop arguments.  Fail if buflen is too small.
7934         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
7936 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
7938         [BZ #4405]
7939         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
7940         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
7942 2007-04-22  Roland McGrath  <roland@redhat.com>
7944         * elf/elf.h (NT_PRXFPREG): New macro.
7946 2007-04-19  Andreas Jaeger  <aj@suse.de>
7948         [BZ #3905]
7949         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
7950         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
7951         Added.
7953 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
7955         * include/sys/mman.h: Mark madvise hidden.
7956         * misc/madvise.c: Add libc_hidden_def.
7958 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
7960         * nis/nis_domain_of.c (__nis_domain_of): New function.
7961         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
7962         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
7963         * nis/nis_call.c (rec_dirsearch): Likewise.
7964         (first_shoot): Likewise.  Remove search_parent_first argument.
7965         (struct nis_server_cache): Rename search_parent_first field
7966         to search_parent.
7967         (nis_server_cache_search, nis_server_cache_add): Rename
7968         search_parent_first argument to search_parent.
7969         (__nisfind_server): Likewise.  If search_parent, call
7970         __nis_domain_of.
7972 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
7974         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
7976 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
7978         [BZ #4368]
7979         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
7981 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
7983         [BZ #4364]
7984         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
7986 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
7988         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
7989         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
7990         current number of locales in SUPPORTED.
7991         (create_archive): Initialize serial.
7992         (enlarge_archive): Preserve aliases rather than duplicating
7993         their locrecs.
7995 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
7997         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
7998         after _IO_un_link, not before it.
8000         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
8001         special case handling when wcp == wstartp + 1.  Fix a comment typo.
8002         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
8004 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
8006         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
8007         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
8008         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
8009         Remove __THROW.
8010         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
8011         _IO_file_xsgetn_maybe_mmap): Likewise.
8012         * libio/oldfileops.c (old_do_write): Likewise.
8013         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
8014         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
8015         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
8016         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
8017         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
8018         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
8019         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
8020         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
8021         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
8022         _IO_file_underflow, _IO_file_underflow_mmap,
8023         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
8024         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
8025         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
8026         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
8027         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
8028         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
8029         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
8030         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
8031         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
8032         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
8033         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
8034         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
8035         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
8036         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
8037         _IO_adjust_column_internal, _IO_default_uflow_internal,
8038         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
8039         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
8040         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
8041         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
8042         _IO_file_close_it_internal, _IO_file_underflow_internal,
8043         _IO_file_overflow_internal, _IO_file_attach_internal,
8044         _IO_file_fopen_internal, _IO_file_sync_internal,
8045         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
8046         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
8047         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
8048         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
8049         _IO_seekpos_unlocked): Likewise.
8050         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
8051         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
8053 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
8055         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
8056         argument in xmalloc size computation.
8058 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
8060         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
8061         math_opt_barrier and math_force_eval macros.
8063 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
8065         [BZ #3306]
8066         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
8067         * sysdeps/i386/fpu/math_private.h: New file.
8068         * sysdeps/x86_64/fpu/math_private.h: New file.
8069         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
8070         math_force_eval macros.  Use "+m" constraint on asm rather than
8071         "=m" and "m".
8072         * math/s_nextafter.c (__nextafter): Likewise.
8073         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
8074         Likewise.
8075         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
8076         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
8077         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8078         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
8079         math_opt_barrier and math_force_eval macros.
8080         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
8081         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
8082         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
8083         (__nexttoward): Use math_opt_barrier and
8084         math_force_eval macros.  Use "+m" constraint on asm rather than
8085         "=m" and "m".  Only use asm to force double result if
8086         FLT_EVAL_METHOD is 2.
8087         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
8088         (__nexttowardf): Use math_opt_barrier and
8089         math_force_eval macros.  Use "+m" constraint on asm rather than
8090         "=m" and "m".  Only use asm to force double result if
8091         FLT_EVAL_METHOD is not 0.
8092         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
8093         (__nexttowardf): Use math_opt_barrier and
8094         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
8095         x to float using asm.
8096         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
8097         (__nldbl_nexttowardf): Use math_opt_barrier and
8098         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
8099         x to float using asm.
8100         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
8101         (__nexttowardf): Use math_opt_barrier and math_force_eval
8102         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
8103         * math/bug-nextafter.c (zero, inf): New variables.
8104         (main): Add new tests.
8105         * math/bug-nexttoward.c (zero, inf): New variables.
8106         (main): Add new tests.
8108 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
8110         [BZ #3427]
8111         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
8112         exceptions both in SW and MXCSR.
8113         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
8114         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
8115         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
8116         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8117         in MXCSR if SSE is available.
8118         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
8119         and ldsodefs.h.
8120         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
8121         Fix comment typo.
8122         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
8123         Return 0 rather than 1.
8124         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
8125         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
8126         * math/test-fenv.c (feholdexcept_tests): New function.
8127         (main): Call it.
8129 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
8131         [BZ #3427]
8132         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8133         in SW.
8135 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
8137         [BZ #4344]
8138         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
8139         Reported by David Anderson <davea42@earthlink.net>.
8141 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
8143         * posix/sys/wait.h: Remove unnecessary forward declaration.
8145 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
8147         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
8148         with obj->do_servers after first_shoot.
8150 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
8152         * posix/Makefile (routines): Add sched_cpucount.
8153         (tests): Add tst-cpucount.
8154         * posix/sched_cpucount.c: New file.
8155         * posix/tst-cpucount.c: New file.
8156         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
8157         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
8158         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8159         * posix/sched.h: Define CPU_COUNT.
8161 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
8163         * posix/fnmatch.c (STRUCT): Define.
8164         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
8165         * posix/fnmatch_loop.c (struct STRUCT): New type.
8166         (FCT): Add ends argument.  If ends != NULL and normal * is
8167         seen in the pattern, store current pattern and string pointers
8168         and return.  Adjust recursive calls.
8169         (EXT): Adjust FCT callers.
8170         (STRUCT): Undef at the end of the file.
8171         * posix/Makefile (tests): Add tst-fnmatch2.
8172         * posix/tst-fnmatch2.c: New test.
8174 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
8176         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
8177         and 1 on failure.
8179         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
8180         Change last argument to unsigned int.
8182 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
8184         * scripts/check-local-headers.sh: Filter out sys/capability.h.
8186 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
8188         * config.h.in (HAVE_LIBCAP): Add.
8189         * nscd/selinux.h: Include sys/capability.h rather than non-existent
8190         sys/capabilities.h.
8191         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
8192         free_caps.  Cast away const from 4th cap_set_flag argument.
8194 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
8196         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
8197         GLIBC_2.6.
8198         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8199         Add sync_file_range.
8200         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
8202 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
8204         * sysdeps/powerpc/bits/atomic.h
8205         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
8206         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
8207         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8208         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
8209         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8210         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
8211         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
8212         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8213         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8214         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8215         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
8216         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8217         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8218         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8219         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8220         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
8221         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8222         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
8223         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8224         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
8226 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
8228         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8229         (__cache_line_size): Define the variable here.  Add
8230         attribute_hidden, remove weak_extern.
8231         (__libc_start_main): Set __cache_line_size
8232         unconditionally.
8233         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
8234         (__cache_line_size): Define the variable here.  Add
8235         attribute_hidden, remove weak_extern.
8236         (DL_PLATFORM_AUXV): Set __cache_line_size
8237         unconditionally.
8238         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
8239         weak_extern, add attribute_hidden.
8240         (__elf_machine_runtime_setup): Assume __cache_line_size is always
8241         defined in ld.so.
8242         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
8243         definition.
8244         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
8246 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
8248         [BZ #4276]
8249         * timezone/africa: Update from tzdata2007d.
8250         * timezone/asia: Likewise.
8251         * timezone/australasia: Likewise.
8252         * timezone/backward: Likewise.
8253         * timezone/europe: Likewise.
8254         * timezone/iso3166.tab: Likewise.
8255         * timezone/leapseconds: Likewise.
8256         * timezone/northamerica: Likewise.
8257         * timezone/southamerica: Likewise.
8258         * timezone/zone.tab: Likewise.
8260         * timezone/private.h: Update from tzcode2007d.
8261         * timezone/zdump.c: Likewise.
8262         * timezone/zic.c: Likewise.
8264 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
8266         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
8267         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
8268         variables.
8269         (nis_server_cache_search, nis_server_cache_add): New functions.
8270         (__nisfind_server): Use them.  Add dbp and flags argument, if
8271         call __nisbind_create.
8272         (__nisbind_create): Add server_used and current_ep arguments,
8273         only call __nis_findfastest if server_used is ~0.
8274         (__do_niscall2, __prepare_niscall): Adjust callers.
8275         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
8276         ckey_cache_euid, ckey_cache_lock): New variables.
8277         (get_ckey): New function.
8278         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
8279         __pmap_getnisport.  Save __pmap_getnisport result in
8280         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
8281         key.
8282         * nis/nis_lookup.c (nis_lookup): Likewise.
8283         * nis/nis_table.c (nis_list): Likewise.
8284         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
8285         prototypes.
8287         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
8288         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
8289         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
8290         _nss_nisplus_getservbyport_r): Likewise.
8291         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
8292         _nss_nisplus_getnetbyaddr_r): Likewise.
8293         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
8294         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
8295         _nss_nisplus_getntohost_r): Likewise.
8296         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
8297         _nss_nisplus_getrpcbynumber_r): Likewise.
8299 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
8301         * configure.in (libc_cv_gnu89_inline): Only do compile test.
8302         * configure: Rebuilt.
8304         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
8305         bit-fields.
8306         * soft-fp/extended.h (_FP_UNION_E): Likewise.
8308 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
8310         [BZ #2831]
8311         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
8312         bit-fields.
8314 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
8316         * nscd/gai.c: Include alloca.h.
8317         (__libc_use_alloca): Define.
8319 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
8321         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
8322         smaller scopes.
8323         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
8324         (DL_DST_REQUIRED): Adjust user.
8326         * include/dlfcn.h (struct link_map): New forward decl.
8328         * inet/getnameinfo.c: Include stddef.h.
8329         (getnameinfo): Use offsetof.
8331         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
8333         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
8335         * string/strerror_l.c: Include stdlib.h.
8337         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
8338         * config.make.in (gnu89-inline-CFLAGS): New variable.
8339         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
8340         -std=gnu99.
8341         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
8342         * argp/argp.h: Use it.
8343         * bits/mathinline.h: Likewise.
8344         * bits/sigset.h: Likewise.
8345         * bits/string.h: Likewise.
8346         * ctype/ctype.h: Likewise.
8347         * hurd/hurd.h: Likewise.
8348         * hurd/hurd/fd.h: Likewise.
8349         * hurd/hurd/port.h: Likewise.
8350         * hurd/hurd/signal.h: Likewise.
8351         * hurd/hurd/threadvar.h: Likewise.
8352         * hurd/hurd/userlink.h: Likewise.
8353         * io/sys/stat.h: Likewise.
8354         * libio/bits/stdio.h: Likewise.
8355         * libio/bits/stdio2.h: Likewise.
8356         * mach/lock-intern.h: Likewise.
8357         * mach/mach/mig_support.h: Likewise.
8358         * math/bits/cmathcalls.h: Likewise.
8359         * posix/bits/unistd.h: Likewise.
8360         * socket/bits/socket2.h: Likewise.
8361         * stdlib/bits/stdlib.h: Likewise.
8362         * stdlib/stdlib.h: Likewise.
8363         * string/argz.h: Likewise.
8364         * string/bits/string2.h: Likewise.
8365         * string/bits/string3.h: Likewise.
8366         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
8367         * sysdeps/generic/inttypes.h: Likewise.
8368         * sysdeps/generic/machine-lock.h: Likewise.
8369         * sysdeps/generic/machine-sp.h: Likewise.
8370         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8371         * sysdeps/i386/i486/bits/string.h: Likewise.
8372         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
8373         * sysdeps/mach/alpha/machine-lock.h: Likewise.
8374         * sysdeps/mach/alpha/machine-sp.h: Likewise.
8375         * sysdeps/mach/i386/machine-lock.h: Likewise.
8376         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8377         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
8378         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
8379         * sysdeps/s390/bits/string.h: Likewise.
8380         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
8381         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8382         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8383         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8384         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8385         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
8386         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
8387         * wcsmbs/bits/wchar2.h: Likewise.
8388         * wcsmbs/wchar.h: Likewise.
8389         * stdlib/gmp.h: Likewise.  Include <features.h> to get
8390         __extern_inline definition.
8392 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
8394         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
8395         NULL.
8397         [BZ #3919]
8398         * math/libm-test.inc (log_test): Test -Inf and NaN.
8399         (log10_test, log1p_test, log2_test): Test -Inf.
8400         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
8401         FE_INVALID when argument is qNaN.
8402         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
8403         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
8404         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
8405         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
8406         andb $1, %ah with testb $1, %ah, don't test for parity, instead
8407         testb $4, %ah and jump if non-zero.
8408         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
8409         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
8411         [BZ #4101]
8412         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
8413         ancestors with the same depths.
8414         Patch by Niels Moeller <nisse@lysator.liu.se>.
8415         (filter_doc): Don't crash if argp is NULL.
8416         * argp/Makefile (tests): Add tst-argp2.
8417         * argp/tst-argp2.c: New test.
8419         [BZ #4130]
8420         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
8421         open_not_cancel_2.
8422         (updwtmp_file): Likewise.
8424         [BZ #4181]
8425         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
8426         (inet6_opt_append): Don't check extlen is big enough if extbuf
8427         is NULL.
8428         (inet6_opt_finish): Likewise.
8429         * inet/Makefile (tests): Add test-inet6_opt.
8430         * inet/test-inet6_opt.c: New test.
8432         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
8433         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
8434         NLMSG_ERR.  Instead use a page sized buffer.
8435         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
8436         buffer.
8438 2007-03-14  Richard Henderson  <rth@redhat.com>
8440         * sysdeps/alpha/fpu/s_llround.c: New file.
8441         * sysdeps/alpha/fpu/s_llroundf.c: New file.
8442         * sysdeps/alpha/fpu/s_lround.c: New file.
8443         * sysdeps/alpha/fpu/s_lroundf.c: New file.
8444         * sysdeps/alpha/fpu/s_round.c: New file.
8445         * sysdeps/alpha/fpu/s_roundf.c: New file.
8446         * sysdeps/alpha/fpu/s_trunc.c: New file.
8447         * sysdeps/alpha/fpu/s_truncf.c: New file.
8449         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
8450         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
8451         * sysdeps/alpha/fpu/s_floor.c: Likewise.
8452         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
8453         * sysdeps/alpha/fpu/s_rint.c: Likewise.
8454         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8456         * sysdeps/alpha/fpu/s_fmax.S: New file.
8457         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
8458         * sysdeps/alpha/fpu/s_fmin.S: New file.
8459         * sysdeps/alpha/fpu/s_fminf.S: New file.
8460         * sysdeps/alpha/fpu/s_isnan.c: New file.
8461         * sysdeps/alpha/fpu/s_isnanf.c: New file.
8462         * sysdeps/alpha/fpu/s_llrint.c: New file.
8463         * sysdeps/alpha/fpu/s_llrintf.c: New file.
8464         * sysdeps/alpha/fpu/s_lrint.c: New file.
8465         * sysdeps/alpha/fpu/s_lrintf.c: New file.
8466         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
8467         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
8469         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
8470         (__fdimf, fdimf, __fdim, fdim): Remove.
8471         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
8472         (__isnanf, __isnan, __isnanl): New.
8474 2007-03-13  Richard Henderson  <rth@redhat.com>
8476         * sysdeps/ieee754/ldbl-128/Makefile: New file.
8478 2007-03-13  Richard Henderson  <rth@redhat.com>
8480         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
8481         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
8482         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
8483         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
8484         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
8485         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
8487 2007-03-13  Richard Henderson  <rth@redhat.com>
8489         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
8490         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
8491         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
8492         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
8493         Move to dl-auxv.h; initialize instead of extern weak.
8494         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
8495         weak symbol.
8496         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
8497         Extern instead of initialized.
8499 2007-03-13  Richard Henderson  <rth@redhat.com>
8501         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
8502         __sigsuspend_nocancel.
8504 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
8506         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
8507         172.16/12 address range.
8509 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
8511         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
8512         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
8513         message.
8515 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
8517         [BZ #4069]
8518         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
8519         earlier.
8520         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
8522         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
8523         for x qNaN and y either +-inf or non-integer value.
8524         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
8525         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
8526         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8528 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
8530         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
8531         from sysdep_headers.
8533 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
8535         * time/tzfile.c (find_transition): Instead of a linear search try to
8536         guess the transition index, use a linear search if the result is at
8537         most 10 transitions away from the guess or binary search otherwise.
8539 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
8541         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
8542         memory reallocation.
8544 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
8546         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
8547         and fix some typos.
8548         Optimize use of TOLOWER.
8550         [BZ #3325]
8551         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
8552         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8553         * sysdeps/i386/fpu/e_fmod.S: Likewise.
8555         [BZ #3458]
8556         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
8557         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
8559         [BZ #4076]
8560         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
8561         (open_dir_stream): Likewise.
8562         * io/Makefile (tests): Add bug-ftw5.
8563         * io/bug-ftw5.c: New file.
8565         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
8566         * nscd/servicescache.c (cache_addserv): Likewise.
8568         * nscd/grpcache.c (cache_addgr): In case a record changed on
8569         refresh, adjust key_copy.
8571         [BZ #4074]
8572         * nscd/pwdcache.c (cache_addpw): In case a record changed on
8573         refresh, adjust key_copy.
8575         [BZ #4070]
8576         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
8577         special cases.
8578         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
8580 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
8582         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
8583         optimization.
8585         * stdio-common/vfscanf.c: Small cleanups throughout.
8587 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
8589         [BZ #3325]
8590         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
8591         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8592         * sysdeps/i386/fpu/e_fmod.S: Likewise.
8593         Patch by Jared Casper <jaredcasper@gmail.com>.
8595         * sysdeps/unix/closedir.c: Outside libc don't use locking.
8596         * sysdeps/unix/opendir.c: Likewise.
8597         * sysdeps/unix/readdir.c: Likewise.
8599         [BZ #2211]
8600         * stdio-common/vfscanf.c: Handle localized digits etc for floating
8601         point numbers.
8602         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
8604         * stdio-common/vfscanf.c: Fix problems in width accounting.
8605         * stdio-common/tst-sscanf.c (double_tests): New tests.
8606         (main): Hook them up.
8608         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
8609         More simplifications of floating-point reader.
8611         * stdio-common/Makefile (tests): Add tst-swscanf.
8612         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
8613         testing.
8614         * stdio-common/tst-swscanf.c: New file.
8616 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
8618         [BZ #2633]
8619         * libio/stdio.h: Define struct _IO_FILE in global namespace.
8620         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
8621         Remove using for __jmp_buf_tag.
8622         * locale/locale.h (struct lconv): Also define in std namespace.
8623         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
8625         [BZ #3842]
8626         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
8627         using __libc_enable_secure.
8629         [BZ #3818]
8630         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
8632         [BZ #3745]
8633         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
8634         of names for ellipsises.
8636         [BZ #3348]
8637         * malloc/memusage.sh: Cleanups.
8638         * debug/xtrace.sh: Quoting and trap changes.
8640 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
8642         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
8644         * locale/iso-3166.def: Update entry for Serbia.
8645         * locale/iso-4217.def: Define RSD, remove CSD.
8647         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
8648         and 64-bit operations.
8650         [BZ #4040]
8651         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
8652         16-bit operations.
8654         * nscd/nscd.c (parse_opt): One more conversion to use send instead
8655         of writev.
8657 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
8659         [BZ #3991]
8660         * assert/assert.h (assert): Simplify.
8661         (assert_perror): Likewise.
8662         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
8664         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
8665         reqdata.
8667         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
8668         change: don't pass NULL in place of an integer.
8670 2007-02-02  Bruno Haible  <bruno@clisp.org>
8672         [BZ #3954]
8673         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
8674         Add mapping for U+327E.
8675         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
8676         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8677         mapping of 0xD9 0xE8.
8678         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
8679         mapping of U+327E.
8680         Reported by Jungshik Shin <jungshik@google.com>.
8682         [BZ #3955]
8683         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8684         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
8685         Reported by Jungshik Shin <jungshik@google.com>.
8687 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
8689         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
8690         byte variants.
8692         [BZ #4040]
8693         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
8694         byte variants.  Patch mostly be tom@tommay.net.
8696 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
8698         [BZ #3996]
8699         * posix/glob.c (attribute_hidden): Define if not defined.
8700         (glob): Unescape dirname, filename or username when needed and not
8701         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
8702         is NULL.  Handle unescaped [ in pattern without closing ].
8703         Don't pass GLOB_CHECK down to recursive glob for directories.
8704         (__glob_pattern_type): New function.
8705         (__glob_pattern_p): Implement using __glob_pattern_type.
8706         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8707         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8708         Remove unreachable code.
8709         * posix/globtest.sh: Add a couple of new tests.
8711 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
8713         * po/ru.po: Update from translation team.
8715 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
8717         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
8718         to the list of i486+ CPUs.
8719         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8721 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
8723         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
8724         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
8725         references.
8727 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
8729         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
8731         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
8732         * resolv/res_mkquery.c: Define __res_nopt.
8733         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
8734         try adding EDNS0 record.
8735         * resolv/res_send.c (send_dg): If request failed with FORMERR and
8736         EDNS0 record was send make sure we don't try it again.
8737         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
8738         * include/resolv.h: Declare __res_nopt.
8740 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
8742         [BZ #3944]
8743         * time/strptime_l.c (__strptime_internal): Set have_mon for
8744         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
8745         have been computed from tm_yday and tm_year.  Don't crash
8746         in day_of_the_week or day_of_the_year if not have_mon
8747         and tm_mon contains bogus value.
8748         * time/Makefile (tests): Add tst-strptime3.
8749         * time/tst-strptime3.c: New test.
8751 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
8753         [BZ #3957]
8754         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
8755         bit for RE_HAT_LISTS_NOT_NEWLINE.
8756         (build_charclass_op): Remove bogus comment.
8757         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
8758         * posix/bug-regex27.c: New test.
8759         * posix/bug-regex28.c: New test.
8761 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
8763         * po/sv.po: Update from translation team.
8765 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
8767         * nscd/nscd_helper.c (open_socket): Minor size optimization.
8769 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
8771         * include/locale.h (__uselocale): Add libc_hidden_proto.
8772         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
8774         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
8775         gettimeofday.
8777 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
8779         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
8780         returning.
8781         (PTR_DEMANGLE): Real definition now that it's not the same as
8782         PRT_MANGLE anymore.
8783         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8785         * string/strerror_l.c: New file.
8786         * string/Makefile (routines): Add strerror_l.
8787         * string/string.h: Declare strerror_l.
8788         * string/Versions: Export strerror_l for GLIBC_2.6.
8790 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
8792         * nscd/nscd_helper.c (open_socket): Now takes request type and key
8793         as parameter.  Construct request record.  Try sending request
8794         before the first poll use, it usually succeeds.  Adjust all
8795         callers.
8796         * nscd/nscd-client.h: Define MAXKEYLEN.
8797         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
8799 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
8801         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
8802         from return value.
8803         * nscd/nscd_helper.c: Include string.h.
8804         (__nscd_cache_search): Remove const qualifier from return value.
8805         On strict alignment architectures check hash entry and data head
8806         alignment.
8807         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
8808         mmapped data during GC cycle contains garbage.  If
8809         __nscd_drop_map_ref fails, decrement mapped->counter when returning
8810         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
8811         dropped to 0.
8812         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8813         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8814         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8815         * nscd/nscd_getai.c (__nscd_getai): Likewise.
8816         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8818 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
8820         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
8822 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
8824         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
8825         names not numbers in cfi_*.
8827 2007-01-26  Andreas Jaeger  <aj@suse.de>
8829         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
8830         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
8831         Correct values of PER_HPUX and PER_OSF4.
8833 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
8835         * elf/dl-minimal.c: Undefine _itoa first.
8836         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
8837         * malloc/mtrace.c: Revert last change.
8838         * posix/wordexp.c: Likewise.
8840 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
8842         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
8843         and __geode__ to the list of i486+ CPUs.
8844         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8846 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
8848         * stdio-common/_itoa.c: Include <limits.h>.
8849         * stdio-common/_itowa.c: Likewise.
8851 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
8853         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
8854         platforms.
8855         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
8856         64-bit platforms.
8857         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
8858         possible.
8859         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
8860         if possible.
8862         [BZ #3902]
8863         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
8864         * stdio-common/Makefile (tests): Add bug17.
8865         * stdio-common/bug17.c: New file.
8867 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
8869         * iconvdata/brf.c: New file.
8870         * iconvdata/testdata/BRF: New file.
8871         * iconvdata/testdata/BRF..UTF8: New file.
8872         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8873         * iconvdata/Makefile: Add rules to build BRF.
8874         * iconvdata/TESTS: Add BRF entry.
8875         * iconvdata/gconv-modules: Likewise.
8876         * iconvdata/tst-tables.sh: Likewise.
8878 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
8880         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
8881         type `long long int', not `long int'.
8882         (wcstoq): Likewise.
8884 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
8886         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
8887         of values on 64-bit platforms which are too large.
8889 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
8890             Joe Kerian  <jkerian@us.us.ibm.com>
8892         [BZ #2749]
8893         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
8894         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
8895         (__copysignl): Use signbit() for comparison.
8896         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
8897         SET_LDOUBLE_WORDS64.
8899         [BZ #2423, #2749]
8900         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
8901         (__ceill): Remove calls to fegetround(), fesetround().
8902         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
8903         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8904         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8906 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
8908         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
8910         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
8912 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
8914         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
8915         demangle pointer.
8916         * csu/libc-start.c: Likewise.
8918 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
8920         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
8921         really work anyway.
8923 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
8925         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
8926         users.
8927         (handle_request): Remove unnecessary tests.
8929         * nscd/cache.c (cache_add): Record the failure to add to the cache.
8931 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
8933         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
8934         workbits in semi-raw fraction.
8936         * math/test-misc.c: Add new tests.
8938 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
8940         * math/basic-test.c: Include test-skeleton.c.
8941         (TEST_TRUNC): Define.
8942         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
8943         (main): Rename to ...
8944         (do_test): ...this.  Run new tests.
8945         (TEST_FUNCTION): Define.
8947 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
8948             Joe Kerian  <jkerian@us.us.ibm.com>
8950         [BZ #2749]
8951         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
8952         handling for high words.
8953         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
8954         and overflow for infinity.
8956 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
8958         * nscd/connections.c (handle_request): Add a __builtin_expect.
8960         * nscd/connections.c (serv2db): Change type into structure which
8961         also says whether this is a request for data.  Renamed to
8962         servinfo.  All users changed.
8963         (handle_request): Much simpler test whether we should search the cache.
8965         * nscd/connections.c (handle_request): Fix thinko in selinux test
8966         invocation.
8968         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
8969         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
8970         it before getting dl_load_lock and then relock.
8971         (_dl_lookup_symbol_x): Pass flags to add_dependency.
8972         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
8973         case we unlocked the scope.
8974         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
8975         _dl_lookup_symbol_x in case we locked the scope.
8976         (_dl_profile_fixup): Likewise.
8977         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
8978         set DL_LOOKUP_SCOPE_LOCK.
8980 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
8982         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
8983         CFLAGS-getsrvbynpt_r.c.
8984         * nscd/getsrvbynm_r.c: New file.
8985         * nscd/getsrvbypt_r.c: New file.
8986         * nscd/nscd_getserv_r.c: New file.
8987         * nscd/servicescache.c: New file.
8988         * nscd/Makefile (routines): Add nscd_getserv_r.
8989         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
8990         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
8991         CFLAGS-getsrvbypt_r.c.
8992         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
8993         table.  Add entries for services database.
8994         * nscd/connections.c (serv2str): Mark as const.  Add entries for
8995         services database.
8996         (dbs): Add .reset_res and servdb initialization.
8997         (serv2db): Add entries for services database.
8998         (verify_persistent_db): Accept dbnr == servdb.
8999         (invalidate_cache): Rewrite database name recognition to use a table.
9000         Call res_init() if .reset_res is set for database.
9001         (handle_request): Add code to handle services database.
9002         * nscd/gai.c: Don't define __getservbyname_r.
9003         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
9004         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
9005         (serv_response_header): Define.
9006         (struct datahead): Add serv_response_header member.
9007         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
9008         using table.
9009         * nscd/nscd.conf: Add entries for services database.
9010         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
9011         Declare serv_iov_disabled.
9012         Declare addservbyname, readdservbyname, addservbyport, and
9013         readdservbyport.
9014         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
9015         (find_db): Fix error message.
9016         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
9017         __nscd_getservbyname_r, and __nscd_getservbyport_r.
9018         * nscd/selinux.c (perms): Add entries for services database.
9019         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
9020         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
9022         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
9023         * nscd/hstcache.c: Likewise.
9024         * nscd/pwdcache.c: Likewise.
9026         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
9027         computation of keylen.
9029         * include/string.h: Only redefine strndupa if this is really for
9030         libc code.
9032 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
9034         * nscd/nscd_gethst_r.c: Minor cleanups.
9036         * nscd/connections.c (handle_request): Check selinux permissions
9037         for all non-admin commands.
9039         * sysdeps/i386/i486/bits/atomic.h: Define
9040         atomic_compare_and_exchange_val_acq,
9041         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
9042         using __sync_* built-ins for gcc >= 4.1.
9043         * sysdeps/x86_64/bits/atomic.h: Likewise.
9045         [BZ #3840]
9046         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
9047         and .oS.d files.
9049 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
9051         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
9052         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
9053         (do_test): Check errno and exit(0) if ENOSYS.
9055 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
9057         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
9058         thousands separators.
9059         * stdlib/Makefile: Add rules to build and run tst-strtod4.
9060         * stdlib/tst-strtod4.c: New test.
9062         [BZ #3855]
9063         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
9064         hexadecimal digit should accept just the initial 0.
9065         * stdlib/tst-strtod2.c (tests): New variable.
9066         (do_test): Run several tests rather than just one.
9068 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
9070         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
9071         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
9073 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
9075         * io/fts.c: Make sure fts_cur is always valid after return from
9076         fts_read.
9077         Patch by Miloslav Trmac <mitr@redhat.com>.
9079 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
9081         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
9082         (R_MIPS_NUM): Bump by 1.
9084 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
9086         * posix/execvp.c: Include alloca.h.
9087         (allocate_scripts_argv): Renamed to...
9088         (scripts_argv): ... this.  Don't allocate buffer here nor count
9089         arguments.
9090         (execvp): Use alloca if possible.
9091         * posix/Makefile: Add rules to build and run tst-vfork3 test.
9092         * posix/tst-vfork3.c: New test.
9094 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
9096         * string/Makefile (tst-strxfrm2-ENV): Define.
9097         * stdlib/Makefile (tst-strtod3-ENV): Define.
9099 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
9101         * posix/getconf.c: Update copyright year.
9102         * nss/getent.c: Likewise.
9103         * iconv/iconvconfig.c: Likewise.
9104         * iconv/iconv_prog.c: Likewise.
9105         * elf/ldconfig.c: Likewise.
9106         * catgets/gencat.c: Likewise.
9107         * csu/version.c: Likewise.
9108         * elf/ldd.bash.in: Likewise.
9109         * elf/sprof.c (print_version): Likewise.
9110         * locale/programs/locale.c: Likewise.
9111         * locale/programs/localedef.c: Likewise.
9112         * nscd/nscd.c (print_version): Likewise.
9113         * debug/xtrace.sh: Likewise.
9114         * malloc/memusage.sh: Likewise.
9115         * malloc/mtrace.pl: Likewise.
9116         * debug/catchsegv.sh: Likewise.
9118 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
9120         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
9121         attempts.
9123 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
9125         * posix/wordexp.c: Remove some unnecessary tests.
9127 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
9129         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
9130         blacklist the group till after we look it up.
9132 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
9134         * include/atomic.h (atomic_forced_read): New macro.
9136 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
9138         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
9140 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
9142         * nss/getXXbyYY_r.c: Include atomic.h.
9143         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
9144         add atomic_write_barrier () in between.
9146         * stdlib/Makefile (tests): Add tst-makecontext.
9147         * stdlib/tst-makecontext.c: New test.
9149         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
9150         (__makecontext): Don't realign uc_mcontext.uc_regs.
9152 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
9154         * elf/dl-support.c: Include dl-procinfo.h.
9155         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
9156         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
9157         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
9158         Define.
9159         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
9160         hardcoded constants.
9161         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
9162         PPC_PLATFORM_* macros for array designators.
9164 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
9166         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
9167         names to the beginning.
9168         (_dl_powerpc_platforms): Add "power6x".
9169         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9170         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
9171         (_DL_PLATFORMS_COUNT): Increase.
9172         (_dl_string_platform): Handle power6x case.
9173         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
9174         PPC_FEATURE_POWER6_EXT): Define.
9175         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
9177 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
9179         [BZ #3747]
9180         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
9181         [-2^31 .. 2^31) range.
9182         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
9183         targets.
9184         * stdlib/tst-rand48-2.c: New test.
9185         * stdlib/Makefile (tests): Add tst-rand48-2.
9187 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
9189         * misc/tst-pselect.c (do_test): Fix sigblock argument.
9191 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
9193         * misc/tst-pselect.c (do_test): Make sure the helper process is
9194         terminating when the test is aborted.
9196 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
9198         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
9199         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
9200         Handle relatime mount option.
9202         [BZ #2337]
9203         * libio/Makefile (tests): Add tst-setvbuf1.
9204         * libio/tst-setvbuf1.c: New file.
9206 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
9208         [BZ #2337]
9209         * libio/genops.c (__uflow): Fix a typo.
9210         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
9211         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
9212         the narrow buffer size.
9214 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
9216         [BZ #2337]
9217         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
9218         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
9219         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
9220         in _flags.
9221         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
9222         _IO_wstr_finish): Likewise.
9223         * libio/wmemstream.c (open_wmemstream): Likewise.
9224         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
9225         even for wide streams.
9227 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
9229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
9230         kernel-features.h.
9232 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
9234         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
9235         separators also if no non-zero digits found.
9236         * stdlib/Makefile (tests): Add tst-strtod3.
9238 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
9240         [BZ #3632]
9241         * include/features.h: Fix comment about default value for
9242         _POSIX_C_SOURCE.
9244         [BZ #3664]
9245         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
9246         empty parsed strings.
9247         * stdlib/Makefile (tests): Add tst-strtod2.
9248         * stdlib/tst-strtod2.c: New file.
9250         [BZ #3673]
9251         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
9252         computation.
9253         * stdlib/Makefile (tests): Add tst-atof2.
9254         * stdlib/tst-atof2.c: New file.
9256         [BZ #3674]
9257         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
9258         correctly if removing trailing zero of hex-float.
9259         * stdlib/Makefile (tests): Add tst-atof1.
9260         * stdlib/tst-atof1.c: New file.
9262 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
9264         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
9265         Start searching for next comma at p rather than rest.
9266         * misc/Makefile (tests): Add tst-mntent2.
9267         * misc/tst-mntent2.c: New test.
9269         * misc/getusershell.c (initshells): Check for integer overflows.
9270         Make strings buffer one bigger as fgets always succeeds when second
9271         argument is 1.  Don't use calloc for shells array.  Disallow
9272         / as shell.
9274 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
9276         * malloc/memusage.c: Handle realloc with new size of zero and
9277         non-NULL pointer correctly.
9278         (me): Really write first record twice.
9279         (struct entry): Make format bi-arch safe.
9280         (dest): Write out more realloc statistics.
9281         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
9283 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
9285         * nis/nis_subr.c (nis_getnames): Revert last change.
9287 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
9289         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
9290         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
9291         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
9292         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
9293         ENOTTY.
9294         * io/Makefile: Add rules to build and run tst-ttyname_r test.
9295         * io/tst-ttyname_r.c: New test.
9297 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9299         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
9301 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
9303         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
9304         jump table entries.
9306 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
9308         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
9309         `clone' function to ensure proper unwinding stop of gdb.
9310         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
9312 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
9314         * nscd/nscd.init: Remove obsolete and commented-out -S option
9315         handling.
9317 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
9319         [BZ #3514]
9320         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
9322         [BZ #3515]
9323         * manual/string.texi (strtok): Remove duplicate paragraph.
9325 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9327         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
9328         libgcc not supporting `rflags' unwinding (register # >= 17).
9330 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
9332         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
9333         succeeded.
9335 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
9336             Jakub Jelinek  <jakub@redhat.com>
9337             Jan Kratochvil  <jan.kratochvil@redhat.com>
9339         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
9340         unwind information.
9341         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
9342         'restore_rt' even in the 'signal' directory.
9343         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
9345 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
9347         [BZ #3559]
9348         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
9349         malloc crashed.  Don't allocate memory unnecessarily in each
9350         loop.
9352 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
9354         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
9356 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
9358         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
9360 2006-11-18  Bruno Haible  <bruno@clisp.org>
9362         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
9363         __sysconf only after having tried to call getgroups32.
9365 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
9367         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
9368         addresses for IPv4 queries if they can be mapped.
9370 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
9372         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
9373         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
9374         (signmask): Add .size directive.
9375         (othermask): Add .type directive.
9377 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
9379         * po/nl.po: Update from translation team.
9381         * timezone/zdump.c: Redo fix for BZ #3137.
9383 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
9385         * nss/nss_files/files-alias.c (get_next_alias): Set line back
9386         to first_unused after parsing :include: file.
9388 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
9390         * timezone/africa: Update from tzdata2006o.
9391         * timezone/antarctica: Likewise.
9392         * timezone/asia: Likewise.
9393         * timezone/australasia: Likewise.
9394         * timezone/backward: Likewise.
9395         * timezone/europe: Likewise.
9396         * timezone/iso3166.tab: Likewise.
9397         * timezone/northamerica: Likewise.
9398         * timezone/southamerica: Likewise.
9399         * timezone/zone.tab: Likewise.
9401         * time/tzfile.c (__tzfile_read): Extend to handle new file format
9402         on machines with 64-bit time_t.
9404         * timezone/checktab.awk: Update from tzcode2006o.
9405         * timezone/ialloc.c: Likewise.
9406         * timezone/private.h: Likewise.
9407         * timezone/scheck.c: Likewise.
9408         * timezone/tzfile.h: Likewise.
9409         * timezone/tzselect.ksh: Likewise.
9410         * timezone/zdump.c: Likewise.
9411         * timezone/zic.c: Likewise.
9413         [BZ #3483]
9414         * elf/ldconfig.c (main): Call setlocale and textdomain.
9415         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9417         [BZ #3480]
9418         * manual/argp.texi: Fix typos.
9419         * manual/charset.texi: Likewise.
9420         * manual/errno.texi: Likewise.
9421         * manual/filesys.texi: Likewise.
9422         * manual/lang.texi: Likewise.
9423         * manual/maint.texi: Likewise.
9424         * manual/memory.texi: Likewise.
9425         * manual/message.texi: Likewise.
9426         * manual/resource.texi: Likewise.
9427         * manual/search.texi: Likewise.
9428         * manual/signal.texi: Likewise.
9429         * manual/startup.texi: Likewise.
9430         * manual/stdio.texi: Likewise.
9431         * manual/sysinfo.texi: Likewise.
9432         * manual/syslog.texi: Likewise.
9433         * manual/time.texi: Likewise.
9434         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9436         [BZ #3465]
9437         * sunrpc/clnt_raw.c: Minimal message improvements.
9438         * sunrpc/pm_getmaps.c: Likewise.
9439         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9440         * nis/nis_print_group_entry.c: Likewise.
9441         * locale/programs/repertoire.c: Likewise.
9442         * locale/programs/charmap.c: Likewise.
9443         * malloc/memusage.sh: Likewise.
9444         * elf/dl-deps.c: Likewise.
9445         * locale/programs/ld-collate.c: Likewise.
9446         * libio/vswprintf.c: Likewise.
9447         * malloc/memusagestat.c: Likewise.
9448         * sunrpc/auth_unix.c: Likewise.
9449         * sunrpc/rpc_main.c: Likewise.
9450         * nscd/cache.c: Likewise.
9451         * locale/programs/repertoire.c: Unify output messages.
9452         * locale/programs/charmap.c: Likewise.
9453         * locale/programs/ld-ctype.c: Likewise.
9454         * locale/programs/ld-monetary.c: Likewise.
9455         * locale/programs/ld-numeric.c: Likewise.
9456         * locale/programs/ld-time.c: Likewise.
9457         * elf/ldconfig.c: Likewise.
9458         * nscd/selinux.c: Likewise.
9459         * elf/cache.c: Likewise.
9460         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9462         [BZ #3451]
9463         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
9464         change atomic.
9465         (ceil): Likewise.
9467 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
9469         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
9470         if N is one bigger than return value.
9471         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
9472         and l1 last arguments, if buf is defined, verify the return value
9473         equals to strlen (buf) and verify no byte beyond passed length
9474         is modified.
9476 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
9478         * po/sv.po: Update from translation team.
9480 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
9482         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
9483         noinline attribute.
9485 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
9487         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
9488         noinline attribute.
9490         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
9491         Use __new_sys_siglist instead of _sys_siglist_internal as
9492         second macro argument.
9493         (_old_sys_siglist): Use declare_symbol_alias macro instead of
9494         strong_alias.
9496 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
9498         [BZ #3493]
9499         * posix/unistd.h (sysconf): Remove const attribute.
9501         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
9502         temporary or deprecated addresses.
9503         Patch by Sridhar Samudrala <sri@us.ibm.com>.
9505         * string/Makefile (tests): Add tst-strxfrm2.
9506         * string/tst-strxfrm2.c: New file.
9508 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
9510         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
9511         rather than r->r_brk.
9513 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
9515         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
9516         optimization even if needed > n.
9518         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
9519         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
9520         return false, otherwise return true.
9521         (cache_rpath): Return decompose_rpath return value.
9523 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
9525         * include/libc-symbols.h (declare_symbol): Rename to...
9526         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
9527         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
9528         .size directive.
9529         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
9530         changes.
9531         * sysdeps/gnu/siglist.c: Likewise.
9533 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
9535         * sysdeps/powerpc/fpu/bits/mathinline.h
9536         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
9537         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
9539 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
9541         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9542         Update handling of cache descriptor 0x49 for new models.
9543         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
9544         Likewise.
9546 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
9548         * malloc/memusage.c (dest): Reset not_me back to false after
9549         printing statistics.
9551 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
9553         * configure.in: Work around ld --help change and avoid -z relro
9554         test completely if the architecture doesn't care about security.
9556 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
9558         * po/sv.po: Update from translation team.
9560 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
9562         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
9563         generate compatibility version.
9565 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
9567         * configure.in: Relax -z relro requirement a bit.
9569         * po/sv.po: Update from translation team.
9571 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
9573         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
9574         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
9575         * elf/dl-close.c (_dl_close_worker): Likewise.
9576         * elf/dl-open.c (_dl_open_worker): Likewise.
9577         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
9579 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
9581         * configure.in: Require assembler support for visibility, compiler
9582         support for visibility and aliases, linker support for various -z
9583         options.
9584         * Makeconfig: Remove conditional code which now is unnecessary.
9585         * config.h.in: Likewise.
9586         * config.make.in: Likewise.
9587         * dlfcn/Makefile: Likewise.
9588         * elf/Makefile: Likewise.
9589         * elf/dl-load.c: Likewise.
9590         * elf/rtld.c: Likewise.
9591         * include/libc-symbols.h: Likewise.
9592         * include/stdio.h: Likewise.
9593         * io/Makefile: Likewise.
9594         * io/fstat.c: Likewise.
9595         * io/fstat64.c: Likewise.
9596         * io/fstatat.c: Likewise.
9597         * io/fstatat64.c: Likewise.
9598         * io/lstat.c: Likewise.
9599         * io/lstat64.c: Likewise.
9600         * io/mknod.c: Likewise.
9601         * io/mknodat.c: Likewise.
9602         * io/stat.c: Likewise.
9603         * io/stat64.c: Likewise.
9604         * libio/stdio.c: Likewise.
9605         * nscd/Makefile: Likewise.
9606         * stdlib/Makefile: Likewise.
9607         * stdlib/atexit.c: Likewise.
9608         * sysdeps/generic/ldsodefs.h: Likewise.
9609         * sysdeps/i386/dl-machine.h: Likewise.
9610         * sysdeps/i386/sysdep.h: Likewise.
9611         * sysdeps/i386/i686/memcmp.S: Likewise.
9612         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9613         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9614         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
9616         * Makerules: USE_TLS support is now default.
9617         * tls.make.c: Likewise.
9618         * csu/Versions: Likewise.
9619         * csu/libc-start.c: Likewise.
9620         * csu/libc-tls.c: Likewise.
9621         * csu/version.c: Likewise.
9622         * dlfcn/dlinfo.c: Likewise.
9623         * elf/dl-addr.c: Likewise.
9624         * elf/dl-cache.c: Likewise.
9625         * elf/dl-close.c: Likewise.
9626         * elf/dl-iteratephdr.c: Likewise.
9627         * elf/dl-load.c: Likewise.
9628         * elf/dl-lookup.c: Likewise.
9629         * elf/dl-object.c: Likewise.
9630         * elf/dl-open.c: Likewise.
9631         * elf/dl-reloc.c: Likewise.
9632         * elf/dl-support.c: Likewise.
9633         * elf/dl-sym.c: Likewise.
9634         * elf/dl-sysdep.c: Likewise.
9635         * elf/dl-tls.c: Likewise.
9636         * elf/ldconfig.c: Likewise.
9637         * elf/rtld.c: Likewise.
9638         * elf/tst-tls-dlinfo.c: Likewise.
9639         * elf/tst-tls1.c: Likewise.
9640         * elf/tst-tls10.h: Likewise.
9641         * elf/tst-tls14.c: Likewise.
9642         * elf/tst-tls2.c: Likewise.
9643         * elf/tst-tls3.c: Likewise.
9644         * elf/tst-tls4.c: Likewise.
9645         * elf/tst-tls5.c: Likewise.
9646         * elf/tst-tls6.c: Likewise.
9647         * elf/tst-tls7.c: Likewise.
9648         * elf/tst-tls8.c: Likewise.
9649         * elf/tst-tls9.c: Likewise.
9650         * elf/tst-tlsmod1.c: Likewise.
9651         * elf/tst-tlsmod13.c: Likewise.
9652         * elf/tst-tlsmod13a.c: Likewise.
9653         * elf/tst-tlsmod14a.c: Likewise.
9654         * elf/tst-tlsmod2.c: Likewise.
9655         * elf/tst-tlsmod3.c: Likewise.
9656         * elf/tst-tlsmod4.c: Likewise.
9657         * elf/tst-tlsmod5.c: Likewise.
9658         * elf/tst-tlsmod6.c: Likewise.
9659         * include/errno.h: Likewise.
9660         * include/link.h: Likewise.
9661         * include/tls.h: Likewise.
9662         * locale/global-locale.c: Likewise.
9663         * locale/localeinfo.h: Likewise.
9664         * malloc/arena.c: Likewise.
9665         * malloc/hooks.c: Likewise.
9666         * malloc/malloc.c: Likewise.
9667         * resolv/Versions: Likewise.
9668         * sysdeps/alpha/dl-machine.h: Likewise.
9669         * sysdeps/alpha/libc-tls.c: Likewise.
9670         * sysdeps/generic/ldsodefs.h: Likewise.
9671         * sysdeps/generic/tls.h: Likewise.
9672         * sysdeps/i386/dl-machine.h: Likewise.
9673         * sysdeps/ia64/dl-machine.h: Likewise.
9674         * sysdeps/ia64/libc-tls.c: Likewise.
9675         * sysdeps/mach/hurd/fork.c: Likewise.
9676         * sysdeps/mach/hurd/i386/tls.h: Likewise.
9677         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
9678         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
9679         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
9680         * sysdeps/s390/libc-tls.c: Likewise.
9681         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9682         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9683         * sysdeps/sh/dl-machine.h: Likewise.
9684         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9685         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9686         * sysdeps/x86_64/dl-machine.h: Likewise.
9688         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
9689         split out locking and parameter checking.
9690         (_dl_close): Call _dl_close_worker after locking and checking.
9691         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
9692         _dl_close.
9693         * elf/Makefile: Add rules to build and run tst-thrlock.
9694         * elf/tst-thrlock.c:  New file.
9696         [BZ #3426]
9697         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
9698         reality.
9700         [BZ #3429]
9701         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
9702         we are sure we do not need it anymore for _dl_close.  Also move
9703         the asserts inside the lock region.
9704         Patch mostly by Suzuki <suzuki@in.ibm.com>.
9706 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
9708         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
9709         argument.
9710         (_dl_lookup_symbol_x): Adjust caller.
9712         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
9713         _ns_global_scope.
9714         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
9716         * elf/dl-libc.c: Revert l_scope name changes.
9717         * elf/dl-load.c: Likewise.
9718         * elf/dl-object.c: Likewise.
9719         * elf/rtld.c: Likewise.
9720         * elf/dl-close.c (_dl_close): Likewise.
9721         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
9722         always use __rtld_mrlock_{change,done}.  Always free old scope list
9723         here if not l_scope_mem.
9724         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
9725         change.  Never free scope list here.  Just __rtld_mrlock_lock before
9726         the lookup and __rtld_mrlock_unlock it after the lookup.
9727         * elf/dl-sym.c: Likewise.
9728         * include/link.h (struct r_scoperec): Remove.
9729         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
9730         with l_scope_mem and l_scoperec_lock with l_scope_lock.
9732 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
9734         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
9736 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
9738         * configure.in: Disable building profile libraries by default.
9740 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9742         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
9743         as signed longs, check for x_base + pos overflow.
9744         * sunrpc/Makefile (tests): Add tst-xdrmem2.
9745         * sunrpc/tst-xdrmem2.c: New test.
9747 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
9749         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
9750         _dl_lookup_symbol_x code.
9752 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9754         * elf/dl-runtime.c: Include sysdep-cancel.h.
9755         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
9756         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
9757         instead of catomic_* macros.
9758         * elf/dl-sym.c: Include sysdep-cancel.h.
9759         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
9760         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
9761         * elf/dl-close.c: Include sysdep-cancel.h.
9762         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
9763         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
9764         * elf/dl-open.c: Include sysdep-cancel.h.
9765         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
9766         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
9768 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9770         [BZ #3313]
9771         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
9772         fastbin rather than end of fastbin array.
9774 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
9776         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
9777         body macro.
9778         * sysdeps/x86_64/bits/atomic.h
9779         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
9780         (catomic_decrement): Use correct body macro.
9782 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9784         * include/atomic.h: Add a unique prefix to all local variables
9785         in macros.
9786         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
9788 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
9790         [BZ #3369]
9791         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
9792         and 7.
9794 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
9796         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
9798 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
9800         [BZ #3313]
9801         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
9802         determine highest fast bin to consolidate, always look into all of
9803         them.
9804         (do_check_malloc_state): Only require for empty bins for large
9805         sizes in main arena.
9807         * libio/stdio.h: Add more __wur attributes.
9809         * elf/dl-minimal.c (realloc): Optimize last patch.
9811 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
9813         [BZ #3352]
9814         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
9815         and use memcpy() if it does.
9817 2006-11-12  Andreas Jaeger  <aj@suse.de>
9819         [BZ #2510]
9820         * manual/search.texi (Hash Search Function): Clarify.
9821         (Array Search Function): Clarify.
9823 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
9825         [BZ #2830]
9826         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
9827         shifting.
9828         * math/atest-exp2.c (read_mpn_hex): Likewise.
9829         * math/atest-sincos.c (main): Likewise.
9831 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
9833         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
9834         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
9835         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
9836         version GLIBC_2.6.
9837         * Versions.def: Add GLIBC_2.6 for libc.
9839         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
9841         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
9843 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
9845         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
9847         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
9849         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
9850         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
9852 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
9854         * include/atomic.c: Define catomic_* operations.
9855         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
9856         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
9857         * malloc/memusage.c: Likewise.
9858         * gmon/mcount.c: Likewise.
9859         * elf/dl-close.c: Likewise.
9860         * elf/dl-open.c: Likewise.
9861         * elf/dl-profile.c: Likewise.
9862         * elf/dl-sym.c: Likewise.
9863         * elf/dl-runtime.c: Likewise.
9864         * elf/dl-fptr.c: Likewise.
9865         * resolv/res_libc.c: Likewise.
9867 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
9869         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
9870         components which lack them.
9872         * nis/nis_subr.c (nis_getnames): Make sure that we always return
9873         at least one entry consisting of the parameter concatenated with
9874         the domain.
9876 2006-10-10  Roland McGrath  <roland@frob.com>
9878         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
9879         * sysdeps/mach/hurd/futimes.c: Likewise.
9880         * sysdeps/mach/hurd/lutimes.c: Likewise.
9882 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
9883             Jakub Jelinek  <jakub@redhat.com>
9885         Implement reference counting of scope records.
9886         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
9887         from the list in objects which remain.  Always allocate new scope
9888         record.
9889         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
9890         don't resize, allocate a new one.
9891         * elf/dl-runtime.c: Update reference counters before using a scope
9892         array.
9893         * elf/dl-sym.c: Likewise.
9894         * elf/dl-libc.c: Adjust for l_scope name change.
9895         * elf/dl-load.c: Likewise.
9896         * elf/dl-object.c: Likewise.
9897         * elf/rtld.c: Likewise.
9898         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
9899         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
9900         Add l_scoperec_lock.
9901         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
9902         * sysdeps/generic/rtld-lowlevel.h: New file.
9904         * include/atomic.h: Rename atomic_and to atomic_and_val and
9905         atomic_or to atomic_or_val.  Define new macros atomic_and and
9906         atomic_or which do not return values.
9907         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
9908         Various cleanups.
9909         * sysdeps/i386/i486/bits/atomic.h: Likewise.
9911         * po/sv.po: Update from translation team.
9913 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
9915         * Versions.def: Add GLIBC_2.6 to libpthread.
9917         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
9918         (versioned_symbol): Likewise.
9919         (compat_symbol): Likewise.
9921         * po/tr.po: Update from translation team.
9923 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
9925         * nis/Banner: Removed.  It's been integral part forever and the
9926         author info is incomplete anyway.
9927         * libio/Banner: Likewise.
9929         * nis/nis_table.c (nis_list): If __follow_path fails in the new
9930         code, make sure the nis_freeresult call doesn't crash and that the
9931         result is reported correctly.
9933 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
9935         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
9936         when callback is NULL.
9938         * nis/Versions (libnss_nisplus): Add
9939         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
9940         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
9941         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
9942         _nss_create_tablename): Rename to...
9943         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
9944         ... these.  No longer static.
9945         (internal_setgrent): Adjust users.
9946         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
9947         Don't use locking around _nss_grp_create_tablename call.
9948         * nis/nss_nisplus/nisplus-initgroups.c: New file.
9950 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
9952         * version.h (VERSION): Bump to 2.5.90 for new development tree.
9954 2006-10-06  Andreas Jaeger  <aj@suse.de>
9956         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
9958 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
9960         * po/pl.po: Update from translation team.
9962         * nscd/nscd.c (main): Fix typo in message.
9963         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
9965 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
9967         [BZ #3291]
9968         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
9969         errno.h, signal.h, unistd.h and sysdep-cancel.h.
9970         (__sigprocmask): Define.
9972 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
9974         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
9975         used.
9977 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
9979         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
9980         in oldtotal and newtotal calculation.
9981         * nscd/nscd-client.h (struct mapped_database): Add datasize
9982         field.
9983         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
9984         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
9985         increased.
9986         (__nscd_cache_search): Add checks to make sure we never reference
9987         data beyond the current mapping.
9989 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
9991         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
9992         variables const to avoid compiler warnings.
9994         * io/fts.c (fts_close): Remove redundant checks.
9995         (fts_build): Likewise.
9996         (fts_palloc): Likewise.
9998         * manual/message.texi (Advanced gettext functions,
9999         Using gettextized software): Fix typos.
10001 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
10003         * posix/glob.c (glob_in_dir): Add some comments and asserts to
10004         explain why there are no leaks.
10006 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
10008         * libio/wmemstream.c: Include <wchar.h>.
10009         * libio/bug-wmemstream1.c: Likewise.
10010         * libio/tst-wmemstream1.c: Likewise.
10011         * libio/tst-wmemstream2.c: Likewise.
10013         * version.h (RELEASE): Bump to 2.5.
10014         * README: Regenerated.
10016         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
10018         [BZ #3273]
10019         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
10020         found no group members.
10021         Patch by Petr Baudis.
10023 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
10025         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
10026         assert bootstrap_map.l_tls_modid is zero.
10027         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
10028         if USE___THREAD.
10030 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
10032         * libio/stdio.h: Move open_wmemstream prototype to ...
10033         * wcsmbs/wchar.h: ... here.
10035 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
10037         [BZ #3252]
10038         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
10039         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
10040         __{,l}chown to handle the rest.
10041         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
10042         fchownat syscall and __ASSUME_32BITUIDS case inline, call
10043         __{,l}chown to handle the rest.
10044         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
10045         i386/fchownat.c.
10046         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
10047         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
10049         [BZ #3253]
10050         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10051         time, rather allocate increasingly bigger arrays of pointers, if
10052         possible with alloca, if too large with malloc.
10054 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
10056         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
10058         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
10060 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
10062         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
10063         home addresses.
10064         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
10065         IFA_F_HOMEADDRESS flag for interfaces.
10066         * include/ifaddrs.h (struct in6addrinfo): Define
10067         in6ai_homeaddress.
10069 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
10071         [BZ #3225]
10072         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
10073         PTR_DEMANGLE3): Define.
10074         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
10075         PTR_DEMANGLE3): Likewise.
10076         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
10077         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
10078         Likewise.
10079         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
10081 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
10083         * po/libc.pot: Regenerated.
10084         * po/be.po: Updated.
10085         * po/ca.po: Likewise.
10086         * po/cs.po: Likewise.
10087         * po/da.po: Likewise.
10088         * po/de.po: Likewise.
10089         * po/el.po: Likewise.
10090         * po/en_GB.po: Likewise.
10091         * po/es.po: Likewise.
10092         * po/fi.po: Likewise.
10093         * po/fr.po: Likewise.
10094         * po/gl.po: Likewise.
10095         * po/hr.po: Likewise.
10096         * po/hu.po: Likewise.
10097         * po/ja.po: Likewise.
10098         * po/ko.po: Likewise.
10099         * po/nb.po: Likewise.
10100         * po/nl.po: Likewise.
10101         * po/pl.po: Likewise.
10102         * po/pt_BR.po: Likewise.
10103         * po/ru.po: Likewise.
10104         * po/rw.po: Likewise.
10105         * po/sk.po: Likewise.
10106         * po/sv.po: Likewise.
10107         * po/tr.po: Likewise.
10108         * po/zh_CN.po: Likewise.
10109         * po/zh_TW.po: Likewise.
10111         [BZ #3137]
10112         * iconv/iconv_prog.c (main): Fix spelling in error message.
10113         * iconv/iconvconfig.c (main): Likewise.
10114         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
10115         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
10116         * locale/programs/localedef.c (main): Likewise.
10117         * locale/programs/repertoire.c (repertoire_read): Likewise.
10118         * timezone/zdump.c (main): Likewise.
10119         * nscd/connections.c (handle_request): Fix spelling in log message.
10120         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
10122 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
10124         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
10125         interfaces.
10127 2006-09-20  Andreas Jaeger  <aj@suse.de>
10129         * math/libm-test.inc (lrint_test_upward): Fix typo.
10131 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
10133         [BZ #2592]
10134         * math/libm-test.inc (lrint_test_tonearest): New function.
10135         (lrint_test_towardzero): New function.
10136         (lrint_test_downward): New function.
10137         (lrint_test_upward): New function.
10138         (main): Run these new tests.
10139         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
10140         of values near to 0.
10141         (two52): Use double not long double.
10142         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10143         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10144         (two23): Use float not double.
10145         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10146         (two23): Use float not double.
10147         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10148         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10149         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10150         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10152 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10154         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
10155         Cast sp to unsigned long to avoid compiler warning.
10156         Use __makecontext_ret function instead of a trampoline on the stack.
10157         (__makecontext_ret): New function.
10158         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
10160 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
10162         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
10163         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
10164         bits.
10166 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
10168         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
10169         sure no reference to the unloaded map's search list remains in the
10170         dependency's scope.
10172 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
10174         * elf/Makefile: Add rules to build and run unload7 test.
10175         * elf/unload7.c: New test.
10176         * elf/unload7mod1.c: New file.
10177         * elf/unload7mod2.c: New file.
10179 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
10181         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
10182         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
10183         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10184         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
10185         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10186         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
10187         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10188         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
10189         PTRACE_GETEVENTMSG): Likewise.
10190         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
10191         values.
10193 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
10195         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
10196         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10197         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
10198         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
10200 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
10202         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
10203         write '\0' to the fd.
10204         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
10205         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
10206         Change regs to unsigned long pointer from unsigned int, fix fscr
10207         offset.
10209 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
10211         * io/Makefile (CFLAGS-fstatat.c): Set.
10212         (CFLAGS-fstatat64.c): Likewise.
10213         (CFLAGS-mknodat.c): Likewise.
10215         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
10216         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10217         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
10218         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
10220 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
10221             Steven Munroe  <sjmunroe@us.ibm.com>
10223         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
10224         names to the beginning.  Rename "cell" to "cellbe".
10225         (_dl_powerpc_platforms): New.
10226         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10227         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
10228         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
10229         (_DL_HWCAP_PLATFORM): Define to new mask.
10230         (_dl_platform_string, _dl_string_platform): New functions.
10231         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
10232         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
10234 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
10236         [BZ #2526]
10237         * README.libm: Fix a thinko in sqrt algorithm description.
10239         [BZ #3143]
10240         * manual/string.texi (argz_delete): Fix prototype.
10241         Patch by <alpt@freaknet.org>.
10243 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
10245         [BZ #3138]
10246         * io/test-lfs.c (do_prepare): Give name_len type size_t.
10247         * io/tst-fcntl.c (do_prepare): Likewise.
10248         * posix/tst-exec.c (do_prepare): Likewise.
10249         * posix/tst-preadwrite.c (do_prepare): Likewise.
10250         * posix/tst-spawn.c (do_prepare): Likewise.
10251         * posix/tst-truncate.c (do_prepare): Likewise.
10252         * rt/tst-aio.c (do_prepare): Likewise.
10253         * rt/tst-aio64.c (do_prepare): Likewise.
10254         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
10255         size_t.
10257 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
10259         [BZ #2821]
10260         * time/mktime.c (guess_time_tm): Fix overflow detection.
10261         * time/Makefile (tests): Add bug-mktime1.
10262         * time/bug-mktime1.c: New file.
10264         [BZ #3189, #3188]
10265         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
10266         (mremap): Likewise.
10268 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
10270         [BZ #1006]
10271         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
10272         Ensure relocation doesn't clobber any bits outside of the
10273         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
10274         R_SPARC_HI22 and R_SPARC_H44.
10276         [BZ #2775]
10277         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
10278         (long) (MINSIZE + nb - old_size) is positive.
10280         * malloc/arena.c (grow_heap): When growing bail even if new_size
10281         is negative.
10283         [BZ #3155]
10284         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
10285         stack below r1.
10287 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
10289         * posix/regex_internal.c (re_string_reconstruct): Handle
10290         offset < pstr->valid_raw_len && pstr->offsets_needed case.
10291         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
10292         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10293         re_string_context_at.
10294         * posix/Makefile: Add rules to build and run bug-regex26 test.
10295         * posix/bug-regex26.c: New test.
10297         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
10298         rather than col_sym_free.  Move seqp declaration earlier.
10300         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
10302 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
10304         * nscd/initgrcache.c (addinitgroupsX): Move any_success
10305         decl before first goto out.
10307 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
10309         * Makerules (shlib.lds): If have-hash-style, put .hash section
10310         at the end of the RO segment.
10312 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
10314         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
10315         style hash table format is used.
10317 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
10319         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
10320         randomization rather than before.
10321         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
10323 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
10325         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
10327         * malloc/malloc.c (_int_malloc): Use full list insert and not
10328         shortcut which assumes the list is empty for large requests
10329         too.
10331         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
10333 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
10335         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
10336         and offout arguments to the prototype.
10337         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
10338         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
10339         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
10340         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
10341         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
10342         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
10343         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
10344         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
10346 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
10348         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
10350         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
10351         dlopen parameters.
10353 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
10355         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
10356         only if herrno is NETDB_INTERNAL.  Handle errors other than
10357         ERANGE outside of the loops, handle TRY_AGAIN.
10359         * locale/programs/ld-ctype.c (translit_flatten): Issue error
10360         if other's ctype category was missing.
10361         * locale/programs/ld-collate.c (collate_read): Return if
10362         copy_locale's collate category is missing.
10364 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
10366         [BZ #2684]
10367         * malloc/malloc.c (public_rEALLOc): Try harder by using other
10368         arenas if allocation failed.
10369         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
10371 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
10373         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
10374         waste bins[0..1].
10375         (malloc_state): Reduce bins size by 2.
10376         (_int_malloc): Fix test for large enough buffer for early termination.
10377         When no unsorted block matches perfectly and an exiting block has
10378         to be split, use full list insert and not shortcut which assumes
10379         the list is empty.
10381         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
10382         failure.
10384 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
10386         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
10387         do anything.
10389         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
10390         symbol require exact match (these are PLTs).
10391         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10392         (_dl_ppc64_addr_sym_match): Likewise.
10394         [BZ #2683]
10395         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
10396         If symbol has a value use it.
10397         * elf/tst-dladdr1.c: New file.
10398         * elf/Makefile: Add rules to build and run tst-addr1.
10400 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
10402         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
10403         keeps failing and heap growth or new heap creation isn't
10404         successful either.
10405         * malloc/tst-malloc.c (main): Add new tests.
10407 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
10409         [BZ #2734]
10410         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
10411         as in the x86-64 code to use bswap.
10413 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
10415         [BZ #2680]
10416         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
10417         __USE_UNIX98.
10418         * posix/bits/unistd.h: Likewise.
10420 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
10422         [BZ #2751]
10423         * string/strchr.c: Add cast to avoid warning.
10425 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
10427         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
10428         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
10429         limit is needed to avoid the exploding of the address space
10430         requirement for secondary heaps.
10431         * malloc/arena.c (HEAP_MAX_SIZE): Define using
10432         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
10434 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
10436         [BZ #3018]
10437         * Makerules (depfiles): Handle extra-test-objs the same as
10438         extra-objs.
10439         (common-mostlyclean): Likewise.
10440         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
10441         instead.
10442         * elf/Makefile (extra-objs): Likewise.
10443         * stdlib/Makefile (extra-objs): Likewise.
10445 2006-08-14  Eric Blake  <ebb9@byu.net>
10447         [BZ #3044]
10448         * misc/error.h: Assume C89 or better.
10449         * misc/error.c: Likewise.
10451 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
10453         [BZ #3040]
10454         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
10455         __ASSUME_ATFCTS is defined.
10457 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
10459         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
10460         to sort in each call.
10462         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
10463         is empty simply return and use next service.
10464         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
10466         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
10467         tells us when not finding a charmap file is an error.
10468         * locale/programs/charmap.h: Adjust charmap_read prototype.
10469         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
10470         cannot find a charmap.
10471         * locale/programs/localedef.c (main): Adjust charmap_read call.
10473 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
10475         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
10476         sysdeps/posix/pause.c implementation instead.
10478 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
10480         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
10481         to EPERM.
10483 2006-08-13  Andreas Schwab  <schwab@suse.de>
10485         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
10486         Don't clobber caller's LRSAVE.
10487         (_dl_prof_resolve): Likewise.
10489 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
10491         [BZ #1996]
10492         * libio/memstream.c (open_memstream): Allocate initial buffer with
10493         calloc.
10494         * libio/wmemstream.c (open_wmemstream): Likewise.
10495         * libio/strops.c: Pretty printing.
10496         (_IO_str_overflow): Clear uninitialized part of the new buffer.
10497         (enlarge_userbuf): New function.
10498         (_IO_str_seekoff): Call it if seek position is larger than current
10499         buffer.
10500         * libio/wstrops.c: Likewise.
10501         * libio/vasprintf.c: Add comment as to why we do not have to use
10502         calloc instead of malloc to allocate initial buffer.
10503         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
10504         * libio/bug-memstream1.c: New file.
10505         * libio/bug-wmemstream1.c: New file.
10507 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
10509         * libio/wstrops.c: Remove dead macro definitions and comments.
10510         * libio/strops.c: Likewise.
10512         [BZ #2764]
10513         * login/utmpname.c (__utmpname): Remove unnecessary test.
10515 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
10517         [BZ #2832]
10518         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
10519         0s from integers.
10521 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
10523         [BZ #2987]
10524         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
10525         for CPU clocks.
10526         * sysdeps/unix/clock_settime.c: Add support for platform-specific
10527         setting of CPU clocks.
10529 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10531         [BZ #2841]
10532         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
10533         since C99 requires the result to promote to 'int' when uint_least8_t
10534         and uint_least16_t promote to 'int'.
10536 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
10538         [BZ #3013]
10539         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
10540         lenght of one output field, correct bitmask creation.
10541         * locale/programs/ld-time.c: Add alignment.
10543         [BZ #2997]
10544         * misc/error.c: Add space between program name and message if file
10545         name is missing.
10547 2006-08-03  Eric Blake  <ebb9@byu.net>
10549         [BZ #2998]
10550         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
10552 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
10554         * malloc/memusagestat.c: Silence warnings.
10556         * malloc/malloc.c: Dynamically size mmap treshold if the program
10557         frees mmaped blocks.
10558         Patch by Valerie Henson and Arjan van de Ven.
10560 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
10562         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
10563         __USE_GNU.
10565         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
10566         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
10567         (DEF): Don't put the var into .gnu.linkonce.r.* section.
10568         Only provide var definitions in strtol_l (or for *ull*
10569         in strtoll_l).
10571         * stdio-common/bug16.c (tests): New array.
10572         (do_tests): Allow the first hexadecimal digit
10573         to be 1, 2, 4 or 8.  Do 3 additional tests.
10575         * sysdeps/s390/fpu/libm-test-ulps: Update.
10577         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
10578         fchownat syscall if available.
10579         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
10580         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
10581         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
10583 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
10585         * nis/nis_xdr.c: Avoid some function calls.
10587 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
10588             Ulrich Drepper  <drepper@redhat.com>
10590         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
10591         short cut if only one name component is stripped away.
10593 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
10595         * nis/nis_call.c: Minor cleanups throughout.
10596         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
10597         (first_shoot): Add search_parent_first parameter.  Only if it is set
10598         search parent server first.
10599         If directory for table found through cold start cache is not the same
10600         as referenced in the cache, don't use it.
10601         (__nisfind_server): Take additional parameter.  Pass it on to
10602         first_shoot.
10603         (__prepare_niscall): Adjust __nisfind_server call.
10604         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
10605         * nis/nis_table.c: Adjust __nisfind_server call.
10606         * nis/nis_lookup.c: Likewise.
10607         (nis_lookup): Don't loop endlessly if name is reduced to ".".
10609 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
10611         [BZ #2182]
10612         * math/s_cacosh.c: Return values from positive branch.
10613         * math/s_cacoshf.c: Likewise.
10614         * math/s_cacoshl.c: Likewise.
10616         [BZ #2883]
10617         * sysvipc/sys/msg.h: Change return value to ssize_t.
10618         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
10619         * sysvipc/msgrcv.c: Likewise.
10620         * include/sys/msg.h: Likewise.
10622         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
10623         test introduced in patch for bz #661.
10624         (getgrouplist): Simplify code a bit.  Don't allocate one additional
10625         element for NEWGROUPS.
10627         [BZ #2908]
10628         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
10629         'f', use '1' as leading digit not '\1'.
10630         * stdio-common/Makefile (tests): Add bug16.
10631         * stdio-common/bug16.c: New file.
10633         [BZ #2914]
10634         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
10635         and don't try to open it.  The patch introducing the macro
10636         contained a bug and used the same file name as the new file
10637         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
10638         this out completely.
10640         [BZ #2926]
10641         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
10642         Patch by Jerry James <Jerry.James@usu.edu>.
10644         * rt/Makefile (tests): Add tst-clock2.
10645         * rt/tst-clock2.c: New file.
10647         [BZ #2978]
10648         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
10649         function and its parameters and pass it to new thread.
10650         (__gai_notify): Add support for alternative waiting for completion.
10651         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
10652         waiting for completion.
10653         * resolv/getaddrinfo_a.c: Likewise.
10654         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
10655         waiting for completion is used.
10656         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
10657         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
10658         * resolv/gai_error.c: Likewise.
10659         * resolv/gai_sigqueue.c: Likewise.
10661 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
10663         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
10664         errno to EBADF and return MACH_PORT_NULL.
10666 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
10668         [BZ #2980]
10669         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
10671 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
10673         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
10674         walk them instead of the symbol table.
10676 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
10678         [BZ #2098]
10679         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
10680         status of NSS calls, not the number of returned entries.
10682         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
10683         request_key, keyctl.
10685 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10687         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
10689 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
10691         * elf/tst-auditmod1.c: Fix typo in #error.
10693 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10695         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
10697         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
10699 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
10701         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
10702         that the directory is empty even on non-POSIX filesystems.
10704 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10706         * elf/dl-open.c (dl_open_worker): Add branch prediction.
10708         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
10709         the backend NSS module.  If backend setgrent call failed, don't have
10710         internal_setgrent fail.  Just remember this until it is needed.
10711         * nis/nss_compat/compat-pwd.c: Likewise.
10712         * nis/nss_compat/compat-spwd.c: Likewise.
10714 2006-07-30  Roland McGrath  <roland@redhat.com>
10716         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
10717         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
10718         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
10719         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
10721         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
10722         (nanosleep_not_cancel): New macro.
10723         (sigsuspend_not_cancel): new macro.
10724         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
10725         (do_sigsuspend): Define as inline.
10726         (__sigsuspend): Always use do_sigsuspend.
10727         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
10728         * include/signal.h: Declare __sigsuspend_nocancel.
10729         * sysdeps/posix/pause.c
10730         [! NO_CANCELLATION] (__pause_nocancel): New function.
10732         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
10733         * include/time.h (__nanosleep_nocancel): Likewise.
10735 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
10737         * locale/programs/localedef.c (add_to_readlist): Rename local
10738         variables to avoid confusion.
10740         * locale/programs/charmap.c (charmap_read): Emit error message if
10741         charmap couldn't be found or read.
10743 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
10745         * sysdeps/unix/sysv/linux/kernel-features.h: Define
10746         __ASSUME_FUTEX_LOCK_PI.
10747         * include/time.h: Declare __nanosleep_nocancel.
10748         * include/unistd.h: Declare __pause_nocancel.
10750         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
10751         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
10752         get the __stack_chk_fail_local definition when it's needed.
10754 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
10756         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
10757         * dlfcn/bug-atexit3.c: New file.
10758         * dlfcn/bug-atexit3-lib.cc: New file.
10760         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
10761         used when the namespace is not the base namespace.
10763 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
10765         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
10766         (__new_exitfn): Bump it in every successful call.
10767         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
10768         more exit handlers, call them right away.
10769         * stdlib/exit.h: Declare __new_exitfn_called.
10771 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
10773         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
10774         calling registered handler.
10776         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
10777         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10778         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10779         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10780         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10781         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10782         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10783         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10785 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
10787         * elf/dl-lookup.c (dl_new_hash): New functions.
10788         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
10789         value here.  Compute new-style hash value.  Pass new hash value
10790         and reference to variable with the old value to do_lookup_x.
10791         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
10792         old-style hash table.
10793         (_dl_debug_bindings): Pass new hash value and reference to variable
10794         with the old value to do_lookup_x.
10795         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
10796         new-style hash value and change old-style hash value parameter to
10797         be a reference.  Reoganize functions to determine whether
10798         new-style hash table is available.  Only fall back on old-style
10799         table.  If old-style hash value is needed, compute it here.
10800         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
10801         entry.
10802         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
10803         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
10804         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
10805         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
10806         * Makeconfig: If linker supports --hash-style option add it to all
10807         linker command lines to build DSOs.
10808         * config.make.in: Define have-hash-style.
10809         * configure.in: Test whether linker supports --hash-style option.
10811         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
10812         * sysdeps/generic/ldsodefs.h: Adjust prototype.
10814 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
10816         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
10817         auditing.
10819         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
10820         RPATH of main map twice.
10822 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
10824         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
10825         look further, return original strings.
10826         (_nl_find_msg): Do not return found translation if the conversion
10827         failed.  Either signal the string is unusable or that something went
10828         wrong and the original should be used.
10830 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
10832         * string/_strerror.c (__strerror_r): Add __builtin_expect.
10834 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
10836         [BZ #2766]
10837         * misc/insremque.c (insque): Handle prev == NULL.
10838         * misc/Makefile (tests): Add tst-insremque.
10839         * misc/tst-insremque.c: New test.
10841 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
10843         [BZ #2792]
10844         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
10845         conflict with DL_DST_REQUIRED.
10847 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
10849         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
10850         match what Solaris does.
10852 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
10854         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
10855         local_setegid instead of seteuid and setegid.
10856         * sysdeps/generic/local-setxid.h: New file.
10857         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
10859         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
10861         * string/Makefile (tests): Add bug-envz1.
10862         * string/bug-envz1.c: New file.
10864 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
10866         * posix/regex_internal.c (re_string_skip_chars): If no character has
10867         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
10868         to the byte which couldn't be converted.
10869         (re_string_reconstruct): Don't clear valid_raw_len before calling
10870         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
10871         tip_context using re_string_context_at.
10872         * posix/Makefile: Add rules to build and run bug-regex25 test.
10873         * posix/bug-regex25.c: New test.
10875 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
10877         [BZ #2703]
10878         * string/envz.c (envz_strip): Correct erroneously reversed src
10879         and dest parameters to memmove() invocation.
10881 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
10883         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
10884         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
10885         to make sure the database has been already invalidated.
10886         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
10887         after the cache has been invalidated.  Use pthread_mutex_lock rather
10888         than pthread_mutex_trylock if fd != -1.
10889         * nscd/connections.c (invalidate_cache): Add fd argument, write
10890         response to fd if not calling prune_cache, pass fd to prune_cache.
10891         (handle_request): Adjust invalidate_cache caller.
10892         (nscd_run): Pass -1 as fd to prune_cache.
10894 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
10896         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
10897         the correct place.
10899 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
10901         * nscd/nscd.h (struct database_dyn): Add prunelock field.
10902         * nscd/cache.c (prune_cache): Take prunelock before starting the
10903         work.  Just return in case it is already taken.
10904         * nscd/connections.c (dbs): Initialize .prunelock.
10906 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
10908         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
10909         copying.  No need to allocate new array for group members.  Just
10910         move the pointers and update the size.
10912         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
10913         Avoid memory leak in case realloc fails.  Simplification for
10914         better code generation.
10916         Avoid deprecation warning because of libc_hidden_proto for
10917         inet6_option_alloc.
10918         * inet/inet6_option.c (option_alloc): Renamed from
10919         inet6_option_alloc.  Made static.
10920         (inet6_option_alloc): Now a simple wrapper around option_alloc.
10921         (inet6_option_append): Call option_alloc.
10922         * include/netinet/in.h: Remove libc_hidden_proto for
10923         inet6_option_alloc.
10925         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
10926         for cleanup when cb!=NULL [Coverity CID 233].
10928 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
10930         [BZ #2693]
10931         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
10932         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
10933         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
10934         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
10935         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
10936         and inet6_rth_getaddr.
10937         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
10938         array.
10939         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
10940         Mark inet6_option_* interfaces as deprecated.
10941         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
10942         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
10943         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
10944         inet6_rth_segments, and inet6_rth_getaddr.
10945         * inet/inet6_opt.c: New file.
10946         * inet/inet6_rth.c: New file.
10948         * inet/netinet/icmp6.h: Pretty printing.
10950         [BZ #2683]
10951         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
10953 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
10955         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
10956         doing it all here.  When server does not know the answer do not
10957         fail immediate, try parent first.
10959         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
10960         overflow test.
10962 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
10964         * nis/nis_call.c (__prepare_niscall): New function.  Split out
10965         from __do_niscall.
10966         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
10967         and exported.
10968         (__follow_path): New function.  Split out from nis_list.
10969         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
10970         _xdr_nis_result.
10971         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
10972         _xdr_nis_result.
10973         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
10974         and __follow_path.
10975         * nis/Versions: Export __prepare_niscall, __create_ib_request,
10976         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
10977         from libnsl for version GLIBC_PRIVATE.
10978         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
10979         Remove entry parameter from _nss_nisplus_parse_pwent and
10980         _nss_nisplus_parse_grent.
10981         * nis/nss_nisplus/nisplus-parser.c: Likewise.
10982         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
10983         again.  Rewrite getpwent handling to not use nis_first_entry and
10984         nis_next_entry.  Roll out own niscall handling.
10985         * nis/nss_nisplus/nisplus-grp.c: Likewise.
10987         * sunrpc/xdr_rec.c: Fix typo in comment.
10989 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
10991         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
10992         handling.
10994         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
10995         to allocate memory for my_pollfd.  Better initialization of
10996         cb_is_running.  Use TEMP_FAILURE_RETRY.
10998         * malloc/memusage.sh (memusageso): Add quotes.
10999         (memusagestat): Likewise.
11000         * debug/xtrace.sh (pcprofileso): Likewise.
11001         (pcprofiledump): Likewise.
11002         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
11003         replacement.
11004         * malloc/Makefile ($(objpfx)memusage): Likewise.
11006         * nis/nis_callback.c (__nis_create_callback): Calls to
11007         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
11008         asprintf call fails.
11010         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
11011         no uninitialized memory is passed to sendto.
11013 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
11015         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
11016         of snprintf+strdup.  Handle OOM.
11017         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
11018         cb->serv together.  Remove now obsolete free calls.
11019         (__nis_destroy_callback): Remove now obsolete free call.
11021 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
11023         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
11024         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
11025         and ULA respectively). Set precedence for IPv4 address to 10 as
11026         defined in RFC3484 for preferring IPv6.
11027         * posix/gai.conf: Update to match the new default tables.
11029 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
11031         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
11032         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
11033         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
11034         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
11036         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
11037         Removed.
11038         (init_nss_interface): Remove initialization of these variables.
11040 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
11042         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
11043         nis_free_directory forward to avoid duplication.
11045 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
11047         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
11048         rec_dirsearch returning NULL.
11049         (first_shoot): Handle __nis_finddirectory returning NULL.
11050         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
11052         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
11053         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
11055 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
11057         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
11058         pid changed.
11060 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
11062         * include/rpc/pmap_prot.h: Mark all functions as hidden.
11064         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
11065         * nscd/nscd_getgr_r.c: Likewise.
11067         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
11069         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
11070         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
11072         * stdlib/longlong.h (__clz_tab): Mark as hidden.
11074         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
11076         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
11078         * include/rpc/auth.h: Mark xdr_des_block_internal and
11079         xdr_opaque_auth_internal as hidden.
11081         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
11082         hidden.
11084         * include/rpc/xdr.h: Mark all _internal functions as hidden.
11086         * misc/getusershell.c (okshells): Don't use static initializers,
11087         do it dynamically.
11089         * stdlib/fmtmsg.c (keywords): Change type of len element to
11090         uint32_t to not waste space on 64bit machines.
11092         * locale/setlocale.c: Change _nl_category_names into a string.
11093         Add new _nl_category_name_idxs.  Change all users.
11094         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
11095         Declare _nl_category_name_idxs.
11096         * locale/findlocale.c: Adjust for _nl_category_names change.
11097         * locale/loadlocale.c: Likewise.
11098         * locale/newlocale.c: Likewise.
11099         * intl/dcigettext.c: Likewise.
11101         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
11102         (add_alias2): ...here.  New function.
11103         (__gconv_read_conf): Simplify builtin alias handling.
11104         (builtin_aliases): Convert to string to avoid relocations.
11105         * iconv/gconv_builtin.h: Add comment about correct formatting.
11107 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
11109         * resolv/res_debug.c (loc_ntoa): Make error const.
11111 2006-05-14  Andreas Schwab  <schwab@suse.de>
11113         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
11115 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
11117         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
11118         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
11119         sizeof (cpu_set_t).
11121 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
11123         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
11125         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
11127         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
11128         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
11130         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
11131         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
11133         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
11134         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
11135         xdr_cback_data.
11137         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
11138         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11139         xdr_ypupdate_args.
11141         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
11142         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
11144         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
11145         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
11147         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
11148         * include/rpcsvc/nis_callback.h: New file.
11150         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
11151         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
11153         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11154         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11156         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
11157         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
11159         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11160         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11162         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
11163         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11164         xdr_ypdelete_args.
11166         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
11167         __BEGIN_DECLS and __END_DECLS, the header is not installed.
11169         * nis/nis_error.c: Remove table of strings.  Use position
11170         independent mechanism.
11171         * nis/nis_error.h: New file.
11173 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
11175         * locale/programs/ld-time.c (time_finish): If wide era name or
11176         format aren't provided, set both wname and wformat to L"".
11178 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
11180         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
11181         results if the call was succesful.
11183         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
11185         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
11186         as hidden.
11188 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
11190         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
11192 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
11194         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
11195         caller makes sure this is not the case.
11196         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
11198 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
11200         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
11201         calls.
11203         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
11204         [Coverity CID 229, 230]
11206         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
11207         DGETTEXT calls.
11208         (hol_help): Likewise.  [Coverity CID 226, 227]
11210         * string/argz-replace.c (__argz_replace): Unconditionally call
11211         free on SRC.  [Coverity CID 225]
11213         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
11214         the return value of __nis_default_owner and __nis_default_group,
11215         it has been especially allocated.  [Coverity CID 224]
11217         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
11218         searchgroup and searchowner.  Significantly simplified.
11219         (__nis_default_owner): Remove duplication.  Do not locally copy the
11220         string before duplicating it.
11221         (__nis_default_group): Likewise.
11223         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
11224         we must clear the variable before calling __nisfind_server.
11226         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
11227         nis_getnames.  [Coverity CID 223]
11229         * locale/programs/locfile.c (locfile_read): Use alloca instead of
11230         xmalloc to allocate local repertoire name.  [Coverity CID 222]
11232         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
11233         allocate memory for the input to add_bytes.  [Coverity CID 221]
11235         * posix/wordexp.c (w_addword): Free word if realloc fails and it
11236         was allocated here.  [Coverity CID 219, 220]
11238         * posix/getconf.c (print_all): Free confstr data after printing.
11239         [Coverity CID 218]
11241         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
11242         list allocation fails.  [Coverity CID 215]
11244         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
11245         [Coverity CID 213]
11247         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
11248         string is NULL.  [Coverity CID 212]
11249         * argp/Makefile: Add rules to build and run bug-argp1.
11250         * argp/bug-argp1.c: New file.
11252         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
11253         end of string.
11254         * stdlib/canonicalize.c (__realpath): Likewise.
11256         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
11257         pointer.  [Coverity CID 206]
11259         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
11260         in statically linked code.
11261         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
11262         statically built code, be prepared to have no link map.
11263         [Coverity CID 205]
11265         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
11266         dgettext calls. [Coverity CID 204]
11268         * argp/argp-help.c (struct uparams): Remove valid member.  Change
11269         the one user.
11270         (uparam_names): Reduce size.  Avoid relative relocations.
11271         Moved to read-only segment.
11272         (fill_in_uparams): Update for new layout.
11274         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
11275         assumed to always be != NULL. [Coverity CID 202]
11277         * argp/argp-help.c (hol_entry_help): Remove some dead code
11278         [Coverity CID 200].
11280         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
11281         away a few more unconditional yperr2nss calls.
11282         (_nss_nis_getservbyname_r): Likewise.
11284 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
11286         * sysdeps/generic/ldsodefs.h: Remove support for non-core
11287         architectures.
11289         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
11290         that unused memory passed to sendto is nevertheless initialized.
11292         [BZ #2499]
11293         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
11294         possibly unaligned memory accesses.
11296         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
11297         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
11298         and __putlong respectively.  Correct buffer overflow check for
11299         NS_NOTIFY_OP.
11301         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
11303         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
11304         (send_dg): Rewrite error handling to be more compact and avoid
11305         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
11307         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
11309         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
11310         instead of ns_get16.
11311         (res_queriesmatch): Likewise.  Minor optimization.
11313         [BZ #2499]
11314         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
11315         __libc_res_nsend might reallocate the buffer for the answer.  In
11316         this case we have to reload the HP pointer.
11318 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11320         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
11321         some branch prediction hints.
11323         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
11324         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11325         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11326         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11327         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11328         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11329         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11330         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11332 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11334         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
11335         by a GOT relocation to make Scrt1.o position independent.
11336         * sysdeps/s390/s390-64/elf/start.S: Likewise.
11338         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
11339         six system call parameters.
11340         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
11342 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11344         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
11345         malloc&bzero.
11347         * sunrpc/svc_udp.c (BZERO): Remove definition.
11348         (CALLOC): Define.
11349         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
11351         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
11352         (des_SPtrans): Use uint32_t type.
11353         (des_skb): Likewise.
11355         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
11357 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
11359         [BZ #2509]
11360         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
11361         on 32-bit arches.
11363 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11365         * locale/programs/ld-address.c (address_finish): Fix one more
11366         place where the iso639 array might be accessed beyond the limits.
11368 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
11370         * nis/nis_table.c (nis_list): Avoid clearing res twice before
11371         filling it for the first time.
11373         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
11374         Adjust all callers.
11375         Free res object content before returning.
11377         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
11379         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
11380         client->cl_auth.
11382         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
11383         cleanup for initial thread, just the free call on TVP.
11385         * nscd/gai.c (__getline): Define.
11388 See ChangeLog.16 for earlier changes.