Fix timer_create to initialize timer_t properly.
[glibc/pb-stable.git] / ChangeLog
blob01e7c91f8115c8433348cf6243bbf2f52d9c4a3c
1 2009-09-01  Andreas Schwab  <schwab@redhat.com>
3         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
4         parsing of group entry.
6 2009-09-02  Andreas Schwab  <schwab@redhat.com>
8         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
9         external buffer.  Always discard readahead in internal buffer.
10         * libio/Makefile (tests): Add bug-wsetpos.
11         * libio/bug-wsetpos.c: New file.
13 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
15         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
16         Add attribute_hidden.
17         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
18         __strcasestr_sse2): Likewise.
19         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
20         (__fma_fma): Make static.
21         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
22         (__fmaf_fma): Make static.
24 2009-08-31  Andreas Schwab  <schwab@redhat.com>
26         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
27         reformulate in-buffer optimisation check to match code in
28         _IO_new_file_seekoff.
30 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
32         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
33         to srwi in 32-bit memcpy for power6.
35 2009-09-01  Andreas Schwab  <schwab@redhat.com>
37         * include/stdio.h: Declare hidden proto for fflush.
38         * libio/iofflush.c: Add hidden weak alias for fflush.
40 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
42         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
43         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
45 2009-08-31  Andreas Schwab  <schwab@redhat.com>
47         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
49 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
51         [BZ #10560]
52         * malloc/malloc.c: Add local assert definition to avoid problems with
53         memory allocation in the real one.
55 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
57         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
58         Removed.
59         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
60         turn off SSSE3 on Atom.
62 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
64         * stdlib/tst-strtol.c (tests): More tests.
65         * stdlib/tst-strtoll.c (tests): Likewise.
67 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
69         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
71         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
73 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
75         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
76         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
78         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
80         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
82         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
84 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
86         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
88 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
90         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
91         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
93         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
95         * sysdeps/x86_64/fpu/s_signbit.S: New file.
96         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
98         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
99         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
101         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
102         leftover YMM_SIZE definition.
104 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
106         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
107         union.
108         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
109         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
110         Redefine.
111         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
113         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
114         and SET_FLOAT_WORD definitions.
116 2009-08-24  Roland McGrath  <roland@redhat.com>
118         * sysdeps/unix/syscall-template.S: New file.
119         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
120         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
121         (compile-syscall): Pass mkdep and -g options as normal.
122         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
123         (common-generated): Don't add them here.
125 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
127         * math/s_fdim.c: In case of overflows set errno.
128         * math/s_fdimf.c: Likewise.
129         * math/s_fdiml.c: Likewise.
131         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
132         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
133         are using the inline optimizations.
135         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
136         (__signbitf): Likewise.
138 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
140         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
141         terminated.
142         * posix/Makefile (tests): Add bug-regex29.
143         * posix/bug-regex29.c: New file.
145         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
146         older POSIX versions are selected.
148         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
149         as well.
150         * stdio-common/printf_fphex.c: Likewise.
151         * stdio-common/tstdiomisc.c: Add more tests.
153         * locale/locale.h: Include xlocale.h and the thread-local locale
154         declarations for XPG7, not XPG6.
156 2009-08-21  Andreas Schwab  <schwab@redhat.com>
158         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
159         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
160         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
161         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
162         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
163         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
165 2009-08-20  Roland McGrath  <roland@redhat.com>
167         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
168         Use l_addr instead of l_map_start (dli_fbase).
169         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
170         address when there is no proximate symbol.
171         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
172         Likewise.
174 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
176         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
178 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
180         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
181         Also handle SIGINT.  In that case only do the cleanup and then
182         re-raise the signal.
183         (main): Install handler for SIGINT.
185 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
187         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
188         clobber list.
190 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
192         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
193         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
194         tst-auditmod7b.c.
195         (tests): Add tst-audit6 tst-audit7.
196         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
197         tst-auditmod7a tst-auditmod7b.
198         ($(objpfx)tst-audit6): New.
199         ($(objpfx)tst-audit6.out): Likewise.
200         ($(objpfx)tst-audit7): Likewise.
201         ($(objpfx)tst-audit7.out): Likewise.
202         (tst-audit6-ENV): Likewise.
203         (tst-audit7-ENV): Likewise.
204         (CFLAGS-tst-auditmod6b.c): Likewise.
205         (CFLAGS-tst-auditmod6c.c): Likewise.
206         (CFLAGS-tst-auditmod7b.c): Likewise.
207         * elf/tst-audit6.c: New file.
208         * elf/tst-audit7.c: New file.
209         * elf/tst-auditmod6a.c: New file.
210         * elf/tst-auditmod6b.c: New file.
211         * elf/tst-auditmod6c.c: New file.
212         * elf/tst-auditmod7a.c: New file.
213         * elf/tst-auditmod7b.c: New file.
214         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
215         saving and restoring SSE/AVX registers to ...
216         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
218 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
220         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
221         only if SHARED is defined.
222         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
224 2009-08-03  Jim Meyering  <meyering@redhat.com>
226         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
228 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
230         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
231         section as the other functions for this architecture.
232         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
234 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
236         * sysdeps/x86_64/strcmp.S: Add support to compile with
237         USE_SSSE3.  In this case palignr is used.
238         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
239         available but SSSE3 is, pick __str{,n}cmp_ssse3.
240         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
241         Add strcmp-ssse3 and strncmp-ssse3.
242         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
243         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
245         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
246         warning through fake initialization.
248 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
250         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
252 2009-08-07  Andreas Schwab  <schwab@redhat.com>
254         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
255         unique symbols.
257 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
259         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
260         EBX from EAX = 1.  Handle EAX = 11.
262 2009-08-07  Andreas Schwab  <schwab@redhat.com>
264         * Makefile (TAGS): Use separate sed -e expressions to avoid \
265         inside ''.
267 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
269         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
270         hidden IFUNC functions.
271         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
273         * sysdeps/i386/i686/multiarch/strlen.S: New file.
275         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
276         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
277         strcasestr-c.
278         (CFLAGS-strcspn-c.c): Define.
279         (CFLAGS-strpbrk-c.c): Define.
280         (CFLAGS-strspn-c.c): Define.
281         (CFLAGS-strstr.c): Define.
282         (CFLAGS-strcasestr.c): Define.
283         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
284         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
285         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
286         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
287         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
288         * sysdeps/i386/i686/multiarch/strspn.S: New file.
289         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
290         * sysdeps/i386/i686/multiarch/strstr.c: New file.
291         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
292         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
293         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
294         -16L instead of 0xfffffffffffffff0L.
295         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
297 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
299         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
301 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
303         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
304         another rewrite.  Much smaller and faster.
305         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
307         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
308         ss_flags from the correct location.
310 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
312         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
313         * sysdeps/i386/i686/cacheinfo.c: New file.
314         * sysdeps/i386/i686/multiarch/Makefile: New file.
315         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
316         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
317         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
318         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
319         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
320         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
321         (__cpuid_count): New. Provide the default.
322         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
323         (__x86_64_preferred_memory_instruction): Define only if
324         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
325         (intel_check_word): Use __cpuid.
326         (handle_intel): Likewise.
327         (handle_amd): Likewise.
328         (__cache_sysconf): Likewise.
329         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
330         (__cache_sysconf): Likewise.
331         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
332         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
333         (get_common_indeces): Use __cpuid.
334         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
335         if ENABLE_SSSE3_ON_ATOM is not defined.
336         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
337         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
338         popcnt instead of popcntq.
340 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
342         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
344 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
346         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
347         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
348         which always causes a compile error.
350         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
352         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
353         comes from...
354         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
355         which always causes a compile error.
357         * debug/Makefile (tests): Add tst-longjmp_chk2.
358         * debug/tst-longjmp_chk2.c: New file.
360         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
361         Remove incorrect use of BP_SYM.
362         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
363         here now since it is more complex than just a simple check.
365         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
366         we make no more progress.
368 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
370         * math/s_fma.c: Don't define alias if __fma is a macro.
371         * math/s_fmaf.c: Likewise.
372         * sysdeps/x86_64/multiarch/s_fma.c: New file.
373         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
374         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
376         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
377         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
378         New macro HAS_FMA.
379         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
380         function.
381         * include/libc-symbols.h (libm_ifunc): Define.
382         * sysdeps/x86_64/multiarch/Versions: New file.
384         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
386 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
388         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
390 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
392         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
393         call that registers used in calling conventions need to be preserved.
394         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
395         to preserve register content if necessary.
396         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
397         (_dl_x86_64_restore_sse): New function.
398         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
399         is allowed to modify xmm/ymm registers.
401         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
402         application's perspective.
403         * stdio-common/scanf17.c: Likewise.
405 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
407         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
408         size to memsz.
409         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
410         here.
411         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
412         two steps to catch bugs.
414 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
416         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
417         determines which files are used in runtime lookups and only checks
418         those for SSE use.
419         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
420         testing.
421         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
422         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
423         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
424         take a while.
426         * elf/dl-open.c: Move _dl_scope_free to...
427         * elf/dl-scope.c: ...here.  New file.
428         * elf/Makefile (dl-routines): Add scope.
430         * resolv/resolv.h (RES_USE_DNSSEC): Define.
431         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
432         RES_USE_DNSSEC.
433         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
434         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
435         all the places we handled RES_USE_EDNS0 only before.
436         Patch by Adam Tkac <atkac@redhat.com>.
438 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
440         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
441         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
442         Update size when reallocating.
444 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
446         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
447         functions used in ld.so modify xmm/ymm registers.
448         * sysdeps/x86_64/Makefile:  Hook new test up.
449         * sysdeps/x86_64/rtld-memchr.c: New file.
450         * sysdeps/x86_64/rtld-memcmp.c: New file.
451         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
452         * sysdeps/x86_64/rtld-strchr.S: New file.
453         * sysdeps/x86_64/rtld-strlen.S: New file.
454         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
455         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
457 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
459         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
460         strncmp-c.
461         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
462         (exit): Likewise.
463         (Byte1): Likewise.
464         (Byte2): Likewise.
465         (Byte3): Likewise.
466         (Byte4): Likewise.
467         (Byte5): Likewise.
468         (Byte6): Likewise.
469         (next_8_bytes): Likewise.
470         (Byte0): Remove commented out codes.
471         (unaligned_table): Align jump table at 8 bytes.
472         Add _sse4_2 to all labels.  Always include "../strcmp.S".
473         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
474         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
475         * sysdeps/x86_64/strncmp.S: New file.
477 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
479         [BZ #10422]
480         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
481         kernels, dropped when eventfd2 support was added.
482         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
483         kernels, dropped when signalfd4 support was added.
484         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
485         added, name them.
487         [BZ #10452]
488         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
489         replies up.
491         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
493 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
495         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
496         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
498         [BZ #10448]
499         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
500         callback we must touch the status to avoid using stale value.
502         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
503         compiled in.
505 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
507         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
508         /lib/modules/* headers anymore.  We have sane headers in the standard
509         place now.
511 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
513         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
514         "etf3enh" and "highgprs" added.
515         (_dl_s390_platforms): "z10" added.
516         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
517         Increased for the new entries.
518         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
519         HWCAP_S390_HIGH_GPRS added.
521         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
522         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
523         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
524         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
525         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
527 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
529         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
530         avoid additional cpuid instructions.  Most of the information is
531         stored somewhere.
533         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
534         cache descriptors.
535         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
537         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
538         SSSE3 bit for Atoms.
539         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
540         here anymore.
542         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
543         structure before copying it to avoid warning.
544         * posix/tst-rfc3484-2.c (do_test): Likewise.
545         * posix/tst-rfc3484-3.c (do_test): Likewise.
547         [BZ #10416]
548         * include/unistd.h: Make header file suitable for C++ test cases.
549         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
551         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
552         stack alignment in the exit code.
554         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
555         potentially be zero.
557         * elf/tst-unique1.c: Extend test to check for unloading DSO with
558         unique symbol definition.
559         Patch by Jakub Jelinek.
560         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
561         make sure the object with the definition cannot be unloaded.  Adjust
562         a few types.
563         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
564         the unique symbol hash table should not be const.
566 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
568         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
569         unnecesary variables.  Comment fixes.
571 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
573         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
574         Use NONASCII_CASE information provided by the locale to determine
575         whether optimized string load function can be used.  Minor cleanups.
577 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
579         * string/strcasestr.c (STRCASESTR): New macro.
580         (__strcasestr): Renamed to ..
581         (STRCASESTR): ...this.
582         * string/strstr.c (STRSTR): New macro.
583         (strstr): Renamed to ..
584         (STRSTR): ...this.
585         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
586         strstr-c strcasestr-c
587         (CFLAGS-strstr.c): New.
588         (CFLAGS-strcasestr.c): Likewise.
589         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
590         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
591         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
592         * sysdeps/x86_64/multiarch/strstr.c: New file.
594 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
596         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
597         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
598         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
599         _NL_CTYPE_NONASCII_CASE.
600         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
601         field.
602         (ctype_finish): Check whether there are any 8-bit characters outside
603         the range ASCII has or whether the mapping isn't the same as for
604         ASCII (±0x20).  Set nonascii_case appropriately.
605         (ctype_output): Add output handler for nonascii_case.
607 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
609         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
610         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
612 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
614         [BZ #10360]
615         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
616         0xffff in the EDNS0 record.
618 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
620         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
621         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
622         is written before the list head update.
623         Patch by Andreas Schwab <aschwab@redhat.com>.
625 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
626             Jakub Jelinek  <jakub@redhat.com>
628         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
629         corruption thread-safe.
631 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
633         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
634         overrides atomic_compare_and_exchange_val_rel, define to
635         atomic_compare_and_exchange_val_rel by default, otherwise default
636         to catomic_compare_and_exchange_val_acq.
637         (catomic_compare_and_exchange_bool_rel): If arch overrides
638         atomic_compare_and_exchange_bool_rel, define to
639         atomic_compare_and_exchange_bool_rel by default.
640         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
641         Use catomic_compare_and_exchange_val_rel instead of
642         catomic_compare_and_exchange_val_acq.
644 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
646         * sysdeps/generic/ldsodefs.h: Add prototype for
647         _dl_higher_prime_number.
648         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
650         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
651         restoring of ymm registers a bit.
653 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
655         * sysdeps/x86_64/memcmp.S: New file.
657 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
659         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
660         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
661         pointers in writable memory.
663 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
665         * config.h.in: Add HAVE_AVX_SUPPORT entry.
666         * config.make.in: Add config-cflags-avx entry.
667         * configure.in: Substitute libc_cv_cc_avx.
668         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
669         * elf/tst-audit4.c: New file.
670         * elf/tst-audit5.c: New file.
671         * elf/tst-auditmod4a.c: New file.
672         * elf/tst-auditmod4b.c: New file.
673         * elf/tst-auditmod5a.c: New file.
674         * elf/tst-auditmod5b.c: New file.
675         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
676         link-defines.sym.
677         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
678         (La_x86_64_vector): Likewise.
679         (La_x86_64_regs): Append lr_vector.
680         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
681         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
682         saving and restoring SSE registers to ...
683         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
684         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
685         <link-defines.h>.
686         (_dl_runtime_profile): Use LR_SIZE to allocate space for
687         La_x86_64_regs.  Allocate extra space and jump to memory at
688         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
689         (save_and_restore_vector_sse): New.
690         (save_and_restore_vector_avx): Likewise.
691         (check_avx): Likewise.
692         (save_and_restore_vector): Likewise.
693         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
694         HAVE_AVX_SUPPORT.
695         * sysdeps/x86_64/link-defines.sym: New file.
697 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
699         * elf/do-lookup.h: Removed after folding content into...
700         * elf/dl-lookup.c: ...here.
702         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
704 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
706         * configure.in: Check for gnu_unique_symbol symbol type.
707         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
708         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
709         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
710         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
711         change.
712         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
713         unique symbol table.
714         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
715         for first namespace.
716         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
717         unique symbol hash table.
718         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
719         * elf/tst-unique1.c: New file.
720         * elf/tst-unique1mod1.c: New file.
721         * elf/tst-unique1mod2.c: New file.
722         * elf/tst-unique2.c: New file.
723         * elf/tst-unique2mod1.c: New file.
724         * elf/tst-unique2mod2.c: New file.
726 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
728         * elf/elf.h (STB_GNU_UNIQUE): Define.
730         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
731         from...
732         * include/inline-hashtab.h: ...here.
733         (htab_expand): Adjust for renamed function.  Correct memory handling.
735 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
737         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
739 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
741         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
742         (PPC_FEATURE_HAS_VSX): Likewise.
744 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
746         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
747         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
749         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
750         aligned to 16 byte boundaries.
751         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
752         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
753         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
755 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
757         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
758         * config.make.in (config-cflags-sse4): New variable.
759         * configure.in: Substitute libc_cv_cc_sse4.
760         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
761         HAVE_SSE4_SUPPORT.
762         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
763         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
764         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
765         * sysdeps/x86_64/multiarch/strcspn.S: New file.
766         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
767         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
768         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
769         * sysdeps/x86_64/multiarch/strspn.S: New file.
771 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
773         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
774         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
775         (tests): Add tst-audit3 for x86_64.
776         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
777         ($(objpfx)tst-audit3): Define.
778         ($(objpfx)tst-audit3.out): Define.
779         (tst-audit3-ENV): Define.
780         * elf/tst-audit3.c: New file.
781         * elf/tst-auditmod3a.c: New file.
782         * elf/tst-auditmod3b.c: New file.
783         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
784         and restore xmm6.
786         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
787         (__stpncpy): Renamed to ...
788         (STPNCPY): This.
789         (stpncpy): Create alias only if STPNCPY is not defined.
790         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
791         defined.
792         (strncpy): Renamed to ...
793         (STRNCPY): This.
794         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
795          stpncpy-c strncpy-c for string.
796         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
797         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
798         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
799         * sysdeps/x86_64/multiarch/strcpy.S: New file.
800         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
801         * sysdeps/x86_64/multiarch/strncpy.S: New file.
803 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
805         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
806         adding to fast bin list.
808 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
810         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
811         inet_makeaddr.  This worked only with class-based networks.
812         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
813         Likewise.
815         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
816         recognize all types.
817         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
818         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
819         be in host byte order.
821 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
823         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
824         (MODEL_OFFSET): Define.
825         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
826         family and model.
827         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
828         out common code into new function get_common_indeces. Determine
829         extended family and model for Intel processors.
831 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
833         * resolv/resolv.h: Define RES_SNGLKUPREOP.
834         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
835         option.
836         * resolv/res_send.c (reopen): New function.  Broken out of...
837         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
838         fallback mechanism.  If single-request fails switch to
839         single-request-reopen mode which opens a new socket for the second
840         request.
842 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
844         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
845         (CHECK_SP): Use it.
847 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
849         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
850         for saved registers.
851         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
852         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
853         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
855 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
857         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
859 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
861         * po/id.po: Update from translation team.
863         * po/bg.po: Update from translation team.
865 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
867         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
868         defined.
869         (strncmp): Renamed to STRNCMP.
870         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
871         strncmp-c for string.
872         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
873         * sysdeps/x86_64/multiarch/strcmp.S: New file.
874         * sysdeps/x86_64/multiarch/strncmp.S: New file.
875         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
877 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
879         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
880         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
881         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
882         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
883         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
884         ifuncmain7static.c.
885         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
886         ifuncmain7static, and ifuncmain7picstatic.
887         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
888         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
889         $(objpfx)ifuncmain7pie.out.
890         (modules-names): Add ifuncmod5 ifuncmod6
891         (ifuncmod5.so-no-z-defs): Define.
892         (ifuncmod6.so-no-z-defs): Define.
893         (CFLAGS-ifuncmain5pic.c): Define.
894         (CFLAGS-ifuncmain5picstatic.c): Define.
895         (CFLAGS-ifuncmain5staticpic.c): Define.
896         (CFLAGS-ifuncdep5pic.c): Define.
897         (CFLAGS-ifuncmain7pic.c): Define.
898         (CFLAGS-ifuncmain7picstatic.c): Define.
899         (CFLAGS-ifuncmain1staticpie.c): Define.
900         (CFLAGS-ifuncmain5pie.c): Define.
901         (CFLAGS-ifuncmain6pie.c): Define.
902         (CFLAGS-ifuncmain7pie.c): Define.
903         ($(objpfx)ifuncmain1staticpie.out): Define.
904         ($(objpfx)ifuncmain1staticpie): Define.
905         ($(objpfx)ifuncmain5pie.out): Define.
906         ($(objpfx)ifuncmain5pie): Define.
907         ($(objpfx)ifuncmain6pie.out): Define.
908         ($(objpfx)ifuncmain6pie): Define.
909         ($(objpfx)ifuncmain5): Define.
910         ($(objpfx)ifuncmain5pic): Define.
911         ($(objpfx)ifuncmain5static): Define.
912         ($(objpfx)ifuncmain5staticpic): Define.
913         ($(objpfx)ifuncmain5picstatic): Define.
914         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
915         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
916         ifuncmain6pie.out.
917         * elf/b/elf/ifuncmain1staticpie.c: New file.
918         * elf/ifuncdep5.c: New file.
919         * elf/ifuncdep5pic.c: New file.
920         * elf/ifuncmain5.c: New file.
921         * elf/ifuncmain5pic.c: New file.
922         * elf/ifuncmain5picstatic.c: New file.
923         * elf/ifuncmain5pie.c: New file.
924         * elf/ifuncmain5static.c: New file.
925         * elf/ifuncmain5staticpic.c: New file.
926         * elf/ifuncmain6pie.c: New file.
927         * elf/ifuncmain7.c: New file.
928         * elf/ifuncmain7pic.c: New file.
929         * elf/ifuncmain7picstatic.c: New file.
930         * elf/ifuncmain7pie.c: New file.
931         * elf/ifuncmain7static.c: New file.
932         * elf/ifuncmod5.c: New file.
933         * elf/ifuncmod6.c: New file.
935 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
937         [BZ #10085]
938         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
939         (nss_endgrent): New variable.
940         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
941         fields. Change type of files to bool and adjust all users.
942         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
943         (internal_endgrent): Call nss_endgrent if necessary.
944         (add_group): New function.  Broken out of...
945         (check_and_add_group): ...here.
946         (getgrent_next_nss): Remove test that any callback is available.
947         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
948         callback.  If there is no blacklist we can trust the results returned
949         by the initgroups_dyn callback.  In case there is a callback and we
950         find a group entry for the group ID but it doesn't contain the
951         correct member, switch to the slow mode and use getgrent_r.
952         (internal_getgrent_r): When we see a +: entry, determine whether
953         there is any callback and which we can use the initgroups_dyn
954         callback.
956 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
958         * malloc/malloc.c (_int_malloc): Add some consistency checks.
959         (_int_free): Likewise.
961         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
962         AF_IEEE802154.
963         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
964         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
965         and ARPHRD_IEEE802154_PHY.
967         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
968         relative to generic Linux version.
970 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
972         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
973         ($(objpfx)ifuncmain1vispie): Likewise.
975 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
977         * login/Makefile: Build pt_chown as PIE.
979 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
981         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
982         a format string.
983         * elf/sln.c (usage): Likewise.
984         * malloc/memusage.sh (do_help): Likewise.
985         * nss/getent.c (more_help): Likewise.
986         * posix/getconf.c (main): Likewise.
987         * sunrpc/rpcinfo.c (usage): Likewise.
988         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
990 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
992         * login/programs/pt_chown.c: Use libcap to drop privileges other than
993         those needed.
994         * login/Makefile: If necessary link pt_chown with -lcap.
995         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
996         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
998 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
1000         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
1001         comparisons.
1002         * string/test-memchr.c (do_random_tests): Test very large lengths
1003         as well.
1005 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1007         * Makeconfig (+link-pie): Define.
1008         (+prectorS): Define.
1009         (+postctorS): Define.
1010         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
1011         * nscd/Makefile ($(objpfx)nscd): Likewise.
1013 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
1015         [BZ #10107]
1016         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
1017         with cmplwi.
1018         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
1020 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1022         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
1023         into ...
1024         * sysdeps/unix/grantpt.c: ...here.
1026 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
1028         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
1029         chmod if it is necessary.
1031         [BZ #10166]
1032         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
1033         when the slave device is in devpts or devfs.
1035         [BZ #10183]
1036         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
1038         [BZ #10195]
1039         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
1040         of nd_opt_home_agent_info_preference to uint16_t.
1041         Patch by Arnaud Ebalard <arno@natisbad.org>.
1043         [BZ #10207]
1044         * nss/getent.c: Add support for printing gshadow data.
1046         [BZ #10203]
1047         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
1048         not just the currently used one and those which follow.
1049         Patch by Joe Landers <jlanders@vmware.com>.
1051         [BZ #10196]
1052         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
1053         * libio/Makefile: Run tst-fgetwc with necessary envvar.
1054         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
1056         [BZ #10217]
1057         * stdlib/abort.c: Define variable __abort_msg.
1058         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
1059         * include/stdlib.h: Declare __abort_msg.
1060         * assert/assert-perr.c: Don't free buffer for message immediately.
1061         Store atomically in __abort_msg and free old buffer if necessary.
1062         * assert/assert.c: Likewise.
1063         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
1064         store pointer in __abort_msg, and possibly free old string.
1065         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
1067         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
1069         [BZ #10211]
1070         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
1071         handle leap seconds if they are available.
1072         Patch by Akinori Hattori <hattya@gentoo.org>.
1074         * timezone/tzselect.ksh: Update from tzcode2009i.
1075         * timezone/zdump.c: Likewise.
1076         * timezone/zic.c: Likewise.
1078         * timezone/africa: Update from tzdata2009i.
1079         * timezone/antarctica: Likewise.
1080         * timezone/asia: Likewise.
1081         * timezone/australasia: Likewise.
1082         * timezone/backward: Likewise.
1083         * timezone/etcetera: Likewise.
1084         * timezone/europe: Likewise.
1085         * timezone/factory: Likewise.
1086         * timezone/iso3166.tab: Likewise.
1087         * timezone/leapseconds: Likewise.
1088         * timezone/northamerica: Likewise.
1089         * timezone/pacificnew: Likewise.
1090         * timezone/solar87: Likewise.
1091         * timezone/solar88: Likewise.
1092         * timezone/solar89: Likewise.
1093         * timezone/southamerica: Likewise.
1094         * timezone/systemv: Likewise.
1095         * timezone/yearistype: Likewise.
1096         * timezone/zone.tab: Likewise.
1098 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
1100         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
1101         STT_GNU_IFUNC symbol or in 8 into type_class.
1103         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
1104         instead of Elf64_Addr.
1106 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
1108         * po/sv.po: Update from translation team.
1110         [BZ #10229]
1111         * misc/sys/select.h (__NFDBITS): Expression should have type int.
1112         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
1113         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
1114         the C version.
1116 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
1118         * Versions.def: Add GLIBC_2.11 for libpthread.
1120 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
1122         * resolv/res_send.c (send_dg): Remember we switched to
1123         single-request mode.
1125 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
1127         * dlfcn/dlfcn.h: Remove comma at end of enum.
1128         Patch by J.H.M. Dassen <rdassen@redhat.com>.
1130         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
1131         parsing mode string.
1133 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
1135         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
1137         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
1139         * sysdeps/x86_64/multiarch/strlen.S: New file.
1140         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
1141         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
1142         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
1143         content.
1145         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
1146         is defined.
1148 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
1150         * sysdeps/x86_64/strlen.S: Minor optimizations.
1152 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1154         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
1155         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
1156         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
1157         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
1158         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
1159         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
1160         ifuncmain3.c, ifuncmod3.c,.
1161         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
1162         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
1163         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
1164         ifuncmain4picstatic.
1165         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
1166         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
1167         ifuncmain3, ifuncmain4.
1168         (tests): Depend on $(objpfx)ifuncmain1pie.out and
1169         $(objpfx)ifuncmain1vispie.out.
1170         (modules-names): Add ifuncmod1 ifuncmod3.
1171         (generated): Add ifuncmain1pie ifuncmain1pie.out
1172         ifuncmain1vispie ifuncmain1vispie.out.
1173         Define rules to build and run the tests.
1174         * elf/ifuncdep1.c: New file.
1175         * elf/ifuncdep1pic.c: New file.
1176         * elf/ifuncdep2.c: New file.
1177         * elf/ifuncdep2pic.c: New file.
1178         * elf/ifuncmain1.c: New file.
1179         * elf/ifuncmain1pic.c: New file.
1180         * elf/ifuncmain1picstatic.c: New file.
1181         * elf/ifuncmain1pie.c: New file.
1182         * elf/ifuncmain1static.c: New file.
1183         * elf/ifuncmain1staticpic.c: New file.
1184         * elf/ifuncmain1vis.c: New file..
1185         * elf/ifuncmain1vispic.c: New file..
1186         * elf/ifuncmain1vispie.c: New file.
1187         * elf/ifuncmain2.c: New file.
1188         * elf/ifuncmain2pic.c: New file.
1189         * elf/ifuncmain2picstatic.c: New file.
1190         * elf/ifuncmain2static.c: New file.
1191         * elf/ifuncmain3.c: New file.
1192         * elf/ifuncmain4.c: New file.
1193         * elf/ifuncmain4picstatic.c: New file.
1194         * elf/ifuncmain4static.c: New file.
1195         * elf/ifuncmod1.c: New file.
1196         * elf/ifuncmod3.c: New file.
1198 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
1200         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
1202 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
1204         [BZ #10221]
1205         * posix/Makefile (routines): Add execvpe.
1206         * posix/Versions: Export execvpe for GLIBC_2.11.
1207         * posix/execvp.c: Now only a wrapper.  Move code to...
1208         * posix/execvpe.c: ...here.  New file.
1209         * posix/unistd.h: Declare execvpe.
1211 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
1213         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
1214         for STT_GNU_IFUNC handling for efficiency.
1215         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1217         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
1218         _exit.
1219         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
1221 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
1223         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
1224         for !SHARED.
1226 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
1228         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
1229         is not defined.
1230         (__rela_iplt_start): New declaration.
1231         (__rela_iplt_end): Likewise.
1232         (__rel_iplt_start): Likewise.
1233         (__rel_iplt_end): Likewise.
1234         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
1235         * elf/elf.h (R_386_IRELATIVE): New macro.
1236         (R_X86_64_IRELATIVE): New macro.
1237         (R_386_NUM): Updated.
1238         (R_X86_64_NUM): Likewise.
1239         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
1240         (libc_ifunc_hidden_def): New macro.
1241         * sysdeps/generic/dl-irel.h: New file.
1242         * sysdeps/i386/dl-irel.h: New file.
1243         * sysdeps/x86_64/dl-irel.h: New file.
1244         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
1245         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
1246         Handle R_386_IRELATIVE.
1247         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
1248         (elf_machine_lazy_rela): Likewise.
1249         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1250         R_X86_64_IRELATIVE.
1251         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
1253 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
1255         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
1256         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
1257         are no differences.  If an architecture has bits in CPUID index 1
1258         meaning different things the values for the COMMON_CPUID_INDEX_1
1259         index must not be set.
1260         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
1261         (HAS_POPCOUNT): ...this.  New macro.
1262         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
1263         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
1264         to set the value for Intel and AMD architectures.
1265         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
1266         INTEL_CPUID_INDEX_1.
1267         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
1268         change.
1270 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
1272         * configure.in: Move AC_CANONICAL_HOST before first use of $host
1273         and $build.
1275 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
1277         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
1278         (__expm1l): Set errno to ERANGE on overflow.
1279         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
1280         (__tanl): Set errno to EDOM for Â±Inf.
1281         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
1282         (__cosl): Set errno to EDOM for Â±Inf.
1283         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
1284         (__sinl): Set errno to EDOM for Â±Inf.
1286         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
1287         defined, use it.
1288         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
1289         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
1290         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
1292 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
1294         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
1295         code accessing it.
1296         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
1298 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
1300         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
1301         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
1302         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
1303         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
1305         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
1306         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
1307         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
1308         defined.
1309         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1310         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
1312 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
1314         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
1315         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
1316         is, either do nothing at all if __ASSUME_ACCEPT4, or
1317         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
1318         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
1319         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
1320         define.
1321         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
1322         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
1323         internal_accept4 in socket directory.
1325 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
1327         * sysdeps/ia64/configure.in: New file.
1329 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1331         [BZ #10162]
1332         * sysdeps/ia64/memchr.S: Use speculative load.
1334         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
1335         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
1336         use it.
1338         * sysdeps/i386/__longjmp.S: Add .text.
1339         * sysdeps/x86_64/__longjmp.S: Likewise.
1341 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
1343         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
1344         __ASSUME_ACCEPT4 for IA-64.
1346 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
1348         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
1350         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
1351         (SOCKOP_accept4): Define.
1353 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
1355         Sun approved the change of the license.
1356         * sunrpc/auth_des.c: Replace license text.
1357         * sunrpc/auth_none.c: Likewise.
1358         * sunrpc/auth_unix.c: Likewise.
1359         * sunrpc/authdes_prot.c: Likewise.
1360         * sunrpc/authuxprot.c: Likewise.
1361         * sunrpc/bindrsvprt.c: Likewise.
1362         * sunrpc/clnt_gen.c: Likewise.
1363         * sunrpc/clnt_perr.c: Likewise.
1364         * sunrpc/clnt_raw.c: Likewise.
1365         * sunrpc/clnt_simp.c: Likewise.
1366         * sunrpc/clnt_tcp.c: Likewise.
1367         * sunrpc/clnt_udp.c: Likewise.
1368         * sunrpc/clnt_unix.c: Likewise.
1369         * sunrpc/des_crypt.c: Likewise.
1370         * sunrpc/des_soft.c: Likewise.
1371         * sunrpc/get_myaddr.c: Likewise.
1372         * sunrpc/getrpcport.c: Likewise.
1373         * sunrpc/key_call.c: Likewise.
1374         * sunrpc/key_prot.c: Likewise.
1375         * sunrpc/openchild.c: Likewise.
1376         * sunrpc/pm_getmaps.c: Likewise.
1377         * sunrpc/pm_getport.c: Likewise.
1378         * sunrpc/pmap_clnt.c: Likewise.
1379         * sunrpc/pmap_prot.c: Likewise.
1380         * sunrpc/pmap_prot2.c: Likewise.
1381         * sunrpc/pmap_rmt.c: Likewise.
1382         * sunrpc/rpc/auth.h: Likewise.
1383         * sunrpc/rpc/auth_unix.h: Likewise.
1384         * sunrpc/rpc/clnt.h: Likewise.
1385         * sunrpc/rpc/des_crypt.h: Likewise.
1386         * sunrpc/rpc/key_prot.h: Likewise.
1387         * sunrpc/rpc/netdb.h: Likewise.
1388         * sunrpc/rpc/pmap_clnt.h: Likewise.
1389         * sunrpc/rpc/pmap_prot.h: Likewise.
1390         * sunrpc/rpc/pmap_rmt.h: Likewise.
1391         * sunrpc/rpc/rpc.h: Likewise.
1392         * sunrpc/rpc/rpc_des.h: Likewise.
1393         * sunrpc/rpc/rpc_msg.h: Likewise.
1394         * sunrpc/rpc/svc.h: Likewise.
1395         * sunrpc/rpc/svc_auth.h: Likewise.
1396         * sunrpc/rpc/types.h: Likewise.
1397         * sunrpc/rpc/xdr.h: Likewise.
1398         * sunrpc/rpc_clntout.c: Likewise.
1399         * sunrpc/rpc_cmsg.c: Likewise.
1400         * sunrpc/rpc_common.c: Likewise.
1401         * sunrpc/rpc_cout.c: Likewise.
1402         * sunrpc/rpc_dtable.c: Likewise.
1403         * sunrpc/rpc_hout.c: Likewise.
1404         * sunrpc/rpc_main.c: Likewise.
1405         * sunrpc/rpc_parse.c: Likewise.
1406         * sunrpc/rpc_parse.h: Likewise.
1407         * sunrpc/rpc_prot.c: Likewise.
1408         * sunrpc/rpc_sample.c: Likewise.
1409         * sunrpc/rpc_scan.c: Likewise.
1410         * sunrpc/rpc_scan.h: Likewise.
1411         * sunrpc/rpc_svcout.c: Likewise.
1412         * sunrpc/rpc_tblout.c: Likewise.
1413         * sunrpc/rpc_util.c: Likewise.
1414         * sunrpc/rpc_util.h: Likewise.
1415         * sunrpc/rpcinfo.c: Likewise.
1416         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
1417         * sunrpc/rpcsvc/key_prot.x: Likewise.
1418         * sunrpc/rpcsvc/klm_prot.x: Likewise.
1419         * sunrpc/rpcsvc/mount.x: Likewise.
1420         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
1421         * sunrpc/rpcsvc/rex.x: Likewise.
1422         * sunrpc/rpcsvc/rstat.x: Likewise.
1423         * sunrpc/rpcsvc/rusers.x: Likewise.
1424         * sunrpc/rpcsvc/sm_inter.x: Likewise.
1425         * sunrpc/rpcsvc/spray.x: Likewise.
1426         * sunrpc/rpcsvc/yppasswd.x: Likewise.
1427         * sunrpc/rtime.c: Likewise.
1428         * sunrpc/svc.c: Likewise.
1429         * sunrpc/svc_auth.c: Likewise.
1430         * sunrpc/svc_authux.c: Likewise.
1431         * sunrpc/svc_raw.c: Likewise.
1432         * sunrpc/svc_run.c: Likewise.
1433         * sunrpc/svc_simple.c: Likewise.
1434         * sunrpc/svc_tcp.c: Likewise.
1435         * sunrpc/svc_udp.c: Likewise.
1436         * sunrpc/svc_unix.c: Likewise.
1437         * sunrpc/svcauth_des.c: Likewise.
1438         * sunrpc/xcrypt.c: Likewise.
1439         * sunrpc/xdr.c: Likewise.
1440         * sunrpc/xdr_array.c: Likewise.
1441         * sunrpc/xdr_float.c: Likewise.
1442         * sunrpc/xdr_mem.c: Likewise.
1443         * sunrpc/xdr_rec.c: Likewise.
1444         * sunrpc/xdr_ref.c: Likewise.
1445         * sunrpc/xdr_sizeof.c: Likewise.
1446         * sunrpc/xdr_stdio.c: Likewise.
1448         * po/da.po: Update from translation team.
1450 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1452         * sysdeps/sh/____longjmp_chk.S: New file.
1453         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
1454         * sysdeps/sh/sh4/__longjmp.S: Likewise.
1456 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
1457             Ulrich Drepper  <drepper@redhat.com>
1459         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
1460         (__nscd_cache_search): Assume each entry in the
1461         hash chain needs one hashentry and half of datahead.  Use
1462         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
1464 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
1466         * posix/sys/wait.h: Fix typos.  Pretty printing.
1467         * stdlib/stdlib.h: Likewise.  Correct comments.
1469         [BZ #10159]
1470         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
1472         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
1473         patch.
1475 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
1477         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
1478         Use it if we absolutely cannot reach any more correct list elements
1479         because that many do not fit into the currently mapped database.
1481 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
1483         * nscd/nscd_helper.c: Include stddef.h.
1484         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
1485         in a couple of places.  Return NULL if trail is not less than
1486         datasize, don't consider dataheads with length smaller than
1487         offsetof (struct datahead, data) + datalen.
1488         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
1489         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
1490         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
1491         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1492         * nscd/nscd_getai.c (__nscd_getai): Likewise.
1493         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
1494         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
1496         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
1497         Rename ...
1498         (fallocate64): ... to this.
1499         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
1500         Rename ...
1501         (fallocate64): ... to this.
1502         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
1503         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
1504         fallocate64@@GLIBC_2.10.
1505         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
1506         fallocate64@@GLIBC_2.11.
1507         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
1508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
1509         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
1510         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
1512         * nscd/selinux.c (nscd_avc_destroy): Removed.
1513         * nscd/selinux.h (nscd_avc_destroy): Likewise.
1514         * nscd/nscd.c (termination_handler): Don't call
1515         nscd_avc_destroy.
1517 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
1519         * include/atomic.h: Formatting.
1520         (catomic_compare_and_exchange_val_acq): Don't define if already
1521         defined by bits/atomic.h.
1523 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
1525         * math/libm-test.inc (expm1_test): Add test for range error.
1527         * Versions.def: Add GLIBC_2.11 for libc.
1528         * debug/Makefile (routines): Add longjmp_chk.
1529         Add rules to build and run tst-longjmp_chk.
1530         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
1531         * debug/longjmp_chk.c: New file.
1532         * debug/tst-longjmp_chk.c: New file.
1533         * include/bits/setjmp2.: New file.
1534         * include/stdio.h: Mark __fortify_fail as internal_function.
1535         * setjmp/Makefile (headers): Add bits/setjmp2.h.
1536         * setjmp/bits/setjmp2.h: New file.
1537         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
1538         of the aliases.
1539         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
1540         defined.
1541         * sysdeps/i386/____longjmp_chk.S: New file.
1542         * sysdeps/x86_64/____longjmp_chk.S: New file.
1543         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
1544         * sysdeps/x86_64/__longjmp.S: Likewise.
1546         * version.h: Bump for 2.11 development.
1548         * elf/check-execstack.c: New file.
1549         * elf/Makefile: Add rules to build and run check-execstack.
1551 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
1553         * version.h (VERSION): Bump to 2.10.1.
1555         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
1556         compatibility functions.
1557         * nss/getXXent_r.c: Likewise.
1558         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
1559         * gshadow/getsgnam_r.c: Likewise.
1560         * gshadow/Version: Remove duplicate entries.
1562         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
1563         for recent processor.
1564         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
1565         Likewise.
1567 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
1569         * version.h (VERSION): Bump for 2.10 release.
1570         * include/features.h (__GLIBC_MINOR__): Bump to 10.
1572         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
1573         same place we add ASFLAGS-config.
1575 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
1577         [BZ #10128]
1578         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
1579         or FORMERR and the other NOERROR, don't raise an error.
1581 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
1583         [BZ #10118]
1584         * Makeconfig (+asflags): New variable based upon ASFLAG or
1585         asflags-cpu.
1586         (ASFLAGS): Add override to set ASFLAGS to +asflags.
1587         * config.make.in (asflags-cpu): Add variable based upon
1588         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
1589         the assembler.
1590         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1591         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
1592         recognizes power6 instruction set due to passing -mcpu=power6 from
1593         --with-cpu=power6 when compiling .S files.
1594         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1595         Likewise.
1596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1597         Likewise.
1598         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1599         Likewise.
1601 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
1603         * string/stratcliff.c (do_test): Test for zero length
1604         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
1605         at the end of the page.
1607 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
1609         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
1611         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
1612         count is zero.
1614         * po/da.po: Update from translation team.
1616 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
1618         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
1619         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
1621 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
1623         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
1624         and READ_IMPLIES_EXEC.
1626 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
1628         * po/da.po: Update from translation team.
1630 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
1632         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
1633         comment change.
1635 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
1637         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
1638         to MAP_ANON in PROT_NONE mmap64 call.
1639         (open_archive): Likewise.
1640         (file_data_available_p): Use mmap64 instead of mremap.
1641         (enlarge_archive): Likewise.  Update head if ah->addr changed.
1642         Attempt to reserve address space after mmap64 region.
1644 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
1646         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
1647         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
1648         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1650         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
1651         atanh should set ERANGE.
1653         [BZ #10087]
1654         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
1655         result of lookup to make call to implement STT_GNU_IFUNC.
1656         (_dl_profile_fixup): Likewise.
1657         Patch by H.J. Lu <hjl.tools@gmail.com>.
1659         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
1660         warning.
1662         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
1663         from definition.
1665         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
1666         label if it is not used.
1668         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
1669         of gmon_hist_hdr and gmon_hdr structures and use them.
1670         * elf/sprof.c: Likewise.
1672         * elf/dl-load.c (open_verify): Add temporary variable to avoid
1673         warning.
1675         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
1677         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
1678         to avoid cast.
1680         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
1681         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
1682         to avoid warnings.
1683         (iruserok_af): Use ss_family instead of casts.
1685         * gmon/gmon.c (write_hist): Define real-type variant of
1686         gmon_hist_hdr structure and use it.
1687         (write_gmon): Likewise for gmon_hdr.
1689         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
1690         function if we are not going to define it.
1691         * sysdeps/unix/sysv/linux/writev.c: Likewise.
1693         * inet/inet6_option.c (option_alloc): Add temporary variable to
1694         avoid warning.
1696         * libio/strfile.h (struct _IO_streambuf): Use correct type and
1697         name of VTable element.
1698         * libio/iovsprintf.c: Avoid casts to avoid warnings.
1699         * libio/iovsscanf.c: Likewise.
1700         * libio/vasprintf.c: Likewise.
1701         * libio/vsnprintf.c: Likewise.
1702         * stdio-common/isoc99_vsscanf.c: Likewise.
1703         * stdlib/strfmon_l.c: Likewise.
1704         * debug/vasprintf_chk.c: Likewise.
1705         * debug/vsnprintf_chk.c: Likewise.
1706         * debug/vsprintf_chk.c: Likewise.
1708         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
1709         function pointers.
1711 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
1713         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
1715 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
1717         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
1719         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
1720         * sysdeps/i386/fpu/s_tanf.S: Likewise.
1721         * sysdeps/i386/fpu/s_tanl.S: Likewise.
1722         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1723         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
1724         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
1725         * math/libm-test.inc: Add tests for errno after tan calls with
1726         Â±Inf.
1728         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
1729         errno value vor pow(+-0,neg).
1730         * math/libm-test.inc (pow_test): Add tests for errno value for
1731         pole errors.
1733         * math/w_fmod.c: Also handle x=±Inf as error.
1734         * math/w_fmodf.c: Likewise.
1735         * math/w_fmodl.c: Likewise.
1736         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
1737         x=±Inf or y=0.
1739         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
1740         * sysdeps/i386/fpu/s_cosf.S: Likewise.
1741         * sysdeps/i386/fpu/s_cosl.S: Likewise.
1742         * sysdeps/i386/fpu/s_sin.S: Likewise.
1743         * sysdeps/i386/fpu/s_sinf.S: Likewise.
1744         * sysdeps/i386/fpu/s_sinl.S: Likewise.
1745         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1746         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
1747         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
1748         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
1749         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
1750         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
1751         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
1752         * math/libm-test.inc: Add tests for errno after sin/cos calls with
1753         Â±Inf.
1755         * stdlib/strtod_l.c (round_and_return): We have to set errno to
1756         ERANGE for underflows.
1757         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
1759         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
1760         the 2001 revision.
1762         * libio/tst-widetext.input: Remove surrogates.
1764         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
1766         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
1767         for lgamma should set errno to ERANGE, not EDOM.
1768         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
1770 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
1772         [BZ #10093]
1773         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
1774         UTF-16 surrogates.
1776         * locale/programs/locarchive.c (enlarge_archive): Conserve address
1777         space when temporarily mapping the whole content of the old file.
1779         [BZ #10100]
1780         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
1781         not zero.
1783 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
1785         * iconvdata/sjis.c (BODY): Don't advance inptr before
1786         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
1787         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
1788         two byte chars.
1790 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
1792         * locale/locarchive.h (struct locarhandle): Rename len field to
1793         mmaped and add new reserved field.
1794         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
1795         (create_archive): Reserve address space and then map file into it.
1796         (open_archive): Likewise.
1797         (file_data_available_p): New function.
1798         (compare_from_file): New function.
1799         (close_archive): Adjust to member name changes.
1800         (add_locale): Before comparing locale data, check it is mapped.
1801         Otherwise fall back to reading from the file.
1803 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
1805         * stdio-common/psiginfo.c: Include <errno.h>.
1807 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
1809         [BZ #9920]
1810         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
1811         to get consistency between 32 and 64 bit architectures.
1813         [BZ #10052]
1814         * sysdeps/unix/make-syscalls.sh: Add rule to create target
1815         directory for dummy syscall rules.
1816         Patch by Chris Steinbroner <hesh@pobox.com>.
1818 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
1820         [BZ #10092]
1821         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
1822         MNT_EXPIRE.
1824 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
1826         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
1827         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1829 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
1831         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
1832         data from vector to temporary buffer and call PWRITEV after it
1833         instead of vice versa.
1834         * sysdeps/posix/preadv.c: Fix up comment.
1835         * misc/preadv.c: Likewise.
1836         * misc/preadv64.c: Likewise.
1837         * misc/pwritev.c: Likewise.
1838         * misc/pwritev64.c: Likewise.
1839         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
1841 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
1843         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
1845         * shadow/Makefile (tests): Add tst-shadow.
1846         * shadow/tst-shadow.c: New file.
1848         [BZ #9955]
1849         * gshadow/Makefile: New file.
1850         * gshadow/Versions: New file.
1851         * gshadow/fgetsgent.c: New file.
1852         * gshadow/fgetsgent_r.c: New file.
1853         * gshadow/getsgent.c: New file.
1854         * gshadow/getsgent_r.c: New file.
1855         * gshadow/getsgnam.c: New file.
1856         * gshadow/getsgnam_r.c: New file.
1857         * gshadow/gshadow.h: New file.
1858         * gshadow/putsgent.c: New file.
1859         * gshadow/sgetsgent.c: New file.
1860         * gshadow/sgetsgent_r.c: New file.
1861         * gshadow/tst-gshadow.c: New file.
1862         * include/gshadow.h: New file.
1863         * Makeconfig (all-subdirs): Add gshadow.
1864         * Makefile (installed-headers): Add gshadow/gshadow.h.
1865         * nss/Makefile (databases): Add sgrp.
1866         * nss/Versions: Add gshadow functions as private exports.
1867         * nss/nsswitch.conf: Add gshadow entry.
1868         * nss/sgrp-lookup.c: New file.
1869         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
1870         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
1871         * nss/nss_files/files-sgrp.c: New file.
1872         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
1873         * sysdeps/unix/sysv/linux/paths.h: Likewise.
1875 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
1877         * stdio-common/printf.h: Add missing const to register_printf_modifier.
1878         * stdio-common/reg-modifier.c: Likewise.
1880 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
1882         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
1883         is no FPU.
1885 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
1887         [BZ #10086]
1888         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
1889         headers up to 2.6.30.
1891         * po/ca.po: Update from translation team.
1893 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
1895         [BZ #10069]
1896         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
1897         an object that uses static TLS if the TLS modid is higher than the
1898         reserve we always allocate.  At least for multi-threaded code.
1900 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
1902         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
1903         Numerically stable check for valid width.
1905         * locale/programs/locarchive.c (open_archive): Map the entire file
1906         and not just the administrative data.
1907         (add_locale): When we find a hash sum match compare the content
1908         to be sure.
1910         * malloc/malloc.c (malloc_info): Output address space information.
1912 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
1914         * malloc/malloc.c (malloc_info): Also output system memory information.
1916         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
1917         architectures have preadv/pwritev in 2.6.30.
1919         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
1920         * sysdeps/posix/readv.c: Likewise.
1921         Reported by Markus Armbruster <armbru@redhat.com>.
1923         * malloc/hooks.c (top_check): Force hook value into register.
1925 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1927         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
1928         calls to _dl_relocate_object.
1930 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
1932         [BZ #9957]
1933         * malloc/malloc.c (force_reg): Define.
1934         (sYSMALLOc): Load hook variable into variable
1935         before test and force into register.
1936         (sYSTRIm): Likewise.
1937         (public_mALLOc): Force hook value into register.
1938         (public_fREe): Likewise.
1939         (public_rEALLOc): Likewise.
1940         (public_mEMALIGn): Likewise.
1941         (public_vALLOc): Likewise.
1942         (public_pVALLOc): Likewise.
1943         (public_cALLOc): Likewise.
1944         (__posix_memalign): Likewise.
1945         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
1946         before test and force into register.
1947         * malloc/hooks.c (top_check): Likewise.
1948         (public_sET_STATe): Pretty printing.
1950         * resolv/res_send.c (send_dg): Don't just ignore the result we got
1951         in case we only receive one reply in single-request mode.
1953 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
1955         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
1956         are dlopened in statically linked program even for __LM_ID_CALLER.
1958 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
1960         * resolv/res_send.c (send_dg): Don't switch into single-request
1961         mode if we already are in it.
1963 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
1965         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
1966         are always at least 4 bytes in the returned line.
1968 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
1970         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
1971         __libc_use_alloca (8192), if the stack is too small use 512 bytes
1972         instead of 8K.  Stop searching in /proc/stat after hitting first
1973         line not starting with cpu.
1974         (next_line): Truncate too long
1975         lines at buffer size * 3/4 instead of pretending there were line
1976         breaks inside of large lines.
1978 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
1980         * sysdeps/x86_64/mp_clz_tab.c: New file.
1982 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
1983             Ulrich Drepper  <drepper@redhat.com>
1985         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
1986         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
1987         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
1989 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
1991         * sysdeps/sh/libc-tls.c: New file.
1993         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
1995 2009-04-14  Roland McGrath  <roland@redhat.com>
1997         * elf/elf.h: Add various missing ARM constants, to match binutils.
1999 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2001         Optimizations from GMP.
2002         * sysdeps/x86_64/add_n.S: New file.
2003         * sysdeps/x86_64/addmul_1.S: New file.
2004         * sysdeps/x86_64/lshift.S: New file.
2005         * sysdeps/x86_64/mul_1.S: New file.
2006         * sysdeps/x86_64/rshift.S: New file.
2007         * sysdeps/x86_64/sub_n.S: New file.
2008         * sysdeps/x86_64/submul_1.S: New file.
2010 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
2012         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
2013         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
2014         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2015         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2017 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2019         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
2020         preadv/pwritev.
2022 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
2024         * sysdeps/x86-64/strrchr.S: New file.
2026 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
2028         * stdio-common/printf.h (struct printf_info): Add user element.
2029         New types printf_arginfo_size_function, printf_va_arg_function.
2030         Declare register_printf_specifier, register_printf_modifier,
2031         register_printf_type.
2032         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
2033         (union printf_arg): Add pa_user element.
2034         Adjust __printf_arginfo_table type.
2035         Add __printf_va_arg_table, __printf_modifier_table,
2036         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
2037         declarations.
2038         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
2039         If registered arginfo call failed try normal specifier.
2040         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
2041         function.
2042         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
2043         * stdio-common/Versions: Export register_printf_modifier,
2044         register_printf_type, and register_printf_specifier for GLIBC_2.10.
2045         * stdio-common/reg-modifier.c: New file.
2046         * stdio-common/reg-type.c: New file.
2047         * stdio-common/reg-printf.c (__register_printf_specifier): New
2048         function.  Mostly the old __register_printf_function function but
2049         uses locking and type of third parameter changed.
2050         (__register_printf_function): Implement using
2051         __register_printf_specifier.
2052         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
2053         calls to arginfo functions.  Allocate enough memory for user-defined
2054         types.  Call new va_arg functions to get user-defined types.
2055         Try installed handlers even for existing format specifiers first.
2057 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
2059         * sysdeps/x86_64/rawmemchr.S: New file.
2061         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
2062         Simplified code and possible copy problem fixed.
2064         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
2065         function if it is not defined.  Add some necessary casts.
2066         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2068         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
2069         have preadv/pwritev in 2.6.30.
2071 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
2073         * malloc/malloc.c (malloc_info): New function.
2074         * malloc/malloc.h: Declare it.
2075         * malloc/Versions: Export malloc_info for GLIBC_2.10.
2077         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
2078         to avoid PLT slot.
2080         * malloc/malloc.c (_int_realloc): Add parameter with old block
2081         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
2082         Adjust all callers.
2083         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
2085 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
2087         * sysdeps/x86_64/strchrnul.S: New file.
2089         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
2090         depending libcrypt on -lfreebl3.
2092         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
2093         preadv/pwritev in 2.6.30.
2095         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
2096         instead of __strcasecmp.
2098         * string/stratcliff.c (do_test): Add memchr tests..
2099         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
2100         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
2101         first read quad word.
2103 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
2105         * string/strverscmp.c (__strverscmp): Fix last cleanups.
2106         * string/tst-svc.input: Add new test case.
2107         * string/tst-svc.expect: Adjust.
2108         * string/Makefile: Don't ignore tst-svc error.
2110         * sysdeps/x86_64/memchr.S: New file.
2112         * resolv/resolv.h (RES_SNGLKUP): Define.
2113         * resolv/res_init.c (res_setoptions): Recognize single-request option.
2114         * resolv/res_send.c (send_dg): If we sent two requests at once and
2115         only get one reply before timeout switch to mode where we send the
2116         second request only after the first answer has been received.
2118 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
2120         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
2121         * sysdeps/x86_64/strchr.S: Likewise.
2123 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
2125         * configure.in: We need to test for the compiler earlier.
2127         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
2128         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
2129         GLIBC_2.10.
2130         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
2131         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
2132         and pwritev.
2133         * misc/preadv.c: New file.
2134         * misc/preadv64.c: New file.
2135         * misc/pwritev.c: New file.
2136         * misc/pwritev64.c: New file.
2137         * sysdeps/posx/preadv.c: New file.
2138         * sysdeps/posx/preadv64.c: New file.
2139         * sysdeps/posx/pwritev.c: New file.
2140         * sysdeps/posx/pwritev64.c: New file.
2141         * sysdeps/unix/sysv/linux/preadv.c: New file.
2142         * sysdeps/unix/sysv/linux/preadv64.c: New file.
2143         * sysdeps/unix/sysv/linux/pwritev.c: New file.
2144         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
2145         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
2146         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
2148         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
2149         compatibility code.
2150         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
2152         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2153         __ASSUME_COMPLETE_READV_WRITEV.
2154         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
2155         with modern kernels.
2156         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2158         * sysdeps/posix/readv.c: Since read is a cancellation point we have
2159         to free a possible malloced buffer in case of cancellation.
2160         * sysdeps/posix/writev.c: Likewise for write.
2162 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
2164         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
2166         * configure.in: Recognize --enable-nss-crypt.
2167         * config.make.in: Add nss-crypt entry.
2168         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
2169         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
2170         and include path for NSS directory to compiler for md5-crypt,
2171         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
2172         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
2173         function implementation, use NSS.  Introduce wrappers around the
2174         hash function calls.  Little code size optimization.
2175         * crypt/sha256-crypt.c: Likewise.
2176         * crypt/sha512-crypt.c: Likewise.
2177         * scripts/check-local-headers.sh: Ignore nss3 directory.
2179         * configure.in: Rename pic_default to libc_cv_pic_default.
2180         * config.make.in: Likewise.
2182 2009-04-01  Roland McGrath  <roland@redhat.com>
2184         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
2185         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
2186         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
2187         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
2188         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
2189         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
2190         (R_SPARC_NUM): Update.
2191         From Dave Miller <davem@davemloft.net>.
2193 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
2195         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
2197 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
2199         * elf/dl-open.c: Keep track of used name spaces and only iterate over
2200         those which are used.
2201         * elf/dl-addr.c: Likewise.
2202         * elf/dl-caller.c: Likewise.
2203         * elf/dl-fini.c: Likewise.
2204         * elf/dl-iteratephdr.c: Likewise.
2205         * elf/dl-libc.c: Likewise.
2206         * elf/dl-load.c: Likewise.
2207         * elf/dl-support.c: Likewise.
2208         * elf/dl-sym.c: Likewise.
2209         * elf/rtld.c: Likewise.
2210         * sysdeps/generic/ldsodefs.h: Likewise.
2212         * elf/dl-load.c: Remove support for systems without MAP_ANON.
2213         * elf/dl-minimal.c: Likewise.
2214         * elf/dl-misc.c: Likewise.
2215         * elf/rtld.c: Likewise.
2216         * sysdeps/generic/ldsodefs.h: Likewise.
2218 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
2220         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
2221         Avoid reuse of complex expression.
2223         * po/fr.po: Update from translation team.
2225 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
2227         * include/dirent.h: Yet more changes to match sort function type
2228         change.
2229         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
2230         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
2231         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
2233 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
2235         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
2237 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
2239         * nscd/connections.c (restart): Try to preserve the process name
2240         by reading the /proc/self/exe symlink and using the return name.
2241         Patch by Jeff Bastian <jbastian@redhat.com>.
2243 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
2245         [BZ #9733]
2246         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
2247         if we are not loading a new audit library.
2248         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
2249         Only use profiling trampoline for auditing if we are not relocating
2250         an audit library.
2251         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
2252         * elf/rtld.c: Likewise.
2253         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
2255         * elf/rtld.c (dl_main): Extend help message for --audit option.
2257         [BZ #9759]
2258         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
2259         alphasort64, versionsort, and versionsort64 to POSIX 2008.
2260         * dirent/alphasort.c: Adjust implementation to type change.
2261         * dirent/alphasort64.c: Likewise.
2262         * dirent/scandir.c: Likewise.
2263         * dirent/versionsort.c: Likewise.
2264         * dirent/versionsort64.c: Likewise.
2265         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
2266         declaration.
2267         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
2268         declaration.
2270         [BZ #9880]
2271         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
2272         correctly.  Set segleft member in output as required.
2273         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2274         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
2276         [BZ #9881]
2277         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
2278         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2279         * inet/Makefile (tests): Add tst-inet6_rth.
2280         * inet/tst-inet6_rth.c: New file.
2282         [BZ #5807]
2283         * string/strlen.c (strlen): Fix omission in the expression to test
2284         for NUL bytes.
2286 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
2288         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
2290         * elf/dl-runtime.c (reloc_offset): Define.
2291         (reloc_index): Define.
2292         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
2293         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
2294         computing index from reloc_offset.
2295         (_dl_call_pltexit): Likewise.
2296         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
2297         the relocation index to _dl_fixup.
2298         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
2299         _dl_call_pltexit.
2300         * sysdeps/x86_64/dl-runtime.c: New file.
2302         [BZ #9893]
2303         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
2304         alignment of La_x86_64_regs.  Store xmm parameters.
2305         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
2307         [BZ #9913]
2308         * string/strverscmp.c (__strverscmp): Fix case of different digits
2309         in fractional part of string.
2310         Patch by Jingyu Liu <jyliu@fortinet.com>.
2311         * string/Makefile (tests): Add tst-svc2.
2312         * string/tst-svc2.c: New file.
2314         * string/strverscmp.c (__strverscmp): Optimize size of tables.
2316         * locale/iso-639.def: Add Min Nan.
2318 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2320         [BZ #9948]
2321         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
2323 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
2325         * elf/dl-sysdep.c (auxvars): Compress data structure.
2327         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
2328         STT_GNU_IFUNC handling.
2329         (elf_machine_rela): Likewise.
2331 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
2333         * config.h.in (USE_MULTIARCH): Define.
2334         * configure.in: Handle --enable-multi-arch.
2335         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
2336         (_dl_fixup_profile): Likewise.
2337         * elf/do-lookup.c (dl_lookup_x): Likewise.
2338         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
2339         * elf/elf.h (STT_GNU_IFUNC): Define.
2340         * include/libc-symbols.h (libc_ifunc): Define.
2341         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
2342         framework in init-arch.h to get CPUID values.
2343         * sysdeps/x86_64/multiarch/Makefile: New file.
2344         * sysdeps/x86_64/multiarch/init-arch.c: New file.
2345         * sysdeps/x86_64/multiarch/init-arch.h: New file.
2346         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
2348         * config.make.in (experimental-malloc): Define.
2349         * configure.in: Handle --enable-experimental-malloc.
2350         * malloc/Makefile: Handle experimental-malloc flag.
2351         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
2352         * malloc/arena.c: Likewise.
2353         * malloc/hooks.c: Likewise.
2354         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
2356 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
2358         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
2359         prediction.  A few size optimizations.
2361 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2363         * time/tzset.c: Optimize a bit for size.
2365 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
2367         * include/stdio.h (fmemopen): Add libc_hidden_proto.
2368         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
2370         * elf/sprof.c: Avoid warning about multi-line comment.
2372 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2374         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
2375         DST name.
2376         * time/tst-posixtz.c: Add tests for quoted timezone names.
2378 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
2380         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
2381         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
2382         200809L instead of 200112L.
2383         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
2384         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
2386         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
2387         instead of __quick_exit_funcs to __run_exit_handlers.
2388         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
2389         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
2390         (__cxa_at_quick_exit): Remove attribute_hidden.
2391         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
2392         to __run_exit_handlers.
2393         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
2394         attribute_hidden.
2396 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2398         * po/id.po: Update from translation team.
2400 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
2402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
2403         .machine push; .machine "power6" and .machine pop around mtfsf
2404         insns outside of _ARCH_PWR6 define.
2405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2406         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
2407         Likewise.
2408         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
2409         Likewise.
2410         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
2411         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
2412         relax_fenv_state): Likewise.
2414 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
2416         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
2417         cxa_at_quick_exit.
2418         (static-only-routines): Add at_quick_exit.
2419         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
2420         GLIBC_2.10.
2421         * stdlib/quick_exit.c: New file.
2422         * stdlib/at_quick_exit.c: New file.
2423         * stdlib/cxa_at_quick_exit.c: New file.
2424         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
2425         it appropriately.
2426         (__internal_atexit): New function.
2427         (__new_exitfn): Now takes parameter to point to the list to use.
2428         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
2429         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
2430         (exit): ...here.  Just call __run_exit_handlers appropriately.
2431         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
2432         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
2433         * stdlib/on_exit.c: Adjust call to __new_exitfn.
2434         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
2436         * po/id.po: Update from translation team.
2438 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
2440         * po/ru.po: Update from translation team.
2442 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
2444         * po/nl.po: Update from translation team.
2446 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
2448         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
2449         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2450         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2451         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2452         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2453         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2454         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2456         * po/pl.po: Update from translation team.
2458 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
2460         [BZ #7083]
2461         * sysdeps/unix/sysv/linux/fallocate.c: New file.
2462         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
2463         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
2464         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
2465         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
2466         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
2467         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
2468         for GLIBC_2.10.
2469         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2470         Add fallocate and fallocate64.
2472         * io/fcntl.h: Pretty printing.
2474 2009-03-02  Richard Guenther  <rguenther@suse.de>
2476         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
2477         attribute also for non-C99 inline semantics variant.
2479 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2481         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
2482         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
2483         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
2484         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
2485         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
2486         Likewise.
2487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
2488         Likewise.
2490 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
2492         * po/cs.po: Update from translation team.
2494 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
2496         * po/bg.po: Update from translation team.
2497         * po/sv.po: Likewise.
2498         * po/fi.po: Likewise.
2499         * po/vi.po: Likewise.
2501 2009-02-27  Roland McGrath  <roland@redhat.com>
2503         * Makeconfig (%.v.i): Depend on Makeconfig.
2504         Exclude % lines from initial #-comment removal.
2506 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
2508         * po/ko.po: Update from translation team.
2510 2009-02-26  Roland McGrath  <roland@redhat.com>
2512         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
2513         avoids unused warning.
2515 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
2516             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
2518         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
2519         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
2520         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
2521         and asm/user.h.  Include asm/ptrace.h.
2522         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
2523         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2524         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
2525         Undefine.
2526         (start_thread): Don't undefine.
2527         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
2528         Define.
2530 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
2532         * wctype/wctype.h: The *_l functions are in POSIX 2008.
2533         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
2534         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
2535         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
2536         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
2537         200112L to 200809L.
2538         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
2539         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2540         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
2541         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2542         _SC_THREAD_ROBUST_PRIO_PROTECT.
2543         * posix/unistd.h: fexecve is in POSIX 2008.
2544         * time/time.h: strftime_l is in POSIX 2008.
2545         * io/sys/stat.h: futimens is in POSIX 2008.
2546         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
2547         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
2548         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
2549         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
2550         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
2551         open_memstream, and vdprintf are in POSIX 2008.
2553 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
2555         * include/features.h: Define macros for XPG7/POSIX 2008.
2556         * ctype/ctype.h: The *_l functions are in POSIX 2008.
2557         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
2558         POSIX 2008.
2559         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
2560         * locale/xlocale.h: Define locale_t type.
2561         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
2562         in POSIX 2008.  Don't define locale_t here.
2563         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
2564         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
2565         UTIME_OMIT only with __USE_ATFILE.
2566         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
2567         * stdio-common/psiginfo.c: New file.
2568         * stdio-common/psiginfo-data.h: New file.
2569         * stdio-common/psiginfo-define.h: New file.
2570         * stdio-common/Makefile (routines): Add psiginfo.
2571         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
2572         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2573         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2574         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2575         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2576         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2577         * io/sys/stat.h: Move mknodat definition into same conditional as
2578         mknod.
2579         * time/sys/time.h: futimesat is not among the functions accepted
2580         into the POSIX standard.
2582         * include/features.h: If no feature selection given and we select
2583         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
2584         * posix/Versions: Export __posix_getopt.
2585         * posix/getopt.c (_getopt_initialize): Take additional parameter.
2586         Use it to alternatively initialize __posixly_correct.
2587         (_getopt_internal_r): Take addition parameter.  Pass on to
2588         _getopt_initialize.
2589         (_getopt_internal): Take addition parameter.  Pass on to
2590         _getopt_internal_r.
2591         (getopt): Pass additional zero to _getopt_internal.
2592         (__posix_getopt): New function.
2593         * posix/getopt.h: Add redirection for getopt.
2594         * posix/getopt1.c (getopt_long): Pass additional zero to
2595         _getopt_internal.
2596         (getopt_long_only): Likewise.
2597         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
2598         (_getopt_long_only_r): Likewise.
2599         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
2600         _getopt_internal_r.
2602 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
2604         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
2605         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2606         * sysdeps/posix/sysconf.c (__sysconf): Handle
2607         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
2608         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2610 2009-02-24  Roland McGrath  <roland@redhat.com>
2612         [BZ #9895]
2613         * README.template: Reworded not to use substituted version number.
2614         Renamed to ...
2615         * README: ... here (no longer generated).
2616         * Makefile (README): Target removed.
2618 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
2620         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
2621         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
2622         instead.
2624         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
2626         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
2628 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
2630         * po/bg.po: Update from translation team.
2632 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
2634         * stdlib/monetary.h: Uglify function parameter names.
2635         * sunrpc/rpc/pmap_clnt.h: Likewise.
2636         * sunrpc/rpc/svc.h: Likewise.
2637         * sunrpc/rpc/xdr.h: Likewise.
2638         * sunrpc/rpc/clnt.h: Likewise.
2639         * resolv/netdb.h: Likewise.
2640         * resolv/arpa/nameser.h: Likewise.
2641         * resolv/resolv.h: Likewise.
2642         * argp/argp.h: Likewise.
2643         * locale/langinfo.h: Likewise.
2644         * io/sys/stat.h: Likewise.
2645         * posix/spawn.h: Likewise.
2646         * nis/rpcsvc/nislib.h: Likewise.
2647         * malloc/obstack.h: Likewise.
2648         * sysdeps/ia64/bits/link.h: Likewise.
2649         * sysdeps/i386/bits/link.h: Likewise.
2650         * sysdeps/s390/bits/link.h: Likewise.
2651         * sysdeps/powerpc/bits/link.h: Likewise.
2652         * sysdeps/x86_64/bits/link.h: Likewise.
2653         * sysdeps/sparc/bits/link.h: Likewise.
2654         * sysdeps/sh/bits/link.h: Likewise.
2655         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
2656         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
2657         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
2658         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
2660 2008-12-01  Fredrik Unger  <fred@tree.se>
2662         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
2663         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
2664         _FP_UNPACK_RAW_2, fix up first argument.
2666 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
2668         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
2669         (GET_NPROCS_PARSER): Change parameters and use next_line.
2670         (__get_nprocs): Rewrite to not use stdio routines.
2671         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
2672         Change parameters and use next_line.
2674 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
2676         [BZ #5381]
2677         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
2678         Change mempool_alloc prototype.
2679         * nscd/mem.c (gc): Don't handle mem_in_flight.
2680         (mempool_alloc): Third parameter now only indicates whether this is the
2681         first call (to allocate data) or not.  If it is, get db rdlock.
2682         Release it on error.  Don't handle mem_in_flight.
2683         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
2684         Adjust third parameter of mempool_alloc calls.
2685         Nothing to do here in case mempool_alloc fails.
2686         Avoid local variable shadowing parameter.  No need to get db rdlock
2687         before calling cache_add.
2688         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
2689         no mem_in_flight array anymore.
2690         * nscd/connections.c: Remove definition and handling of mem_in_flight.
2691         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
2692         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
2693         in case mempool_alloc fails. No need to get db rdlock before calling
2694         cache_add.
2695         * nscd/hstcache.c (cache_addhst): Likewise.
2696         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2697         * nscd/servicescache.c (cache_addserv): Likewise.
2698         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
2700 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
2702         * po/lt.po: Update from translation team.
2704 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
2706         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
2707         defined, allow additional data to be added using the optional
2708         MORE_ELF_HEADER_DATA macro.
2709         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
2710         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
2712 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
2714         * include/atomic.h: Define catomic_and if not already defined.
2715         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
2716         * sysdeps/i386/i486/bits/atomic.h: Likewise.
2718 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
2720         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
2721         Change all callers.
2722         (_int_realloc): Likewise.  Third argument is now padded size
2723         All _int_* functions are now static.
2725         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
2726         * malloc/arena.c: Likewise.
2727         * include/malloc.h: Remove now unnecessary declarations of the _int_*
2728         functions.
2730         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
2731         easily.
2733         * malloc/malloc.c: Add branch prediction for use of the hooks.
2735         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
2737 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
2739         [BZ #7095]
2740         * bits/confname.h: Add SUSv7 macros for getconf environments.
2741         * bits/environments.h: Likewise.
2742         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
2743         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
2744         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
2745         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
2746         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
2747         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
2748         * posix/getconf.c: Likewise.
2749         * posix/sysconf.c: Likewise.
2750         * sysdeps/posix/sysconf.c: Likewise.
2751         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
2752         environments.
2754 2009-01-16  Petr Baudis  <pasky@suse.cz>
2756         [BZ #9753]
2757         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
2758         even if we currently have zero nscount.
2760 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
2762         [BZ #9781]
2763         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
2764         the input line is too long.
2766         * po/Makefile (libc.pot): Add f_print as function taking c-format
2767         parameter.
2769         * debug/xtrace.sh: Unify translatable messages.
2770         * elf/ldd.bash.in: Likewise.
2771         * elf/sprof.c: Likewise.
2772         * locale/programs/locale.c: Likewise.
2773         * malloc/memusage.sh: Likewise.
2774         * nss/getent.c: Likewise.
2776 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
2778         * debug/pcprofiledump.c (print_version,
2779         argp_program_version_hook): New function.
2780         * elf/ldconfig.c (more_help): New function.
2781         (argp): Use it.
2782         * elf/sln.c (usage): New function.
2783         (main): Support --help and --version.
2784         * malloc/memusagestat.c (print_version): New function.
2785         (argp_program_version_hook): New variable.
2786         * nscd/nscd.c (more_help): New function.
2787         (argp): Use it.
2788         * posix/getconf.c (main): Send --version output to stdout.
2789         Support --help.
2790         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
2791         arguments.  All callers changed.
2792         (print_version): New function.
2793         (parseargs): Support --help and --version.
2794         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
2795         changed.
2796         (print_version): New function.
2797         (main): Use getopt_long.  Support --help and --version.
2798         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
2799         --version.
2801 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
2803         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
2804         (update_data): Fix handling of wrapping back
2805         to the beginning of the buffer.
2807         [BZ #9823]
2808         * stdio-common/psignal.c (psignal): Fix test for empty string.
2810 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
2812         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
2813         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
2814         move _null_auth to .rodata.
2816         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
2817         value of 24.
2819         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
2821         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
2822         today than when the original code was written.  Use larger
2823         buffers.  This also makes it unnecessary to have stat information,
2824         if this causes extra efforts.
2825         (__opendir): In case O_DIRECTORY works, don't call fstat just for
2826         __alloc_dir.
2828 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
2830         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
2831         is set.
2832         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
2833         * sysdeps/sh/sh4/__longjmp.S: Likewise.
2834         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
2835         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
2836         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
2837         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
2839 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
2841         * po/ru.po: Update from translation team.
2843 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
2845         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
2846         Add _tid slot to maintain consistency with kernel.
2848 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
2850         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
2851         incomplete characters at end of input buffer.
2852         * libio/Makefile (tests): Add tst-fgetwc.
2853         * libio/tst-fgetwc.c: New file.
2854         * libio/tst-fgetwc.input: New file.
2856 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
2858         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
2860 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
2862         [BZ #9793]
2863         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
2864         *OUTBUFSTART unless the whole output fit into the buffer.
2865         * iconv/Makefile (tests): Add tst-iconv4.
2866         * iconv/tst-iconv4.c: New file.
2868 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
2870         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
2871         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2873 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
2875         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
2876         newer linker scripts.
2878 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
2880         [BZ #7040]
2881         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
2882         inotify_rm_watch should have type int.
2884 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
2886         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
2887         Make aligned_restore_vmx a local symbol.
2888         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
2889         Likewise.
2891 2009-01-30  Andreas Jaeger  <aj@suse.de>
2893         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
2894         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
2895         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
2896         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
2897         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
2898         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
2899         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
2901 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
2903         [BZ #9726]
2904         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
2905         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
2907 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
2909         [BZ #9726]
2910         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2911         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
2912         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2913         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
2915 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
2917         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
2918         memcpy instead of memcmp.
2919         (_dl_setup_pointer_guard): Likewise.
2921 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
2923         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
2924         manipulated brk, use malloc_printerr.
2925         * misc/sbrk.c (__sbrk): Better error handling for nonsense
2926         requests.
2928 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
2930         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
2931         rindex): For C++ add inlines so that they can be recognized as
2932         builtins.
2933         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
2935 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
2936             Jakub Jelinek  <jakub@redhat.com>
2938         * string/string.h: Define correct C++ prototypes for gcc 4.4.
2939         * wcsmbs/wchar.h: Likewise.
2941 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
2943         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
2944         (stackinfo_sub_sp): Define.
2946 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
2948         [BZ #9750]
2949         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
2950         * include/alloca.h (alloca_account): Define.
2951         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
2952         (stackinfo_sub_sp): Define.
2954         * nscd/connections.c (nscd_init): If database file access fails
2955         check whether this is due to permission problems and bail in that
2956         case.
2958         [BZ #9741]
2959         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
2960         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
2962 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2964         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
2965         Add "t" to clobber list.
2966         (INTERNAL_SYSCALL_NCS): Likewise.
2968 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
2970         * nss/getent.c (print_networks): Don't print comma between aliases.
2972 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
2974         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
2976         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
2977         the hash table.
2978         * misc/Makefile (tests): Add bug-hsearch1.
2979         * misc/bug-hsearch1.c: New file.
2981 2009-01-22  Roland McGrath  <roland@redhat.com>
2983         * Makeconfig (%.v.i): Strip trailing # comments,
2984         not only whole-line comments.
2986 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
2988         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
2989         one parameter.  If non-NULL use it to initialize return value.
2990         (_dl_setup_pointer_guard): New function.
2991         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
2992         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
2993         * elf/rtld.c (security_init): Pass _dl_random to
2994         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
2995         pointer_chk_guard.
2996         * elf/dl-sysdep.c (_dl_random): New variable.
2997         (_dl_sysdep_start): Handle AT_RANDOM.
2998         (_dl_show_auxv): Likewise.
2999         * elf/dl-support.c (_dl_random): New variable.
3000         (_dl_aux_init): Handle AT_RANDOM.
3001         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
3002         to _dl_setup_stack_chk_guard.
3004         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
3006 2009-01-10  Roland McGrath  <roland@redhat.com>
3008         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
3010 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
3012         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
3014         [BZ #9706]
3015         * nss/nss_files/files-parse.c (strtou32): New function.
3016         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
3017         across 32-bit and 64-bit platforms.
3018         (INT_FIELD_MAYBE_NULL): Likewise.
3020 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
3022         [BZ #9720]
3023         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
3024         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
3025         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
3026         Likewise.
3028 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
3030         [BZ #697]
3031         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3032         being NULL also if there are no backreferences.
3033         * posix/rxspencer/tests: Add testcases.
3035 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
3037         [BZ #9697]
3038         * posix/bug-regex17.c: Add testcases.
3039         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3040         handling.
3042 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3044         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
3045         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
3046         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
3047         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
3048         for elf subdir.
3049         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
3050         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
3051         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
3052         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
3053         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3054         * sysdeps/unix/sysv/linux/s390/Versions: New file.
3056 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
3058         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3059         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3060         re_string_skip_chars, re_string_reconstruct): Likewise.
3061         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3063 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
3065         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
3066         adjust the buffer alignment.
3068 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3070         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
3071         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
3072         net/route.h.
3074         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
3075         flavor to description only when flavor is not NULL.
3077         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
3078         mutex after SIGIO/SIGURG lookup loop.
3080 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3082         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
3084 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
3086         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
3087         handling.
3089 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
3091         * sysdeps/unix/sysv/linux/kernel-features.h
3092         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
3094         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
3095         if no output is written.
3097         * version.h: Bump to 2.10 development.
3099         * posix/getconf.c: Update copyright year.
3100         * nss/getent.c: Likewise.
3101         * iconv/iconvconfig.c: Likewise.
3102         * iconv/iconv_prog.c: Likewise.
3103         * elf/ldconfig.c: Likewise.
3104         * catgets/gencat.c: Likewise.
3105         * csu/version.c: Likewise.
3106         * elf/ldd.bash.in: Likewise.
3107         * elf/sprof.c (print_version): Likewise.
3108         * locale/programs/locale.c: Likewise.
3109         * locale/programs/localedef.c: Likewise.
3110         * nscd/nscd.c (print_version): Likewise.
3111         * debug/xtrace.sh: Likewise.
3112         * malloc/memusage.sh: Likewise.
3113         * malloc/mtrace.pl: Likewise.
3114         * debug/catchsegv.sh: Likewise.
3116 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
3118         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
3119         script.
3121 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
3123         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
3124         gethostbyname4_r function call succeeded, just leave the loop.
3126         [BZ #9694]
3127         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
3128         very end.
3129         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
3130         * wctype/Makefile (tests): Add bug-wctypeh.
3131         * wctype/bug-wctypeh.c: New file.
3133         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
3134         LOCALDOMAIN is defined.
3135         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3137         * sysdeps/x86_64/bits/select.h: New file.
3139         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
3141 2008-12-21  Bruno Haible  <bruno@clisp.org>
3143         [BZ #9677]
3144         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
3145         if no output is written.
3147 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
3149         * login/utmp_file.c (pututline_file): Replace call to dup2 with
3150         libc internal symbol __dup2 to avoid access through the PLT.
3152 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
3154         [BZ #6545]
3155         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
3156         available only for __USE_GNU.
3158         * inet/Makefile (tests): Add tst-getni2.
3159         * inet/tst-getni2.c: New file.
3161         [BZ #7080]
3162         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
3163         NULL when NI_NAMEREQD is set.
3164         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3165         * inet/Makefile (tests): Add tst-getni1.
3166         * inet/tst-getni1.c: New file.
3168 2008-12-03  Petr Baudis  <pasky@suse.cz>
3170         [BZ #7067]
3171         * nscd/connections.c (invalidate_cache): Use prune_run_lock
3172         instead of prune_lock.
3173         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
3174         * nscd/nscd.h (database_dyn): Add prune_run_cache.
3176 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
3178         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
3179         use.
3181         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
3182         handling.
3184         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
3185         after reading name server list.
3187         [BZ #7058]
3188         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
3189         handling for host name aliases.
3191 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
3193         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
3194         instead of doing things manually.
3196 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
3198         * posix/regex_internal.h (build_wcs_upper_buffer):
3199         Return type is reg_error_t.
3201 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
3203         * posix/globtest.sh: Use mktemp to create temporary file and
3204         directory.
3206         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
3207         sets correctly.
3208         (__CPU_CLR_S): Likewise.
3209         (__CPU_ISSET_S): Likewise.
3211 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
3212             Ulrich Drepper  <drepper@redhat.com>
3214         * scripts/firstversion.awk: Use custom comparison function to compare
3215         version numbers.
3216         * scripts/versions.awk: Use sort invocation which can handle
3217         multi-digit sub-version numbers.
3219 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
3221         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
3222         * locale/iso-639.def: Add Chhattisgarhi entry.
3224 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
3226         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
3227         ESRCH return value.
3228         (_nss_dns_gethostbyname4_r): Likewise.
3229         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
3230         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
3231         gethostbyname4_r, we don't have a separate IPv6 status, so copy
3232         the no_data variable.
3234         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
3235         information at the correct index.
3237         * socket/sys/socket.h: Declare accept4.
3238         * socket/accept4.c: New file.
3239         * sysdeps/unix/sysv/linux/accept4.c: New file.
3240         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
3241         * socket/Makefile (routines): Add accept4.
3242         * socket/Versions: Export accept4 with version GLIBC_2.10.
3243         * socket/paccept.c: Removed.
3244         * sysdeps/unix/sysv/linux/paccept.c: Removed.
3245         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
3246         * Versions.def: Define GLIBC_2.10 for libc.
3247         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
3249         * nscd/connections.c: Use accept4.
3251         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
3253 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
3255         * resolv/res_send.c (send_dg): Create sockets with non-blocking
3256         flag already set.
3258         * stdlib/setenv.c (unsetenv): Don't search environment if it does
3259         not exist.
3260         * stdlib/Makefile (tests): Add tst-unsetenv1.
3261         * stdlib/tst-unsetenv1.c: New file.
3263 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
3265         * login/utmp_file.c (file_writable): New variable.
3266         (setutent_file): Don't try to open file for writing.
3267         (pututline_file): Before writing, make descriptor writable if
3268         necessary.
3270 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
3272         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
3273         to IPv4 or IPv6 if an interface has been found.
3275 2008-11-26  Roland McGrath  <roland@redhat.com>
3277         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
3278         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
3280         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
3281         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
3282         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
3284         * elf/elf.h (NT_386_IOPERM): New macro.
3285         (NT_PPC_VSX): New macro.
3287 2008-11-25  Roland McGrath  <roland@redhat.com>
3289         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
3290         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
3291         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
3292         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
3293         Subdirectories moved to ports repository.
3294         * configure.in (base_machine): Remove alpha case.
3296 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
3298         * sysdeps/mach/strerror_l.c: New file.
3300 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
3302         [BZ #6411]
3303         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
3304         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
3305         magic numbers.
3306         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
3307         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
3308         (relax_fenv_state): Same as above.
3309         (FPSCR_29): Reserve bit in ISA 2.05.
3310         (FPSCR_NI): Provide define for compat.
3311         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
3312         magic numbers.
3313         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
3314         magic numbers.
3315         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
3316         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
3317         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
3318         access to hwcap to account for hwcap size increase to uint64_t.
3319         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
3320         Likewise.
3321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3322         (*setcontext): Likewise.
3323         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3324         New file.
3325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3326         New file.
3327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3328         (*setcontext): dynamically select mtfsf insn based on
3329         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
3330         increase to uint64_t.
3331         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3332         (*swapcontext): dynamically select mtfsf insn based on
3333         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
3334         increase to uint64_t.
3335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3336         New file.
3337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3338         New file.
3339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3340         (*setcontext): dynamically select mtfsf insn based on
3341         PPC_FEATURE_HAS_DFP.
3342         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3343         (*swapcontext): dynamically select mtfsf insn based on
3344         PPC_FEATURE_HAS_DFP.
3346 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
3348         * version.h: Bump for 2.9 release.
3349         * include/features.h (__GLIBC_MINOR__): Bump to 9.
3351         [BZ #7029]
3352         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
3353         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
3354         all the rounding.
3356 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
3358         [BZ #7009]
3359         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
3360         unknown request types for now.
3362 2008-11-11  Roland McGrath  <roland@redhat.com>
3364         * sysdeps/x86_64/configure: New file.
3366         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
3367         * configure: Regenerated.
3369 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3371         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
3372         correct instruction to remove the stack frame.
3374 2008-11-03  Michael Matz  <matz@suse.de>
3376         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
3377         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
3379 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
3381         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
3382         Remove.
3384         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
3385         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
3386         of the thread variable instead of void *.
3387         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
3388         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
3389         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3390         __libc_tsd_define arguments.
3391         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
3392         __libc_tsd_address arguments.  Remove union hack.
3393         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
3394         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
3395         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
3396         Adjust __libc_tsd_{set,get} arguments.
3397         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3398         __libc_tsd_define arguments.
3399         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
3400         arguments.
3401         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3402         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
3403         (LOCALE): Adjust __libc_tsd_define arguments.
3404         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
3405         arguments.
3406         (LOCALE): Adjust __libc_tsd_define arguments.
3407         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
3408         arguments.
3409         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
3410         arguments.
3412 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
3414         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
3415         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3417 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
3419         [BZ #6966]
3420         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
3422 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
3423             Ulrich Drepper  <drepper@redhat.com>
3425         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
3426         definition for GCC 3.1 and later.
3428 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
3430         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
3431         refetch dtv, as it might have changed.
3432         * elf/Makefile: Add rules to build and run tst-tls18.
3433         * elf/tst-tls18.c: New test.
3434         * elf/tst-tlsmod18a.c: New file.
3436 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
3438         [BZ #6875]
3439         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
3441 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
3443         [BZ #6867]
3444         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
3446         [BZ #6919]
3447         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
3448         Fix length of copy operation.
3450 2008-10-02  Pierre Habouzit <madcoder@debian.org>
3452         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
3453         and fix its calling convention.
3455 2008-10-07  Andreas Schwab  <schwab@suse.de>
3457         [BZ #6942]
3458         * resolv/res_send.c (send_vc): Fix last change.
3459         (send_dg): Align here as well.
3461 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
3463         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
3464         return value in case rlimit is RLIM_INFINITY.
3466         [BZ #6947]
3467         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
3468         for UL_SETFSIZE.
3469         * resource/Makefile (tests): Add bug-ulimit1.
3470         * resource/bug-ulimit1.c: New file.
3472         [BZ #6974]
3473         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
3474         without dot.  Properly terminate the string with a null byte.
3475         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
3477         [BZ #6980]
3478         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
3479         negative sizees.
3480         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
3481         negative __size.
3483         [BZ #6995]
3484         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
3486 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
3488         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
3489         abort if there is no initgroups_dyn function.
3491         * resolv/res_send.c (send_dg): On timeout, only return nonzero
3492         result if any of the queries really provided an answer.
3494 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
3496         * po/lt.po: Update from translation team.
3498 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
3500         * po/id.po: Update from translation team.
3502 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
3504         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
3505         Fix tests for existence of second reply.
3507 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
3509         * po/id.po: New file.
3510         Contributed by the Indonesian translation team.
3512 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
3514         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
3515         initialization.
3517 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
3519         * elf/Makefile: Add rules to build and run tst-tls17.
3520         * elf/tst-tls17.c: New test.
3521         * elf/tst-tlsmod17a.c: New file.
3522         * elf/tst-tlsmod17b.c: Likewise.
3524 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
3526         * stdlib/divmod_1.c: Use correct type for dummy variable.
3527         * stdlib/mod_1.c: Likewise.
3529 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
3531         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
3533 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
3535         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
3536         __nonnull order for C++.
3537         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
3538         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
3540 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
3542         * stdlib/longlong.h: Update from GCC.
3544 2008-10-09  Jakub Jelinek <jakub@redhat.com>
3545             David S. Miller  <davem@davemloft.net>
3547         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
3548         make sure any registers used with 64-bit 'branch-on-register'
3549         instructions have their top 32-bits clear.
3550         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
3551         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
3553 2008-09-18  Andreas Schwab  <schwab@suse.de>
3555         [BZ #6942]
3556         * resolv/res_send.c (send_vc): Fix use of unaligned address.
3557         Properly handle partial reads.
3559 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
3561         * elf/elf.h (STO_MIPS_PLT): New.
3562         (R_MIPS_COPY): New.
3563         (R_MIPS_JUMP_SLOT): New.
3564         (R_MIPS_NUM): Redefine to 128.
3565         (DT_MIPS_PLTGOT): New.
3566         (DT_MIPS_RWPLT): New.
3567         (DT_MIPS_NUM): Redefine to 0x35.
3569 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
3571         * timezone/africa: Update from tzdata2008f.
3572         * timezone/asia: Likewise.
3573         * timezone/australasia: Likewise.
3574         * timezone/europe: Likewise.
3575         * timezone/leapseconds: Likewise.
3576         * timezone/northamerica: Likewise.
3577         * timezone/southamerica: Likewise.
3578         * timezone/zone.tab: Likewise.
3580 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
3582         * nscd/connections.c: Disable use of paccept for now.
3584 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
3586         * socket/Versions: Remove paccept export for GLIBC_2.9.
3587         * socket/Makefile (routines): Remove paccept.
3588         * socket/sys/socket.h: Remove paccept declaration.
3590         * po/sv.po: Update from translation team.
3592 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
3594         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
3595         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
3597 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
3599         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
3600         Patch by Olivier Fourdan <ofourdan@redhat.com>.
3602 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
3604         * sunrpc/rpc/svc.h: Declare svcfd_create.
3605         Patch by Michael Solberg <msolberg@redhat.com>.
3607 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
3608             Ulrich Drepper  <drepper@redhat.com>
3610         * malloc/malloc.c (public_vALLOc): Try other arenas in case
3611         _int_valloc fails.
3612         (public_pVALLOc): Likewise.
3614 2008-09-02  Andreas Jaeger  <aj@suse.de>
3616         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
3617         commit.
3619 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
3621         [BZ #6860]
3622         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
3624 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
3626         * Makefile (check-data): Check data directory in add-ons.
3627         * elf/Makefile (check-data): Likewise.
3629 2008-08-18  Roland McGrath  <roland@redhat.com>
3631         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
3632         * configure: Regenerated.
3633         * config.make.in (cflags-cpu): New substituted variable.
3634         (with-cpu): Variable removed.
3635         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
3637 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
3639         [BZ #6845]
3640         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
3641         __signbitl definition and __LONG_DOUBLE_128__ guard from:
3642         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
3643         redundant.  Functions which call floating point assembler operations
3644         should go into a sysdeps powerpc/fpu directory.
3646 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
3648         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
3649         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
3651 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
3653         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
3655         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
3656         change related to AT_EXECFN.  We cannot use that string.
3657         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
3658         _dl_execfn member.
3659         * elf/dl-support.c: Remove _dl_execfn variable.
3660         (_dl_aux_init): Remove handling of AT_EXECFN.
3661         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
3662         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
3664 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
3666         [BZ #6544]
3667         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
3668         byte gets added to writes and seeks from the end use the length of
3669         the buffer and not the currently terminating NUL byte.
3671         [BZ #6634]
3672         * login/utmp_file.c (getutent_r_file): Take additional parameter.
3673         Set to true if locking failed.
3674         (getutid_r_file): Adjust caller.
3675         (pututline_file): Likewise.  Return NULL in this case.
3676         Patch mostly by halesh.s@gmail.com.
3678 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
3680         [BZ #6589]
3681         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
3682         Define.
3683         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
3685 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
3687         [BZ #6839]
3688         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
3689         macro since it is now available in elf/dynamic-link.h.
3691 2008-08-12  Roland McGrath  <roland@frob.com>
3693         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
3694         in case used outside of libc.
3695         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
3697 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
3699         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
3700         directly instead of going through dn_comp.
3702 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
3704         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3705         Fix asm constraints.
3707 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
3709         [BZ #6790]
3710         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
3711         (IPV6_PMTUDISC_PROBE): Likewise.
3713 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
3715         [BZ #6791]
3716         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
3718 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
3719             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3721         [BZ #6817]
3722         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
3723         Added the members 'vsx' and 'arch_2_06'.
3724         (_dl_powerpc_platforms): Add the member 'power7'.
3725         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
3726         to reflect the changes required by VSX and ISA 2.06.
3727         Modify _DL_PLATFORMS_COUNT to reflect the addition of
3728         'power7'.
3729         Defined PPC_PLATFORM_POWER7.
3730         (_dl_string_platform): Add support for POWER7.
3731         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
3732         capability and ISA 2.06.
3734 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
3736         [BZ #6824]
3737         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
3738         macro to detect use of 128 bit long double.
3739         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
3741 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
3743         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
3745         [BZ #5794]
3746         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
3747         parameters.
3748         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3749         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3751 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
3753         * nscd/connections.c (main_loop_poll): Pass a buffer which is
3754         guaranteed to be large enough to read inotify event.  Ignore
3755         EAGAIN error.  Better error message.  Add branch predicition.
3756         (main_loop_epoll): Likewise.
3758 2008-08-02  Roland McGrath  <roland@frob.com>
3760         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3761         Add memory clobbers.
3763 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
3765         * manual/arith.texi: Avoid @strong{Note:}.
3766         * manual/creature.texi: Likewise.
3767         * manual/filesys.texi: Likewise.
3768         * manual/math.texi: Likewise.
3769         * manual/memory.texi: Likewise.
3770         * manual/resource.texi: Likewise.
3771         * manual/syslog.texi: Likewise.
3772         * manual/time.texi: Likewise.
3774         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
3775         to prevent warning.
3777 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
3779         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
3780         new epoll_create1 interface.
3781         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3782         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
3783         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
3785         * include/arpa/nameser.h (NS_GET16): Use const pointer.
3786         (NS_GET32): Likewise.
3788         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
3789         syscalls, too.
3791         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
3792         use the AT_EXECFN value if it is no absolute path.
3793         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
3794         __ASSUME_AT_EXECFN.
3796         * Versions.def: Add GLIBC_2.9 to libresolv.
3797         * include/resolv.h: Remove hidden proto declarations for __ns_*
3798         functions.  Add them for __dn_count_labels and __p_secstodate.
3799         * include/arpa/nameser.h: Add a number of hidden proto declarations.
3800         Define ns_msg_getflags macro here.
3801         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
3802         and __p_secstodate.
3803         * resolv/Versions: Export functions from <arpa/nameser.h> from
3804         libresolv in version GLIBC_2.9.
3805         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
3806         hidden definitions.
3807         * resolv/ns_netint.c: Likewise.
3808         * resolv/ns_parse.c: Likewise.
3809         * resolv/ns_print.c: Likewise.
3810         * resolv/ns_samedomain.c: Likewise.
3811         * resolv/ns_ttl.c: Likewise.
3812         * resolv/arpa/nameser_compat.h: Likewise.
3813         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
3814         function calls.
3815         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
3816         instead of ns_get16.
3817         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
3818         __ns_get32 instead of ns_get16 and ns_get32 respectively.
3819         (gaih_getanswer_slice): Likewise.
3820         * resolv/Makefile (libresolv-routines): Add ns_date.
3821         * resolv/ns_date.c: New file.
3823         * elf/Makefile (check-localplt.out): Also check libresolv and
3824         libcrypt.
3826 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
3828         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3829         __ASSUME_O_CLOEXEC.
3831 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
3833         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
3834         buffer passed to NSS functions.
3836         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
3838         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
3839         Define.
3841         * misc/syslog.c (openlog_internal): Fix compile problem.
3843 2008-07-28  Roland McGrath  <roland@redhat.com>
3845         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
3847 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
3849         * io/ftw.c (add_object): Remove inline to avoid warning.
3851         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
3853         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
3854         Use it instead of locally defined resplen2 variable.
3855         (res_nsend): Adjust for __libc_res_nsend interface change.
3856         (send_vc): Initialize *resplen2 if necessary.  Read length of
3857         package into an appropriately aligned variable.  Store converted length
3858         in new variable and use it appropriately.
3859         Add branch prediction help.
3860         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
3861         and pass it on to __libc_res_nsend.  Adjust all callers.
3862         (__libc_res_nsearch): Likewise.
3863         (__libc_res_nqeurydomain): Likewise.
3864         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
3865         change.
3866         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
3867         Define resplen2 variable and pass it to __libc_res_nsearch and then
3868         to gaih_getanswer.
3869         (getanswer_r): In case of incorrect DNS data don't overread buffer.
3870         Add branch prediction.
3871         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
3872         (gaih_getanswer): Don't decode second slice if first one failed due
3873         to a too small buffer.  Don't let not found status of second
3874         decoder shadow results of the first.
3875         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
3876         and __libc_res_nquery interface changes
3877         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
3878         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
3879         __libc_res_nsearch, and __libc_res_nsend.
3880         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
3881         change.
3882         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
3883         __libc_res_nsearch interface changes.
3885 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
3887         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
3889         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
3890         file descriptors with close-on-exec set.
3891         (exec_comm_child): Fix the case where the write end of the pipe is
3892         STDOUT_FILENO already.  In case it is, clear close-on-exec.
3894         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
3895         * io/pipe2.c: Likewise.
3896         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
3897         instead of __ASSUME_PACCEPT.
3898         * include/unistd.h: Declare __have_pipe2.
3899         * libio/iopopen.c: Implement "e" flag.
3900         * libio/Makefile (tests): Add tst-popen1.
3901         * libio/tst-popen1.c: New file.
3903         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
3904         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3906 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
3908         [BZ #6771]
3909         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
3910         success call of _IO_SEEKOFF or calls which failed because the
3911         descriptor is for a pipe.
3913         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
3914         magic number.
3916         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
3918         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
3919         F_SETFD use if we know fopen set the flag.
3921         * login/utmp_file.c (setutent_file): Minor optimization in case
3922         O_CLOEXEC is available.
3924 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
3926         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
3927         * elf/Makefile: Use pie-ccflag variable.
3928         * nscd/Makefile: Likewise.
3929         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
3931 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
3933         [BZ #6724]
3934         * Versions.def: Add GLIBC_2.9 version tag for libutil.
3935         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
3936         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
3937         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
3938         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
3939         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
3940         utmp32, utmpx32 and login32.
3941         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
3942         versions of struct utmp functions to libc and libutil.
3943         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
3944         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
3945         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
3946         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
3947         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
3948         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
3949         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
3950         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
3951         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
3952         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
3953         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
3954         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
3955         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
3956         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
3957         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
3958         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
3959         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
3960         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
3961         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
3962         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
3963         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
3964         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
3966 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
3968         * scripts/gen-as-const.awk: Generate more widely usable code by
3969         using 64-bit arithmetic.
3971         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3972         the same treatment as narrow output code in last patch.
3974         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
3976         [BZ #6763]
3977         * elf/dl-load.c (local_strdup): Remove inline.
3978         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
3979         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
3980         part of the object.
3982         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
3984 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
3986         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
3987         the new syscalls, too.
3989         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
3990         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
3992         [BZ #6698]
3993         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
3994         parameter for end of buffer.  If temporary copy is too large use
3995         malloc.
3996         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
3997         interface change.
3998         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
3999         string rewrite when allocating buffer.
4001         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
4002         syscalls, too.
4004         * nscd/connections.c (nscd_init): Clean up fcntl call.
4006         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
4007         SOCK_NONBLOCK if possible.
4009         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
4010         SOCK_CLOEXEC if available.
4012         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
4013         __libc_clntudp_bufcreate_internal.
4014         * include/sys/socket.h: Declare __have_sock_cloexec.
4015         * socket/Makefile (aux): Add have_sock_cloexec.
4016         * socket/have_sock_cloexec.c: New file.
4017         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
4018         __libc_clntudp_bufcreate.
4019         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
4020         which takes an additional parameter.  Create socket with non-blocking
4021         mode and close-on-exec flag set, if wanted.
4022         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
4023         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
4024         instead of clntudp_create.  The socket has already the close-on-exec
4025         flag set if SOCK_CLOEXEC is defined.
4027 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
4029         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4030         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
4031         appropriate.
4032         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
4033         non-blocking mode by using socket, paccept, and inotify_init1.
4035         * Versions.def (glibc): Add GLIBC_2.9.
4036         * io/Makefile (routines): Add dup3 and pipe2.
4037         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
4038         * io/dup3.c: New file.
4039         * io/pipe2.c: New file.
4040         * posix/unistd.h: Declare dup3 and pipe2.
4041         * socket/Makefile (routines): Add paccept.
4042         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
4043         * socket/paccept.c: New file.
4044         * socket/sys/socket.h: Declare paccept.
4045         * sysdeps/unix/syscalls.list: Add entry for dup3.
4046         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
4047         epoll_create2 and inotify_init1.
4048         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
4049         * sysdeps/unix/sysv/linux/paccept.c: New file.
4050         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
4051         possible.
4052         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
4053         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
4054         inotify_init1, and pipe2 entries.
4055         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
4056         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
4057         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
4058         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
4059         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
4060         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
4061         SOCK_NONBLOCK.
4062         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
4063         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
4064         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
4065         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
4066         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
4067         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
4068         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
4069         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
4070         EPOLL_NONBLOCK.  Declare epoll_create2.
4071         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
4072         EFD_NONBLOCK.
4073         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
4074         IN_NONBLOCK.  Declare inotify_init1.
4075         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
4076         SFD_NONBLOCK.
4077         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
4078         TFD_NONBLOCK.
4080         * elf/elf.h: Define AT_EXECFN.
4081         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
4082         LD_ORIGIN_PATH.
4083         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
4084         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
4085         if __ASSUME_AT_EXECFN is defined.
4086         (_dl_aux_init): Handle AT_EXECFN.
4087         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
4088         for 2.6.27 and up.
4089         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
4090         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
4091         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
4092         _dl_execfn if available and avoid compatibility code if
4093         __ASSUME_AT_EXECFN is defined.
4095         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
4096         _dl_discover_osversion only for older kernels.
4098 2008-07-22  Roland McGrath  <roland@frob.com>
4100         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
4102 2008-07-21  Roland McGrath  <roland@frob.com>
4104         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
4105         returned too much data out of line.
4107 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
4109         * locale/setlocale.c (setname): Remove inline to avoid compiler
4110         warning.
4112         [BZ #6712]
4113         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
4115 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
4117         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
4118         doesn't manage to write anything, fail.
4120         * malloc/hooks.c (__malloc_check_init): Remove printf.
4122 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4124         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
4126 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
4128         * nscd/connections.c (main_loop_poll): Fix handling of read errors
4129         from inotify.
4130         (main_loop_epoll): Likewise.
4132 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
4134         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
4136         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
4137         if DEBUG is defined.
4139         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
4140         query.  Adjust buffer size computation for padding.
4142 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
4144         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
4145         * stdio-common/tst-setvbuf1.c: New file.
4146         * stdio-common/tst-setvbuf1.expect: New file.
4148         [BZ #6719]
4149         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
4150         when selecting fully-buffered stream.
4151         Patch by Wang Xin <wxinee@gmail.com>.
4153 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4155         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
4156         (__open_2): New function.
4157         (__open64_2): New alias to __open_2.
4158         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
4159         (__openat_2): New function.
4160         (__openat64_2): New alias to __openat_2.
4162 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
4164         [BZ #6723]
4165         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
4167 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4169         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
4170         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
4171         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
4172         __hurd_dfail.
4173         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4174         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4175         * sysdeps/mach/hurd/send.c (__send): Likewise.
4176         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
4177         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
4179 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4181         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
4182         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4183         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4184         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
4185         * hurd/get-host.c (_hurd_get_host_config): Likewise.
4186         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
4188 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
4190         [BZ #6657]
4191         * time/strptime_l.c: Don't clear s.era_cnt after successful match
4192         of %EY.
4193         Patch by Petr Baudis.
4195 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
4197         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
4198         Patch by Peter Jones <pjones@redhat.com>.
4200 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
4202         [BZ #6654]
4203         * stdlib/canonicalize.c (__realpath): readlink can write too much
4204         into the buffer on platforms without PATH_MAX.
4206 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
4208         [BZ #6653]
4209         * posix/tst-regex.c (main): Rename to...
4210         (do_test): ... this. Remove cmdline option processing.
4211         (TIMEOUT): Define.
4212         (TEST_FUNCTION): Define.
4213         (CMDLINE_OPTIONS): Define.
4215 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
4217         [BZ #5210]
4218         * configure.in: Add -Werror to -fstack-protector test to catch
4219         unsupported architectures.
4220         Patch by Gilles Esponasse <g.esp@free.fr>.
4222 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
4224         * stdlib/tst-setcontext.c: Set back_in_main before exit if
4225         getcontext returns ENOSYS.
4227 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
4229         * nscd/connections.c (main_loop_poll): Fix test for read error.
4230         (main_loop_epoll): Likewise.
4232 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
4234         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
4235         better place so it is not called when nscd is used.
4237         * nscd/connections.c: Also recognize and handle changes to the
4238         resolver configuration file.
4240 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
4242         * time/strftime.c: Pass reference to tzset_called around to handle
4243         recursive calls.
4245         [BZ #6612]
4246         * time/strftime.c (__strftime_internal): Call tzset() only
4247         when printing timezone-dependent values.
4248         Based on a patch by Petr Baudis <pasky@suse.cz>.
4250         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
4251         unconditionally use second gaih_getanswer_slice result.
4253         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
4254         (getaddrinfo): RES must always be non-NULL.
4256 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
4258         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
4259         cr[34] registers.
4260         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4261         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4262         Likewise.
4263         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
4264         register.
4266 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
4268         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
4269         fields.
4270         * nscd/connections.c (inotify_fd): New variable.
4271         (nscd_init): Try to open an inotify descriptor.
4272         If successful, watch files for databases using inotify instead of
4273         having prune threads stat the files.
4274         (nscd_run_prune): Recognize clear_cache flag being set and call
4275         prune_cache appropriately.
4276         (main_loop_poll): Add inotify descriptor to wait set and handle the
4277         reported changes.
4278         (main_loop_epoll): Likewise.
4279         * nscd/cache.c (prune_cache): Don't stat files for databases if
4280         inotify is used.
4281         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
4282         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
4284         * nscd/grpcache.c (cache_addgr): Correctly compute size of
4285         fixed-size portion of the record.
4286         * nscd/servicescache.c (cache_addserv): Likewise.
4287         * nscd/pwdcache.c (cache_addpw): Likewise.
4288         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4290 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
4292         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
4293         out we don't use uninitialized memory.
4295         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
4296         the client.
4298 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
4300         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
4301         ignore T_DNAME messages.
4302         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
4304 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
4306         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
4307         Avoid segfault if first GETC returns eof/'\0'/'\n'.
4309 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
4311         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
4312         instead of portstr to nscd_getserv_r.  Patch by
4313         Roman Kagan <rkagan@mail.ru>.
4315 2008-05-26  Jim Meyering  <meyering@redhat.com>
4317         Remove more useless "if" tests before "free".
4318         * include/inline-hashtab.h (htab_delete): Likewise.
4319         * libio/freopen.c (freopen): Likewise.
4320         * libio/freopen64.c (freopen64): Likewise.
4321         * locale/programs/ld-collate.c (collate_read): Likewise.
4322         * misc/fstab.c (libc_freeres_fn): Likewise.
4323         * posix/glob.c (globfree): Likewise.
4325 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
4327         * string/Makefile (strop-tests): Add memmem.
4328         * string/test-memmem.c: New file.
4329         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
4330         (test_init): Size buf1 according to BUF1PAGES.
4332 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
4334         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
4335         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
4336         (CFLAGS-scanf17.c): New.
4337         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
4338         * stdio-common/scanf15.c (main): Likewise.
4339         * stdio-common/scanf16.c: New file.
4340         * stdio-common/scanf17.c: New file.
4342 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
4344         * resolv/res_send.c (send_dg): If we already have one of two
4345         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
4346         use the one answer insted of failing.
4348 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
4350         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
4351         being executed on PowerPC as the expected result exceeds IBM
4352         long double 128 __LDBL_MAX__.
4354 2008-05-21  Roland McGrath  <roland@redhat.com>
4356         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
4358         * Makefile (check-data): Use $(abi-name) before other guesses.
4359         Look in $(add-ons) dirs before scripts/data/.
4360         * elf/Makefile (check-data): Likewise.
4362         * scripts/soversions.awk: Grok ABI line.
4363         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
4364         Emit definition for abi-name variable.
4366 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
4368         * string/endian.h: Define new fixed-size hto* and *toh macros only
4369         if [__USE_BSD].
4371         * iconvdata/Depend: Add localedata.
4373 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4375         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
4377 2008-05-08  David S. Miller  <davem@davemloft.net>
4379         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
4380         HIDDEN_JUMPTARGET.
4381         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4382         (__SYSCALL_CLOBBERS): Remove %g* registers.
4383         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4384         (__SYSCALL_CLOBBERS): Likewise.
4385         * scripts/data/localplt-sparc-linux-gnu.data: New file.
4386         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
4388 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
4390         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4391         (CALL_ERRNO_LOCATION): Define.
4392         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4393         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4394         (CALL_ERRNO_LOCATION): Define.
4395         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4396         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
4397         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
4399 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
4401         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
4402         variable.
4404 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
4406         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
4407         (FIRST_FRAME_POINTER): Define.
4409 2008-05-09  David S. Miller  <davem@davemloft.net>
4411         * sysdeps/sparc/sparc64/backtrace.c: New file.
4413 2008-05-14  David S. Miller  <davem@davemloft.net>
4415         * sysdeps/sparc/machine-gmon.h: New file.
4416         * sysdeps/sparc/sparc-mcount.S: Likewise.
4417         * sysdeps/sparc/Makefile: Add sparc-mcount target to
4418         sysdep_routines in gmon directory.
4420 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
4422         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
4424 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
4426         * resolv/res_query.c (__libc_res_nquery): In case one of two
4427         answer was too short don't try to read that answer's header.
4429         * resolv/res_send.c (send_dg): In case of timeout and there are
4430         two queries and one has been answered, return value indicating
4431         success.
4433 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
4435         * nscd/cache.c (cache_add): Take additional parameter specifying
4436         whether this is in response of a cache refill.  Check alignment
4437         of package data.  Revamp waking of pruning thread.
4438         (prune_cache): Small optimization.
4439         * nscd/nscd.h: Adjust cache_add prototypes.
4440         * nscd/aicache.c: Adjust cache_add calls.
4441         * nscd/grpcache.c: Likewise.
4442         * nscd/hstcache.c: Likewise.
4443         * nscd/initgrcache.c: Likewise.
4444         * nscd/pwdcache.c: Likewise.
4445         * nscd/servicescache.c: Likewise.
4446         * nscd/connections.c (restart): Really disable cache use before
4447         exec attempt.  If it fails, reenable cache.
4448         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
4449         time to max to be able to notice concurrent cache additions.  Unlock
4450         prune_lock while performing gc.  Afterwards compute wakeup time with
4451         current wakeup_time value in mind.
4453 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
4455         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
4457         * nscd/mem.c (gc): Correctly determine highest used array element
4458         in mark.
4460         * nscd/mem.c (markrange): Add assert to check entries are all
4461         aligned.  Small cleanup in bitmap use.
4463         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
4464         blockoff of type nscd_ssize_t.
4465         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
4466         (mempoll_alloc): Record block offset and not address.
4468         * nscd/mem.c (gc): Fix test for stack overuse.
4470         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
4471         more asserts.
4473         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
4474         entry is available, believe it.
4476         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
4477         no answers return NSS_STATUS_NOTFOUND.
4478         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
4479         buffer does not have any content.
4481 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
4483         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
4485         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
4486         lookup, don't assign canon unconditionally.
4488 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
4490         * string/Makefile (distribute): Add str-two-way.h.
4492 2008-03-29  Eric Blake  <ebb9@byu.net>
4494         Rewrite string searches to O(n) rather than O(n^2).
4495         * string/str-two-way.h: New file.  For linear fixed-allocation
4496         string searching.
4497         * string/memmem.c: New implementation.
4498         * string/strstr.c: New implementation.
4499         * string/strcasestr.c: New implementation.
4501 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
4503         * posix/regcomp.c (optimize_utf8): Add a note on why we test
4504         opr.ctx_type.
4505         (calc_first): Initialize constraint field.
4506         (duplicate_node_closure): Use it instead of special casing ANCHORS.
4507         Use search_duplicated_node to avoid loops.  Fix grammar.
4508         (duplicate_node): Merge constraint field for all node types.
4509         (calc_eclosure_iter): Look at constraint field for all node types.
4510         * posix/regex_internal.c (create_cd_newstate): Don't look at
4511         create_cd_newstate.
4513 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
4515         [BZ #6428]
4516         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
4518         [BZ #6442]
4519         * string/endian.h: Add macros for fixed-size endian conversion.
4520         * bits/byteswap.h: Allow inclusion from <endian.h>.
4521         * sysdeps/i386/bits/byteswap.h: Likewise.
4522         * sysdeps/ia64/bits/byteswap.h: Likewise.
4523         * sysdeps/s390/bits/byteswap.h: Likewise.
4524         * sysdeps/x86_64/bits/byteswap.h: Likewise.
4525         * string/Makefile (tests): Add tst-endian.
4526         * string/tst-endian.c: New file.
4528         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
4529         Patch by Reuben Thomas.
4531 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
4533         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
4535 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
4537         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
4539         [BZ #6461]
4540         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
4541         Add missing braces.
4542         (BODY for __gconv_transform_internal_ascii): Likewise.
4544         [BZ #6472]
4545         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
4546         to be treated like link-local addresses.
4547         (match_prefix): Don't treat IPv4 loopback address special when
4548         converting to v4 mapped addressed.
4550         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
4551         if necessary.
4552         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
4553         * posix/tst-rfc3484-2.c: Likewise.
4554         * posix/tst-rfc3484-3.c: Likewise.
4556         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
4557         and SCTP.
4559         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
4561         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
4563         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
4565 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
4567         * po/lt.po: New file.  From Lituanian translation team.
4569 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
4571         Introduce TLS descriptors for i386 and x86_64.
4572         * include/inline-hashtab.h: New file, copied from 2005's
4573         libiberty, with fix for memory leak imported afterwards by
4574         Glauber de Oliveira Costa.
4575         * elf/tlsdeschtab.h: New file.
4576         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
4577         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
4578         (CHECK_STATIC_TLS): Move to...
4579         * elf/dynamic-link.h: ... this file.
4580         (TRY_STATIC_TLS): New macro.
4581         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
4582         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
4583         R_386_TLS_DESC): Define.
4584         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
4585         binutils.
4586         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
4587         R_X86_64_TLSDESC): Define.
4588         (R_386_NUM, R_X86_64_NUM): Adjust.
4589         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
4590         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4591         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4592         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
4593         release tlsdesc_table.
4594         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
4595         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
4596         (elf_machine_rel): Handle R_386_TLS_DESC.
4597         (elf_machine_rela): Likewise.
4598         (elf_machine_lazy_rel): Likewise.
4599         (elf_machine_lazy_rela): Likewise.
4600         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
4601         * sysdeps/i386/dl-tlsdesc.S: New file.
4602         * sysdeps/i386/dl-tlsdesc.h: New file.
4603         * sysdeps/i386/tlsdesc.c: New file.
4604         * sysdeps/i386/tlsdesc.sym: New file.
4605         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
4606         tlsdesc_table.
4607         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
4608         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4609         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4610         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
4611         release tlsdesc_table.
4612         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
4613         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
4614         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
4615         (elf_machine_rel): Handle R_X86_64_TLSDESC.
4616         (elf_machine_rela): Likewise.
4617         (elf_machine_lazy_rel): Likewise.
4618         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
4619         (__tls_get_addr): Do not declare for non-shared compiles.
4620         * sysdeps/x86_64/dl-tlsdesc.S: New file.
4621         * sysdeps/x86_64/dl-tlsdesc.h: New file.
4622         * sysdeps/x86_64/tlsdesc.c: New file.
4623         * sysdeps/x86_64/tlsdesc.sym: New file.
4624         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
4625         tlsdesc_table for both 32- and 64-bit structs.
4627 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
4629         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
4630         its own function.  This reduces the frame setup costs and more.
4632 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
4634         [BZ #3406]
4635         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
4636         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
4638 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
4640         * io/openat.c (__openat_2): Also pass fd to __openat.
4641         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
4642         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
4644         * string/tester.c (test_memcmp): Add a few more tests.
4645         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
4647 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
4649         * nscd/cache.c (cache_add): Before returning with failure and this
4650         is the first use of the record, mark it as unusable.
4651         * nscd/aicache.c: Don't touch the dataset after cache_add returns
4652         reporting a failure.
4653         * nscd/grpcache.c: Likewise
4654         * nscd/hstcache.c: Likewise.
4655         * nscd/initgrcache.c: Likewise.
4656         * nscd/pwdcache.c: Likewise.
4657         * nscd/servicescache.c: Likewise.
4659 2008-05-10  Roland McGrath  <roland@redhat.com>
4661         [BZ #6505]
4662         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
4664 2008-05-08  David S. Miller  <davem@davemloft.net>
4666         * misc/truncate64.c (truncate64): Use __truncate not truncate.
4668         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
4669         (__ieee754_y0l): Likewise.
4670         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
4671         (__ieee754_y1l): Likewise.
4672         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
4673         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
4674         frexpl and ldexpl.  math_private.h provides them and the latter
4675         is not even used.
4676         (__log1pl): Use __frexpl.
4678 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
4680         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
4681         prototypes.
4682         * include/arpa/nameser_compat.h: Define T_UNSPEC.
4683         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
4684         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
4685         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
4686         af==AF_UNSPEC.
4687         (_nss_nis_gethostbyname4_r): New function.
4688         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
4689         Change to also handle af==AF_UNSPEC.
4690         (get_tablename): New function.  Use it to avoid duplication.
4691         (_nss_nisplus_gethostbyname4_r): New function.
4692         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
4693         available.
4694         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
4695         * nss/nss.h: Define struct gaih_addrtuple.
4696         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
4697         af==AF_UNSPEC.
4698         (_nss_files_gethostbyname4_r): New function.
4699         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
4700         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
4701         calls.
4702         * resolv/res_query.c (__libc_res_nquery): Take two additional
4703         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
4704         look up IPv4 and IPv6.
4705         Change all callers.
4706         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
4707         for an additional query and answer buffer.  Pass to send_vc and
4708         send_dg.
4709         (send_vc): Send possibly two requests and receive two answers.
4710         (send_dg): Likewise.
4711         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
4712         __libc_res_nquery.
4713         (_nss_dns_gethostbyname4_r): New function.
4714         (gaih_getanswer_slice): Likewise.
4715         (gaih_getanswer): Likewise.
4716         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
4717         __libc_res_nquery call.
4718         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
4719         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
4720         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
4721         available.
4723 2008-05-05  David S. Miller  <davem@davemloft.net>
4725         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
4726         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
4728 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4730         Fix termios bit macros.
4731         Move *DLY definitions where they belong, in termios.h.
4732         Add *[0-3] definitions.
4733         Fixes confusion between VT and FF.
4734         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
4735         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
4736         are already defined to avoid collision with termios.h.
4737         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
4738         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
4739         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
4740         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
4741         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
4742         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
4743         VTDLY, VT0, VT1): New macros.
4744         [__USE_GNU] (OLCUC): Change value of macro.
4745         [__USE_XOPEN] (OFILL): New macro.
4746         [__USE_BSD] (CRTSCTS): Change value.
4747         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
4748         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
4749         (B7200, B14400, B28800, B76800): New macros.
4751 2008-05-01  David S. Miller  <davem@davemloft.net>
4753         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
4754         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
4755         (gen-as-const-headers): Add it.
4756         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
4757         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
4758         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
4759         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
4761         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
4762         six system call parameters.
4763         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
4765 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
4767         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
4768         RUSAGE_LWP.
4769         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
4770         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
4772 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
4774         * stdlib/tst-setcontext.c: Include unistd.h.
4776 2008-04-25  David S. Miller  <davem@davemloft.net>
4778         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
4779         Pass "union semun" properly in to sys_ipc, it must be passed
4780         by value, not by reference.
4782 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
4784         * nscd/Makefile (nscd-cflags): Set back to -fpie.
4785         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
4786         * nscd/connections.c (mem_in_flight): Likewise.
4788         * nscd/nscd.h (dbs): Make hidden.
4790         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
4791         Avoid returning -1, return 0 instead.
4793 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
4795         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
4797 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
4799         [BZ #5209]
4800         * sysdeps/unix/sysv/linux/times.c: New file.
4802         [BZ #5381]
4803         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
4804         mem_in_flight_list variables.  Add new parameter to mempool_alloc
4805         prototype.
4806         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
4807         appropriate mem_in_flight element.
4808         (gc): Take allocations which have not yet been committed to the
4809         database into account.
4810         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
4811         Reset mem_in_flight before returning.
4812         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
4813         cue it up in mem_in_flight_list.
4814         * nscd/aicache.c: Adjust mempool_alloc call.
4815         * nscd/grpcache.c: Likewise.
4816         * nscd/hstcache.c: Likewise.
4817         * nscd/initgrcache.c: Likewise.
4818         * nscd/pwdcache.c: Likewise.
4819         * nscd/servicescache.c: Likewise.
4820         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
4821         of -fpie.
4823         * nscd/connections.c (handle_request): Provide better error message
4824         in case SELinux forbids the service.
4826         * version.h (VERSION): Bump to 2.8.90.
4828 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
4830         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
4832 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
4834         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
4835         Also use for 32-bit.
4836         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
4837         __nextafter instead of nextafter to avoid local PLT.
4838         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
4839         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
4841         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
4843         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
4844         __fe_nomask_env.
4845         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
4846         <fenv_libc.h> instead of <fenv.h>.
4847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
4848         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
4850         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
4852         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
4853         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
4854         function from fegetexcept and make old name weak alias.
4855         * include/fenv.h: Declare __fegetexcept.
4856         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
4857         fegetexcept.
4858         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
4859         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
4860         to fetestexcept.
4861         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
4862         instead of frexpl to avoid local PLT.
4863         * math/s_significandl.c (__significandl): Use __ilogbl instead of
4864         ilogbl to avoid local PLT.
4865         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
4866         instead of ldexpl to avoid local PLT.
4867         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
4868         __roundl not roundl to avoid local PLT.
4869         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
4870         local PLTs.  Use __sincosl instead of separate sinl and cosl
4871         calls.
4872         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4874         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
4875         version for ppc64 to 2.4.21 since without it makecontext will fail.
4877         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
4878         to the ABI in use.
4879         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
4880         .__tls_get_addr.
4881         [__powerpc64__] (TLS_GD): Likewise.
4883 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
4885         [BZ #4997]
4886         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
4887         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
4888         mantissa.
4889         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4890         Likewise.  Also account for when x is an odd number between 2^52
4891         and 2^53-1.
4892         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
4893         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4894         * math/libm-test.inc (lround_test, llround_test): Added test cases to
4895         detect aforementioned erroneous conditions.
4897 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
4899         * configure.in: Check for -fno-section-anchors in addition to
4900         -fno-toplevel-reorder.
4902 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
4904         * include/features.h (__GLIBC_MINOR__): Bump to 8.
4906         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
4907         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
4908         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
4909         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
4910         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
4911         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
4913 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
4915         [BZ #5443]
4916         * time/era.c: Transform __libc_setlocale_lock into rwlock.
4917         * time/alt_digit.c: Likewise.
4918         * wcsmbs/wcsmbsload.c: Likewise.
4920 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
4922         * version.h (VERSION): Bump to 2.8.
4924         * timzeone/asia: Update from tzdata2008b.
4925         * timezone/backward: Likewise.
4926         * timezone/europe: Likewise.
4927         * timezone/northamerica: Likewise.
4928         * timezone/southamerica: Likewise.
4929         * timezone/iso3166.tab: Likewise.
4930         * timezone/leapseconds: Likewise.
4931         * timezone/zone.tab: Likewise.
4932         * timezone/private.h: Update from tzcode2008a.
4933         * timezone/zdump.c: Likewise.
4934         * timezone/zic.c: Likewise.
4936 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
4938         [BZ #5741]
4939         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
4940         Define additonal Data Cache Block instruction macros.
4941         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
4942         Replace dcbst with dcbf and sync with sync/isync.
4944 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
4946         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
4947         Always set ELF_RTYPE_CLASS_PLT.
4948         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
4950 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
4952         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
4953         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
4954         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
4955         For ISA 2.01 and later replace mftb with mfspr 268.
4957 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
4959         [BZ #5768]
4960         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
4961         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
4963 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
4965         [BZ #5768]
4966         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
4967         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
4968         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
4969         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
4971 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
4973         * stdlib/tst-makecontext.c (othervar): New variable.
4974         (cf): Test sign extending the argument to long.
4976 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
4978         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
4979         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
4980         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
4981         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
4982         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
4983         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
4984         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
4986 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
4988         * elf/Makefile (tests): Substitute tests-vis-yes here.
4989         (tests-vis-yes): Delete.
4990         (modules-name, modules-vis-yes): Similarly.
4992 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
4994         [BZ #4407]
4995         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
4996         Preserve sign in signgamp when x is zero.
4998 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
5000         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
5001         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
5002         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
5003         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
5004         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
5005         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
5007 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
5009         [BZ #4314]
5010         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
5011         buffers.
5013         [BZ #5209]
5014         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
5015         a reserved error value.
5017         * stdlib/tst-makecontext.c: Change parameter to cf to negative
5018         value to check for correct sign extension.
5020         [BZ #5436]
5021         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
5022         Copy 64-bit parameter values even though this is not required in
5023         the standard.
5025         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
5026         PC save.
5028 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
5030         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
5031         PC save.
5033 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
5035         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
5037 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
5039         [BZ #5998]
5040         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
5041         in line-buffered stream failed.
5042         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
5044 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
5046         [BZ #6024]
5047         * scripts/abi-versions.awk: If the version specified by
5048         --enable-oldest-abi is older than the first version for this
5049         architecture, use the default version.
5051         * locale/programs/ld-collate.c (collate_read): Ignore script lines
5052         as well when ignoring the whole category.
5054 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
5056         [BZ #6042]
5057         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
5058         ETHERTYPE_* definitions.
5059         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
5061 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
5063         * stdlib/mbtowc.c (__no_r_state): Remove.
5064         (mbtowc): New static state variable.  Use it instead of
5065         __no_r_state.
5066         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
5067         (__wctomb_state): New hidden variable.
5068         (wctomb): Use __wctomb_state instead of __no_r_state.
5069         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
5070         (__wctomb_state): New extern decl.
5071         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
5073 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
5075         [BZ #5475]
5076         * resolv/res_init.c: Handle scope IDs in resolv.conf.
5078 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
5080         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
5082 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
5084         * po/nl.po: Update from translation team.
5086 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
5088         [BZ #6007]
5089         * string/strfry.c: Handle empty strings again.
5091 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
5093         [BZ #5443]
5094         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
5095         before looking for translation.
5096         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
5097         * locale/freelocale.c: Likewise.
5098         * locale/newlocale.c: Likewise.
5099         * locale/setlocale.c: Likewise.
5100         Based partially on a patch by ryo@np.css.fujitsu.com.
5102 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
5104         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
5105         acquiring wrlock.  Do conv_tab allocation while holding lock.
5106         * intl/Makefile: Add rules to build and run tst-gettext6.
5107         * intl/tst-gettext6.c: New test.
5108         * intl/tst-gettext6.sh: New file.
5110 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
5112         * po/nl.po: Update from translation team.
5114         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
5115         provided through st_blksize, try the default size before giving up.
5117 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
5119         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
5121         [BZ #5939]
5122         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
5124         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
5125         error message.  POSIX today does not require the messages to be in
5126         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
5128         [BZ #5979]
5129         * sunrpc/auth_unix.c: Unify printed strings.
5130         * sunrpc/clnt_tcp.c: Likewise.
5131         * sunrpc/clnt_udp.c: Likewise.
5132         * sunrpc/clnt_unix.c: Likewise.
5133         * sunrpc/svc_tcp.c: Likewise.
5134         * sunrpc/svc_udp.c: Likewise.
5135         * sunrpc/svc_unix.c: Likewise.
5136         * sunrpc/xdr.c: Likewise.
5137         * sunrpc/xdr_array.c: Likewise.
5138         * sunrpc/xdr_rec.c: Likewise.
5139         * sunrpc/xdr_ref.c: Likewise.
5140         * locale/programs/ld-time.c (time_finish): Unify messages.
5141         * locale/programs/locfile.c (handle_copy): Fix typo.
5142         * nscd/nscd.c (options): Fix typo.
5144         [BZ #5995]
5145         * stdlib/strtod_l.c: Use correct sign for result in one more
5146         underflow case.
5147         Patch by Eric Blake <ebb9@byu.net>.
5149 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
5151         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
5152         and creat system calls.
5153         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
5154         call.
5155         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
5156         system calls.
5157         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
5158         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5159         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5161 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
5163         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
5164         <linux/limits.h> has defined it.
5165         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
5166         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
5167         headers.
5168         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
5169         it instead of ARG_MAX.
5171 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
5173         * posix/gai.conf: Fix comment for scope nullbits.
5174         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
5175         default to 128 bits for v4 mapped addresses.
5177 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5179         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
5180         ptrace call to get the ieee_instruction_pointer from the kernel.
5181         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
5182         ptrace call to set the ieee_instructtion_pointer.
5183         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
5184         Add comment that ieee_instruction_pointer is always 0.
5186 2008-03-09  Andreas Jaeger  <aj@suse.de>
5188         [BZ #5857]
5189         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
5190         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
5191         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
5193         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
5194         (rint_test): Likewise.
5196 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
5198         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
5199         call.
5200         (__nisfind_server): Similar for open readColdStartFile call.
5201         Patch partially by Jim Meyering.
5202         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
5203         around internal_setent call.
5205         * po/vi.po: New Vietnamese translation.
5207         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
5208         ADJ_OFFSET_SS_READ.
5210         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
5211         remove CLONE_STOPPED.
5213 2008-02-10  Jim Meyering  <meyering@redhat.com>
5215         Remove useless "if" before "free":
5216         * elf/ldconfig.c (parse_conf_include): Likewise.
5217         * gmon/gmon.c (weak_alias): Likewise.
5218         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
5219         * inet/rcmd.c (__validuser2_sa): Likewise.
5220         * intl/bindtextdom.c (set_binding_values): Likewise.
5221         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
5222         * libio/genops.c (save_for_backup): Likewise.
5223         * libio/wgenops.c (save_for_wbackup): Likewise.
5224         * locale/programs/ld-collate.c (collate_read): Likewise.
5225         * locale/programs/linereader.c (get_string): Likewise.
5226         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
5227         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
5228         * resolv/res_debug.c (do_section): Likewise.
5229         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
5230         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
5231         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
5232         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
5233         * time/tzset.c (tzset_internal): Likewise.
5235 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
5237         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
5238         of ASSEMBLER.
5240 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
5242         [BZ #5903]
5243         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
5244         not stream for output file.  Open output file here.
5245         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
5246         and output file name.
5247         (process_fd): Likewise.
5248         (process_file): Likewise.
5249         (main): Adjust callers of changed functions.
5250         * iconv/iconv_prog.h: Adjust prototype.
5252 2008-03-09  Andreas Jaeger  <aj@suse.de>
5254         [BZ #5753]
5255         * sysdeps/ia64/ieee754.h: Use protected namespace
5256         __BIG_ENDIAN/__LITTLE_ENDIAN.
5257         * sysdeps/ieee754/ieee754.h: Likewise.
5258         Patch by Aurelien Jarno <aurelien@aurel32.net>.
5260 2008-03-08  Roland McGrath  <roland@frob.com>
5262         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
5263         ignore a signal that came from a machine exception, treat it as a
5264         fatal core-dump signal instead.
5265         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5267         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5268         Clear DF bit in thread state's eflags.
5269         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5271 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
5273         [BZ #5774]
5274         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
5275         of NAN(...) sequence.
5276         * stdlib/Makefile (tests): Add tst-strtod6.
5277         * stdlib/tst-strtod6.c: New file.
5279         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
5281         [BZ #5762]
5282         * posix/getopt.c (_getopt_internal_r): Clarify error message by
5283         putting offending option character in quotes.  Clean up error
5284         messages.
5285         * po/be.po: Adjust msgstr in translation file.
5286         * po/bg.po: Likewise.
5287         * po/ca.po: Likewise.
5288         * po/cs.po: Likewise.
5289         * po/da.po: Likewise.
5290         * po/de.po: Likewise.
5291         * po/es.po: Likewise.
5292         * po/fr.po: Likewise.
5293         * po/hr.po: Likewise.
5294         * po/ko.po: Likewise.
5295         * po/nl.po: Likewise.
5296         * po/rw.po: Likewise.
5297         * po/sk.po: Likewise.
5298         * po/sv.po: Likewise.
5299         * po/tr.po: Likewise.
5300         * po/zh_CN.po: Likewise.
5301         * po/zh_TW.po: Likewise.
5303         [BZ #5760]
5304         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
5305         Patch by Roland Bless <roland@bless.de>.
5307         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
5308         .o file.
5309         * elf/Makefile (routines): Add dl-sysdep.
5310         (elide-routines.os): Likewise.
5312 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
5314         [BZ #5786]
5315         * elf/dl-sysdep.c: Undefine ROUND after use.
5316         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
5317         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
5318         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
5319         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
5320         to ...
5321         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
5322         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
5323         if necessary.
5324         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
5326         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
5327         _dl_tls_get_addr_soft element.
5328         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
5329         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
5330         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
5331         GLRO.
5332         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5333         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
5334         of internal_function.
5336         * stdlib/Makefile (aux): Add tens_in_limb.
5337         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
5338         * stdlib/tens_in_limb.c: ...here.  New file.
5340         [BZ #5778]
5341         * sysdeps/unix/sysv/linux/pathconf.h: Declare
5342         __statfs_chown_restricted.
5343         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
5344         for _PC_CHOWN_RESTRICTED.
5345         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
5346         Implement __statfs_chown_restricted.
5347         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
5348         _POSIX_CHOWN_RESTRICTED value to zero.
5349         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
5350         defined to zero.
5352         * sysdeps/x86_64/rtld-memset.c: New file.
5354 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
5356         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
5358         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
5359         Barcelona machine.  Make default fall through branch of
5360         __x86_64_preferred_memory_instruction check as the integer code path.
5362 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
5364         * sysdeps/x86_64/cacheinfo.c
5365         (__x86_64_preferred_memory_instruction): New variable.
5366         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5368         * sysdeps/x86_64/memset.S: Rewrite.
5370 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
5372         * include/stdio.h (__asprintf_chk, __dprintf_chk,
5373         __obstack_printf_chk): New prototypes.
5374         (__vasprintf_chk, __vdprintf_chk,
5375         __obstack_vprintf_chk): Likewise.
5376         Add libc_hidden_proto.
5377         * libio/obprintf.c
5378         (_IO_obstack_jumps): No longer static, add attribute_hidden.
5379         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
5380         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5381         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
5382         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
5383         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5384         __obstack_vprintf_chk): New prototypes.
5385         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
5386         obstack_vprintf): New inlines.
5387         * debug/dprintf_chk.c: New file.
5388         * debug/vdprintf_chk.c: New file.
5389         * debug/asprintf_chk.c: New file.
5390         * debug/vasprintf_chk.c: New file.
5391         * debug/obprintf_chk.c: New file.
5392         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
5393         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
5394         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
5395         @@GLIBC_2.8.
5396         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
5397         vdprintf_chk and obprintf_chk, set CFLAGS for them.
5398         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
5399         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
5400         libc_hidden_proto.
5401         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
5402         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
5403         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
5404         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
5405         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
5406         @@GLIBC_2.8.
5407         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
5408         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
5409         obstack_vprintf_chk.
5410         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
5411         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
5412         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
5413         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
5414         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
5415         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
5417 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
5419         [BZ #5779]
5420         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
5421         Patch by Roy Marples <roy@marples.name>.
5423         [BZ #5736]
5424         * malloc/malloc.c: Fix typo in comment.
5426         [BZ #5627]
5427         * locale/iso-639.def: Add Shuswap.
5429 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
5431         [BZ #5790]
5432         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
5433         overwrite *h_errnop/*errnop values from getanswer_r in case of
5434         failure.
5436 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
5438         [BZ #5818]
5439         * nscd/connections.c (dbs): Add initializers for .suggested_module.
5440         (verify_persistent_db): Remove one unnecessary test and add a new one
5441         for bad configuration.
5442         (nscd_init): Improve error reported when persistent database cannot
5443         be reused.
5444         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
5445         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
5446         .suggested_module and .max_db_size and case config file says the
5447         values are zero.
5448         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
5450         [BZ #5854]
5451         * nis/ypclnt.c (yp_order): Fix handling of return value of
5452         do_ypcall_tr call.
5453         Patch by Jeff Moyer <jmoyer@redhat.com>.
5455         * po/fr.po: Update from translation team.
5457 2008-02-22  Andreas Jaeger  <aj@suse.de>,
5458             Carlos O'Donell <carlos@systemhalted.org>
5460         [BZ #5012]
5461         * FAQ.in: Describe why glibc needs to be compiled with
5462         optimization.
5464 2008-02-19  Roland McGrath  <roland@redhat.com>
5466         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
5468 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
5470         [BZ #5737]
5471         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
5472         __USE_MISC is defined.
5474 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
5476         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
5477         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
5478         sys/timerfd.h.
5479         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
5480         timerfd_gettime, timerfd_settime.
5481         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
5482         timerfd_gettime, timerfd_settime for GLIBC_2.8.
5484 2008-02-08  Roland McGrath  <roland@redhat.com>
5486         * elf/elf.h (NT_PPC_SPE): New macro.
5488 2008-02-06  Roland McGrath  <roland@redhat.com>
5490         * Makerules ($(common-objpfx)sysd-rules):
5491         Depend on $(sysdep-makeconfigs).
5493 2008-01-31  Roland McGrath  <roland@redhat.com>
5495         [BZ #5442]
5496         * configure.in: Use -print-file-name if it yields a directory,
5497         for each of include and include-fixed.
5498         * configure: Regenerated.
5500         * Makeconfig (sysd-rules-targets): New variable.
5501         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
5502         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
5504 2008-01-30  Roland McGrath  <roland@redhat.com>
5506         * manual/libc.texinfo: Update back-cover text.
5508         * elf/elf.h (NT_386_TLS): New macro.
5510 2008-01-29  Roland McGrath  <roland@redhat.com>
5512         * Makeconfig (sysd-rules-patterns): New variable.
5513         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
5514         (check-inhibit-asm): New canned sequence, replaces ...
5515         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
5516         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
5517         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
5518         (CFLAGS-rtld): Variable removed.
5520 2008-01-24  Roland McGrath  <roland@redhat.com>
5522         * configure.in: Let configure fragments set base_os.
5523         * configure: Regenerated.
5525 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
5527         * po/ko.po: Update from translation team.
5529 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
5531         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
5533 2008-01-12  Andreas Jaeger  <aj@suse.de>
5535         [BZ #5040]
5536         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
5537         Add EPOLLRDHUP.
5539 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5541         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
5542         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
5543         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
5545 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
5547         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
5548         * elf/dl-close.c (_dl_close): Check for it.
5549         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
5550         (_dl_allocate_static_tls): Likewise.
5551         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
5552         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
5553         to it.
5554         * elf/tst-tls16.c: New file.
5555         * elf/tst-tlsmod16a.c: New file.
5556         * elf/tst-tlsmod16b.c: New file.
5557         * elf/Makefile: Add rules to build and run tst-tls16.
5559 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
5561         [BZ #5628]
5562         * bits/shm.h: Fix comment describing shmid_ds.
5563         * sysdeps/gnu/bits/shm.h: Likewise.
5564         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
5565         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
5566         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5567         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5568         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5569         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5570         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5571         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
5572         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
5574         [BZ #5607]
5575         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
5576         prototypes.
5577         * conform/data/limits.h-data: Adjust limits changed in v6 and add
5578         additional suffixes.
5579         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
5580         Add optional functions mq_timedreceive and mq_timedsend.
5581         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
5582         * conform/data/pthread.h-data: Fix prototype of
5583         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
5584         * conform/data/semaphore.h-data: Allow time.h definitions.
5585         * conform/data/signal.h-data: Likewise.
5586         * conform/data/stdio.h-data: getw and putw are not required in v6.
5587         * conform/data/stdlib.h-data: Change setstate prototype.
5588         * conform/data/string.h-data: Fix strerror_r prototype.
5589         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
5590         * conform/data/unistd.h-data: pthread_atfork not required in v6.
5591         Fix readlink prototype.
5592         * conform/data/netinet/in.h-data: Add const to in6addr_any and
5593         in6addr_loopback.
5594         * inet/netinet/in.h: Cleanup namespace.
5595         * posix/regex.h: Likewise.
5596         * resolv/netdb.h: Likewise.
5597         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
5598         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
5599         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
5600         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
5601         of names of in in6_addr.
5602         (default_precedence): Likewise.
5603         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
5604         NULL definition.
5606 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
5608         * conform/data/fmtmsg.h-data: Add missing allows.
5609         * conform/data/ftw.h-data: Likewise.
5610         * conform/data/inttypes.h-data: Likewise.
5611         * conform/data/math.h-data: Likewise.
5612         * conform/data/signal.h-data: Likewise.
5613         * conform/data/net/if.h-data: Likewise.
5614         * conform/data/netinet/in.h-data: Likewise.
5615         * conform/data/sys/socket.h-data: Likewise.
5617         [BZ #5614]
5618         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
5619         (__strtok_r): Simplify.
5620         * string/tester.c (test_strtok_r): Add test case for futile search
5621         with single-character seach string.
5623 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
5625         * po/ko.po: Update from translation team.
5627 2008-01-11  Andreas Jaeger  <aj@suse.de>
5629         [BZ #5600]
5630         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
5631         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
5632         kernel header.
5634 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
5636         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
5637         native interface lookup in all the relevant places.
5639 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
5640             Ulrich Drepper  <drepper@redhat.com>
5642         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
5643         field.  Use sockaddr_in6 for source_addr.
5644         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
5645         (match_prefix): Likewise.
5646         (get_label): Likewise.
5647         (get_precedence): Likewise.
5648         (rfc3484_sort): Change to use indirect access to results array.
5649         Adjust to use of sockaddr_in6.  Replace service_order test with
5650         simple index comparison.
5651         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
5652         service_order field.  Adjust qsort_t calls.  Access sorted result
5653         array indirectly through order array.
5654         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
5655         * posix/tst-rfc3484-2.c: Likewise.
5656         * posix/tst-rfc3484-3.c: Likewise.
5658 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
5660         [BZ #5541]
5661         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
5662         pollfd structures.
5663         Patch by André Cruz.
5665         [BZ #5545]
5666         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
5667         (clnt_spcreateerror): Likewise.
5669         [BZ #5553]
5670         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
5671         (public_mEMALIGn): Likewise.
5672         Patch mostly by Daniel Jacobowitz.
5674 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
5676         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
5677         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
5678         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
5679         * stdlib/tst-makecontext2.c: New test.
5681 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
5683         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
5684         defined.
5685         (REINIT_PARAMS): Likewise.  Undefine before end of file.
5686         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
5687         transliteration hooks and REINIT_PARAMS afterwards.
5688         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
5689         status.
5690         (REINIT_PARAMS): Define.
5691         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
5692         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
5693         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
5694         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
5695         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
5696         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
5697         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
5698         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
5699         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
5700         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
5701         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
5702         * iconvdata/tst-iconv7.c: New test.
5704 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
5706         * libio/stdio.h (vscanf): Fix definition for loser compilers.
5708 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
5710         [BZ #5112]
5711         * nscd/connections.c (restart): Fix condition.
5713 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
5715         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
5716         __ctype_toupper_loc): Add __THROW.
5718 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
5720         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
5721         recognition of interface family.
5723         * posix/getconf.c: Update copyright year.
5724         * nss/getent.c: Likewise.
5725         * iconv/iconvconfig.c: Likewise.
5726         * iconv/iconv_prog.c: Likewise.
5727         * elf/ldconfig.c: Likewise.
5728         * catgets/gencat.c: Likewise.
5729         * csu/version.c: Likewise.
5730         * elf/ldd.bash.in: Likewise.
5731         * elf/sprof.c (print_version): Likewise.
5732         * locale/programs/locale.c: Likewise.
5733         * locale/programs/localedef.c: Likewise.
5734         * nscd/nscd.c (print_version): Likewise.
5735         * debug/xtrace.sh: Likewise.
5736         * malloc/memusage.sh: Likewise.
5737         * malloc/mtrace.pl: Likewise.
5738         * debug/catchsegv.sh: Likewise.
5740 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
5742         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
5743         second lookup.
5745 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
5747         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
5748         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5750 2007-12-17  Roland McGrath  <roland@redhat.com>
5752         * inet/ether_line.c (ether_line): Remove unused variable.
5754 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5756         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
5757         and winp.
5758         * login/openpty.c (openpty): Likewise.
5759         * login/pty.h (openpty, forkpty): Likewise.
5760         * manual/terminal.texi (openpty, forkpty): Likewise.
5762 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
5764         * malloc/malloc.c (public_cALLOc): For arenas other than
5765         main_arena, count all bytes inside the mprotect_size range of the
5766         heap as uninitialized.
5768 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
5770         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
5771         executable stacks.
5773         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
5774         mTRIm for all of them.
5775         (mTRIm): Additionally iterate over all free blocks and use madvise
5776         to free memory for all those blocks which contain at least one
5777         memory page.
5778         * malloc/tst-trim1.c: New file.
5779         * malloc/Makefile (tests): Add tst-trim1.
5781         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
5783 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
5785         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
5786         First cast argument to long
5787         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
5788         Return long.
5789         (__vdso_clock_gettime): Likewise.
5790         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
5791         return long.
5793 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
5795         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
5796         * locale/nl_langinfo_l.c: Real implementation, copied from
5797         nl_langinfo.c.
5798         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
5800 2007-12-01  Jim Meyering  <meyering@redhat.com>
5802         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
5803         that would inhibit utf8-optimization of a regexp containing line-
5804         or buffer-anchors, e.g., `^', `$'.
5806 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
5808         * time/bug-getdate1.c (do_test): Don't use century values which
5809         aren't valid on 32-bit systems.
5811 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
5813         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
5814         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
5815         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
5816         __strcat_g, __strncat_g): Add __asm__.
5818 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
5820         [BZ #5477]
5821         * io/fchmodat.c: Fix typo in stub_warning use.
5822         Patch by Petr Salinger.
5824 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
5826         * iconvdata/hp-thai8.c: New file.
5827         * iconvdata/Makefile: Add rules for hp-thai8.c.
5828         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
5829         * iconvdata/gconv-modules: Likewise.
5831         [BZ #5464]
5832         * iconvdata/hp-greek8.c: New file.
5833         * iconvdata/Makefile: Add rules for hp-greek8.c.
5834         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
5835         * iconvdata/gconv-modules: Likewise.
5837         [BZ #5463]
5838         * iconvdata/hp-turkish8.c: New file.
5839         * iconvdata/Makefile: Add rules for hp-turkish8.c.
5840         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
5841         * iconvdata/gconv-modules: Likewise.
5843         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
5844         (shrink_heap): ... this new function.
5845         (heap_trim): Call shrink_heap instead of grow_heap.
5847         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
5848         case don't call alloc_perturb.
5850 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
5852         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
5853         possible.
5854         * sysdeps/unix/sysv/linux/kernel-features.h
5855         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
5856         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
5858 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
5860         [BZ #5424]
5861         * stdio-common/vfprintf.c: Do not overflow when adding to done.
5862         * stdio-common/Makefile (tests): Add bug22.
5863         * stdio-common/bug22.c: New file.
5865         [BZ #5451]
5866         * time/getdate.c: Fix filling in default values.
5867         * time/bug-getdate1.c: New file.
5868         * time/Makefile: Add rules to build and run bug-getdate1.
5870         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
5871         * iconvdata/ebcdic-es.c: Likewise.
5872         * iconvdata/ebcdic-es-a.c: Likewise.
5873         * iconvdata/ebcdic-uk.c: Likewise.
5874         * iconvdata/iso8859-16.c: Likewise.
5875         * iconvdata/viscii.c: Likewise.
5876         * iconvdata/iso8859-9e.c: Likewise.
5877         * iconvdata/Makefile: Adjust appropriately.
5879         [BZ #5428]
5880         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
5881         __need_wint_t.
5883 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
5885         [BZ #5427]
5886         * iconvdata/hp-roman9.c: New file.
5887         * iconvdata/Makefile: Add rules for hp-roman9.c.
5888         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
5889         * iconvdata/gconv-modules: Likewise.
5891         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
5892         * iconvdata/Makefile: Adjust appropriately.
5894         [BZ #5441]
5895         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
5896         structure, it's allocated with alloca.
5897         * stdio-common/Makefile (tests): Add bug21.
5898         * stdio-common/bug21.c: New file.
5900 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
5902         [BZ #5452]
5903         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
5904         keyword for gcc's braced-groups.
5906 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
5908         [BZ #5454]
5909         * inet/ether_line.c: Strip hostname of whitespaces.
5910         * inet/Makefile (tests): Add tst-ether_line.
5911         * inet/tst-ether_line.c: New file.
5913 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
5915         [BZ #5439]
5916         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
5918         [BZ #5435]
5919         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
5921         * stdlib/tst-setcontext.c: Catch the case where the links gets
5922         messed up and we do not reach main again.
5924         * po/ca.po: Update from translation team.
5926 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
5928         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
5929         * posix/regex.h (REG_ENOSYS): Likewise.
5930         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
5932 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
5934         * nscd/nscd.h (MAX_STACK_USE): Define.
5935         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
5936         (gc): Initialize stack_used based on allocation in prune_cache.
5937         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
5938         Clear array before use.
5940         * nscd/aicache.c (addhstaiX): Update statistics counter in case
5941         memory allocation failed.
5942         * nscd/hstcache.c (cache_addhst): Likewise.
5943         * nscd/grpcache.c (cache_addgr): Likewise.
5944         * nscd/servicescache.c (cache_addserv): Likewise.
5945         * nscd/pwdcache.c (cache_addpw): Likewise.
5946         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5948 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
5950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
5951         and creat system calls.
5953         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
5955 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5957         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
5958         Add netiucv/iucv.h.
5959         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
5960         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
5961         protocol.
5962         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
5963         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
5964         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
5966 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5968         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
5969         strncat): Define as macros to avoid compile errors.
5971         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
5972         creat entries.
5974 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
5976         [BZ #5382]
5977         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
5978         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
5979         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
5980         overflow it.
5981         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
5983         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
5984         Return zero in case the thread library is not NPTL.
5986         [BZ #5375]
5987         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
5988         initializing interface list.
5990         [BZ #5378]
5991         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
5992         use result of nss_getgrgid_r if nothing was found.  For other
5993         error return with a failure.
5994         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
5996         * locale/programs/ld-collate.c (collate_read): Fix loop to match
5997         macro name.
5999 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
6001         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
6002         (get_scope): For IPv4 scope, use scopes table.
6003         (fini): Free scopes table if necessary.
6004         (free_scopelist): New function.
6005         (scopecmp): New function.
6006         (gaiconf_init): Also handle scopev4 entries.
6007         * posix/tst-rfc3484.c (do_test): Initialize scopes.
6008         * posix/tst-rfc3484-2.c (do_test): Likewise.
6009         * posix/gai.conf: Document scopev4 defaults.
6010         * posix/Makefile (tests): Add tst-rfc3484-3.
6011         * posix/tst-rfc3484-3.c: New file.
6013         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
6014         Teredo tunnels.
6015         * posix/gai.conf: Update for current default tables.
6017 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
6019         * po/tr.po: Update from translation team.
6021 2007-11-18  Roland McGrath  <roland@frob.com>
6023         * manual/arith.texi (Remainder Functions): Spelling fix.
6024         From Shaun Silk <genix@mysoul.com.au>.
6026         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
6028 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
6030         * po/zh_CN.po: Update from translation team.
6032         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
6033         Add sys/signalfd.h and sys/eventfd.h.
6035 2007-11-15  Bruno Haible  <bruno@clisp.org>
6037         [BZ #5346]
6038         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
6039         union.
6040         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
6041         (DCIGETTEXT): Change the allocation of the 'search' variable so that
6042         it needs only fixed stack space. Delay the initialization of
6043         msgid_len until it is needed.
6045 2007-11-15  Andreas Jaeger  <aj@suse.de>
6047         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
6048         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
6050 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
6052         * po/ko.po: Update from translation team.
6054 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
6056         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
6057         significantly.  The device type is also part of the ifinfomsg data.
6059         * po/sv.po: Update from translation team.
6060         * po/nl.po: Likewise.
6062         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
6063         to wake up in 24 hours.
6065         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
6067 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
6069         * po/cs.po: Update from translation team.
6070         * po/pl.po: Likewise.
6072         * include/ifaddrs.h: Remove in6ai_temporary.
6073         (struct in6addrinfo): Add index element.
6074         Declare __check_native.
6075         * inet/Makefile (aux): Add check_native.
6076         * sysdeps/unix/sysv/linux/check_native.c: New file.
6077         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
6078         IFA_F_TEMPORARY.  Pass back ifa_index.
6079         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
6080         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
6081         call __check_native if necessary.
6082         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
6083         to sort addresses.  Pass information about the results.
6084         * posix/tst-rfc3484.c: Adjust for addition of index field and change
6085         of rfc3484_sort interface.
6086         * posix/tst-rfc3484-2.c: Likewise.
6088         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
6089         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
6090         for _quicksort.
6091         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
6092         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
6093         on as third parameter to compare function and _quicksort.
6094         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
6095         to the compare function.
6096         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
6097         * Versions.def: Add GLIBC_2.8 for libc.
6099         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
6100         * posix/tst-rfc3484-2.c: Likewise.
6102         * include/kernel-features.h: Moved to...
6103         * sysdeps/mach/hurd/kernel-features.h: ...here.
6105 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
6107         * sysdeps/i386/i586/memcpy_chk.S: New file.
6108         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
6109         * sysdeps/i386/i586/memset_chk.S: Likewise.
6111 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
6113         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
6114         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
6115         list of interfaces.  Also store prefix length.
6116         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
6117         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
6118         prefix if source and destination address are in the same subnet.
6119         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
6120         Always look for matching record in in6ai list.
6121         Correct source_addr_len value for IPv6->IPv4 converted records.
6123 2007-11-11  Roland McGrath  <roland@frob.com>
6125         * include/kernel-features.h: New file.
6127 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
6129         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
6130         complications for 64-bit platforms.
6132         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
6133         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
6134         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
6135         open64_2.
6136         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
6137         entries.
6138         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6139         * sysdeps/wordsize-64/alphasort.c: New file.
6140         * sysdeps/wordsize-64/alphasort64.c: New file.
6141         * sysdeps/wordsize-64/fseeko.c: New file.
6142         * sysdeps/wordsize-64/fseeko64.c: New file.
6143         * sysdeps/wordsize-64/ftello.c: New file.
6144         * sysdeps/wordsize-64/ftello64.c: New file.
6145         * sysdeps/wordsize-64/ftw.c: New file.
6146         * sysdeps/wordsize-64/ftw64.c: New file.
6147         * sysdeps/wordsize-64/iofgetpos.c: New file.
6148         * sysdeps/wordsize-64/iofgetpos64.c: New file.
6149         * sysdeps/wordsize-64/iofopen.c: New file.
6150         * sysdeps/wordsize-64/iofopen64.c: New file.
6151         * sysdeps/wordsize-64/iofsetpos.c: New file.
6152         * sysdeps/wordsize-64/iofsetpos64.c: New file.
6153         * sysdeps/wordsize-64/lockf.c: New file.
6154         * sysdeps/wordsize-64/lockf64.c: New file.
6155         * sysdeps/wordsize-64/mkostemp.c: New file.
6156         * sysdeps/wordsize-64/mkostemp64.c: New file.
6157         * sysdeps/wordsize-64/mkstemp.c: New file.
6158         * sysdeps/wordsize-64/mkstemp64.c: New file.
6159         * sysdeps/wordsize-64/scandir.c: New file.
6160         * sysdeps/wordsize-64/scandir64.c: New file.
6161         * sysdeps/wordsize-64/tmpfile.c: New file.
6162         * sysdeps/wordsize-64/tmpfile64.c: New file.
6163         * sysdeps/wordsize-64/versionsort.c: New file.
6164         * sysdeps/wordsize-64/versionsort64.c: New file.
6165         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
6166         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
6167         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
6168         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
6169         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
6170         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
6171         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
6172         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
6173         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
6174         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
6175         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
6176         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
6178         * crypt/sha256-crypt.c: Fix a comment.
6179         * crypt/sha512-crypt.c: Likewise.
6181 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6183         * sysdeps/x86_64/memset.S: Add sfence after movnti.
6185 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
6187         [BZ #5277]
6188         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
6189         because output buffer is too small break, don't loop.
6190         * iconvdata/Makefile (tests): Add bug-iconv6.
6191         * iconvdata/bug-iconv6.c: New file.
6193 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
6195         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
6196         with size_t type.
6197         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
6198         size_t.  Add casts where needed.
6200         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
6201         old headers, don't call avc_has_perm if we don't have the
6202         permission information.
6204 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
6206         * elf/rtld.c (dl_main): Use the page size to find the map start.
6208 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
6210         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
6211         Patch by Szymon Siwek <sls@poczta.wp.pl>.
6213         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
6214         when the lookup call failed.
6216         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
6217         Add prune_cond and wakeup_time.
6218         (CACHE_PRUNE_INTERNAL): Define.
6219         Update declarations of prune_cache and setup_thread.
6220         * nscd/connections.c (dbs): Update initializers.
6221         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
6222         (nscd_init): Default number of threads is now 4.
6223         (invalidate_cache): Take lock before calling prune_cache.
6224         (handle_request): If SELinux forbids the request, say so.
6225         (readylist_cond): Use static initializer.
6226         (nscd_run_prune): New function.  Used only by pruning threads.
6227         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
6228         here.
6229         (fd_ready): Update nscd_run reference.
6230         (start_threads): No need to initialize readylist_cond.
6231         Start pruning threads separately.
6232         * nscd/nscd_setup_thread.c: Change return value type to int and always
6233         return 0.
6234         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
6235         to int and return nonzero value if we can use the TID address hack.
6236         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
6237         the database is later than the new entry's timeout, update the
6238         wakeup time and wake the cleanup thread.
6239         (prune_cache): Return seconds the next entry in the database is still
6240         valid.  Remove locking for pruning here.
6241         * nscd/nscd.conf: Document default number of threads.
6243 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
6245         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
6246         stack is properly aligned for the target function.
6247         Correct unwind info.
6249         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
6250         when using auditing libraries.
6252 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
6254         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
6255         _nss_dns_getnetbyaddr2_r.
6256         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
6257         extra parameter to getanswer_r.
6258         (_nss_dns_getnetbyaddr_r): Now a wrapper around
6259         _nss_dns_getnetbyaddr2_r.
6261         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
6262         gethstbynm3_r.
6263         * nscd/gethstbynm2_r.c: Remove.
6264         * nscd/gethstbynm3_r.c: New file.
6265         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
6266         __gethostbyaddr_r.
6267         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
6268         __gethostbyaddr_r compatibility wrapper.
6269         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
6270         determining timeout of entry.
6271         (lookup): Take new parameter and pass it to __gethostbyname3_r and
6272         __gethostbyaddr2_r.
6273         (addhstbyX): Pass reference to variable for TTL to lookup and
6274         cache_addhst.
6275         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
6276         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
6277         and __nss_next2.  Remove __nss_services_lookup.
6278         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
6279         Add compat wrapper.
6280         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
6281         __nss_next2.
6282         * nss/getXXent_r.c: Likewise.
6283         * nss/getnssent_r.c: Likewise.
6284         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
6285         does not exist in module, try the optional second name.
6286         (__nss_next2): New function.
6287         (__nss_next): Now wrapper around __nss_next2.
6288         * nss/nsswitch.h: Adjust __nss_lookup prototype.
6289         Declare __nss_next2.
6290         Adjust definition of db_lookup_function type.
6291         * nss/service-lookup.c: Define NO_COMPAT.
6292         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
6293         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
6294         * inet/ether_ntoh.c: Likewise.
6295         * sunrpc/netname.c: Likewise.
6296         * sunrpc/publickey.c: Likewise.
6297         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
6298         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
6299         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
6300         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
6301         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
6303         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
6305         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
6307 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
6309         [BZ #5204]
6310         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
6311         * crypt/sha512c-test.c: Likewise.
6313         [BZ #5225]
6314         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
6315         to keep track of end of %[ format string element.
6316         * stdio-common/Makefile (tests): Add bug20.
6317         * stdio-common/bug20.c: New file.
6319         [BZ #5222]
6320         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
6321         path elements in counting mode.
6323 2007-10-27  Andreas Jaeger  <aj@suse.de>
6325         [BZ #5040]
6326         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
6328         [BZ #3112]
6329         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
6330         (__cleanup): Free shared library when exiting.
6331         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
6332         (__cleanup): Free shared library when exiting.
6334 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
6336         [BZ #2549]
6337         * math/libm-test.inc (check_float_internal): Support
6338         denormalized return.
6340 2007-10-23  Andreas Jaeger  <aj@suse.de>
6342         [BZ #5208]
6343         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
6344         __LONG_LONG_PAIR to handle little endian byte order.
6345         Suggested by abhishekrai@google.com
6347 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
6349         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
6351 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
6353         * nscd/cache.c (prune_cache): Move test for modified file outside
6354         of locking.
6356 2007-10-21  Andreas Jaeger  <aj@suse.de>
6358         * manual/texinfo.tex: Update to latest version.
6360         * manual/sysinfo.texi (System Parameters): Fix Formatting.
6362         * manual/arith.texi (Status bit operations): Fix formatting.
6364         * manual/errno.texi (Error Messages): Fix formatting.
6366         * manual/sysinfo.texi (System Parameters): Fix formatting.
6368         * manual/libc.texinfo: Update VERSION and UPDATED.
6370 2007-10-19  Roland McGrath  <roland@redhat.com>
6372         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
6374 2007-10-06  David S. Miller  <davem@davemloft.net>
6376         * configure.in: Add sparcv9v2 and sparc64v2.
6377         * scripts/config.sub: Likewise.
6378         * configure: Regenerate.
6379         * elf/elf.h (HWCAP_SPARC_N2): New.
6380         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
6381         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
6382         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
6383         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
6384         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
6385         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
6386         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
6388 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
6390         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
6391         even if the poll result indicates there is data to read.
6392         Patch by Jeff Moyer <jmoyer@redhat.com>.
6394 2007-10-18  Roland McGrath  <roland@redhat.com>
6396         * elf/elf.h (NT_PPC_VMX): New macro.
6398 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6400         * version.h (VERSION): Set to 2.7.90.
6402 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
6404         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
6405         weak_alias.
6407 2007-10-17  Roland McGrath  <roland@frob.com>
6409         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
6410         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
6412 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6414         * version.h (VERSION): Bump to 2.7.
6415         * include/features.h (__GLIBC_MINOR__): Bump to 7.
6417         [BZ #5186]
6418         * time/tzset.c (__tz_convert): Don't force testing for a change of
6419         TZ if not called from localtime.  But then also see whether the
6420         file changed, in case __use_tzfile is set.
6422         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
6423         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6424         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6425         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6426         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6427         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6428         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
6429         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6431 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
6433         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
6434         and admin selects to be able to replace the gai.conf file, lock
6435         data structures around the qsort call.
6437 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6439         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
6440         new memset.
6441         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
6442         too high for the improvements.  Implement bzero unconditionally for
6443         use in libc.
6445 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6446             Jakub Jelinek  <jakub@redhat.com>
6448         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
6449         even when time_t is 32-bit.
6450         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
6451         timezone data read by __tzfile_default.  Ensure __tzname[0] is
6452         always set after the search.
6454 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
6456         * time/tzfile.c (__tzfile_read): Help the compiler recognize
6457         unreachable code on 32-bit machines.
6459 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
6461         [BZ #5184]
6462         * time/strftime_l.c: Include stdbool.h.
6463         (my_strftime): New wrapper, old function renamed to...
6464         (__strftime_internal): ... new function.  Add tzset_called
6465         argument, pass it down to recursive calls, don't call tzset ()
6466         if already true, set to true after call to tzset ().
6468 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
6470         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
6471         into account when copying TZ string.
6473 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
6475         * time/tzfile.c (__tzfile_compute): For use_last case set i to
6476         num_transition rather than num_transitions - 1.
6478 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
6480         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
6481         PIC indirect jump.
6483         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
6484         a local label rather than HIDDEN_JUMPTARGET.
6486 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
6488         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
6489         (init_cacheinfo): Initialize it.
6490         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
6491         Always define bzero.
6492         Remove non-glibc code.
6493         * sysdeps/x86_64/bzero.S: Make an empty file.
6495 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
6497         * sysdeps/x86_64/cacheinfo.c
6498         (__x86_64_preferred_memory_instruction): New.
6499         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6501         * sysdeps/x86_64/memset.S: Rewrite.
6503 2007-10-15  Roland McGrath  <roland@redhat.com>
6505         * po/libc.pot: Regenerated.
6507 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
6509         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
6510         pointers.
6512         [BZ #3425]
6513         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
6514         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
6515         address record to T_A/T_AAAA requests.
6517 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
6519         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
6521         * posix/glob.c: Add some branch prediction throughout.
6523         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
6524         read from nscd.
6526         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
6527         service_order.
6528         (rfc3484_sort): Make sure that even if qsort doesn't support
6529         stable sorting out sorting here is stable by comparing service_order.
6530         (getaddrinfo): Initialize service_order.
6531         * posix/tst-rfc3484.c (do_test): Adjust for addition of
6532         service_order field to sorting structure.
6533         * posix/tst-rfc3484-2.c (do_test): Likewise.
6535         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
6536         * time/tzset.c (tzset_internal): Break TZ string parsing out into
6537         __tzset_parse_tz and updating of daylight, timezone, tzname into
6538         update_vars.
6539         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
6540         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
6541         happens in __tz_compute.
6542         * time/tzfile.c (__tzfile_read): Also read TZ string.
6543         (find_transition): Fold into __tzfile_compute.
6544         (__tzfile_compute): For times beyond the last transition try to
6545         use the TZ string.
6546         * timezone/tst-timezone.c: Information in daylight and tzname does
6547         change for Asia/Tokyo timezone with more concrete information.
6548         Remove the test.
6550         * include/stdio.h: Add libc_hidden_proto for ftello.
6551         * libio/ftello.c: Add libc_hidden_def.
6553         [BZ #1140]
6554         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
6555         on the specified time and not the last entries in the file.  Move
6556         code to determine tzname[] to...
6557         (find_transition): ...here.  Add ugly guess for times before the
6558         first transition.
6560 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
6562         [BZ #3195]
6563         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
6564         no entry.
6565         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
6566         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6567         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6568         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6570         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
6571         read mechanism when there are no group members and avoid no-op
6572         read syscall in this case.
6574         [BZ #3242]
6575         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
6576         (__readall): If reading failed due to EAGAIN error wait a bit
6577         and possibly try again.
6578         (__readvall): Likewise.
6580 2007-10-13  Bruno Haible  <bruno@clisp.org>
6582         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
6583         when we cannot recode the message.
6585 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
6587         [BZ #4359]
6588         * libio/__freading.c (__freading): Don't return true for
6589         write-only streams.  For read/write streams, check whether we
6590         performed a read operation already.
6591         * libio/Makefile (tests): Add tst-ext2.
6592         * libio/tst-ext2.c: New file.
6594 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
6596         * locale/programs/repertoire.c (repertoire_read): Always free
6597         memory for repertoire file name [Coverity CID 270].
6599         * elf/cache.c (save_aux_cache): Free memory allocated for
6600         temporary file name [Coverity CID 267].
6602 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
6604         * misc/Makefile (headers): Add bits/error.h.
6606 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
6608         * posix/fnmatch_loop.c: Take rule index returned as part of
6609         findidx return value into account when accessing weights.
6610         * posix/regcomp.c: Likewise.
6611         * posix/regexec.c: Likewise.
6613         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
6614         (skip_to): Fix problems with parameter of elifdef/elifndef.
6616 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
6618         * iconv/gconv_simple.c: Add some branch prediction.
6620 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
6622         * locale/programs/ld-collate.c (collate_read): If ignore_content
6623         and nowtok is tok_define, eat any tok_eol tokens.
6625 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
6627         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
6628         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
6630         * inet/netinet/in.h: Don't include bits/socket.h.
6631         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
6632         macro.
6633         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6635 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
6637         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
6638         and tok_elifndef.
6639         * locale/programs/locfile-kw.gperf: Likewise.
6640         * locale/programs/ld-collate.c: Implement primitive preprocessor.
6642 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
6644         * stdio-common/printf-parse.h: Include string.h and wchar.h.
6645         (__find_specwc): Change into __extern_always_inline function.
6646         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
6647         (__parse_one_specmb): Remove ps argument.
6648         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
6649         Adjust __find_specmb and __parse_one_specmb callers.
6650         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
6651         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
6652         Removed.
6653         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
6654         caller.
6656 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
6658         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
6659         with some Pentium Ds.
6661 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
6663         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
6664         __read not read.
6665         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
6666         __write not write.
6668 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
6670         [BZ #181]
6671         * locale/C-time.c: Set week_1stday data to 19971201.
6672         * locale/programs/ld-time.c (time_finish): Default for
6673         first_workday is Monday.
6675         [BZ #2633]
6676         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
6678         [BZ #5103]
6679         * posix/glob.c (glob): Recognize patterns starting \/.
6680         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
6681         (main): Add test for pattern starting \/.
6683         * misc/error.h: Use __const instead of const.
6684         * misc/bits/error.h: Likewise.
6686 2007-10-07  Andreas Jaeger  <aj@suse.de>
6688         * include/bits/error.h: New file.
6690         * misc/bits/error.h (error_at_line): Fix prototype.
6692 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
6694         [BZ #3924]
6695         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
6696         more little bugs in creating the stack frame when pltexit has to
6697         be called.
6699         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
6700         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
6702         [BZ #4407]
6703         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
6704         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6705         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
6706         * math/libm-test.inc: Add test for this case.
6708         [BZ #5010]
6709         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
6710         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
6711         map service succeeded.
6712         (svc_is_mapped): New function.
6713         (svc_unregister): Use it before trying to unmap service.
6715 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
6717         * timezone/zic.c: Update from tzcode2007h.
6719         [BZ #5063]
6720         * timezone/africa: Update from tzdata2007h.
6721         * timezone/antarctica: Likewise.
6722         * timezone/asia: Likewise.
6723         * timezone/australasia: Likewise.
6724         * timezone/europe: Likewise.
6725         * timezone/leapseconds: Likewise.
6726         * timezone/northamerica: Likewise.
6727         * timezone/southamerica: Likewise.
6728         * timzeone/zone.tab: Likewise.
6730         [BZ #5104]
6731         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
6733         [BZ #5113]
6734         * string/bits/string2.h (__strdup): Cast parameters to calloc to
6735         avoid warning with -Wconversion.
6736         (__strndup): Likewise.
6737         Half the patch by Christian Iseli <christian.iseli@licr.org>.
6739         [BZ #5112]
6740         * nscd/connections.c (restart): Don't resync if database is
6741         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
6743         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
6744         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
6746         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
6747         evetnfd_read, eventfd_write.
6748         * sysdeps/unix/sysv/linux/eventfd.c: New file.
6749         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
6750         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
6751         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
6752         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
6753         eventfd_write for GLIBC_2.7.
6755         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
6756         * sysdeps/unix/sysv/linux/signalfd.c: New file.
6757         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
6758         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
6760 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
6762         * stdlib/msort.c: Include stdint.h.
6763         (struct msort_param): New type.
6764         (msort_with_tmp): Use struct msort_param pointer for unchanging
6765         parameters.  Add optimized handling for several common sizes
6766         and indirect sorting mode.
6767         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
6768         sorting.
6769         Suggested by Belazougui Djamel .
6771         * stdlib/Makefile (tests): Add tst-qsort2.
6772         * stdlib/tst-qsort2.c: New test.
6774 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
6776         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
6777         for dup2 in case another thread races with the current one.  Retry
6778         in this case.
6780         * misc/error.h: Remove support for use outside of libc.  We have to
6781         include <features.h> now.  Include <bits/error.h> if possible.
6782         * misc/bits/error.h: New file.
6784 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
6786         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
6787         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
6788         __extern_always_inline functions unconditionally, drop macros.
6790         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
6791         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
6792         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
6794         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
6795         add __artificial__ attribute.
6797 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
6799         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
6800         backward to forward direction.
6802         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
6804         [BZ #645]
6805         * locale/programs/ld-collate.c (collate_finish): Compare against last
6806         used section which is known to have rules defined.
6807         (collate_read): After order_start, correctly record order of sections
6808         and queue sections up.
6810 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
6812         [BZ #5071]
6813         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
6814         the same number of pages.
6815         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
6817         * locale/programs/ld-collate.c (collate_read): After initial copy
6818         statement, continue in state 0.
6820         * include/stdio_ext.h (__fsetlocking): Define as macro.
6822 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
6824         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
6825         of section order.
6827         * po/pt_BR.po: Fix typo.
6829 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
6831         * iconvdata/Makefile (modules): Add ISO8859-9E.
6832         (distribute): Add iso8859-9e.c.
6833         (gen-8bit-gap-modules): Add iso8859-9e.
6834         * iconvdata/iso8859-9e.c: New file.
6835         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
6836         * iconvdata/TESTS: Likewise.
6837         * iconvdata/tst-tables.sh: Likewise.
6839         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6841         * locale/iso-639.def: Add several new entries.
6843 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
6845         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
6846         void * pointers instead of struct link_map **.
6847         (_dl_scope_free): Change argument type to void *.
6848         * include/link.h (struct link_map): Change type of l_reldeps
6849         to struct link_map_reldeps, move l_reldepsact into that
6850         struct too.
6851         * elf/dl-deps.c: Include atomic.h.
6852         (_dl_map_object_deps): Only change l->l_initfini when it is
6853         fully populated, use _dl_scope_free for freeing it.  Optimize
6854         removal of libs from reldeps by using l_reserved flag, when
6855         some removal is needed, allocate a new list instead of
6856         reallocating and free the old with _dl_scope_free.  Adjust
6857         for l_reldeps and l_reldepsact changes.
6858         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
6859         searching in l_initfini and l_reldeps without holding dl_load_lock.
6860         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
6861         l_reldepsact changes.
6862         * elf/dl-close.c (_dl_close_worker): Likewise.
6863         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
6865 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
6867         * iconvdata/Makefile (modules): Add KOI8-RU.
6868         (distribute): Add koi8-ru.c.
6869         (gen-8bit-gap-modules): Add koi8-ru.
6870         * iconvdata/koi8-ru.c: New file.
6871         * iconvdata/gconv-modules: Add entries for KOI8-RU.
6872         * iconvdata/TESTS: Likewise.
6873         * iconvdata/tst-tables.sh: Likewise.
6875         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6877 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
6879         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
6880         with __warning__/__error__ attributes.
6881         (__warnattr): Define.
6882         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
6883         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
6884         __warnattr.
6885         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
6886         of __*_chk if compile time detectable overflow is found.
6887         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
6888         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
6889         with __warnattr.
6890         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
6891         instead of __*_chk if compile time detectable overflow is found.
6892         (__gets_alias): Rename to...
6893         (__gets_warn): ... this.  Add __warnattr.
6894         (gets): Call __gets_warn instead of __gets_alias.
6895         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
6896         aliases with __warnattr.
6897         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
6898         time detectable overflow is found.
6899         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
6900         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
6901         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
6902         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
6903         __getdomainname_chk_warn): New aliases with __warnattr.
6904         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
6905         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
6906         __*_chk_warn instead of __*_chk if compile time detectable overflow
6907         is found.
6908         (__getgroups_chk): Rename argument to __listlen from listlen.
6909         (__getwd_alias): Rename to...
6910         (__getwd_warn): ... this.  Add __warnattr.
6911         (getwd): Call __getwd_warn instead of __getwd_alias.
6912         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
6913         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
6914         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
6915         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
6916         __wcsnrtombs_chk_warn): New aliases with __warnattr.
6917         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
6918         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
6919         compile time detectable overflow is found.
6920         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
6921         to use __*_chk or not.
6922         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
6923         in comparisons which function should be called and in __*_chk*
6924         arguments.  Call __*_chk_warn instead of __*_chk if compile time
6925         detectable overflow is found.
6926         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
6927         __*_chk argument.
6928         * debug/tst-chk1.c (do_test): Add a few more tests.
6930 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
6932         [BZ #5058]
6933         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
6934         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
6935         (_nl_unload_domain): Finalize conversions_lock.
6936         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
6937         handling table of known conversions.
6939 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
6941         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
6942         close_not_cancel_no_status instead of close.
6944 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
6946         [BZ #5028]
6947         * posix/regcomp.c (lookup_collation_sequence_value): Check that
6948         nrules != 0 for multibyte chars.
6950 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
6952         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
6953         Provide better error message in case the type is unknown.
6955         [BZ #4963]
6956         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
6957         * string/stratcliff.c: Make usable to test wide char functions.
6958         * wcsmbs/wcsatcliff.c: New file.
6959         * wcsmbs/Makefiel (tests): Add wcsatcliff.
6961         [BZ #4972]
6962         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
6963         (distribute): Add mac-centraleurope.c.
6964         (gen-8bit-gap-modules): Add mac-centraleurope.
6965         * iconvdata/mac-centraleurope.c: New file.
6966         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
6967         * iconvdata/TESTS: Likewise.
6968         * iconvdata/tst-tables.sh: Likewise.
6970         [BZ #5043]
6971         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
6973 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
6975         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
6976         from __x86_64_core_cache_size_half.
6977         (init_cacheinfo): Compute shared cache size for AMD processors with
6978         shared L3 correctly.
6979         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
6980         name change.
6981         Patch in large parts by Evandro Menezes.
6983 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
6985         * elf/dl-lookup.c (add_dependency): Handle failing memory
6986         allocation for dependency list.  Remove unnecessary check.
6988         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
6989         open/close when determining source addresses.
6991         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
6992         sha512-crypt, and sha512.
6993         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
6994         (distribute): Add sha256.h and sha512.h.
6995         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
6996         and call the appropriate code.
6997         * crypt/sha256-crypt.c: New file.
6998         * crypt/sha256.c: New file.
6999         * crypt/sha256.h: New file.
7000         * crypt/sha256c-test.c: New file.
7001         * crypt/sha256test.c: New file.
7002         * crypt/sha512-crypt.c: New file.
7003         * crypt/sha512.c: New file.
7004         * crypt/sha512.h: New file.
7005         * crypt/sha512c-test.c: New file.
7006         * crypt/sha512test.c: New file.
7008 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
7010         * misc/bits/syslog.h (syslog): Remove extraneous argument from
7011         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
7012         __syslog_chk.
7014 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
7016         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
7017         %as in fscanf format strings.
7019         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
7020         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
7021         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
7022         Likewise.
7023         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
7024         Likewise.
7026         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
7027         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
7028         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
7029         * elf/dl-sym.c (do_sym): Likewise.
7030         * include/link.h (struct link_map): Add l_serial field.
7031         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
7032         * elf/dl-lookup.c (add_dependency): Add flags argument.
7033         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
7034         flags, use THREAD_GSCOPE_RESET_FLAG before and
7035         THREAD_GSCOPE_SET_FLAG after
7036         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
7037         Don't dereference map until it has been found on some list.
7038         If map->l_serial changed, return -1.
7040 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
7042         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
7043         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
7044         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
7045         libc_hidden_proto.
7046         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
7047         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
7048         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
7049         add libc_hidden_proto.
7050         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7051         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7052         conformance requested.
7053         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
7054         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7055         conformance requested.
7056         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7057         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
7058         conformance requested.
7059         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
7060         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
7061         ISO C99 or POSIX conformance requested.
7062         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
7063         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
7064         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
7065         and __isoc99_vsscanf@@GLIBC_2.7.
7066         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
7067         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
7068         (tests): Add scanf14.
7069         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
7070         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
7071         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
7072         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
7073         CFLAGS-isoc99_scanf.c): Add $(exceptions).
7074         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
7075         from using internal headers.
7076         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
7077         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
7078         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
7079         and __isoc99_vswscanf@@GLIBC_2.7.
7080         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
7081         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
7082         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
7083         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
7084         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
7085         * stdio-common/isoc99_scanf.c: New file.
7086         * stdio-common/isoc99_vsscanf.c: New file.
7087         * stdio-common/isoc99_vscanf.c: New file.
7088         * stdio-common/isoc99_vfscanf.c: New file.
7089         * stdio-common/isoc99_fscanf.c: New file.
7090         * stdio-common/isoc99_sscanf.c: New file.
7091         * wcsmbs/isoc99_fwscanf.c: New file.
7092         * wcsmbs/isoc99_vswscanf.c: New file.
7093         * wcsmbs/isoc99_swscanf.c: New file.
7094         * wcsmbs/isoc99_wscanf.c: New file.
7095         * wcsmbs/isoc99_vwscanf.c: New file.
7096         * wcsmbs/isoc99_vfwscanf.c: New file.
7097         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
7098         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
7099         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
7100         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
7101         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
7102         * stdio-common/scanf14.c: New test.
7103         * stdio-common/scanf15.c: New test.
7104         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
7105         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
7106         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
7107         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
7108         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
7109         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
7110         __nldbl___isoc99_scanf@@GLIBC_2.7,
7111         __nldbl___isoc99_fscanf@@GLIBC_2.7,
7112         __nldbl___isoc99_sscanf@@GLIBC_2.7,
7113         __nldbl___isoc99_vscanf@@GLIBC_2.7,
7114         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
7115         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
7116         __nldbl___isoc99_wscanf@@GLIBC_2.7,
7117         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
7118         __nldbl___isoc99_swscanf@@GLIBC_2.7,
7119         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
7120         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
7121         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
7122         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
7123         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
7124         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
7125         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
7126         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
7127         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7128         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
7129         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
7130         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
7131         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
7132         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
7133         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
7134         functions.
7135         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
7136         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
7137         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
7138         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
7139         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
7140         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
7141         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
7142         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
7143         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
7144         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
7145         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
7146         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
7148         * stdio-common/Makefile (tests): Add scanf13.
7149         (scanf13-ENV): New.
7150         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
7151         m modifier followed by l.
7152         (STRING_ARG): Add width argument.
7153         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
7154         <case L_('C')>: Handle %mlc and %mC.
7155         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
7156         arguments.
7157         * stdio-common/scanf13.c: New test.
7159         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
7160         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
7162 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
7164         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
7165         type and __THROW marker of splice, vmsplice, and tee.
7166         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7167         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7168         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7169         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7170         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7171         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7172         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7173         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
7174         as cancellation points.
7176 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
7178         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
7179         parse more than three parts of the version number.
7181 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
7183         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
7184         modifier.  Patch by Jakub Jelinek.
7186 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
7188         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
7189         call_fallocate in misc subdir.
7190         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
7191         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
7192         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
7193         instead of __fallocate64.
7194         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
7196 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
7198         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
7199         * rt/Makefile (headers): Add bits/mqueue2.h.
7200         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
7201         optimizing with GCC and __va_arg_pack_len is defined.
7202         * rt/bits/mqueue2.h: New file.
7203         * rt/mq_open.c (__mq_open): Renamed from mq_open.
7204         (mq_open): New strong_alias.
7205         (__mq_open_2): New function.
7206         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
7207         (mq_open): New strong_alias.
7208         (__mq_open_2): New function.
7209         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
7210         * Versions.def (librt): Add GLIBC_2.7 version.
7211         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
7212         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
7214         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
7215         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
7216         is defined rather than when not C++.
7217         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
7218         __openat64_alias): New redirects.
7219         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
7220         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
7221         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
7222         (open, open64, openat, openat64): Rewrite as __extern_always_inline
7223         functions instead of function-like macros.
7225 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
7227         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
7228         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
7229         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
7231 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
7233         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
7234         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
7236 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
7238         * inet/tst-network.c: Increment ERRORS for failing tests.
7240 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
7242         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
7243         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
7244         implement as __extern_always_inline function.
7245         (vsyslog): Define as __extern_always_inline function unconditionally.
7246         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
7247         When __va_arg_pack is defined, implement as __extern_always_inline
7248         functions.
7249         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7250         __extern_always_inline functions unconditionally.
7251         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
7252         bits/stdio2.h will be included.
7253         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
7254         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
7255         implement as __extern_always_inline functions.
7256         (vswprintf, vwprintf, vfwprintf): Define as
7257         __extern_always_inline functions unconditionally.
7258         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
7260 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
7262         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
7263         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
7264         attribute.
7265         * include/features.h (__USE_EXTERN_INLINES): Define only when
7266         __extern_inline is defined.
7267         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
7268         is defined instead of when not __cplusplus.
7269         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
7270         is defined instead of when not __cplusplus.
7271         * socket/sys/socket.h: Include bits/socket2.h when
7272         __extern_always_inline is defined instead of when not __cplusplus.
7273         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
7274         is defined instead of when not __cplusplus.
7275         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
7276         is defined instead of when not __cplusplus.
7277         * string/string.h: Include bits/string3.h when __extern_always_inline
7278         is defined instead of when not __cplusplus.
7279         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
7280         is defined instead of when not __cplusplus.
7281         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
7282         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
7283         is not defined.
7284         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
7285         defined __extern_always_inline instead of !defined __cplusplus.
7286         * libio/bits/stdio-ldbl.h: Likewise.
7287         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7288         * misc/bits/syslog.h (syslog): Don't define for C++.
7289         (vsyslog): Use __extern_always_inline function for C++ instead of
7290         a macro.
7291         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
7292         whenever that macro is defined.
7293         (vprintf): Don't provide the inline for C++.
7294         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
7295         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
7296         define the macros for C++.
7297         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7298         __extern_always_inline functions for C++.
7299         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
7300         stat64, lstat64, fstat64, fstatat64): Don't define if not
7301         __USE_EXTERN_INLINES.
7302         * wcsmbs/bits/wchar2.h: Fix #error message.
7303         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
7304         (vswprintf, vwprintf, vfwprintf): Define using
7305         __extern_always_inline functions for C++.
7306         * string/bits/string3.h: Don't #undef macros if __cplusplus.
7307         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
7308         strncpy, strcat, strncat): Define as __extern_always_inline
7309         functions instead of macros for C++.
7310         * math/bits/cmathcalls.h: Guard __extern_inline routines with
7311         defined __extern_inline.
7312         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
7313         to __extern_inline whenever that macro is defined.
7314         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7315         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7316         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
7317         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
7318         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7319         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7320         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7321         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7322         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
7323         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
7324         prototypes.  Only provide __extern_inline routines if
7325         __USE_EXTERN_INLINES.
7326         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
7327         tests.
7328         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
7329         For now avoid some *printf tests in C++.  Skip all testing
7330         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
7331         is not.
7332         * debug/tst-chk4.cc: New file.
7333         * debug/tst-chk5.cc: New file.
7334         * debug/tst-chk6.cc: New file.
7335         * debug/tst-lfschk4.cc: New file.
7336         * debug/tst-lfschk5.cc: New file.
7337         * debug/tst-lfschk6.cc: New file.
7338         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
7339         prototypes in C++.
7340         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
7341         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
7342         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
7344 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
7346         * po/cs.po: Update from translation team.
7348 2007-09-11  Roland McGrath  <roland@redhat.com>
7350         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
7351         compiling.
7353 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7355         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
7357 2007-09-05  Roland McGrath  <roland@redhat.com>
7359         * manual/signal.texi (Signaling Another Process): Typo fix.
7360         From Karl Berry <karl@freefriends.org>.
7362 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
7364         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
7365         zero if not defined.
7366         (make_request): Recognize optimistic addresses and treat them like
7367         deprecated addresses.
7368         Reported by Neil Horman <nhorman@redhat.com>.
7370 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
7372         * nscd/connections.c (send_ro_fd): Also transfer file size.
7373         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
7374         file size don't call fstat.
7376         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
7377         ahead and map the file.  This should always be correct and we can
7378         catch problems later.
7380 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
7382         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
7383         prototypes.
7384         (__fread_alias, __fread_unlocked_alias): New aliases.
7385         (fread): New extern inline.
7386         (fread_unlocked): Likewise.  Undef macro before definition of
7387         the inline function.
7388         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
7389         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
7390         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
7391         and __fread_unlocked_chk@@GLIBC_2.7.
7392         * debug/fread_chk.c: New file.
7393         * debug/fread_u_chk.c: New file.
7394         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
7396 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
7398         * sysdeps/unix/sysv/linux/syscalls.list
7399         (personality): Change caller to EXTRA.
7401 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
7403         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
7404         to keep gcc quiet.
7405         * iconvdata/iso-2022-cn.c (BODY): Likewise.
7407         * locale/programs/ld-collate.c (collate_output): Avoid warning if
7408         NDEBUG is defined.
7410         * Makerules: Use -p option with mkdir.
7412         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
7413         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
7414         (_xdr_directory_obj): Likewise.
7415         (xdr_entry_obj): Likewise.
7416         (xdr_group_obj): Likewise.
7417         (xdr_link_obj): Likewise.
7418         (xdr_table_obj): Likewise.
7419         (_xdr_nis_result): Likewise.
7420         (_xdr_ns_request): Likewise.
7421         (_xdr_ib_request): Likewise.
7422         (_xdr_nis_taglist): Likewise.
7423         (xdr_cback_data): Likewise.
7424         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
7425         (xdr_ypresp_maplist): Likewise.
7427         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
7429         * posix/regex_internal.h: Prevent some declarations and definitions
7430         to be seen when used in tests.
7432         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
7433         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
7435         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
7437         * config.make.in (datarootdir): Add to shut up configure.
7439         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
7440         associativity for fully-associative caches.
7442         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
7443         requests.  Fill on more associativity values for L2.
7444         Patch mostly by Evandro Menezes.
7446 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
7448         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7449         (_libc_vdso_platform_setup): Avoid using exported variable by using
7450         alias.
7452         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
7454         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
7455         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
7456         defined.
7458 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
7460         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
7461         align stack for call if pltexit is to be used.
7463         [BZ #3924]
7464         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
7465         align for function call in case pltexit has to be called later.
7467         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
7468         implicit atomic operation when storing function pointer.
7469         (_dl_runtime_profile): Likewise.
7471 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
7473         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
7474         NIS_NOTFOUND.
7476 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
7478         [BZ #4566]
7479         * string/strtok.c: Fix typo in comment.
7481         [BZ #4582]
7482         * debug/segfault.c: Fix typos in comments.
7484         [BZ #4588]
7485         * stdio-common/tempnam.c: Fix comment, it is not checked that
7486         TMPDIR points to a writable directory.
7488         [BZ #4726]
7489         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
7490         memory allocated for the name server address.
7492         [BZ #4946]
7493         * nscd/connections.c (handle_request): Using sendfile always
7494         requires that mmap is used for the database.
7495         Patch by Petr Baudis <pasky@suse.cz>.
7497         [BZ #4905]
7498         * nscd/hstcache.c (cache_addhst): When reloading an entry which
7499         suddenly has two or more addresses, ignore it and remove the old
7500         entry.
7502         [BZ #4814]
7503         * resolv/res_hconf.c: Prepare for compiling outside libc.
7504         * nscd/res_hconf.c: New file.
7505         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
7506         the new file.
7507         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
7508         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
7510         * nscd/hstcache.c (cache_addhst): Minimal optimization.
7512         [BZ #4925]
7513         * debug/pcprofiledump.c: Turn on internationalization by calling
7514         setlocale.  Patch mostly by Benno Schulenberg.
7516         [BZ #4936]
7517         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
7518         the state.
7519         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
7520         * iconvdata/bug-iconv5.c: New file.
7522 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
7524         [BZ #4896]
7525         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
7526         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
7527         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
7528         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
7529         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
7530         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
7531         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
7532         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
7534 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
7536         [BZ #4937]
7537         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
7538         lookup loop.  Suggested by John Reiser.
7540 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
7542         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
7544 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
7546         * csu/libc-start.c: Don't handle VDSO_SETUP here.
7547         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
7548         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
7549         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
7550         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
7551         to...
7552         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
7554 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
7556         * po/nl.po: Update from translation team.
7558 2007-08-16  Andreas Jaeger  <aj@suse.de>
7560         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
7561         Reported by Peter Festner <peter.festner@ewetel.net>.
7563 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
7565         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
7567 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
7569         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
7570         to check for undefined symbols.
7572         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
7573         If the syscall fails, set errno to the actual returned error number
7574         rather than EINVAL.
7575         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
7576         arguments are incorrect, set errno to EINVAL, if the syscall
7577         fails, set errno to the actual returned error number.
7579         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
7580         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
7582         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
7583         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
7584         file.
7585         (ASI_PNF, ASI_BLK_P): Don't define.
7586         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
7587         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
7588         file.
7589         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
7590         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
7591         file.
7593 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
7595         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
7596         FE_UNDERFLOW on Niagara CPUs.
7598         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
7599         exceptions.
7601 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
7603         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
7604         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
7605         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
7606         flush should be used or not inside of the function.
7607         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
7609         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
7610         __thread_start): Use HIDDEN_JUMPTARGET.
7611         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
7612         __thread_start): Likewise.
7613         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
7615         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
7616         Add libc_hidden_proto.
7617         (STRTOF): Add libc_hidden_proto.
7618         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
7619         (strtold_l, wcstold_l): Use them as second argument for
7620         long_double_symbol.
7622 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
7624         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
7626 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7628         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
7630 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
7632         * po/bg.po: New file.  From the translation team.
7634 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
7636         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
7637         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
7638         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
7639         when each feature was introduced.
7641         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
7642         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
7643         (CHECK_HASH): New macro.
7644         (PREPARE_VERSION): Use it.
7646         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
7647         prototype if not __ASSUME_PSELECT.
7648         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
7649         prototype if not __ASSUME_PPOLL.
7651         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
7653         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
7654         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
7655         is defined.
7657 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
7659         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7660         (_libc_vdso_platform_setup): If vDSO is not available point
7661         __vdso_gettimeofday to the vsyscall.
7662         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
7663         __vdso_gettimeofday instead of vsyscall.
7665 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
7667         * nscd/servicescache.c: Include kernel-features.h.
7668         * nscd/gai.c: Likewise.
7669         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
7670         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
7671         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
7672         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
7673         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
7674         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
7675         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
7676         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
7677         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
7679 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
7681         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
7682         and _dl_get_origin defines anymore.
7684         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
7685         Build fix for systems which might lack POSIX timer support.
7687         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7688         (_libc_vdso_platform_setup): Mangle function pointers before storing
7689         them.
7690         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
7691         Demangle vdso pointer before use.
7692         (INTERNAL_VSYSCALL): Likewise.
7694         * elf/cache.c (primes): Mark as const.
7695         Noted by Roland McGrath.
7697 2007-08-01  Andreas Jaeger  <aj@suse.de>
7698             Jakub Jelinek  <jakub@redhat.com>
7700         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
7701         (options): Add option.
7702         (parse_opt): Handle option.
7703         (manual_link): Adjust process_file caller.  Call implicit_soname.
7704         (search_dir): Formatting.  Use and populate auxiliary cache.
7705         (main): Load and save auxiliary cache.
7706         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
7707         stat64 from fstat64 to caller.
7708         (implicit_soname): New function.
7709         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
7710         leave *soname as NULL.
7711         * elf/cache.c: Include libgen.h.
7712         (print_entry, print_cache, compare, save_cache, add_to_cache):
7713         Formatting and cleanups.
7714         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
7715         aux_cache_file): New structures.
7716         (AUX_CACHEMAGIC): Define.
7717         (primes): New array.
7718         (aux_hash_size, aux_hash): New variables.
7719         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
7720         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
7721         load_aux_cache, save_aux_cache): New functions.
7722         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
7723         (init_aux_cache, search_aux_cache, add_to_aux_cache,
7724         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
7725         (process_file): Adjust prototype.
7727 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
7729         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
7730         with __need_size_t.
7732 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
7734         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
7735         r_found_version structure as second parameter.
7736         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
7737         (_dl_vdso_vsym): Change type of second parameter accordingly.
7738         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
7739         (_libc_vdso_platform_setup): Adjust.
7740         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7741         (_libc_vdso_platform_setup): Likewise.
7743         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
7744         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
7745         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
7746         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
7747         * csu/libc-start.c: Pretty printing.
7748         Use VDSO_SETUP if defined.
7749         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
7750         and let generic code call into _libc_vdso_platform_setup.
7751         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
7752         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
7753         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
7754         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
7755         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
7756         for GLIBC_PRIVATE.
7757         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
7758         (sysdep_rountines): Add dl-vdso.
7760         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
7761         of routines.
7763         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
7764         attribute_hidden to __vdso_gettimeofday prototype.
7766 2007-08-12  Roland McGrath  <roland@redhat.com>
7768         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
7769         From: Karl Berry <karl@freefriends.org>.
7771 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
7773         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
7774         an atime update for the files we read.
7776 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
7778         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
7780         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
7781         instead of mkstemp.
7783         * misc/Makefile (routines): Add mkostemp and mkostemp64.
7784         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
7785         * misc/mkostemp.c: New file.
7786         * misc/mkostemp64.c: New file.
7787         * stdlib/stdlib.h: Declare the new functions.
7788         * sysdeps/posix/tempname.c: Add new parameter which is added to
7789         the flags for open.  Remove __GT_BIGFILE handling.
7790         * stdio-common/tempname.c: Likewise.
7791         * include/stdio.h: Adjust __gen_tempname prototype.
7792         Renumber __GT_* constants.
7793         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
7794         * misc/mkdtemp.c: Likewise.
7795         * misc/mkstemp.c: Likewise.
7796         * misc/mkstemp64.c: Likewise.
7797         * misc/mktemp.c: Likewise.
7798         * stdio-common/tempnam.c: Likewise.
7799         * stdio-common/tmpfile.c: Likewise.
7800         * stdio-common/tmpfile64.c: Likewise.
7801         * stdio-common/tmpnam.c: Likewise.
7802         * stdio-common/tmpnam_r.c: Likewise.
7804 2007-08-10  Roland McGrath  <roland@frob.com>
7806         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
7807         New macros.
7808         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
7809         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7811 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
7813         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
7814         possible.
7815         * nss/nss_files/files-alias.c (internal_setent): Likewise.
7816         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
7817         * nss/nss_files/files-have_o_cloexec.c: New file.
7819         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
7820         available.
7822 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
7824         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
7825         ___new_wcstold_l): New weak aliases.
7826         (strtold_l, wcstold_l): Use them as second argument for
7827         long_double_symbol.
7829 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
7831         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
7832         register in test for error.
7834         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
7835         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
7837         * po/sv.po: Update from translation team.
7839 2007-08-06  Roland McGrath  <roland@redhat.com>
7841         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
7842         Remove __strto*_l inlines.
7843         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
7844         * stdlib/strtod.c: Add libc_hidden_def.
7845         * stdlib/strtod_l.c: Likewise.
7846         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
7847         for __new_strtold and __new_wcstold.
7848         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
7849         __STRTOF, STRTOF.
7850         * stdlib/strtol.c: Add libc_hidden_def.
7851         * stdlib/strtol_l.c: Likewise.
7852         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
7853         strtoq.
7855         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
7857         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
7858         * scripts/data/localplt-generic.data: ... here.
7859         * elf/Makefile (check-data): Get generic file if no other.
7860         ($(objpfx)check-localplt.out): Make target unconditional.
7862         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
7863         Use ElfW(Nhdr).
7865 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
7867         * po/zh_CN.po: Updated translation from translation team.
7869 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
7871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
7872         Don't use CGOTSETUP and CGOTRESTORE macros.
7874 2007-08-04  Roland McGrath  <roland@redhat.com>
7876         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
7878 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
7880         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
7881         __extension__ around the whole statement expression.
7883 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
7885         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
7886         elements during initialization.
7888         * po/pl.po: Updated translation from translation team.
7889         * po/tr.po: Likewise.
7890         * po/nl.po: Likewise.
7892 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
7894         * rt/aio.h: Add __nonnull attributes.
7896 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
7898         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
7899         * stdlib/Makefile (tests): Add tst-strtod5.
7900         (tst-strtod5-ENV): New.
7901         * stdlib/tst-strtod5.c: New file.
7903         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
7904         failed.
7905         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
7906         on failure.
7908         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
7909         allocated.
7911 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
7913         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
7914         numbers.
7916 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
7918         * io/Makefile (aux): Add have_o_cloexec.
7919         * include/fcntl.h: Declare __have_o_cloexec.
7920         * io/have_o_cloexec.c: New file.
7921         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
7922         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
7923         fcntl call if not necessary.
7924         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
7925         of local variable.
7927         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
7928         Avoid memset, add explicit initialization.
7929         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
7930         to the end and change into zero-sized array.
7931         Move lock member to fill a hole on 64-bit platforms.
7933         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
7934         inline functions.
7935         * include/stdlib.h: Add __strto*_internal prototypes here.
7936         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
7937         inline functions.
7938         * include/wchar.h: Add __wcsto*_internal prototypes.
7939         * sysdeps/generic/inttypes.h: No need to protect the declaration
7940         of the __strto*_internal and __wcsto*_internal members here.
7942         * rt/mqueue.h: Change const to __const and add nonnull attributes.
7944 2007-08-02  Roland McGrath  <roland@redhat.com>
7946         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
7947         $(inst_bindir)/getconf if possible.
7949         * posix/Makefile ($(objpfx)getconf.speclist): New target.
7950         (generated): Add it.
7951         ($(inst_libexecdir)/getconf): Use it.
7953 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
7955         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
7956         /proc is faster and sufficient.  /sys is still needed for
7957         __get_nprocs_conf.
7959 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
7961         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
7962         syscall as __fallocate64.
7963         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
7964         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
7966 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
7968         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
7969         value.
7971         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
7972         if off_t is different rank from size_t.
7974         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
7975         uw_frame_state_for): Avoid type punning warnings.
7976         * sysdeps/generic/unwind-dw2-fde-glibc.c
7977         (_Unwind_IteratePhdrCallback): Likewise.
7978         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
7979         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
7980         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
7981         pointers.
7983 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
7985         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
7986         total processors using sysfs.
7987         (__get_nprocs): Use sysfs to determine which processors are online.
7989 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
7991         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
7992         syscall arguments count.
7994         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
7996 2007-07-30  Roland McGrath  <roland@redhat.com>
7998         * manual/libc.texinfo: Update copyrights, formatting magic, and
7999         @dircategory.  From Karl Berry <karl@freefriends.org>.
8001 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
8003         [BZ #4860]
8004         * io/Makefile (headers): Add bits/fcntl2.h.
8006         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
8007         using gcc builtin.
8008         (__CPU_EQUAL_S): Likewise.
8010         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
8011         (tests): Add tst-cpuset.
8012         * posix/sched_cpualloc.c: New file.
8013         * posix/sched_cpufree.c: New file.
8014         * posix/tst-cpuset.c: New file.
8015         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
8016         GLIBC_2.7.
8017         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
8018         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
8019         macros.  Define CPU_*_S macros.
8021 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
8023         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
8024         entry.
8026         [BZ #4858]
8027         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
8028         #.0g and value rounded to 1.0.
8029         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
8031 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
8033         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
8034         for int_frac_digits and frac_digits.
8036         * login/logout.c (logout): Avoid aliasing violation.
8037         * login/logwtmp.c (logwtmp): Likewise.
8039         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
8041         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
8042         to avoid warning.
8043         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
8044         warning.
8045         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
8046         warning.
8047         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
8048         to avoid warnings.
8050         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
8051         void **.
8052         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
8054         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
8055         char * to avoid warning.
8056         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
8058         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
8060         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
8061         allocate_arrays): Cast second argument to charmap_find_symbol
8062         to char * to avoid warnings.
8064         * locale/programs/repertoire.c (repertoire_new_char): Change
8065         from_nr, to_nr and cnt to unsigned long, adjust printf format
8066         string.
8068         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
8069         Cast second argument to new_element to char * to avoid warnings.
8071         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
8073         * intl/gettextP.h (struct loaded_domain): Change plural to const
8074         struct expression *.
8075         * intl/plural-eval.c (plural_eval): Change first argument to
8076         const struct expression *.
8077         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
8078         argument to const struct expression **.
8079         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
8080         prototypes.
8081         * intl/loadmsgcat (_nl_unload_domain): Cast away const
8082         in call to __gettext_free_exp.
8084         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
8085         unitialized wstring/wpattern var warnings.
8087         * posix/runtests.c (struct a_test): Make data field const char *.
8089         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
8090         vars if not LDBL_MANT_DIG >= 106.
8092         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
8094         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
8095         __find_specmb to avoid warning.
8097         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
8099         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
8100         to avoid warnings.
8102         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
8103         initializer.
8105         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
8106         tv var when it will be actually used.
8108         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
8109         to avoid warnings.
8111         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
8112         char array resp. pointer.
8113         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
8114         char array.
8115         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
8116         to const unsigned char **.
8117         (ucs4_to_cns11643): Change second argument to unsigned char *.
8118         * iconvdata/euc-tw.c (BODY): Change endp type to
8119         const unsigned char *.
8120         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
8121         to unsigned char *.
8122         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
8123         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
8124         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
8125         types to unsigned char pointers/arrays instead of char.
8126         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
8127         to unsigned char *.
8128         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
8129         * iconvdata/jis0212.h: Include assert.h.
8130         (ucs4_to_jisx0212): Change second argument to unsigned char *.
8131         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
8132         of trying to handle that.
8133         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
8134         shut up a warning.
8135         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
8136         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
8137         two dimensional const unsigned char arrays.
8138         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
8139         Initialize endp to inptr to shut up a warning.
8141 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
8143         [BZ #4772]
8144         * time/strptime_l.c (__strptime_internal): Silently ignore
8145         strftime modifiers and field width in recursive calls.
8147         * include/time.h (enum ptime_locale_status): Remove.
8148         (__strptime_internal): Remove decided and era_cnt arguments,
8149         add statep argument.
8150         * time/strptime_l.c (__strptime_internal): Remove decided
8151         and era_cnt arguments, add statep argument.  Don't recompute
8152         any fields in recursive calls, only update caller's tm
8153         and state, if recursive call fails, don't change tm nor
8154         any state.
8155         (get_alt_number): Adjust.
8156         (recursive): Adjust caller.
8157         (strptime): Likewise.
8158         * time/strptime.c (strptime): Likewise.
8160 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
8162         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
8163         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
8164         if from and to charsets are the same.
8165         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
8166         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
8167         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
8169 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
8171         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
8172         Don't define wint_t when __need_mbstate_t unless it
8173         is necessary.
8174         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
8175         in the typedef if possible.
8176         * wctype/wctype.h (wint_t): Define by including
8177         wchar.h with __need_wint_t instead of including stddef.h
8178         with __need_wint_t and as fallback definining it ourselves.
8179         * iconv/gconv.h (__need_wint_t): Define before including
8180         wchar.h.
8181         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
8182         or _GLIBCPP_USE_WCHAR_T.
8183         (__need_wchar_t): Don't define
8184         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8185         (__need_wint_t): Don't define before including stddef.h,
8186         define before including wchar.h only if _LIBC or
8187         _GLIBCPP_USE_WCHAR_T.
8188         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8189         * sysdeps/mach/hurd/_G_config.h: Likewise.
8190         * sysdeps/generic/_G_config.h: Likewise.
8191         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
8192         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
8193         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
8194         if _LIBC or _GLIBCPP_USE_WCHAR_T.
8196 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
8198         * sysdeps/posix/posix_fallocate64.c: Undefine
8199         __posix_fallocate64_l64 before alias handling.
8200         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
8201         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
8202         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
8203         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
8205         * io/tst-posix_fallocate.c: Include <fcntl.h>.
8207 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
8209         * locale/programs/ld-collate.c (atwc): New variable.
8210         (add_to_tablewc): New toplevel function, moved from collate_output.
8211         (collate_output): Remove add_to_tablewc nested function.
8213         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
8214         (name_insert): New function.
8215         (write_output): Remove hash_table and hash_size vars and name_insert
8216         nested function.
8218 2007-07-24  Roland McGrath  <roland@redhat.com>
8220         * Makerules (install-others-programs-nosubdir): New target.
8221         (install-no-libc.a-nosubdir): Depend on it.
8223         * iconv/Makefile (install-others-programs): Set this instead of
8224         install-others.
8225         * login/Makefile (install-others-programs): Likewise.
8226         * posix/Makefile (install-others-programs): Likewise.
8228         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
8229         dependencies.
8231 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
8233         * io/Makefile (tests): Add tst-posix_fallocate.
8234         * io/tst-posix_fallocate.c: New file.
8236         * sysdeps/unix/sysv/linux/kernel-features.h: Define
8237         __ASSUME_FALLOCATE.
8239 2007-07-22  Roland McGrath  <roland@frob.com>
8241         * hurd/getdport.c: Add missing copyright year update.
8243         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
8244         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
8246 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
8248         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
8250         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
8251         O_CLOEXEC is needed.
8252         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
8253         Avoid additional fcntl to set O_CLOEXEC if not needed.
8254         * nis/nss_compat/compat-initgroups.c: Likewise.
8255         * nis/nss_compat/compat-pwd.c: Likewise.
8256         * nis/nss_compat/compat-spwd.c: Likewise.
8258 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8260         [BZ #3665]
8261         * manual/errno.texi: Change ECANCELED value to 119.
8263         [BZ #4610]
8264         * mach/lock-intern.h: Include <sys/cdefs.h>.
8266         [BZ #4178]
8267         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
8268         reading A.
8270         [BZ #4126]
8271         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
8272         to __sigsuspend.
8274         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
8276 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
8278         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
8279         `__ASSEMBLER__'.
8280         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8282 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
8284         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
8285         descriptor received from nscd.
8287         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
8289         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
8290         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8291         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8292         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8293         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8294         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8296 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
8298         [BZ #4816]
8299         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
8301         [BZ #4813]
8302         * login/forkpty.c (forkpty): Close master and slave fds on
8303         fork failure.  Patch by
8304         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
8306 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
8308         * include/features.h (__USE_ISOC95): New define.
8309         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
8310         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
8311         for -std=iso9899:199409.
8312         * CONFORMANCE: Remove comments about unsupported AMD1.
8314 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
8316         * sysdeps/ia64/sched_cpucount.c: New file.
8317         * sysdeps/powerpc/sched_cpucount.c: New file.
8319         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
8320         __BEGIN_DECLS/__END_DECLS around the prototype.
8321         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
8322         pointer to const cpu_set_t.
8324         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
8325         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
8326         __need_size_t and include stddef.h.
8327         * sysvipc/sys/msg.h: Likewise.
8328         * posix/sched.h: Likewise.
8329         * hurd/hurd/signal.h (__need_size_t): Define.
8331         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
8332         neither does signal.h in pedantic ISO C namespaces.  stdio.h
8333         no longer defines wint_t or wchar_t.
8335         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
8336         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
8337         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
8338         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
8339         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
8340         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
8341         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
8342         * debug/printf_chk.c (__printf_chk): Likewise.
8343         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
8344         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
8346         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
8347         Define.
8349         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
8350         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
8352 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
8354         [BZ #4792]
8355         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
8356         * malloc/malloc.h (realloc): Likewise.
8358         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
8359         if one of proc_file_chain streams has that fileno.
8360         * stdio-common/Makefile (tests): Add tst-popen2.
8361         * stdio-common/tst-popen2.c: New test.
8363 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
8365         * elf/ldconfig.c: Allow GPLv2 or any later version.
8366         * elf/readlib.c: Likewise.
8367         * elf/chroot_canon.c: Likewise.
8368         * elf/cache.c: Likewise.
8369         * nscd/mem.c: Likewise.
8370         * nscd/getpwuid_r.c: Likewise.
8371         * nscd/grpcache.c: Likewise.
8372         * nscd/aicache.c: Likewise.
8373         * nscd/getsrvbynm_r.c: Likewise.
8374         * nscd/nscd.c: Likewise.
8375         * nscd/servicescache.c: Likewise.
8376         * nscd/getsrvbypt_r.c: Likewise.
8377         * nscd/initgrcache.c: Likewise.
8378         * nscd/gethstbyad_r.c: Likewise.
8379         * nscd/gethstbynm2_r.c: Likewise.
8380         * nscd/getgrnam_r.c: Likewise.
8381         * nscd/nscd_setup_thread.c: Likewise.
8382         * nscd/getpwnam_r.c: Likewise.
8383         * nscd/gai.c: Likewise.
8384         * nscd/connections.c: Likewise.
8385         * nscd/dbg_log.c: Likewise.
8386         * nscd/cache.c: Likewise.
8387         * nscd/hstcache.c: Likewise.
8388         * nscd/nscd_conf.c: Likewise.
8389         * nscd/getgrgid_r.c: Likewise.
8390         * nscd/pwdcache.c: Likewise.
8391         * catgets/gencat.c: Likewise.
8392         * locale/programs/linereader.h: Likewise.
8393         * locale/programs/locarchive.c: Likewise.
8394         * locale/programs/ld-paper.c: Likewise.
8395         * locale/programs/locfile-kw.h: Likewise.
8396         * locale/programs/ld-address.c: Likewise.
8397         * locale/programs/xmalloc.c: Likewise.
8398         * locale/programs/ld-time.c: Likewise.
8399         * locale/programs/localedef.c: Likewise.
8400         * locale/programs/simple-hash.c: Likewise.
8401         * locale/programs/xstrdup.c: Likewise.
8402         * locale/programs/ld-numeric.c: Likewise.
8403         * locale/programs/locfile-kw.gperf: Likewise.
8404         * locale/programs/ld-collate.c: Likewise.
8405         * locale/programs/charmap-kw.gperf: Likewise.
8406         * locale/programs/charmap.h: Likewise.
8407         * locale/programs/charmap-kw.h: Likewise.
8408         * locale/programs/config.h: Likewise.
8409         * locale/programs/locfile.c: Likewise.
8410         * locale/programs/ld-ctype.c: Likewise.
8411         * locale/programs/charmap.c: Likewise.
8412         * locale/programs/ld-messages.c: Likewise.
8413         * locale/programs/repertoire.h: Likewise.
8414         * locale/programs/locale.c: Likewise.
8415         * locale/programs/ld-name.c: Likewise.
8416         * locale/programs/linereader.c: Likewise.
8417         * locale/programs/locfile.h: Likewise.
8418         * locale/programs/3level.h: Likewise.
8419         * locale/programs/ld-monetary.c: Likewise.
8420         * locale/programs/ld-measurement.c: Likewise.
8421         * locale/programs/charmap-dir.c: Likewise.
8422         * locale/programs/ld-identification.c: Likewise.
8423         * locale/programs/localedef.h: Likewise.
8424         * locale/programs/charmap-dir.h: Likewise.
8425         * locale/programs/repertoire.c: Likewise.
8426         * locale/programs/simple-hash.h: Likewise.
8427         * locale/programs/ld-telephone.c: Likewise.
8428         * locale/programs/locale-spec.c: Likewise.
8429         * locale/programs/locfile-token.h: Likewise.
8430         * posix/getconf.c: Likewise.
8431         * iconv/dummy-repertoire.c: Likewise.
8432         * iconv/iconv_charmap.c: Likewise.
8433         * iconv/iconvconfig.c: Likewise.
8434         * iconv/iconv_prog.c: Likewise.
8435         * malloc/memusagestat.c: Likewise.
8436         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
8438 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8440         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
8441         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
8442         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
8443         check for the first argument.
8445 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
8447         [BZ #4775]
8448         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
8449         (__tgmath_real_type): Fix if expr is const int or other const
8450         qualified integral type.
8451         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
8452         expressions and handle const qualified arguments.
8453         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
8454         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
8455         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
8456         statement expressions.
8457         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
8458         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
8459         (__TGMATH_UNARY_IMAG): Define.
8460         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
8461         * math/Makefile (tests): Add test-tgmath2.
8462         (CFLAGS-test-tgmath2.c): Add.
8463         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
8464         count_cfloat, count_cldouble): New variables.
8465         (NCCALLS): Define.
8466         (main): Check number of complex calls as well.
8467         (F(compile_test)): Add complex tests and tests with const qualified
8468         arguments.
8469         (y, z, ccount): Define.
8470         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
8471         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
8472         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
8473         F(cproj)): New functions.
8474         * math/test-tgmath2.c: New test.
8476 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
8478         [BZ #4776]
8479         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
8480         RPATH etc. as "/" rather than "", don't segfault on empty paths,
8481         instead output ".".
8482         * dlfcn/Makefile (distribute): Add glreflib3.c.
8483         (module-names): Add glreflib3.
8484         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
8485         glreflib1.so.
8486         (LDFLAGS_glreflib3.so): New.
8487         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
8488         glreflib1.so.
8489         * dlfcn/glreflib3.c: New file.
8491         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
8492         returned -1, return NULL.
8493         * intl/explodename.c (_nl_explode_name): Return -1 if
8494         _nl_normalize_codeset failed.
8496 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
8498         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
8499         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
8500         and avoid branch misspredicts for > 31 bytes memset case.
8501         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
8502         Remove toc ref to __cache_line_size.
8504         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
8505         to get ISA-V2.0 branch hints.
8506         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
8507         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
8508         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
8509         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
8510         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
8511         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
8512         Remove toc ref to __cache_line_size.
8514         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
8515         Include math_ldbl_opt.h.
8517 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
8519         [BZ #4773]
8520         * time/strptime_l.c (__strptime_internal): Implement greedy
8521         matching of weekday and month names.
8523 2007-07-09  Roland McGrath  <roland@redhat.com>
8525         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
8526         (ELF_NOTE_ABI): Use it.
8527         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
8529 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
8531         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
8532         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
8534 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
8536         [BZ #4745]
8537         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
8538         in loop to look for conversion specifier to avoid testing of
8539         wrong errno value.
8540         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
8541         * stdio-common/bug18.c: New file.
8542         * stdio-common/bug18a.c: New file.
8543         * stdio-common/bug19.c: New file.
8544         * stdio-common/bug19a.c: New file.
8546 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
8548         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
8549         running awk script.
8551 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
8553         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
8554         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
8555         Return NULL if mmap failed instead of asserting it does not.
8556         (calloc): Check for integer overflow.
8558         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
8559         than LONG_MAX / 10.
8561 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
8563         [BZ #4702]
8564         * nis/nss-default.c: Include errno.h.
8565         (init): Preserve errno.
8567 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
8569         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
8571 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
8573         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
8575 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8577         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
8579 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8581         * sysdeps/s390/dl-procinfo.c: New file.
8582         * sysdeps/s390/dl-procinfo.h: New file.
8583         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
8585 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
8587         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
8588         in PT_NOTE segments with multiple notes.
8589         * elf/readelflib.c (process_elf_file): Likewise.
8591 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
8593         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
8594         ISO C compliant.
8596 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
8598         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
8600 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
8602         * include/link.h: Don't include rtld-lowlevel.h.
8603         (struct link_map): Remove l_scope_lock.
8604         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
8605         (_dl_scope_free_list): New field (variable) in _rtld_global.
8606         (DL_LOOKUP_SCOPE_LOCK): Remove.
8607         (_dl_scope_free): New prototype.
8608         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
8609         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
8610         (_dl_profile_fixup): Likewise.
8611         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
8612         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
8613         THREAD_GSCOPE_RESET_FLAG around it.
8614         * elf/dl-close.c (_dl_close_worker): Don't use
8615         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
8616         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
8617         scopes were queued or if l_scope_mem has been abandoned.
8618         * elf/dl-open.c (_dl_scope_free): New function.
8619         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
8620         * elf/dl-support.c (_dl_scope_free_list): New variable.
8621         * elf/dl-lookup.c (add_dependency): Remove flags argument.
8622         Remove DL_LOOKUP_SCOPE_LOCK handling.
8623         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
8624         handling.
8625         * elf/dl-object.c (_dl_new_object): Don't use
8626         __rtld_mrlock_initialize.
8628 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
8630         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
8631         to fill in holes
8632         (rtld_global_ro): Likewise.
8634 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
8636         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
8637         Move PT_LOAD checking to...
8638         (_dl_addr_inside_object): ... here, new function.
8639         * elf/dl-sym.c (do_sym): If not l_contiguous,
8640         call _dl_addr_inside_object.
8641         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
8642         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
8643         * elf/dl-open.c (dl_open_worker): Likewise.
8644         (_dl_addr_inside_object): New function if IS_IN_rtld.
8645         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
8646         holes are present or are PROT_NONE protected.
8647         * include/link.h (struct link_map): Add l_contiguous field.
8648         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
8650 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
8651             Tomas Janousek  <tjanouse@redhat.com>
8652             Ulrich Drepper  <drepper@redhat.com>
8654         [BZ #4647]
8655         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
8656         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
8657         socket.
8658         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
8659         unused member a bitmap.
8660         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
8661         servers are configured.
8663 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
8665         * elf/rtld.c (dl_main): Don't call init_tls more than once.
8667 2007-06-17  Andreas Schwab  <schwab@suse.de>
8669         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
8671 2007-06-16  Andreas Jaeger  <aj@suse.de>
8673         [BZ #4125]
8674         * sysdeps/unix/sysv/linux/sys/ptrace.h
8675         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
8676         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
8677         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
8678         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
8679         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
8680         Define.
8681         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8682         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8683         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8684         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8686 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
8688         [BZ #4599]
8689         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
8690         determining whether there are IPv4/IPv6 addresses, ignore loopback
8691         addresses.
8693 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
8695         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
8696         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
8697         as the return type.  Change type of "r" variable to CMPtype.
8698         * soft-fp/eqsf2.c (__eqsf2): Likewise.
8699         * soft-fp/eqtf2.c (__eqtf2): Likewise.
8700         * soft-fp/gedf2.c (__gedf2): Likewise.
8701         * soft-fp/gesf2.c (__gesf2): Likewise.
8702         * soft-fp/getf2.c (__getf2): Likewise.
8703         * soft-fp/ledf2.c (__ledf2): Likewise.
8704         * soft-fp/lesf2.c (__lesf2): Likewise.
8705         * soft-fp/letf2.c (__letf2): Likewise.
8706         * soft-fp/unorddf2 (__unorddf2): Likewise.
8707         * soft-fp/unordsf2 (__unordsf2): Likewise.
8708         * soft-fp/unordtf2 (__unordtf2): Likewise.
8710 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
8712         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
8713         make sure gcc doesn't mess around with this.
8715 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
8717         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
8719 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
8721         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
8722         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
8723         at most once per _dl_close_worker.
8725 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
8727         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
8728         __sched_cpucount as const.
8729         * posix/sched_cpucount.c: Adjust.
8731         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
8732         instruction for counting bits.
8733         * sysdeps/x86_64/sched_cpucount.c: New file.
8735 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
8737         * configure.in: Avoid variable named BASH.
8738         * config.make.in: Likewise.
8739         Patch in part by Mike Frysinger.
8741 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
8743         [BZ #4586]
8744         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
8745         pseudo-zeros as zero.
8746         * sysdeps/x86_64/ldbl2mpn.c: New file.
8747         * sysdeps/ia64/ldbl2mpn.c: New file.
8749 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
8751         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
8752         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
8753         Remove unreachable code at the end.
8755 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
8757         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
8758         ldbl-128ibm in comment.
8759         (fpclassifyl): Correct classification of denormals.
8760         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
8761         return value for MIN denormal. Rewrite using long double math too
8762         correctly handle denormals and canonicalize the results.
8764 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
8766         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
8767         (__mpn_construct_long_double): Fix conversion where result ought
8768         to be smaller than __LDBL_MIN__, or the low double should be
8769         denormal.  Fix decision where to negate low double - honor round
8770         to even rules.
8771         * stdio-common/tst-sprintf2.c: Include string.h.
8772         (COMPARE_LDBL): Define.
8773         (TEST): Also test whether a string hexadecimal float representation
8774         can be parsed back to the number.
8775         (main): Add a couple of further tests.
8777 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
8779         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
8780         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
8781         is non-zero, but smaller than 2 * __DBL_MIN__.
8782         * stdio-common/tst-sprintf2.c: New test.
8783         * stdio-common/Makefile (tests): Add tst-sprintf2.
8785         * math/test-misc.c (main): Don't run last batch of tests with
8786         IBM long double format.
8788 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
8790         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
8791         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
8792         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
8793         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
8794         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8795         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
8796         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
8797         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
8798         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
8799         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
8801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
8802         New file.
8803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
8804         New file.
8805         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
8806         New file.
8807         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
8808         New file.
8809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
8810         New file.
8811         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
8812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
8813         New file.
8814         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
8815         New file.
8816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
8817         New file.
8818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
8819         New file.
8820         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
8821         New file.
8823 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
8825         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
8826         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
8827         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
8828         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
8829         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
8830         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
8831         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
8832         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
8834 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
8836         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
8837         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8838         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
8839         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8840         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
8841         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8842         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
8843         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8845 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
8847         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
8848         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
8849         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
8850         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
8852 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
8854         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
8855         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
8857 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
8859         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
8860         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
8861         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
8862         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
8864 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
8866         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
8867         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
8869 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
8871         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
8872         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
8874         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
8875         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
8876         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
8877         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
8879 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
8881         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
8882         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
8883         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
8884         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
8886 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
8888         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
8889         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
8890         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
8891         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8892         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
8893         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8895 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
8897         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
8898         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
8899         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
8900         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
8902 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
8904         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
8905         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
8906         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
8907         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
8908         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
8909         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
8910         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
8911         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
8912         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
8913         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
8914         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
8915         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
8916         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
8917         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
8918         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
8919         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
8921 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
8923         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
8924         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
8926 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
8928         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
8929         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
8931 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
8933         * sysdeps/powerpc/powerpc32/970/Implies: New file.
8934         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
8935         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
8936         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
8937         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
8938         * sysdeps/powerpc/powerpc64/970/Implies: New file.
8939         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
8940         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
8941         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
8942         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
8944 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
8946         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
8948 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
8950         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
8951         branch miss-predicts. Ensure that cache line crossing does not impact
8952         dispatch grouping.
8954 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
8956         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
8957         "../../powerpc32/power4/memcopy.h".
8958         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
8959         "../../powerpc32/power4/wordcopy.c".
8961 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
8963         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
8964         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
8965         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
8966         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
8967         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
8968         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
8970 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
8972         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
8974 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
8976         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
8977         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
8978         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
8979         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
8980         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
8981         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
8982         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
8983         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
8985 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
8987         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
8989 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
8991         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
8992         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
8993         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
8994         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
8995         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
8996         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
8997         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
8999 2007-05-29  Roland McGrath  <roland@redhat.com>
9001         * po/Makefile (po-sed-cmd): New variable.
9002         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
9004 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
9006         * crypt/md5-crypt.c: Fix comment.
9008         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
9009         of crashing.  When this is the case or if the reply is malformed,
9010         don't try to close the new file descriptor since it does not
9011         exist.
9012         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
9014 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
9016         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
9017         if __NR_utimensat is not defined.
9019 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
9021         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
9023 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
9025         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
9026         (open): Fix comment typos.  Don't call __open_2 if flags
9027         is a compile time constant without O_CREAT.
9028         (__open64_2): Add nonnull attribute.
9029         (open64): Fix comment typos.  Don't call __open64_2 if flags
9030         is a compile time constant without O_CREAT.
9031         (__openat_2): Add nonnull attribute, fix nonnull attribute
9032         on redirect.
9033         (openat): Fix comment typos.  Don't call __openat_2 if flags
9034         is a compile time constant without O_CREAT.
9035         (__openat64_2): Add nonnull attribute, fix nonnull attribute
9036         on redirect.
9037         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
9038         is a compile time constant without O_CREAT.
9040 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
9042         * Makerules (sysd-rules): Define PTW for ptw-* files.
9043         * Versions: Define GLIBC_2.7 for libc.
9044         * include/stdio.h: Declare __fortify_fail.
9045         * debug/fortify_fail.c: New file.
9046         * debug/Makefile (routines): Add fortify_fail.
9047         * debug/chk_fail.c: Use __fortify_fail.
9048         * debug/stack_chk_fail.c: Likewise.
9049         * io/Versions: Export __open_2, __open64_2, __openat_2, and
9050         __openat64_2 for GLIBC_2.7.
9051         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
9052         * io/open.c: Define *_2 variant of function which checks for O_CREAT
9053         and fails if necessary.
9054         * io/open64.c: Likewise.
9055         * io/openat.c: Likewise.
9056         * io/openat64.c: Likewise.
9057         * sysdeps/unix/sysv/linux/open64.c: Likewise.
9058         * sysdeps/unix/sysv/linux/openat.c: Likewise.
9059         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
9060         * io/bits/fcntl2.h: New file.
9061         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
9062         __openat64_2.
9063         * include/bits/fcntl2.h: New file.
9064         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9065         Add open_2.
9066         * sysdeps/unix/sysv/linux/open_2.c: New file.
9068 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
9070         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
9071         as second parameter to handle_intel.
9073         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
9074         the entry.
9076         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
9077         handling to ...
9078         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
9079         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
9080         cacheinfo.
9081         * sysdeps/x86_64/memcpy.S: Complete rewrite.
9082         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
9083         Patch by Evandro Menezes <evandro.menezes@amd.com>.
9085         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
9087 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
9089         [BZ #4525]
9090         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
9091         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
9092         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
9094         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
9096         [BZ #4514]
9097         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
9098         reinitialize workend at the start of each do_positional format spec
9099         loop, free workstart before do_positional loops.
9100         (printf_unknown): Fix size of work_buffer.
9101         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
9103         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
9104         (public_sET_STATe): If ms->version < 3, put all chunks into
9105         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
9106         chunks.
9108         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
9109         * malloc/hooks.c: Likewise.
9110         * malloc/arena.c: Likewise.
9111         * malloc/malloc.c (do_check_malloc_state): Don't assert
9112         n_mmaps is not greater than n_mmaps_max.  This removes the need
9113         for the previous change.
9115         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
9116         2007-05-07 commit.
9118 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
9120         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
9121         Define for kernel >= 2.6.22.
9123 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
9125         * elf/dl-close.c (_dl_close_worker): When removing object from
9126         global scope, wait for all lookups to finish afterwards.
9127         * elf/dl-open.c (add_to_global): When global scope array must
9128         grow, allocate a new one and free old array only after all
9129         lookups finish.
9130         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
9131         (_dl_lookup_symbol_x): Likewise.
9132         * elf/dl-support.c: Define _dl_wait_lookup_done.
9133         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9134         _dl_wait_lookup_done.
9136         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
9137         not overlapping with arena.
9139         * malloc/mcheck.c (reallochook): If size==0, free the block.
9141         * rt/tst-shm.c: Use fstat64 instead of fstat.
9143         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
9144         __NR_sync_file_range is not defined.
9146 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
9148         Dummy files to prevent stub versions from being used.
9149         * sysdeps/x86_64/fpu/k_cosl.c: New file.
9150         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
9151         * sysdeps/x86_64/fpu/k_sinl.c: New file.
9152         * sysdeps/x86_64/fpu/k_tanl.c: New file.
9154         * version.h (VERSION): Set to 2.6.90.
9156 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
9158         * version.h (VERSION): Define to 2.6.
9159         * include/features.h (__GLIBC_MINOR__): Define to 6.
9161         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
9163         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
9164         sizes.
9166 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
9168         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
9169         number of mmaps.  n_mmaps_max is the target.
9170         * malloc/hooks.c: Likewise.
9171         * malloc/arena.c: Likewise.
9173 2007-05-12  Andreas Jaeger  <aj@suse.de>
9175         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
9176         getpid.
9178 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
9180         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
9181         adding new variables.
9183         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
9184         optimize.  Completely extend global scope array before making the
9185         new entries visible.
9187 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
9189         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
9190         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
9191         tst-getcpu.
9193         * include/link.h: Move l_version and l_nversion members around to
9194         fill gaps.
9196         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
9198         * sysdeps/unix/sysv/linux/sched_setaffinity.c
9199         (__sched_setaffinity_new): If syscall was successful and
9200         RESET_VGETCPU_CACHE is defined, use it before returning.
9201         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
9203         * io/sys/stat.h: Make sure struct timespec is defined for
9204         __USE_ATFILE.
9206         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
9207         UTIME_OMIT.
9208         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
9209         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
9210         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
9211         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
9212         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
9213         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
9214         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
9215         * io/sys/stat.h: Declare utimensat, futimens.
9216         * io/utimensat.c: New file.
9217         * io/futimens.c: New file.
9218         * sysdeps/unix/sysv/linux/utimensat.c: New file.
9219         * sysdeps/unix/sysv/linux/futimens.c: New file.
9220         * io/Makefile (routines): Add utimensat, futimens.
9221         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
9222         * sysdeps/unix/sysv/linux/lutimes.c: New file.
9223         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
9224         available.
9226         * include/sys/cdefs.h: Redefine __nonnull so that test for
9227         incorrect parameters in the libc code itself are not omitted.
9229 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
9231         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
9232         exception in addition to inexact when asked to raise only FE_INEXACT.
9234         [BZ #3427]
9235         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
9236         in *envp.
9238 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
9240         [BZ #4403]
9241         * string/strfry.c (strfry): Make result more random.
9243 2007-05-07  Richard Henderson  <rth@redhat.com>
9245         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
9246         if __NO_LONG_DOUBLE_MATH.
9247         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
9248         available in the compiler, add .arch directive to the assembly.
9250 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
9252         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
9253         compat_symbol to GLIBC_2_1.
9254         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
9255         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
9256         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
9257         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
9258         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
9259         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
9260         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
9261         libc, not libm.
9262         (__isnanl): New compat_symbol.
9264 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
9265             Jakub Jelinek  <jakub@redhat.com>
9267         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
9268         (new_heap): Initialize mprotect_size.
9269         (grow_heap): When growing, only mprotect from mprotect_size till
9270         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
9271         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
9273 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
9274             Peter Bergner  <bergner@us.ibm.com>
9276         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
9277         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
9278         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
9279         * sysdeps/powerpc/fpu/fe_mask.c: New file.
9280         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
9281         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
9282         Call __fe_mask_env() if all FP exceptions disabled.
9283         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
9284         from old FPSCR to new fenv to propagate DFP rounding modes.
9285         Call __fe_mask_env() if FP exceptions previously enabled.
9286         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
9287         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
9288         transitioning from all exceptions disabled to any exception enabled
9289         or visa versa.
9290         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
9291         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
9292         when transitioning from all exceptions disabled to any exception
9293         enabled or visa versa.
9294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
9295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
9296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
9297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
9298         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
9299         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
9301 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
9303         [BZ #4465]
9304         * posix/unistd.h: Remove __THROW from fdatasync.
9306 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
9308         [BZ #4465]
9309         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
9311 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
9313         * stdio-common/vfprintf.c (process_string_arg): Optimize
9314         ridiculous precision in wide char code printing multi-byte string.
9315         Reported by Jim Meyering <jim@meyering.net>.
9317         [BZ #4131]
9318         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
9319         boundaries to work around systems with overlapping binary loading.
9320         Based on a patch by Suzuki <suzuki@in.ibm.com>.
9322 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
9324         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
9325         __mbsnrtowcs after last change.
9327         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
9328         (get_ident): Likewise.
9330 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
9332         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
9333         with setting the sticky bit.
9334         * math/test-misc.c (main): Add more truncation tests.
9336 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
9338         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
9339         double in the function declaration.
9340         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
9341         double in the function declaration.
9342         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9343         float in the function declaration.
9344         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9345         float in the function declaration.
9347         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
9348         denormal operands.  Do not generate FP_EX_DENORM exception.
9349         (FP_UNPACK_RAW_EP): Ditto.
9350         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
9351         undefined _FP_UNPACK_RAW_E.
9352         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
9353         undefined _FP_UNPACK_RAW_EP.
9354         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
9355         undefined _FP_PACK_RAW_E.
9356         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
9357         undefined _FP_PACK_RAW_EP.
9359         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
9360         _FP_FRAC_COPY_2.
9361         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
9362         _FP_FRAC_COPY_4.
9364 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
9365             Jakub Jelinek  <jakub@redhat.com>
9367         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
9368         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
9369         this case.
9370         * soft-fp/op-common.h (FP_TRUNC): Ditto.
9372 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
9374         * math/test-misc.c (main): Add tests for rounding long double
9375         values close to smallest double denormalized value to double.
9377 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
9379         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
9380         condition for truncating to 0.  Set sticky bit for such
9381         truncation.
9383 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
9385         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
9386         fixed length array for ignore.
9388 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
9390         [BZ #4438]
9391         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
9392         stack for large precisions.
9393         * stdio-common/test-vfprintf.c (main): Add test for large
9394         precision.
9396 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
9398         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
9399         for exponent 0.
9400         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
9402         [BZ #4439]
9403         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
9404         account in the size check.
9405         * resolv/tst-inet_ntop.c: New test.
9406         * resolv/Makefile (tests): Add tst-inet_ntop.
9408 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
9409             Jakub Jelinek  <jakub@redhat.com>
9411         [BZ #4349]
9412         * malloc/malloc.c: Keep separate list for first blocks on the bin
9413         lists with a given size.  This helps skipping over list elements
9414         we know won't fit in two places.
9415         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
9417 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
9419         [BZ #4102]
9420         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
9421         label to Teredo tunnel addresses 2001://32.
9423 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
9425         * locale/programs/ld-collate.c (collate_read): Allow order_start
9426         after copy.
9428         * locale/programs/ld-collate.c (collate_read): Fix printing of
9429         error message.
9431         [BZ #3213]
9432         * locale/C-translit.h.in: Add entry for U2044.
9434         [BZ #4342]
9435         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
9436         hexa-decimal floats without exponent.
9437         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
9439 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
9441         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
9442         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
9443         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
9444         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
9445         GLIBC_2.6.
9446         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
9447         Add sched_getcpu.
9449 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
9451         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
9452         of 0 after the out_fail label.
9454 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
9456         [BZ #4406]
9457         * iconv/gconv_charset.h (strip): Allow ':'.
9458         * iconv/iconv_open.c (iconv_open): Adjust comment.
9460 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
9462         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
9463         version.
9465 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
9467         [BZ #4381]
9468         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
9469         alignment of buffer and tmp_buffer.
9470         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
9471         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
9472         alignment of buffer.
9473         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
9474         bigger than INT_MAX.
9475         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
9476         h_errnop arguments.  Fail if buflen is too small.
9477         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
9479 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
9481         [BZ #4405]
9482         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
9483         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
9485 2007-04-22  Roland McGrath  <roland@redhat.com>
9487         * elf/elf.h (NT_PRXFPREG): New macro.
9489 2007-04-19  Andreas Jaeger  <aj@suse.de>
9491         [BZ #3905]
9492         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
9493         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
9494         Added.
9496 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
9498         * include/sys/mman.h: Mark madvise hidden.
9499         * misc/madvise.c: Add libc_hidden_def.
9501 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
9503         * nis/nis_domain_of.c (__nis_domain_of): New function.
9504         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
9505         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
9506         * nis/nis_call.c (rec_dirsearch): Likewise.
9507         (first_shoot): Likewise.  Remove search_parent_first argument.
9508         (struct nis_server_cache): Rename search_parent_first field
9509         to search_parent.
9510         (nis_server_cache_search, nis_server_cache_add): Rename
9511         search_parent_first argument to search_parent.
9512         (__nisfind_server): Likewise.  If search_parent, call
9513         __nis_domain_of.
9515 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
9517         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
9519 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
9521         [BZ #4368]
9522         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
9524 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
9526         [BZ #4364]
9527         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
9529 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
9531         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
9532         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
9533         current number of locales in SUPPORTED.
9534         (create_archive): Initialize serial.
9535         (enlarge_archive): Preserve aliases rather than duplicating
9536         their locrecs.
9538 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
9540         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
9541         after _IO_un_link, not before it.
9543         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
9544         special case handling when wcp == wstartp + 1.  Fix a comment typo.
9545         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
9547 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
9549         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
9550         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
9551         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
9552         Remove __THROW.
9553         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
9554         _IO_file_xsgetn_maybe_mmap): Likewise.
9555         * libio/oldfileops.c (old_do_write): Likewise.
9556         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
9557         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
9558         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
9559         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
9560         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
9561         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
9562         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
9563         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
9564         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
9565         _IO_file_underflow, _IO_file_underflow_mmap,
9566         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
9567         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
9568         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
9569         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
9570         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
9571         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
9572         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
9573         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
9574         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
9575         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
9576         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
9577         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
9578         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
9579         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
9580         _IO_adjust_column_internal, _IO_default_uflow_internal,
9581         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
9582         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
9583         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
9584         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
9585         _IO_file_close_it_internal, _IO_file_underflow_internal,
9586         _IO_file_overflow_internal, _IO_file_attach_internal,
9587         _IO_file_fopen_internal, _IO_file_sync_internal,
9588         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
9589         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
9590         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
9591         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
9592         _IO_seekpos_unlocked): Likewise.
9593         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
9594         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
9596 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
9598         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
9599         argument in xmalloc size computation.
9601 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
9603         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
9604         math_opt_barrier and math_force_eval macros.
9606 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
9608         [BZ #3306]
9609         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
9610         * sysdeps/i386/fpu/math_private.h: New file.
9611         * sysdeps/x86_64/fpu/math_private.h: New file.
9612         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
9613         math_force_eval macros.  Use "+m" constraint on asm rather than
9614         "=m" and "m".
9615         * math/s_nextafter.c (__nextafter): Likewise.
9616         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
9617         Likewise.
9618         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
9619         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
9620         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9621         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
9622         math_opt_barrier and math_force_eval macros.
9623         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
9624         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
9625         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
9626         (__nexttoward): Use math_opt_barrier and
9627         math_force_eval macros.  Use "+m" constraint on asm rather than
9628         "=m" and "m".  Only use asm to force double result if
9629         FLT_EVAL_METHOD is 2.
9630         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
9631         (__nexttowardf): Use math_opt_barrier and
9632         math_force_eval macros.  Use "+m" constraint on asm rather than
9633         "=m" and "m".  Only use asm to force double result if
9634         FLT_EVAL_METHOD is not 0.
9635         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
9636         (__nexttowardf): Use math_opt_barrier and
9637         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
9638         x to float using asm.
9639         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
9640         (__nldbl_nexttowardf): Use math_opt_barrier and
9641         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
9642         x to float using asm.
9643         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
9644         (__nexttowardf): Use math_opt_barrier and math_force_eval
9645         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
9646         * math/bug-nextafter.c (zero, inf): New variables.
9647         (main): Add new tests.
9648         * math/bug-nexttoward.c (zero, inf): New variables.
9649         (main): Add new tests.
9651 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
9653         [BZ #3427]
9654         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
9655         exceptions both in SW and MXCSR.
9656         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
9657         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
9658         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
9659         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9660         in MXCSR if SSE is available.
9661         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
9662         and ldsodefs.h.
9663         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
9664         Fix comment typo.
9665         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
9666         Return 0 rather than 1.
9667         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
9668         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
9669         * math/test-fenv.c (feholdexcept_tests): New function.
9670         (main): Call it.
9672 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
9674         [BZ #3427]
9675         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9676         in SW.
9678 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
9680         [BZ #4344]
9681         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
9682         Reported by David Anderson <davea42@earthlink.net>.
9684 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
9686         * posix/sys/wait.h: Remove unnecessary forward declaration.
9688 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
9690         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
9691         with obj->do_servers after first_shoot.
9693 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
9695         * posix/Makefile (routines): Add sched_cpucount.
9696         (tests): Add tst-cpucount.
9697         * posix/sched_cpucount.c: New file.
9698         * posix/tst-cpucount.c: New file.
9699         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
9700         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
9701         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
9702         * posix/sched.h: Define CPU_COUNT.
9704 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
9706         * posix/fnmatch.c (STRUCT): Define.
9707         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
9708         * posix/fnmatch_loop.c (struct STRUCT): New type.
9709         (FCT): Add ends argument.  If ends != NULL and normal * is
9710         seen in the pattern, store current pattern and string pointers
9711         and return.  Adjust recursive calls.
9712         (EXT): Adjust FCT callers.
9713         (STRUCT): Undef at the end of the file.
9714         * posix/Makefile (tests): Add tst-fnmatch2.
9715         * posix/tst-fnmatch2.c: New test.
9717 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
9719         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
9720         and 1 on failure.
9722         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
9723         Change last argument to unsigned int.
9725 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
9727         * scripts/check-local-headers.sh: Filter out sys/capability.h.
9729 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
9731         * config.h.in (HAVE_LIBCAP): Add.
9732         * nscd/selinux.h: Include sys/capability.h rather than non-existent
9733         sys/capabilities.h.
9734         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
9735         free_caps.  Cast away const from 4th cap_set_flag argument.
9737 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
9739         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
9740         GLIBC_2.6.
9741         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9742         Add sync_file_range.
9743         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
9745 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
9747         * sysdeps/powerpc/bits/atomic.h
9748         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
9749         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
9750         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9751         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
9752         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9753         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
9754         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
9755         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9756         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9757         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9758         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
9759         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9760         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9761         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9762         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9763         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
9764         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9765         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
9766         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9767         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
9769 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
9771         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9772         (__cache_line_size): Define the variable here.  Add
9773         attribute_hidden, remove weak_extern.
9774         (__libc_start_main): Set __cache_line_size
9775         unconditionally.
9776         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
9777         (__cache_line_size): Define the variable here.  Add
9778         attribute_hidden, remove weak_extern.
9779         (DL_PLATFORM_AUXV): Set __cache_line_size
9780         unconditionally.
9781         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
9782         weak_extern, add attribute_hidden.
9783         (__elf_machine_runtime_setup): Assume __cache_line_size is always
9784         defined in ld.so.
9785         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
9786         definition.
9787         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
9789 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
9791         [BZ #4276]
9792         * timezone/africa: Update from tzdata2007d.
9793         * timezone/asia: Likewise.
9794         * timezone/australasia: Likewise.
9795         * timezone/backward: Likewise.
9796         * timezone/europe: Likewise.
9797         * timezone/iso3166.tab: Likewise.
9798         * timezone/leapseconds: Likewise.
9799         * timezone/northamerica: Likewise.
9800         * timezone/southamerica: Likewise.
9801         * timezone/zone.tab: Likewise.
9803         * timezone/private.h: Update from tzcode2007d.
9804         * timezone/zdump.c: Likewise.
9805         * timezone/zic.c: Likewise.
9807 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
9809         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
9810         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
9811         variables.
9812         (nis_server_cache_search, nis_server_cache_add): New functions.
9813         (__nisfind_server): Use them.  Add dbp and flags argument, if
9814         call __nisbind_create.
9815         (__nisbind_create): Add server_used and current_ep arguments,
9816         only call __nis_findfastest if server_used is ~0.
9817         (__do_niscall2, __prepare_niscall): Adjust callers.
9818         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
9819         ckey_cache_euid, ckey_cache_lock): New variables.
9820         (get_ckey): New function.
9821         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
9822         __pmap_getnisport.  Save __pmap_getnisport result in
9823         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
9824         key.
9825         * nis/nis_lookup.c (nis_lookup): Likewise.
9826         * nis/nis_table.c (nis_list): Likewise.
9827         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
9828         prototypes.
9830         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
9831         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
9832         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
9833         _nss_nisplus_getservbyport_r): Likewise.
9834         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
9835         _nss_nisplus_getnetbyaddr_r): Likewise.
9836         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
9837         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
9838         _nss_nisplus_getntohost_r): Likewise.
9839         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
9840         _nss_nisplus_getrpcbynumber_r): Likewise.
9842 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
9844         * configure.in (libc_cv_gnu89_inline): Only do compile test.
9845         * configure: Rebuilt.
9847         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
9848         bit-fields.
9849         * soft-fp/extended.h (_FP_UNION_E): Likewise.
9851 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
9853         [BZ #2831]
9854         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
9855         bit-fields.
9857 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
9859         * nscd/gai.c: Include alloca.h.
9860         (__libc_use_alloca): Define.
9862 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
9864         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
9865         smaller scopes.
9866         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
9867         (DL_DST_REQUIRED): Adjust user.
9869         * include/dlfcn.h (struct link_map): New forward decl.
9871         * inet/getnameinfo.c: Include stddef.h.
9872         (getnameinfo): Use offsetof.
9874         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
9876         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
9878         * string/strerror_l.c: Include stdlib.h.
9880         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
9881         * config.make.in (gnu89-inline-CFLAGS): New variable.
9882         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
9883         -std=gnu99.
9884         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
9885         * argp/argp.h: Use it.
9886         * bits/mathinline.h: Likewise.
9887         * bits/sigset.h: Likewise.
9888         * bits/string.h: Likewise.
9889         * ctype/ctype.h: Likewise.
9890         * hurd/hurd.h: Likewise.
9891         * hurd/hurd/fd.h: Likewise.
9892         * hurd/hurd/port.h: Likewise.
9893         * hurd/hurd/signal.h: Likewise.
9894         * hurd/hurd/threadvar.h: Likewise.
9895         * hurd/hurd/userlink.h: Likewise.
9896         * io/sys/stat.h: Likewise.
9897         * libio/bits/stdio.h: Likewise.
9898         * libio/bits/stdio2.h: Likewise.
9899         * mach/lock-intern.h: Likewise.
9900         * mach/mach/mig_support.h: Likewise.
9901         * math/bits/cmathcalls.h: Likewise.
9902         * posix/bits/unistd.h: Likewise.
9903         * socket/bits/socket2.h: Likewise.
9904         * stdlib/bits/stdlib.h: Likewise.
9905         * stdlib/stdlib.h: Likewise.
9906         * string/argz.h: Likewise.
9907         * string/bits/string2.h: Likewise.
9908         * string/bits/string3.h: Likewise.
9909         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
9910         * sysdeps/generic/inttypes.h: Likewise.
9911         * sysdeps/generic/machine-lock.h: Likewise.
9912         * sysdeps/generic/machine-sp.h: Likewise.
9913         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
9914         * sysdeps/i386/i486/bits/string.h: Likewise.
9915         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
9916         * sysdeps/mach/alpha/machine-lock.h: Likewise.
9917         * sysdeps/mach/alpha/machine-sp.h: Likewise.
9918         * sysdeps/mach/i386/machine-lock.h: Likewise.
9919         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9920         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
9921         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
9922         * sysdeps/s390/bits/string.h: Likewise.
9923         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
9924         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
9925         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
9926         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
9927         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9928         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
9929         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
9930         * wcsmbs/bits/wchar2.h: Likewise.
9931         * wcsmbs/wchar.h: Likewise.
9932         * stdlib/gmp.h: Likewise.  Include <features.h> to get
9933         __extern_inline definition.
9935 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
9937         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
9938         NULL.
9940         [BZ #3919]
9941         * math/libm-test.inc (log_test): Test -Inf and NaN.
9942         (log10_test, log1p_test, log2_test): Test -Inf.
9943         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
9944         FE_INVALID when argument is qNaN.
9945         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
9946         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
9947         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
9948         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
9949         andb $1, %ah with testb $1, %ah, don't test for parity, instead
9950         testb $4, %ah and jump if non-zero.
9951         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
9952         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
9954         [BZ #4101]
9955         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
9956         ancestors with the same depths.
9957         Patch by Niels Moeller <nisse@lysator.liu.se>.
9958         (filter_doc): Don't crash if argp is NULL.
9959         * argp/Makefile (tests): Add tst-argp2.
9960         * argp/tst-argp2.c: New test.
9962         [BZ #4130]
9963         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
9964         open_not_cancel_2.
9965         (updwtmp_file): Likewise.
9967         [BZ #4181]
9968         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
9969         (inet6_opt_append): Don't check extlen is big enough if extbuf
9970         is NULL.
9971         (inet6_opt_finish): Likewise.
9972         * inet/Makefile (tests): Add test-inet6_opt.
9973         * inet/test-inet6_opt.c: New test.
9975         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
9976         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
9977         NLMSG_ERR.  Instead use a page sized buffer.
9978         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
9979         buffer.
9981 2007-03-14  Richard Henderson  <rth@redhat.com>
9983         * sysdeps/alpha/fpu/s_llround.c: New file.
9984         * sysdeps/alpha/fpu/s_llroundf.c: New file.
9985         * sysdeps/alpha/fpu/s_lround.c: New file.
9986         * sysdeps/alpha/fpu/s_lroundf.c: New file.
9987         * sysdeps/alpha/fpu/s_round.c: New file.
9988         * sysdeps/alpha/fpu/s_roundf.c: New file.
9989         * sysdeps/alpha/fpu/s_trunc.c: New file.
9990         * sysdeps/alpha/fpu/s_truncf.c: New file.
9992         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
9993         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
9994         * sysdeps/alpha/fpu/s_floor.c: Likewise.
9995         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
9996         * sysdeps/alpha/fpu/s_rint.c: Likewise.
9997         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
9999         * sysdeps/alpha/fpu/s_fmax.S: New file.
10000         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
10001         * sysdeps/alpha/fpu/s_fmin.S: New file.
10002         * sysdeps/alpha/fpu/s_fminf.S: New file.
10003         * sysdeps/alpha/fpu/s_isnan.c: New file.
10004         * sysdeps/alpha/fpu/s_isnanf.c: New file.
10005         * sysdeps/alpha/fpu/s_llrint.c: New file.
10006         * sysdeps/alpha/fpu/s_llrintf.c: New file.
10007         * sysdeps/alpha/fpu/s_lrint.c: New file.
10008         * sysdeps/alpha/fpu/s_lrintf.c: New file.
10009         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
10010         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
10012         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
10013         (__fdimf, fdimf, __fdim, fdim): Remove.
10014         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
10015         (__isnanf, __isnan, __isnanl): New.
10017 2007-03-13  Richard Henderson  <rth@redhat.com>
10019         * sysdeps/ieee754/ldbl-128/Makefile: New file.
10021 2007-03-13  Richard Henderson  <rth@redhat.com>
10023         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
10024         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
10025         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
10026         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
10027         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
10028         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
10030 2007-03-13  Richard Henderson  <rth@redhat.com>
10032         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
10033         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
10034         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
10035         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
10036         Move to dl-auxv.h; initialize instead of extern weak.
10037         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
10038         weak symbol.
10039         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
10040         Extern instead of initialized.
10042 2007-03-13  Richard Henderson  <rth@redhat.com>
10044         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
10045         __sigsuspend_nocancel.
10047 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
10049         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
10050         172.16/12 address range.
10052 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
10054         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
10055         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
10056         message.
10058 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
10060         [BZ #4069]
10061         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
10062         earlier.
10063         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
10065         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
10066         for x qNaN and y either +-inf or non-integer value.
10067         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
10068         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
10069         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10071 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
10073         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
10074         from sysdep_headers.
10076 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
10078         * time/tzfile.c (find_transition): Instead of a linear search try to
10079         guess the transition index, use a linear search if the result is at
10080         most 10 transitions away from the guess or binary search otherwise.
10082 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
10084         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
10085         memory reallocation.
10087 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
10089         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
10090         and fix some typos.
10091         Optimize use of TOLOWER.
10093         [BZ #3325]
10094         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
10095         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10096         * sysdeps/i386/fpu/e_fmod.S: Likewise.
10098         [BZ #3458]
10099         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
10100         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
10102         [BZ #4076]
10103         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
10104         (open_dir_stream): Likewise.
10105         * io/Makefile (tests): Add bug-ftw5.
10106         * io/bug-ftw5.c: New file.
10108         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
10109         * nscd/servicescache.c (cache_addserv): Likewise.
10111         * nscd/grpcache.c (cache_addgr): In case a record changed on
10112         refresh, adjust key_copy.
10114         [BZ #4074]
10115         * nscd/pwdcache.c (cache_addpw): In case a record changed on
10116         refresh, adjust key_copy.
10118         [BZ #4070]
10119         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
10120         special cases.
10121         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
10123 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
10125         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
10126         optimization.
10128         * stdio-common/vfscanf.c: Small cleanups throughout.
10130 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
10132         [BZ #3325]
10133         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
10134         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10135         * sysdeps/i386/fpu/e_fmod.S: Likewise.
10136         Patch by Jared Casper <jaredcasper@gmail.com>.
10138         * sysdeps/unix/closedir.c: Outside libc don't use locking.
10139         * sysdeps/unix/opendir.c: Likewise.
10140         * sysdeps/unix/readdir.c: Likewise.
10142         [BZ #2211]
10143         * stdio-common/vfscanf.c: Handle localized digits etc for floating
10144         point numbers.
10145         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
10147         * stdio-common/vfscanf.c: Fix problems in width accounting.
10148         * stdio-common/tst-sscanf.c (double_tests): New tests.
10149         (main): Hook them up.
10151         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
10152         More simplifications of floating-point reader.
10154         * stdio-common/Makefile (tests): Add tst-swscanf.
10155         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
10156         testing.
10157         * stdio-common/tst-swscanf.c: New file.
10159 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
10161         [BZ #2633]
10162         * libio/stdio.h: Define struct _IO_FILE in global namespace.
10163         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
10164         Remove using for __jmp_buf_tag.
10165         * locale/locale.h (struct lconv): Also define in std namespace.
10166         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
10168         [BZ #3842]
10169         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
10170         using __libc_enable_secure.
10172         [BZ #3818]
10173         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
10175         [BZ #3745]
10176         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
10177         of names for ellipsises.
10179         [BZ #3348]
10180         * malloc/memusage.sh: Cleanups.
10181         * debug/xtrace.sh: Quoting and trap changes.
10183 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
10185         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
10187         * locale/iso-3166.def: Update entry for Serbia.
10188         * locale/iso-4217.def: Define RSD, remove CSD.
10190         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
10191         and 64-bit operations.
10193         [BZ #4040]
10194         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
10195         16-bit operations.
10197         * nscd/nscd.c (parse_opt): One more conversion to use send instead
10198         of writev.
10200 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
10202         [BZ #3991]
10203         * assert/assert.h (assert): Simplify.
10204         (assert_perror): Likewise.
10205         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
10207         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
10208         reqdata.
10210         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
10211         change: don't pass NULL in place of an integer.
10213 2007-02-02  Bruno Haible  <bruno@clisp.org>
10215         [BZ #3954]
10216         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
10217         Add mapping for U+327E.
10218         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
10219         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10220         mapping of 0xD9 0xE8.
10221         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
10222         mapping of U+327E.
10223         Reported by Jungshik Shin <jungshik@google.com>.
10225         [BZ #3955]
10226         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10227         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
10228         Reported by Jungshik Shin <jungshik@google.com>.
10230 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
10232         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
10233         byte variants.
10235         [BZ #4040]
10236         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
10237         byte variants.  Patch mostly be tom@tommay.net.
10239 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
10241         [BZ #3996]
10242         * posix/glob.c (attribute_hidden): Define if not defined.
10243         (glob): Unescape dirname, filename or username when needed and not
10244         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
10245         is NULL.  Handle unescaped [ in pattern without closing ].
10246         Don't pass GLOB_CHECK down to recursive glob for directories.
10247         (__glob_pattern_type): New function.
10248         (__glob_pattern_p): Implement using __glob_pattern_type.
10249         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
10250         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
10251         Remove unreachable code.
10252         * posix/globtest.sh: Add a couple of new tests.
10254 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
10256         * po/ru.po: Update from translation team.
10258 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
10260         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
10261         to the list of i486+ CPUs.
10262         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10264 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
10266         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
10267         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
10268         references.
10270 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
10272         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
10274         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
10275         * resolv/res_mkquery.c: Define __res_nopt.
10276         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
10277         try adding EDNS0 record.
10278         * resolv/res_send.c (send_dg): If request failed with FORMERR and
10279         EDNS0 record was send make sure we don't try it again.
10280         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
10281         * include/resolv.h: Declare __res_nopt.
10283 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
10285         [BZ #3944]
10286         * time/strptime_l.c (__strptime_internal): Set have_mon for
10287         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
10288         have been computed from tm_yday and tm_year.  Don't crash
10289         in day_of_the_week or day_of_the_year if not have_mon
10290         and tm_mon contains bogus value.
10291         * time/Makefile (tests): Add tst-strptime3.
10292         * time/tst-strptime3.c: New test.
10294 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
10296         [BZ #3957]
10297         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
10298         bit for RE_HAT_LISTS_NOT_NEWLINE.
10299         (build_charclass_op): Remove bogus comment.
10300         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
10301         * posix/bug-regex27.c: New test.
10302         * posix/bug-regex28.c: New test.
10304 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
10306         * po/sv.po: Update from translation team.
10308 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
10310         * nscd/nscd_helper.c (open_socket): Minor size optimization.
10312 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
10314         * include/locale.h (__uselocale): Add libc_hidden_proto.
10315         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
10317         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
10318         gettimeofday.
10320 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
10322         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
10323         returning.
10324         (PTR_DEMANGLE): Real definition now that it's not the same as
10325         PRT_MANGLE anymore.
10326         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10328         * string/strerror_l.c: New file.
10329         * string/Makefile (routines): Add strerror_l.
10330         * string/string.h: Declare strerror_l.
10331         * string/Versions: Export strerror_l for GLIBC_2.6.
10333 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
10335         * nscd/nscd_helper.c (open_socket): Now takes request type and key
10336         as parameter.  Construct request record.  Try sending request
10337         before the first poll use, it usually succeeds.  Adjust all
10338         callers.
10339         * nscd/nscd-client.h: Define MAXKEYLEN.
10340         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
10342 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
10344         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
10345         from return value.
10346         * nscd/nscd_helper.c: Include string.h.
10347         (__nscd_cache_search): Remove const qualifier from return value.
10348         On strict alignment architectures check hash entry and data head
10349         alignment.
10350         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
10351         mmapped data during GC cycle contains garbage.  If
10352         __nscd_drop_map_ref fails, decrement mapped->counter when returning
10353         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
10354         dropped to 0.
10355         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
10356         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
10357         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
10358         * nscd/nscd_getai.c (__nscd_getai): Likewise.
10359         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
10361 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
10363         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
10365 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
10367         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
10368         names not numbers in cfi_*.
10370 2007-01-26  Andreas Jaeger  <aj@suse.de>
10372         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
10373         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
10374         Correct values of PER_HPUX and PER_OSF4.
10376 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
10378         * elf/dl-minimal.c: Undefine _itoa first.
10379         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
10380         * malloc/mtrace.c: Revert last change.
10381         * posix/wordexp.c: Likewise.
10383 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
10385         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
10386         and __geode__ to the list of i486+ CPUs.
10387         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10389 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
10391         * stdio-common/_itoa.c: Include <limits.h>.
10392         * stdio-common/_itowa.c: Likewise.
10394 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
10396         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
10397         platforms.
10398         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
10399         64-bit platforms.
10400         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
10401         possible.
10402         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
10403         if possible.
10405         [BZ #3902]
10406         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
10407         * stdio-common/Makefile (tests): Add bug17.
10408         * stdio-common/bug17.c: New file.
10410 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
10412         * iconvdata/brf.c: New file.
10413         * iconvdata/testdata/BRF: New file.
10414         * iconvdata/testdata/BRF..UTF8: New file.
10415         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
10416         * iconvdata/Makefile: Add rules to build BRF.
10417         * iconvdata/TESTS: Add BRF entry.
10418         * iconvdata/gconv-modules: Likewise.
10419         * iconvdata/tst-tables.sh: Likewise.
10421 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
10423         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
10424         type `long long int', not `long int'.
10425         (wcstoq): Likewise.
10427 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
10429         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
10430         of values on 64-bit platforms which are too large.
10432 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
10433             Joe Kerian  <jkerian@us.us.ibm.com>
10435         [BZ #2749]
10436         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
10437         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
10438         (__copysignl): Use signbit() for comparison.
10439         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
10440         SET_LDOUBLE_WORDS64.
10442         [BZ #2423, #2749]
10443         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
10444         (__ceill): Remove calls to fegetround(), fesetround().
10445         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
10446         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
10447         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
10449 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
10451         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
10453         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
10455 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
10457         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
10458         demangle pointer.
10459         * csu/libc-start.c: Likewise.
10461 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
10463         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
10464         really work anyway.
10466 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
10468         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
10469         users.
10470         (handle_request): Remove unnecessary tests.
10472         * nscd/cache.c (cache_add): Record the failure to add to the cache.
10474 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
10476         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
10477         workbits in semi-raw fraction.
10479         * math/test-misc.c: Add new tests.
10481 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
10483         * math/basic-test.c: Include test-skeleton.c.
10484         (TEST_TRUNC): Define.
10485         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
10486         (main): Rename to ...
10487         (do_test): ...this.  Run new tests.
10488         (TEST_FUNCTION): Define.
10490 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
10491             Joe Kerian  <jkerian@us.us.ibm.com>
10493         [BZ #2749]
10494         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
10495         handling for high words.
10496         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
10497         and overflow for infinity.
10499 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
10501         * nscd/connections.c (handle_request): Add a __builtin_expect.
10503         * nscd/connections.c (serv2db): Change type into structure which
10504         also says whether this is a request for data.  Renamed to
10505         servinfo.  All users changed.
10506         (handle_request): Much simpler test whether we should search the cache.
10508         * nscd/connections.c (handle_request): Fix thinko in selinux test
10509         invocation.
10511         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
10512         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
10513         it before getting dl_load_lock and then relock.
10514         (_dl_lookup_symbol_x): Pass flags to add_dependency.
10515         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
10516         case we unlocked the scope.
10517         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
10518         _dl_lookup_symbol_x in case we locked the scope.
10519         (_dl_profile_fixup): Likewise.
10520         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
10521         set DL_LOOKUP_SCOPE_LOCK.
10523 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
10525         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
10526         CFLAGS-getsrvbynpt_r.c.
10527         * nscd/getsrvbynm_r.c: New file.
10528         * nscd/getsrvbypt_r.c: New file.
10529         * nscd/nscd_getserv_r.c: New file.
10530         * nscd/servicescache.c: New file.
10531         * nscd/Makefile (routines): Add nscd_getserv_r.
10532         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
10533         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
10534         CFLAGS-getsrvbypt_r.c.
10535         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
10536         table.  Add entries for services database.
10537         * nscd/connections.c (serv2str): Mark as const.  Add entries for
10538         services database.
10539         (dbs): Add .reset_res and servdb initialization.
10540         (serv2db): Add entries for services database.
10541         (verify_persistent_db): Accept dbnr == servdb.
10542         (invalidate_cache): Rewrite database name recognition to use a table.
10543         Call res_init() if .reset_res is set for database.
10544         (handle_request): Add code to handle services database.
10545         * nscd/gai.c: Don't define __getservbyname_r.
10546         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
10547         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
10548         (serv_response_header): Define.
10549         (struct datahead): Add serv_response_header member.
10550         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
10551         using table.
10552         * nscd/nscd.conf: Add entries for services database.
10553         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
10554         Declare serv_iov_disabled.
10555         Declare addservbyname, readdservbyname, addservbyport, and
10556         readdservbyport.
10557         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
10558         (find_db): Fix error message.
10559         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
10560         __nscd_getservbyname_r, and __nscd_getservbyport_r.
10561         * nscd/selinux.c (perms): Add entries for services database.
10562         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
10563         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
10565         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
10566         * nscd/hstcache.c: Likewise.
10567         * nscd/pwdcache.c: Likewise.
10569         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
10570         computation of keylen.
10572         * include/string.h: Only redefine strndupa if this is really for
10573         libc code.
10575 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
10577         * nscd/nscd_gethst_r.c: Minor cleanups.
10579         * nscd/connections.c (handle_request): Check selinux permissions
10580         for all non-admin commands.
10582         * sysdeps/i386/i486/bits/atomic.h: Define
10583         atomic_compare_and_exchange_val_acq,
10584         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
10585         using __sync_* built-ins for gcc >= 4.1.
10586         * sysdeps/x86_64/bits/atomic.h: Likewise.
10588         [BZ #3840]
10589         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
10590         and .oS.d files.
10592 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
10594         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
10595         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
10596         (do_test): Check errno and exit(0) if ENOSYS.
10598 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
10600         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
10601         thousands separators.
10602         * stdlib/Makefile: Add rules to build and run tst-strtod4.
10603         * stdlib/tst-strtod4.c: New test.
10605         [BZ #3855]
10606         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
10607         hexadecimal digit should accept just the initial 0.
10608         * stdlib/tst-strtod2.c (tests): New variable.
10609         (do_test): Run several tests rather than just one.
10611 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
10613         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
10614         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
10616 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
10618         * io/fts.c: Make sure fts_cur is always valid after return from
10619         fts_read.
10620         Patch by Miloslav Trmac <mitr@redhat.com>.
10622 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
10624         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
10625         (R_MIPS_NUM): Bump by 1.
10627 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
10629         * posix/execvp.c: Include alloca.h.
10630         (allocate_scripts_argv): Renamed to...
10631         (scripts_argv): ... this.  Don't allocate buffer here nor count
10632         arguments.
10633         (execvp): Use alloca if possible.
10634         * posix/Makefile: Add rules to build and run tst-vfork3 test.
10635         * posix/tst-vfork3.c: New test.
10637 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
10639         * string/Makefile (tst-strxfrm2-ENV): Define.
10640         * stdlib/Makefile (tst-strtod3-ENV): Define.
10642 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
10644         * posix/getconf.c: Update copyright year.
10645         * nss/getent.c: Likewise.
10646         * iconv/iconvconfig.c: Likewise.
10647         * iconv/iconv_prog.c: Likewise.
10648         * elf/ldconfig.c: Likewise.
10649         * catgets/gencat.c: Likewise.
10650         * csu/version.c: Likewise.
10651         * elf/ldd.bash.in: Likewise.
10652         * elf/sprof.c (print_version): Likewise.
10653         * locale/programs/locale.c: Likewise.
10654         * locale/programs/localedef.c: Likewise.
10655         * nscd/nscd.c (print_version): Likewise.
10656         * debug/xtrace.sh: Likewise.
10657         * malloc/memusage.sh: Likewise.
10658         * malloc/mtrace.pl: Likewise.
10659         * debug/catchsegv.sh: Likewise.
10661 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
10663         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
10664         attempts.
10666 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
10668         * posix/wordexp.c: Remove some unnecessary tests.
10670 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
10672         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
10673         blacklist the group till after we look it up.
10675 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
10677         * include/atomic.h (atomic_forced_read): New macro.
10679 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
10681         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
10683 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
10685         * nss/getXXbyYY_r.c: Include atomic.h.
10686         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
10687         add atomic_write_barrier () in between.
10689         * stdlib/Makefile (tests): Add tst-makecontext.
10690         * stdlib/tst-makecontext.c: New test.
10692         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
10693         (__makecontext): Don't realign uc_mcontext.uc_regs.
10695 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
10697         * elf/dl-support.c: Include dl-procinfo.h.
10698         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
10699         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
10700         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
10701         Define.
10702         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
10703         hardcoded constants.
10704         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
10705         PPC_PLATFORM_* macros for array designators.
10707 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
10709         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
10710         names to the beginning.
10711         (_dl_powerpc_platforms): Add "power6x".
10712         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10713         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
10714         (_DL_PLATFORMS_COUNT): Increase.
10715         (_dl_string_platform): Handle power6x case.
10716         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
10717         PPC_FEATURE_POWER6_EXT): Define.
10718         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
10720 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
10722         [BZ #3747]
10723         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
10724         [-2^31 .. 2^31) range.
10725         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
10726         targets.
10727         * stdlib/tst-rand48-2.c: New test.
10728         * stdlib/Makefile (tests): Add tst-rand48-2.
10730 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
10732         * misc/tst-pselect.c (do_test): Fix sigblock argument.
10734 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
10736         * misc/tst-pselect.c (do_test): Make sure the helper process is
10737         terminating when the test is aborted.
10739 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
10741         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
10742         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
10743         Handle relatime mount option.
10745         [BZ #2337]
10746         * libio/Makefile (tests): Add tst-setvbuf1.
10747         * libio/tst-setvbuf1.c: New file.
10749 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
10751         [BZ #2337]
10752         * libio/genops.c (__uflow): Fix a typo.
10753         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
10754         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
10755         the narrow buffer size.
10757 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
10759         [BZ #2337]
10760         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
10761         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
10762         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
10763         in _flags.
10764         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
10765         _IO_wstr_finish): Likewise.
10766         * libio/wmemstream.c (open_wmemstream): Likewise.
10767         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
10768         even for wide streams.
10770 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
10772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
10773         kernel-features.h.
10775 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
10777         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
10778         separators also if no non-zero digits found.
10779         * stdlib/Makefile (tests): Add tst-strtod3.
10781 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
10783         [BZ #3632]
10784         * include/features.h: Fix comment about default value for
10785         _POSIX_C_SOURCE.
10787         [BZ #3664]
10788         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
10789         empty parsed strings.
10790         * stdlib/Makefile (tests): Add tst-strtod2.
10791         * stdlib/tst-strtod2.c: New file.
10793         [BZ #3673]
10794         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
10795         computation.
10796         * stdlib/Makefile (tests): Add tst-atof2.
10797         * stdlib/tst-atof2.c: New file.
10799         [BZ #3674]
10800         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
10801         correctly if removing trailing zero of hex-float.
10802         * stdlib/Makefile (tests): Add tst-atof1.
10803         * stdlib/tst-atof1.c: New file.
10805 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
10807         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
10808         Start searching for next comma at p rather than rest.
10809         * misc/Makefile (tests): Add tst-mntent2.
10810         * misc/tst-mntent2.c: New test.
10812         * misc/getusershell.c (initshells): Check for integer overflows.
10813         Make strings buffer one bigger as fgets always succeeds when second
10814         argument is 1.  Don't use calloc for shells array.  Disallow
10815         / as shell.
10817 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
10819         * malloc/memusage.c: Handle realloc with new size of zero and
10820         non-NULL pointer correctly.
10821         (me): Really write first record twice.
10822         (struct entry): Make format bi-arch safe.
10823         (dest): Write out more realloc statistics.
10824         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
10826 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
10828         * nis/nis_subr.c (nis_getnames): Revert last change.
10830 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
10832         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
10833         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
10834         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
10835         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
10836         ENOTTY.
10837         * io/Makefile: Add rules to build and run tst-ttyname_r test.
10838         * io/tst-ttyname_r.c: New test.
10840 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10842         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
10844 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
10846         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
10847         jump table entries.
10849 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
10851         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
10852         `clone' function to ensure proper unwinding stop of gdb.
10853         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
10855 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
10857         * nscd/nscd.init: Remove obsolete and commented-out -S option
10858         handling.
10860 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
10862         [BZ #3514]
10863         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
10865         [BZ #3515]
10866         * manual/string.texi (strtok): Remove duplicate paragraph.
10868 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10870         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
10871         libgcc not supporting `rflags' unwinding (register # >= 17).
10873 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
10875         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
10876         succeeded.
10878 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
10879             Jakub Jelinek  <jakub@redhat.com>
10880             Jan Kratochvil  <jan.kratochvil@redhat.com>
10882         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
10883         unwind information.
10884         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
10885         'restore_rt' even in the 'signal' directory.
10886         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
10888 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
10890         [BZ #3559]
10891         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
10892         malloc crashed.  Don't allocate memory unnecessarily in each
10893         loop.
10895 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
10897         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
10899 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
10901         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
10903 2006-11-18  Bruno Haible  <bruno@clisp.org>
10905         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
10906         __sysconf only after having tried to call getgroups32.
10908 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
10910         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
10911         addresses for IPv4 queries if they can be mapped.
10913 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
10915         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
10916         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
10917         (signmask): Add .size directive.
10918         (othermask): Add .type directive.
10920 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
10922         * po/nl.po: Update from translation team.
10924         * timezone/zdump.c: Redo fix for BZ #3137.
10926 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
10928         * nss/nss_files/files-alias.c (get_next_alias): Set line back
10929         to first_unused after parsing :include: file.
10931 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
10933         * timezone/africa: Update from tzdata2006o.
10934         * timezone/antarctica: Likewise.
10935         * timezone/asia: Likewise.
10936         * timezone/australasia: Likewise.
10937         * timezone/backward: Likewise.
10938         * timezone/europe: Likewise.
10939         * timezone/iso3166.tab: Likewise.
10940         * timezone/northamerica: Likewise.
10941         * timezone/southamerica: Likewise.
10942         * timezone/zone.tab: Likewise.
10944         * time/tzfile.c (__tzfile_read): Extend to handle new file format
10945         on machines with 64-bit time_t.
10947         * timezone/checktab.awk: Update from tzcode2006o.
10948         * timezone/ialloc.c: Likewise.
10949         * timezone/private.h: Likewise.
10950         * timezone/scheck.c: Likewise.
10951         * timezone/tzfile.h: Likewise.
10952         * timezone/tzselect.ksh: Likewise.
10953         * timezone/zdump.c: Likewise.
10954         * timezone/zic.c: Likewise.
10956         [BZ #3483]
10957         * elf/ldconfig.c (main): Call setlocale and textdomain.
10958         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
10960         [BZ #3480]
10961         * manual/argp.texi: Fix typos.
10962         * manual/charset.texi: Likewise.
10963         * manual/errno.texi: Likewise.
10964         * manual/filesys.texi: Likewise.
10965         * manual/lang.texi: Likewise.
10966         * manual/maint.texi: Likewise.
10967         * manual/memory.texi: Likewise.
10968         * manual/message.texi: Likewise.
10969         * manual/resource.texi: Likewise.
10970         * manual/search.texi: Likewise.
10971         * manual/signal.texi: Likewise.
10972         * manual/startup.texi: Likewise.
10973         * manual/stdio.texi: Likewise.
10974         * manual/sysinfo.texi: Likewise.
10975         * manual/syslog.texi: Likewise.
10976         * manual/time.texi: Likewise.
10977         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10979         [BZ #3465]
10980         * sunrpc/clnt_raw.c: Minimal message improvements.
10981         * sunrpc/pm_getmaps.c: Likewise.
10982         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
10983         * nis/nis_print_group_entry.c: Likewise.
10984         * locale/programs/repertoire.c: Likewise.
10985         * locale/programs/charmap.c: Likewise.
10986         * malloc/memusage.sh: Likewise.
10987         * elf/dl-deps.c: Likewise.
10988         * locale/programs/ld-collate.c: Likewise.
10989         * libio/vswprintf.c: Likewise.
10990         * malloc/memusagestat.c: Likewise.
10991         * sunrpc/auth_unix.c: Likewise.
10992         * sunrpc/rpc_main.c: Likewise.
10993         * nscd/cache.c: Likewise.
10994         * locale/programs/repertoire.c: Unify output messages.
10995         * locale/programs/charmap.c: Likewise.
10996         * locale/programs/ld-ctype.c: Likewise.
10997         * locale/programs/ld-monetary.c: Likewise.
10998         * locale/programs/ld-numeric.c: Likewise.
10999         * locale/programs/ld-time.c: Likewise.
11000         * elf/ldconfig.c: Likewise.
11001         * nscd/selinux.c: Likewise.
11002         * elf/cache.c: Likewise.
11003         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11005         [BZ #3451]
11006         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
11007         change atomic.
11008         (ceil): Likewise.
11010 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
11012         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
11013         if N is one bigger than return value.
11014         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
11015         and l1 last arguments, if buf is defined, verify the return value
11016         equals to strlen (buf) and verify no byte beyond passed length
11017         is modified.
11019 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
11021         * po/sv.po: Update from translation team.
11023 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
11025         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
11026         noinline attribute.
11028 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
11030         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
11031         noinline attribute.
11033         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
11034         Use __new_sys_siglist instead of _sys_siglist_internal as
11035         second macro argument.
11036         (_old_sys_siglist): Use declare_symbol_alias macro instead of
11037         strong_alias.
11039 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
11041         [BZ #3493]
11042         * posix/unistd.h (sysconf): Remove const attribute.
11044         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
11045         temporary or deprecated addresses.
11046         Patch by Sridhar Samudrala <sri@us.ibm.com>.
11048         * string/Makefile (tests): Add tst-strxfrm2.
11049         * string/tst-strxfrm2.c: New file.
11051 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
11053         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
11054         rather than r->r_brk.
11056 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
11058         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
11059         optimization even if needed > n.
11061         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
11062         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
11063         return false, otherwise return true.
11064         (cache_rpath): Return decompose_rpath return value.
11066 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
11068         * include/libc-symbols.h (declare_symbol): Rename to...
11069         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
11070         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
11071         .size directive.
11072         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
11073         changes.
11074         * sysdeps/gnu/siglist.c: Likewise.
11076 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
11078         * sysdeps/powerpc/fpu/bits/mathinline.h
11079         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
11080         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
11082 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
11084         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
11085         Update handling of cache descriptor 0x49 for new models.
11086         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
11087         Likewise.
11089 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
11091         * malloc/memusage.c (dest): Reset not_me back to false after
11092         printing statistics.
11094 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
11096         * configure.in: Work around ld --help change and avoid -z relro
11097         test completely if the architecture doesn't care about security.
11099 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
11101         * po/sv.po: Update from translation team.
11103 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
11105         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
11106         generate compatibility version.
11108 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
11110         * configure.in: Relax -z relro requirement a bit.
11112         * po/sv.po: Update from translation team.
11114 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
11116         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
11117         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
11118         * elf/dl-close.c (_dl_close_worker): Likewise.
11119         * elf/dl-open.c (_dl_open_worker): Likewise.
11120         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
11122 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
11124         * configure.in: Require assembler support for visibility, compiler
11125         support for visibility and aliases, linker support for various -z
11126         options.
11127         * Makeconfig: Remove conditional code which now is unnecessary.
11128         * config.h.in: Likewise.
11129         * config.make.in: Likewise.
11130         * dlfcn/Makefile: Likewise.
11131         * elf/Makefile: Likewise.
11132         * elf/dl-load.c: Likewise.
11133         * elf/rtld.c: Likewise.
11134         * include/libc-symbols.h: Likewise.
11135         * include/stdio.h: Likewise.
11136         * io/Makefile: Likewise.
11137         * io/fstat.c: Likewise.
11138         * io/fstat64.c: Likewise.
11139         * io/fstatat.c: Likewise.
11140         * io/fstatat64.c: Likewise.
11141         * io/lstat.c: Likewise.
11142         * io/lstat64.c: Likewise.
11143         * io/mknod.c: Likewise.
11144         * io/mknodat.c: Likewise.
11145         * io/stat.c: Likewise.
11146         * io/stat64.c: Likewise.
11147         * libio/stdio.c: Likewise.
11148         * nscd/Makefile: Likewise.
11149         * stdlib/Makefile: Likewise.
11150         * stdlib/atexit.c: Likewise.
11151         * sysdeps/generic/ldsodefs.h: Likewise.
11152         * sysdeps/i386/dl-machine.h: Likewise.
11153         * sysdeps/i386/sysdep.h: Likewise.
11154         * sysdeps/i386/i686/memcmp.S: Likewise.
11155         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11156         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11157         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
11159         * Makerules: USE_TLS support is now default.
11160         * tls.make.c: Likewise.
11161         * csu/Versions: Likewise.
11162         * csu/libc-start.c: Likewise.
11163         * csu/libc-tls.c: Likewise.
11164         * csu/version.c: Likewise.
11165         * dlfcn/dlinfo.c: Likewise.
11166         * elf/dl-addr.c: Likewise.
11167         * elf/dl-cache.c: Likewise.
11168         * elf/dl-close.c: Likewise.
11169         * elf/dl-iteratephdr.c: Likewise.
11170         * elf/dl-load.c: Likewise.
11171         * elf/dl-lookup.c: Likewise.
11172         * elf/dl-object.c: Likewise.
11173         * elf/dl-open.c: Likewise.
11174         * elf/dl-reloc.c: Likewise.
11175         * elf/dl-support.c: Likewise.
11176         * elf/dl-sym.c: Likewise.
11177         * elf/dl-sysdep.c: Likewise.
11178         * elf/dl-tls.c: Likewise.
11179         * elf/ldconfig.c: Likewise.
11180         * elf/rtld.c: Likewise.
11181         * elf/tst-tls-dlinfo.c: Likewise.
11182         * elf/tst-tls1.c: Likewise.
11183         * elf/tst-tls10.h: Likewise.
11184         * elf/tst-tls14.c: Likewise.
11185         * elf/tst-tls2.c: Likewise.
11186         * elf/tst-tls3.c: Likewise.
11187         * elf/tst-tls4.c: Likewise.
11188         * elf/tst-tls5.c: Likewise.
11189         * elf/tst-tls6.c: Likewise.
11190         * elf/tst-tls7.c: Likewise.
11191         * elf/tst-tls8.c: Likewise.
11192         * elf/tst-tls9.c: Likewise.
11193         * elf/tst-tlsmod1.c: Likewise.
11194         * elf/tst-tlsmod13.c: Likewise.
11195         * elf/tst-tlsmod13a.c: Likewise.
11196         * elf/tst-tlsmod14a.c: Likewise.
11197         * elf/tst-tlsmod2.c: Likewise.
11198         * elf/tst-tlsmod3.c: Likewise.
11199         * elf/tst-tlsmod4.c: Likewise.
11200         * elf/tst-tlsmod5.c: Likewise.
11201         * elf/tst-tlsmod6.c: Likewise.
11202         * include/errno.h: Likewise.
11203         * include/link.h: Likewise.
11204         * include/tls.h: Likewise.
11205         * locale/global-locale.c: Likewise.
11206         * locale/localeinfo.h: Likewise.
11207         * malloc/arena.c: Likewise.
11208         * malloc/hooks.c: Likewise.
11209         * malloc/malloc.c: Likewise.
11210         * resolv/Versions: Likewise.
11211         * sysdeps/alpha/dl-machine.h: Likewise.
11212         * sysdeps/alpha/libc-tls.c: Likewise.
11213         * sysdeps/generic/ldsodefs.h: Likewise.
11214         * sysdeps/generic/tls.h: Likewise.
11215         * sysdeps/i386/dl-machine.h: Likewise.
11216         * sysdeps/ia64/dl-machine.h: Likewise.
11217         * sysdeps/ia64/libc-tls.c: Likewise.
11218         * sysdeps/mach/hurd/fork.c: Likewise.
11219         * sysdeps/mach/hurd/i386/tls.h: Likewise.
11220         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
11221         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
11222         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
11223         * sysdeps/s390/libc-tls.c: Likewise.
11224         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11225         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11226         * sysdeps/sh/dl-machine.h: Likewise.
11227         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11228         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11229         * sysdeps/x86_64/dl-machine.h: Likewise.
11231         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
11232         split out locking and parameter checking.
11233         (_dl_close): Call _dl_close_worker after locking and checking.
11234         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
11235         _dl_close.
11236         * elf/Makefile: Add rules to build and run tst-thrlock.
11237         * elf/tst-thrlock.c:  New file.
11239         [BZ #3426]
11240         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
11241         reality.
11243         [BZ #3429]
11244         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
11245         we are sure we do not need it anymore for _dl_close.  Also move
11246         the asserts inside the lock region.
11247         Patch mostly by Suzuki <suzuki@in.ibm.com>.
11249 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
11251         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
11252         argument.
11253         (_dl_lookup_symbol_x): Adjust caller.
11255         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
11256         _ns_global_scope.
11257         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
11259         * elf/dl-libc.c: Revert l_scope name changes.
11260         * elf/dl-load.c: Likewise.
11261         * elf/dl-object.c: Likewise.
11262         * elf/rtld.c: Likewise.
11263         * elf/dl-close.c (_dl_close): Likewise.
11264         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
11265         always use __rtld_mrlock_{change,done}.  Always free old scope list
11266         here if not l_scope_mem.
11267         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
11268         change.  Never free scope list here.  Just __rtld_mrlock_lock before
11269         the lookup and __rtld_mrlock_unlock it after the lookup.
11270         * elf/dl-sym.c: Likewise.
11271         * include/link.h (struct r_scoperec): Remove.
11272         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
11273         with l_scope_mem and l_scoperec_lock with l_scope_lock.
11275 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
11277         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
11279 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11281         * configure.in: Disable building profile libraries by default.
11283 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11285         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
11286         as signed longs, check for x_base + pos overflow.
11287         * sunrpc/Makefile (tests): Add tst-xdrmem2.
11288         * sunrpc/tst-xdrmem2.c: New test.
11290 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11292         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
11293         _dl_lookup_symbol_x code.
11295 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11297         * elf/dl-runtime.c: Include sysdep-cancel.h.
11298         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
11299         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
11300         instead of catomic_* macros.
11301         * elf/dl-sym.c: Include sysdep-cancel.h.
11302         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
11303         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11304         * elf/dl-close.c: Include sysdep-cancel.h.
11305         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
11306         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11307         * elf/dl-open.c: Include sysdep-cancel.h.
11308         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
11309         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11311 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11313         [BZ #3313]
11314         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
11315         fastbin rather than end of fastbin array.
11317 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11319         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
11320         body macro.
11321         * sysdeps/x86_64/bits/atomic.h
11322         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
11323         (catomic_decrement): Use correct body macro.
11325 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11327         * include/atomic.h: Add a unique prefix to all local variables
11328         in macros.
11329         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
11331 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
11333         [BZ #3369]
11334         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
11335         and 7.
11337 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
11339         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
11341 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
11343         [BZ #3313]
11344         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
11345         determine highest fast bin to consolidate, always look into all of
11346         them.
11347         (do_check_malloc_state): Only require for empty bins for large
11348         sizes in main arena.
11350         * libio/stdio.h: Add more __wur attributes.
11352         * elf/dl-minimal.c (realloc): Optimize last patch.
11354 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
11356         [BZ #3352]
11357         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
11358         and use memcpy() if it does.
11360 2006-11-12  Andreas Jaeger  <aj@suse.de>
11362         [BZ #2510]
11363         * manual/search.texi (Hash Search Function): Clarify.
11364         (Array Search Function): Clarify.
11366 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
11368         [BZ #2830]
11369         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
11370         shifting.
11371         * math/atest-exp2.c (read_mpn_hex): Likewise.
11372         * math/atest-sincos.c (main): Likewise.
11374 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
11376         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
11377         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
11378         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
11379         version GLIBC_2.6.
11380         * Versions.def: Add GLIBC_2.6 for libc.
11382         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
11384         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
11386 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
11388         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
11390         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
11392         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
11393         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
11395 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
11397         * include/atomic.c: Define catomic_* operations.
11398         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
11399         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
11400         * malloc/memusage.c: Likewise.
11401         * gmon/mcount.c: Likewise.
11402         * elf/dl-close.c: Likewise.
11403         * elf/dl-open.c: Likewise.
11404         * elf/dl-profile.c: Likewise.
11405         * elf/dl-sym.c: Likewise.
11406         * elf/dl-runtime.c: Likewise.
11407         * elf/dl-fptr.c: Likewise.
11408         * resolv/res_libc.c: Likewise.
11410 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
11412         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
11413         components which lack them.
11415         * nis/nis_subr.c (nis_getnames): Make sure that we always return
11416         at least one entry consisting of the parameter concatenated with
11417         the domain.
11419 2006-10-10  Roland McGrath  <roland@frob.com>
11421         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
11422         * sysdeps/mach/hurd/futimes.c: Likewise.
11423         * sysdeps/mach/hurd/lutimes.c: Likewise.
11425 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
11426             Jakub Jelinek  <jakub@redhat.com>
11428         Implement reference counting of scope records.
11429         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
11430         from the list in objects which remain.  Always allocate new scope
11431         record.
11432         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
11433         don't resize, allocate a new one.
11434         * elf/dl-runtime.c: Update reference counters before using a scope
11435         array.
11436         * elf/dl-sym.c: Likewise.
11437         * elf/dl-libc.c: Adjust for l_scope name change.
11438         * elf/dl-load.c: Likewise.
11439         * elf/dl-object.c: Likewise.
11440         * elf/rtld.c: Likewise.
11441         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
11442         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
11443         Add l_scoperec_lock.
11444         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
11445         * sysdeps/generic/rtld-lowlevel.h: New file.
11447         * include/atomic.h: Rename atomic_and to atomic_and_val and
11448         atomic_or to atomic_or_val.  Define new macros atomic_and and
11449         atomic_or which do not return values.
11450         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
11451         Various cleanups.
11452         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11454         * po/sv.po: Update from translation team.
11456 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
11458         * Versions.def: Add GLIBC_2.6 to libpthread.
11460         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
11461         (versioned_symbol): Likewise.
11462         (compat_symbol): Likewise.
11464         * po/tr.po: Update from translation team.
11466 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
11468         * nis/Banner: Removed.  It's been integral part forever and the
11469         author info is incomplete anyway.
11470         * libio/Banner: Likewise.
11472         * nis/nis_table.c (nis_list): If __follow_path fails in the new
11473         code, make sure the nis_freeresult call doesn't crash and that the
11474         result is reported correctly.
11476 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
11478         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
11479         when callback is NULL.
11481         * nis/Versions (libnss_nisplus): Add
11482         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
11483         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
11484         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
11485         _nss_create_tablename): Rename to...
11486         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
11487         ... these.  No longer static.
11488         (internal_setgrent): Adjust users.
11489         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
11490         Don't use locking around _nss_grp_create_tablename call.
11491         * nis/nss_nisplus/nisplus-initgroups.c: New file.
11493 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
11495         * version.h (VERSION): Bump to 2.5.90 for new development tree.
11497 2006-10-06  Andreas Jaeger  <aj@suse.de>
11499         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
11501 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
11503         * po/pl.po: Update from translation team.
11505         * nscd/nscd.c (main): Fix typo in message.
11506         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
11508 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
11510         [BZ #3291]
11511         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
11512         errno.h, signal.h, unistd.h and sysdep-cancel.h.
11513         (__sigprocmask): Define.
11515 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
11517         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
11518         used.
11520 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
11522         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
11523         in oldtotal and newtotal calculation.
11524         * nscd/nscd-client.h (struct mapped_database): Add datasize
11525         field.
11526         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
11527         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
11528         increased.
11529         (__nscd_cache_search): Add checks to make sure we never reference
11530         data beyond the current mapping.
11532 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
11534         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
11535         variables const to avoid compiler warnings.
11537         * io/fts.c (fts_close): Remove redundant checks.
11538         (fts_build): Likewise.
11539         (fts_palloc): Likewise.
11541         * manual/message.texi (Advanced gettext functions,
11542         Using gettextized software): Fix typos.
11544 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
11546         * posix/glob.c (glob_in_dir): Add some comments and asserts to
11547         explain why there are no leaks.
11549 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
11551         * libio/wmemstream.c: Include <wchar.h>.
11552         * libio/bug-wmemstream1.c: Likewise.
11553         * libio/tst-wmemstream1.c: Likewise.
11554         * libio/tst-wmemstream2.c: Likewise.
11556         * version.h (RELEASE): Bump to 2.5.
11557         * README: Regenerated.
11559         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
11561         [BZ #3273]
11562         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
11563         found no group members.
11564         Patch by Petr Baudis.
11566 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
11568         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
11569         assert bootstrap_map.l_tls_modid is zero.
11570         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
11571         if USE___THREAD.
11573 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
11575         * libio/stdio.h: Move open_wmemstream prototype to ...
11576         * wcsmbs/wchar.h: ... here.
11578 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
11580         [BZ #3252]
11581         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
11582         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
11583         __{,l}chown to handle the rest.
11584         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
11585         fchownat syscall and __ASSUME_32BITUIDS case inline, call
11586         __{,l}chown to handle the rest.
11587         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
11588         i386/fchownat.c.
11589         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
11590         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
11592         [BZ #3253]
11593         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
11594         time, rather allocate increasingly bigger arrays of pointers, if
11595         possible with alloca, if too large with malloc.
11597 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
11599         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
11601         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
11603 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
11605         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
11606         home addresses.
11607         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
11608         IFA_F_HOMEADDRESS flag for interfaces.
11609         * include/ifaddrs.h (struct in6addrinfo): Define
11610         in6ai_homeaddress.
11612 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
11614         [BZ #3225]
11615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
11616         PTR_DEMANGLE3): Define.
11617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
11618         PTR_DEMANGLE3): Likewise.
11619         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
11620         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
11621         Likewise.
11622         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
11624 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
11626         * po/libc.pot: Regenerated.
11627         * po/be.po: Updated.
11628         * po/ca.po: Likewise.
11629         * po/cs.po: Likewise.
11630         * po/da.po: Likewise.
11631         * po/de.po: Likewise.
11632         * po/el.po: Likewise.
11633         * po/en_GB.po: Likewise.
11634         * po/es.po: Likewise.
11635         * po/fi.po: Likewise.
11636         * po/fr.po: Likewise.
11637         * po/gl.po: Likewise.
11638         * po/hr.po: Likewise.
11639         * po/hu.po: Likewise.
11640         * po/ja.po: Likewise.
11641         * po/ko.po: Likewise.
11642         * po/nb.po: Likewise.
11643         * po/nl.po: Likewise.
11644         * po/pl.po: Likewise.
11645         * po/pt_BR.po: Likewise.
11646         * po/ru.po: Likewise.
11647         * po/rw.po: Likewise.
11648         * po/sk.po: Likewise.
11649         * po/sv.po: Likewise.
11650         * po/tr.po: Likewise.
11651         * po/zh_CN.po: Likewise.
11652         * po/zh_TW.po: Likewise.
11654         [BZ #3137]
11655         * iconv/iconv_prog.c (main): Fix spelling in error message.
11656         * iconv/iconvconfig.c (main): Likewise.
11657         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
11658         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
11659         * locale/programs/localedef.c (main): Likewise.
11660         * locale/programs/repertoire.c (repertoire_read): Likewise.
11661         * timezone/zdump.c (main): Likewise.
11662         * nscd/connections.c (handle_request): Fix spelling in log message.
11663         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
11665 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
11667         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
11668         interfaces.
11670 2006-09-20  Andreas Jaeger  <aj@suse.de>
11672         * math/libm-test.inc (lrint_test_upward): Fix typo.
11674 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
11676         [BZ #2592]
11677         * math/libm-test.inc (lrint_test_tonearest): New function.
11678         (lrint_test_towardzero): New function.
11679         (lrint_test_downward): New function.
11680         (lrint_test_upward): New function.
11681         (main): Run these new tests.
11682         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
11683         of values near to 0.
11684         (two52): Use double not long double.
11685         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11686         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11687         (two23): Use float not double.
11688         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11689         (two23): Use float not double.
11690         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
11691         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11692         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
11693         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11695 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11697         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
11698         Cast sp to unsigned long to avoid compiler warning.
11699         Use __makecontext_ret function instead of a trampoline on the stack.
11700         (__makecontext_ret): New function.
11701         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
11703 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
11705         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
11706         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
11707         bits.
11709 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
11711         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
11712         sure no reference to the unloaded map's search list remains in the
11713         dependency's scope.
11715 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
11717         * elf/Makefile: Add rules to build and run unload7 test.
11718         * elf/unload7.c: New test.
11719         * elf/unload7mod1.c: New file.
11720         * elf/unload7mod2.c: New file.
11722 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
11724         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
11725         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
11726         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11727         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
11728         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11729         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
11730         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11731         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
11732         PTRACE_GETEVENTMSG): Likewise.
11733         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
11734         values.
11736 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
11738         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
11739         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11740         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
11741         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
11743 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
11745         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
11746         write '\0' to the fd.
11747         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
11748         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
11749         Change regs to unsigned long pointer from unsigned int, fix fscr
11750         offset.
11752 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
11754         * io/Makefile (CFLAGS-fstatat.c): Set.
11755         (CFLAGS-fstatat64.c): Likewise.
11756         (CFLAGS-mknodat.c): Likewise.
11758         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
11759         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11760         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
11761         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
11763 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
11764             Steven Munroe  <sjmunroe@us.ibm.com>
11766         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
11767         names to the beginning.  Rename "cell" to "cellbe".
11768         (_dl_powerpc_platforms): New.
11769         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11770         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
11771         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
11772         (_DL_HWCAP_PLATFORM): Define to new mask.
11773         (_dl_platform_string, _dl_string_platform): New functions.
11774         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
11775         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
11777 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
11779         [BZ #2526]
11780         * README.libm: Fix a thinko in sqrt algorithm description.
11782         [BZ #3143]
11783         * manual/string.texi (argz_delete): Fix prototype.
11784         Patch by <alpt@freaknet.org>.
11786 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
11788         [BZ #3138]
11789         * io/test-lfs.c (do_prepare): Give name_len type size_t.
11790         * io/tst-fcntl.c (do_prepare): Likewise.
11791         * posix/tst-exec.c (do_prepare): Likewise.
11792         * posix/tst-preadwrite.c (do_prepare): Likewise.
11793         * posix/tst-spawn.c (do_prepare): Likewise.
11794         * posix/tst-truncate.c (do_prepare): Likewise.
11795         * rt/tst-aio.c (do_prepare): Likewise.
11796         * rt/tst-aio64.c (do_prepare): Likewise.
11797         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
11798         size_t.
11800 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
11802         [BZ #2821]
11803         * time/mktime.c (guess_time_tm): Fix overflow detection.
11804         * time/Makefile (tests): Add bug-mktime1.
11805         * time/bug-mktime1.c: New file.
11807         [BZ #3189, #3188]
11808         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
11809         (mremap): Likewise.
11811 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
11813         [BZ #1006]
11814         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
11815         Ensure relocation doesn't clobber any bits outside of the
11816         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
11817         R_SPARC_HI22 and R_SPARC_H44.
11819         [BZ #2775]
11820         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
11821         (long) (MINSIZE + nb - old_size) is positive.
11823         * malloc/arena.c (grow_heap): When growing bail even if new_size
11824         is negative.
11826         [BZ #3155]
11827         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
11828         stack below r1.
11830 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
11832         * posix/regex_internal.c (re_string_reconstruct): Handle
11833         offset < pstr->valid_raw_len && pstr->offsets_needed case.
11834         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
11835         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
11836         re_string_context_at.
11837         * posix/Makefile: Add rules to build and run bug-regex26 test.
11838         * posix/bug-regex26.c: New test.
11840         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
11841         rather than col_sym_free.  Move seqp declaration earlier.
11843         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
11845 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
11847         * nscd/initgrcache.c (addinitgroupsX): Move any_success
11848         decl before first goto out.
11850 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
11852         * Makerules (shlib.lds): If have-hash-style, put .hash section
11853         at the end of the RO segment.
11855 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
11857         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
11858         style hash table format is used.
11860 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
11862         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
11863         randomization rather than before.
11864         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
11866 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
11868         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
11870         * malloc/malloc.c (_int_malloc): Use full list insert and not
11871         shortcut which assumes the list is empty for large requests
11872         too.
11874         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
11876 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
11878         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
11879         and offout arguments to the prototype.
11880         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
11881         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
11882         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
11883         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
11884         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
11885         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
11886         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
11887         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
11889 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
11891         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
11893         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
11894         dlopen parameters.
11896 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
11898         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
11899         only if herrno is NETDB_INTERNAL.  Handle errors other than
11900         ERANGE outside of the loops, handle TRY_AGAIN.
11902         * locale/programs/ld-ctype.c (translit_flatten): Issue error
11903         if other's ctype category was missing.
11904         * locale/programs/ld-collate.c (collate_read): Return if
11905         copy_locale's collate category is missing.
11907 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
11909         [BZ #2684]
11910         * malloc/malloc.c (public_rEALLOc): Try harder by using other
11911         arenas if allocation failed.
11912         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
11914 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
11916         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
11917         waste bins[0..1].
11918         (malloc_state): Reduce bins size by 2.
11919         (_int_malloc): Fix test for large enough buffer for early termination.
11920         When no unsorted block matches perfectly and an exiting block has
11921         to be split, use full list insert and not shortcut which assumes
11922         the list is empty.
11924         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
11925         failure.
11927 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
11929         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
11930         do anything.
11932         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
11933         symbol require exact match (these are PLTs).
11934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
11935         (_dl_ppc64_addr_sym_match): Likewise.
11937         [BZ #2683]
11938         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
11939         If symbol has a value use it.
11940         * elf/tst-dladdr1.c: New file.
11941         * elf/Makefile: Add rules to build and run tst-addr1.
11943 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
11945         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
11946         keeps failing and heap growth or new heap creation isn't
11947         successful either.
11948         * malloc/tst-malloc.c (main): Add new tests.
11950 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
11952         [BZ #2734]
11953         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
11954         as in the x86-64 code to use bswap.
11956 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
11958         [BZ #2680]
11959         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
11960         __USE_UNIX98.
11961         * posix/bits/unistd.h: Likewise.
11963 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
11965         [BZ #2751]
11966         * string/strchr.c: Add cast to avoid warning.
11968 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
11970         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
11971         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
11972         limit is needed to avoid the exploding of the address space
11973         requirement for secondary heaps.
11974         * malloc/arena.c (HEAP_MAX_SIZE): Define using
11975         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
11977 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
11979         [BZ #3018]
11980         * Makerules (depfiles): Handle extra-test-objs the same as
11981         extra-objs.
11982         (common-mostlyclean): Likewise.
11983         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
11984         instead.
11985         * elf/Makefile (extra-objs): Likewise.
11986         * stdlib/Makefile (extra-objs): Likewise.
11988 2006-08-14  Eric Blake  <ebb9@byu.net>
11990         [BZ #3044]
11991         * misc/error.h: Assume C89 or better.
11992         * misc/error.c: Likewise.
11994 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
11996         [BZ #3040]
11997         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
11998         __ASSUME_ATFCTS is defined.
12000 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
12002         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
12003         to sort in each call.
12005         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
12006         is empty simply return and use next service.
12007         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
12009         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
12010         tells us when not finding a charmap file is an error.
12011         * locale/programs/charmap.h: Adjust charmap_read prototype.
12012         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
12013         cannot find a charmap.
12014         * locale/programs/localedef.c (main): Adjust charmap_read call.
12016 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
12018         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
12019         sysdeps/posix/pause.c implementation instead.
12021 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
12023         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
12024         to EPERM.
12026 2006-08-13  Andreas Schwab  <schwab@suse.de>
12028         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
12029         Don't clobber caller's LRSAVE.
12030         (_dl_prof_resolve): Likewise.
12032 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
12034         [BZ #1996]
12035         * libio/memstream.c (open_memstream): Allocate initial buffer with
12036         calloc.
12037         * libio/wmemstream.c (open_wmemstream): Likewise.
12038         * libio/strops.c: Pretty printing.
12039         (_IO_str_overflow): Clear uninitialized part of the new buffer.
12040         (enlarge_userbuf): New function.
12041         (_IO_str_seekoff): Call it if seek position is larger than current
12042         buffer.
12043         * libio/wstrops.c: Likewise.
12044         * libio/vasprintf.c: Add comment as to why we do not have to use
12045         calloc instead of malloc to allocate initial buffer.
12046         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
12047         * libio/bug-memstream1.c: New file.
12048         * libio/bug-wmemstream1.c: New file.
12050 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
12052         * libio/wstrops.c: Remove dead macro definitions and comments.
12053         * libio/strops.c: Likewise.
12055         [BZ #2764]
12056         * login/utmpname.c (__utmpname): Remove unnecessary test.
12058 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
12060         [BZ #2832]
12061         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
12062         0s from integers.
12064 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
12066         [BZ #2987]
12067         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
12068         for CPU clocks.
12069         * sysdeps/unix/clock_settime.c: Add support for platform-specific
12070         setting of CPU clocks.
12072 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12074         [BZ #2841]
12075         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
12076         since C99 requires the result to promote to 'int' when uint_least8_t
12077         and uint_least16_t promote to 'int'.
12079 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
12081         [BZ #3013]
12082         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
12083         lenght of one output field, correct bitmask creation.
12084         * locale/programs/ld-time.c: Add alignment.
12086         [BZ #2997]
12087         * misc/error.c: Add space between program name and message if file
12088         name is missing.
12090 2006-08-03  Eric Blake  <ebb9@byu.net>
12092         [BZ #2998]
12093         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
12095 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
12097         * malloc/memusagestat.c: Silence warnings.
12099         * malloc/malloc.c: Dynamically size mmap treshold if the program
12100         frees mmaped blocks.
12101         Patch by Valerie Henson and Arjan van de Ven.
12103 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
12105         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
12106         __USE_GNU.
12108         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
12109         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
12110         (DEF): Don't put the var into .gnu.linkonce.r.* section.
12111         Only provide var definitions in strtol_l (or for *ull*
12112         in strtoll_l).
12114         * stdio-common/bug16.c (tests): New array.
12115         (do_tests): Allow the first hexadecimal digit
12116         to be 1, 2, 4 or 8.  Do 3 additional tests.
12118         * sysdeps/s390/fpu/libm-test-ulps: Update.
12120         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
12121         fchownat syscall if available.
12122         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
12123         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
12124         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
12126 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
12128         * nis/nis_xdr.c: Avoid some function calls.
12130 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
12131             Ulrich Drepper  <drepper@redhat.com>
12133         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
12134         short cut if only one name component is stripped away.
12136 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
12138         * nis/nis_call.c: Minor cleanups throughout.
12139         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
12140         (first_shoot): Add search_parent_first parameter.  Only if it is set
12141         search parent server first.
12142         If directory for table found through cold start cache is not the same
12143         as referenced in the cache, don't use it.
12144         (__nisfind_server): Take additional parameter.  Pass it on to
12145         first_shoot.
12146         (__prepare_niscall): Adjust __nisfind_server call.
12147         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
12148         * nis/nis_table.c: Adjust __nisfind_server call.
12149         * nis/nis_lookup.c: Likewise.
12150         (nis_lookup): Don't loop endlessly if name is reduced to ".".
12152 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
12154         [BZ #2182]
12155         * math/s_cacosh.c: Return values from positive branch.
12156         * math/s_cacoshf.c: Likewise.
12157         * math/s_cacoshl.c: Likewise.
12159         [BZ #2883]
12160         * sysvipc/sys/msg.h: Change return value to ssize_t.
12161         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
12162         * sysvipc/msgrcv.c: Likewise.
12163         * include/sys/msg.h: Likewise.
12165         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
12166         test introduced in patch for bz #661.
12167         (getgrouplist): Simplify code a bit.  Don't allocate one additional
12168         element for NEWGROUPS.
12170         [BZ #2908]
12171         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
12172         'f', use '1' as leading digit not '\1'.
12173         * stdio-common/Makefile (tests): Add bug16.
12174         * stdio-common/bug16.c: New file.
12176         [BZ #2914]
12177         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
12178         and don't try to open it.  The patch introducing the macro
12179         contained a bug and used the same file name as the new file
12180         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
12181         this out completely.
12183         [BZ #2926]
12184         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
12185         Patch by Jerry James <Jerry.James@usu.edu>.
12187         * rt/Makefile (tests): Add tst-clock2.
12188         * rt/tst-clock2.c: New file.
12190         [BZ #2978]
12191         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
12192         function and its parameters and pass it to new thread.
12193         (__gai_notify): Add support for alternative waiting for completion.
12194         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
12195         waiting for completion.
12196         * resolv/getaddrinfo_a.c: Likewise.
12197         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
12198         waiting for completion is used.
12199         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
12200         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
12201         * resolv/gai_error.c: Likewise.
12202         * resolv/gai_sigqueue.c: Likewise.
12204 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
12206         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
12207         errno to EBADF and return MACH_PORT_NULL.
12209 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
12211         [BZ #2980]
12212         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
12214 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
12216         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
12217         walk them instead of the symbol table.
12219 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
12221         [BZ #2098]
12222         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
12223         status of NSS calls, not the number of returned entries.
12225         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
12226         request_key, keyctl.
12228 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12230         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
12232 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
12234         * elf/tst-auditmod1.c: Fix typo in #error.
12236 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12238         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
12240         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
12242 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
12244         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
12245         that the directory is empty even on non-POSIX filesystems.
12247 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12249         * elf/dl-open.c (dl_open_worker): Add branch prediction.
12251         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
12252         the backend NSS module.  If backend setgrent call failed, don't have
12253         internal_setgrent fail.  Just remember this until it is needed.
12254         * nis/nss_compat/compat-pwd.c: Likewise.
12255         * nis/nss_compat/compat-spwd.c: Likewise.
12257 2006-07-30  Roland McGrath  <roland@redhat.com>
12259         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
12260         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
12261         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
12262         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
12264         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
12265         (nanosleep_not_cancel): New macro.
12266         (sigsuspend_not_cancel): new macro.
12267         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
12268         (do_sigsuspend): Define as inline.
12269         (__sigsuspend): Always use do_sigsuspend.
12270         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
12271         * include/signal.h: Declare __sigsuspend_nocancel.
12272         * sysdeps/posix/pause.c
12273         [! NO_CANCELLATION] (__pause_nocancel): New function.
12275         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
12276         * include/time.h (__nanosleep_nocancel): Likewise.
12278 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
12280         * locale/programs/localedef.c (add_to_readlist): Rename local
12281         variables to avoid confusion.
12283         * locale/programs/charmap.c (charmap_read): Emit error message if
12284         charmap couldn't be found or read.
12286 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
12288         * sysdeps/unix/sysv/linux/kernel-features.h: Define
12289         __ASSUME_FUTEX_LOCK_PI.
12290         * include/time.h: Declare __nanosleep_nocancel.
12291         * include/unistd.h: Declare __pause_nocancel.
12293         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
12294         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
12295         get the __stack_chk_fail_local definition when it's needed.
12297 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
12299         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
12300         * dlfcn/bug-atexit3.c: New file.
12301         * dlfcn/bug-atexit3-lib.cc: New file.
12303         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
12304         used when the namespace is not the base namespace.
12306 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
12308         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
12309         (__new_exitfn): Bump it in every successful call.
12310         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
12311         more exit handlers, call them right away.
12312         * stdlib/exit.h: Declare __new_exitfn_called.
12314 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
12316         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
12317         calling registered handler.
12319         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
12320         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12321         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12322         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12323         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12324         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12325         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12326         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12328 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
12330         * elf/dl-lookup.c (dl_new_hash): New functions.
12331         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
12332         value here.  Compute new-style hash value.  Pass new hash value
12333         and reference to variable with the old value to do_lookup_x.
12334         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
12335         old-style hash table.
12336         (_dl_debug_bindings): Pass new hash value and reference to variable
12337         with the old value to do_lookup_x.
12338         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
12339         new-style hash value and change old-style hash value parameter to
12340         be a reference.  Reoganize functions to determine whether
12341         new-style hash table is available.  Only fall back on old-style
12342         table.  If old-style hash value is needed, compute it here.
12343         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
12344         entry.
12345         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
12346         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
12347         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
12348         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
12349         * Makeconfig: If linker supports --hash-style option add it to all
12350         linker command lines to build DSOs.
12351         * config.make.in: Define have-hash-style.
12352         * configure.in: Test whether linker supports --hash-style option.
12354         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
12355         * sysdeps/generic/ldsodefs.h: Adjust prototype.
12357 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
12359         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
12360         auditing.
12362         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
12363         RPATH of main map twice.
12365 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
12367         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
12368         look further, return original strings.
12369         (_nl_find_msg): Do not return found translation if the conversion
12370         failed.  Either signal the string is unusable or that something went
12371         wrong and the original should be used.
12373 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
12375         * string/_strerror.c (__strerror_r): Add __builtin_expect.
12377 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
12379         [BZ #2766]
12380         * misc/insremque.c (insque): Handle prev == NULL.
12381         * misc/Makefile (tests): Add tst-insremque.
12382         * misc/tst-insremque.c: New test.
12384 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
12386         [BZ #2792]
12387         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
12388         conflict with DL_DST_REQUIRED.
12390 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
12392         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
12393         match what Solaris does.
12395 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
12397         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
12398         local_setegid instead of seteuid and setegid.
12399         * sysdeps/generic/local-setxid.h: New file.
12400         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
12402         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
12404         * string/Makefile (tests): Add bug-envz1.
12405         * string/bug-envz1.c: New file.
12407 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
12409         * posix/regex_internal.c (re_string_skip_chars): If no character has
12410         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
12411         to the byte which couldn't be converted.
12412         (re_string_reconstruct): Don't clear valid_raw_len before calling
12413         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
12414         tip_context using re_string_context_at.
12415         * posix/Makefile: Add rules to build and run bug-regex25 test.
12416         * posix/bug-regex25.c: New test.
12418 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
12420         [BZ #2703]
12421         * string/envz.c (envz_strip): Correct erroneously reversed src
12422         and dest parameters to memmove() invocation.
12424 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
12426         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
12427         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
12428         to make sure the database has been already invalidated.
12429         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
12430         after the cache has been invalidated.  Use pthread_mutex_lock rather
12431         than pthread_mutex_trylock if fd != -1.
12432         * nscd/connections.c (invalidate_cache): Add fd argument, write
12433         response to fd if not calling prune_cache, pass fd to prune_cache.
12434         (handle_request): Adjust invalidate_cache caller.
12435         (nscd_run): Pass -1 as fd to prune_cache.
12437 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
12439         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
12440         the correct place.
12442 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
12444         * nscd/nscd.h (struct database_dyn): Add prunelock field.
12445         * nscd/cache.c (prune_cache): Take prunelock before starting the
12446         work.  Just return in case it is already taken.
12447         * nscd/connections.c (dbs): Initialize .prunelock.
12449 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
12451         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
12452         copying.  No need to allocate new array for group members.  Just
12453         move the pointers and update the size.
12455         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
12456         Avoid memory leak in case realloc fails.  Simplification for
12457         better code generation.
12459         Avoid deprecation warning because of libc_hidden_proto for
12460         inet6_option_alloc.
12461         * inet/inet6_option.c (option_alloc): Renamed from
12462         inet6_option_alloc.  Made static.
12463         (inet6_option_alloc): Now a simple wrapper around option_alloc.
12464         (inet6_option_append): Call option_alloc.
12465         * include/netinet/in.h: Remove libc_hidden_proto for
12466         inet6_option_alloc.
12468         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
12469         for cleanup when cb!=NULL [Coverity CID 233].
12471 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
12473         [BZ #2693]
12474         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
12475         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
12476         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
12477         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
12478         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
12479         and inet6_rth_getaddr.
12480         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
12481         array.
12482         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
12483         Mark inet6_option_* interfaces as deprecated.
12484         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
12485         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
12486         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
12487         inet6_rth_segments, and inet6_rth_getaddr.
12488         * inet/inet6_opt.c: New file.
12489         * inet/inet6_rth.c: New file.
12491         * inet/netinet/icmp6.h: Pretty printing.
12493         [BZ #2683]
12494         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
12496 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
12498         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
12499         doing it all here.  When server does not know the answer do not
12500         fail immediate, try parent first.
12502         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
12503         overflow test.
12505 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
12507         * nis/nis_call.c (__prepare_niscall): New function.  Split out
12508         from __do_niscall.
12509         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
12510         and exported.
12511         (__follow_path): New function.  Split out from nis_list.
12512         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
12513         _xdr_nis_result.
12514         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
12515         _xdr_nis_result.
12516         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
12517         and __follow_path.
12518         * nis/Versions: Export __prepare_niscall, __create_ib_request,
12519         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
12520         from libnsl for version GLIBC_PRIVATE.
12521         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
12522         Remove entry parameter from _nss_nisplus_parse_pwent and
12523         _nss_nisplus_parse_grent.
12524         * nis/nss_nisplus/nisplus-parser.c: Likewise.
12525         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
12526         again.  Rewrite getpwent handling to not use nis_first_entry and
12527         nis_next_entry.  Roll out own niscall handling.
12528         * nis/nss_nisplus/nisplus-grp.c: Likewise.
12530         * sunrpc/xdr_rec.c: Fix typo in comment.
12532 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
12534         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
12535         handling.
12537         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
12538         to allocate memory for my_pollfd.  Better initialization of
12539         cb_is_running.  Use TEMP_FAILURE_RETRY.
12541         * malloc/memusage.sh (memusageso): Add quotes.
12542         (memusagestat): Likewise.
12543         * debug/xtrace.sh (pcprofileso): Likewise.
12544         (pcprofiledump): Likewise.
12545         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
12546         replacement.
12547         * malloc/Makefile ($(objpfx)memusage): Likewise.
12549         * nis/nis_callback.c (__nis_create_callback): Calls to
12550         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
12551         asprintf call fails.
12553         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
12554         no uninitialized memory is passed to sendto.
12556 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
12558         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
12559         of snprintf+strdup.  Handle OOM.
12560         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
12561         cb->serv together.  Remove now obsolete free calls.
12562         (__nis_destroy_callback): Remove now obsolete free call.
12564 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
12566         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
12567         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
12568         and ULA respectively). Set precedence for IPv4 address to 10 as
12569         defined in RFC3484 for preferring IPv6.
12570         * posix/gai.conf: Update to match the new default tables.
12572 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
12574         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
12575         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
12576         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
12577         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
12579         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
12580         Removed.
12581         (init_nss_interface): Remove initialization of these variables.
12583 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
12585         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
12586         nis_free_directory forward to avoid duplication.
12588 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
12590         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
12591         rec_dirsearch returning NULL.
12592         (first_shoot): Handle __nis_finddirectory returning NULL.
12593         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
12595         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
12596         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
12598 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
12600         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
12601         pid changed.
12603 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
12605         * include/rpc/pmap_prot.h: Mark all functions as hidden.
12607         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
12608         * nscd/nscd_getgr_r.c: Likewise.
12610         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
12612         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
12613         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
12615         * stdlib/longlong.h (__clz_tab): Mark as hidden.
12617         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
12619         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
12621         * include/rpc/auth.h: Mark xdr_des_block_internal and
12622         xdr_opaque_auth_internal as hidden.
12624         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
12625         hidden.
12627         * include/rpc/xdr.h: Mark all _internal functions as hidden.
12629         * misc/getusershell.c (okshells): Don't use static initializers,
12630         do it dynamically.
12632         * stdlib/fmtmsg.c (keywords): Change type of len element to
12633         uint32_t to not waste space on 64bit machines.
12635         * locale/setlocale.c: Change _nl_category_names into a string.
12636         Add new _nl_category_name_idxs.  Change all users.
12637         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
12638         Declare _nl_category_name_idxs.
12639         * locale/findlocale.c: Adjust for _nl_category_names change.
12640         * locale/loadlocale.c: Likewise.
12641         * locale/newlocale.c: Likewise.
12642         * intl/dcigettext.c: Likewise.
12644         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
12645         (add_alias2): ...here.  New function.
12646         (__gconv_read_conf): Simplify builtin alias handling.
12647         (builtin_aliases): Convert to string to avoid relocations.
12648         * iconv/gconv_builtin.h: Add comment about correct formatting.
12650 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
12652         * resolv/res_debug.c (loc_ntoa): Make error const.
12654 2006-05-14  Andreas Schwab  <schwab@suse.de>
12656         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
12658 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
12660         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
12661         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
12662         sizeof (cpu_set_t).
12664 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
12666         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
12668         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
12670         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
12671         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
12673         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
12674         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
12676         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
12677         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
12678         xdr_cback_data.
12680         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
12681         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12682         xdr_ypupdate_args.
12684         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
12685         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
12687         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
12688         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
12690         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
12691         * include/rpcsvc/nis_callback.h: New file.
12693         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
12694         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
12696         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12697         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12699         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
12700         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
12702         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12703         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12705         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
12706         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12707         xdr_ypdelete_args.
12709         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
12710         __BEGIN_DECLS and __END_DECLS, the header is not installed.
12712         * nis/nis_error.c: Remove table of strings.  Use position
12713         independent mechanism.
12714         * nis/nis_error.h: New file.
12716 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
12718         * locale/programs/ld-time.c (time_finish): If wide era name or
12719         format aren't provided, set both wname and wformat to L"".
12721 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
12723         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
12724         results if the call was succesful.
12726         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
12728         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
12729         as hidden.
12731 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
12733         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
12735 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
12737         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
12738         caller makes sure this is not the case.
12739         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
12741 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
12743         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
12744         calls.
12746         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
12747         [Coverity CID 229, 230]
12749         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
12750         DGETTEXT calls.
12751         (hol_help): Likewise.  [Coverity CID 226, 227]
12753         * string/argz-replace.c (__argz_replace): Unconditionally call
12754         free on SRC.  [Coverity CID 225]
12756         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
12757         the return value of __nis_default_owner and __nis_default_group,
12758         it has been especially allocated.  [Coverity CID 224]
12760         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
12761         searchgroup and searchowner.  Significantly simplified.
12762         (__nis_default_owner): Remove duplication.  Do not locally copy the
12763         string before duplicating it.
12764         (__nis_default_group): Likewise.
12766         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
12767         we must clear the variable before calling __nisfind_server.
12769         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
12770         nis_getnames.  [Coverity CID 223]
12772         * locale/programs/locfile.c (locfile_read): Use alloca instead of
12773         xmalloc to allocate local repertoire name.  [Coverity CID 222]
12775         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
12776         allocate memory for the input to add_bytes.  [Coverity CID 221]
12778         * posix/wordexp.c (w_addword): Free word if realloc fails and it
12779         was allocated here.  [Coverity CID 219, 220]
12781         * posix/getconf.c (print_all): Free confstr data after printing.
12782         [Coverity CID 218]
12784         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
12785         list allocation fails.  [Coverity CID 215]
12787         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
12788         [Coverity CID 213]
12790         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
12791         string is NULL.  [Coverity CID 212]
12792         * argp/Makefile: Add rules to build and run bug-argp1.
12793         * argp/bug-argp1.c: New file.
12795         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
12796         end of string.
12797         * stdlib/canonicalize.c (__realpath): Likewise.
12799         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
12800         pointer.  [Coverity CID 206]
12802         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
12803         in statically linked code.
12804         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
12805         statically built code, be prepared to have no link map.
12806         [Coverity CID 205]
12808         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
12809         dgettext calls. [Coverity CID 204]
12811         * argp/argp-help.c (struct uparams): Remove valid member.  Change
12812         the one user.
12813         (uparam_names): Reduce size.  Avoid relative relocations.
12814         Moved to read-only segment.
12815         (fill_in_uparams): Update for new layout.
12817         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
12818         assumed to always be != NULL. [Coverity CID 202]
12820         * argp/argp-help.c (hol_entry_help): Remove some dead code
12821         [Coverity CID 200].
12823         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
12824         away a few more unconditional yperr2nss calls.
12825         (_nss_nis_getservbyname_r): Likewise.
12827 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
12829         * sysdeps/generic/ldsodefs.h: Remove support for non-core
12830         architectures.
12832         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
12833         that unused memory passed to sendto is nevertheless initialized.
12835         [BZ #2499]
12836         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
12837         possibly unaligned memory accesses.
12839         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
12840         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
12841         and __putlong respectively.  Correct buffer overflow check for
12842         NS_NOTIFY_OP.
12844         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
12846         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
12847         (send_dg): Rewrite error handling to be more compact and avoid
12848         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
12850         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
12852         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
12853         instead of ns_get16.
12854         (res_queriesmatch): Likewise.  Minor optimization.
12856         [BZ #2499]
12857         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
12858         __libc_res_nsend might reallocate the buffer for the answer.  In
12859         this case we have to reload the HP pointer.
12861 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
12863         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
12864         some branch prediction hints.
12866         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
12867         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12868         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12869         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12870         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12871         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12872         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12873         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12875 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12877         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
12878         by a GOT relocation to make Scrt1.o position independent.
12879         * sysdeps/s390/s390-64/elf/start.S: Likewise.
12881         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
12882         six system call parameters.
12883         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
12885 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
12887         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
12888         malloc&bzero.
12890         * sunrpc/svc_udp.c (BZERO): Remove definition.
12891         (CALLOC): Define.
12892         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
12894         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
12895         (des_SPtrans): Use uint32_t type.
12896         (des_skb): Likewise.
12898         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
12900 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
12902         [BZ #2509]
12903         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
12904         on 32-bit arches.
12906 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
12908         * locale/programs/ld-address.c (address_finish): Fix one more
12909         place where the iso639 array might be accessed beyond the limits.
12911 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
12913         * nis/nis_table.c (nis_list): Avoid clearing res twice before
12914         filling it for the first time.
12916         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
12917         Adjust all callers.
12918         Free res object content before returning.
12920         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
12922         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
12923         client->cl_auth.
12925         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
12926         cleanup for initial thread, just the free call on TVP.
12928         * nscd/gai.c (__getline): Define.
12931 See ChangeLog.16 for earlier changes.