Merge remote branch 'origin/master' into fedora/master
[glibc.git] / ChangeLog
blobe55ec7c5c1d88a797e6232e09d2fc2eb91bf675a
1 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
3         * iconvdata/iso646.c (gconv_init): Correctly initialize the
4         character size elements in step data.
6 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
8         * po/hu.po: Update from translation team.
9         * po/vi.po: Likewise.
11 2009-09-19  Roland McGrath  <roland@redhat.com>
13         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
15 2009-09-15  Roland McGrath  <roland@redhat.com>
17         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
18         * nptl/sysdeps/pthread/configure: Regenerated.
19         * nptl/sysdeps/x86_64/configure: Regenerated.
20         * sysdeps/unix/sysv/linux/configure: Regenerated.
21         * sysdeps/x86_64/elf/configure: Regenerated.
23         * Makefile (autoconf-it): Set execute bit only on top-level configure.
25         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
26         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
27         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
28         * configure: Regenerated.
30 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
32         * posix/getconf.c (main): Handle -- on command line.
34 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
36         * configure.in: Support binutils 2.100 and 3.0.
38 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
40         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
41         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
42         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
43         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
45 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
47         * locale/programs/ld-collate.c (struct locale_collate_t): Add
48         unnamed_section_defined field.
49         (collate_read): Test and set unnamed_section_defined.
51         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
52         _POSIX2_LINE_MAX.
54 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
56         * configure.in: Support binutils 2.20.
58 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
60         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
61         __strstr_ia32): Add attribute_hidden.
63 2009-09-01  Andreas Schwab  <schwab@redhat.com>
65         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
66         parsing of group entry.
68 2009-09-02  Andreas Schwab  <schwab@redhat.com>
70         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
71         external buffer.  Always discard readahead in internal buffer.
72         * libio/Makefile (tests): Add bug-wsetpos.
73         * libio/bug-wsetpos.c: New file.
75 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
77         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
78         Add attribute_hidden.
79         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
80         __strcasestr_sse2): Likewise.
81         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
82         (__fma_fma): Make static.
83         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
84         (__fmaf_fma): Make static.
86 2009-08-31  Andreas Schwab  <schwab@redhat.com>
88         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
89         reformulate in-buffer optimisation check to match code in
90         _IO_new_file_seekoff.
92 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
94         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
95         to srwi in 32-bit memcpy for power6.
97 2009-09-01  Andreas Schwab  <schwab@redhat.com>
99         * include/stdio.h: Declare hidden proto for fflush.
100         * libio/iofflush.c: Add hidden weak alias for fflush.
102 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
104         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
105         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
107 2009-08-31  Andreas Schwab  <schwab@redhat.com>
109         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
111 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
113         [BZ #10560]
114         * malloc/malloc.c: Add local assert definition to avoid problems with
115         memory allocation in the real one.
117 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
119         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
120         Removed.
121         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
122         turn off SSSE3 on Atom.
124 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
126         * stdlib/tst-strtol.c (tests): More tests.
127         * stdlib/tst-strtoll.c (tests): Likewise.
129 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
131         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
133         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
135 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
137         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
138         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
140         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
142         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
144         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
146 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
148         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
150 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
152         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
153         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
155         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
157         * sysdeps/x86_64/fpu/s_signbit.S: New file.
158         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
160         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
161         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
163         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
164         leftover YMM_SIZE definition.
166 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
168         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
169         union.
170         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
171         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
172         Redefine.
173         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
175         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
176         and SET_FLOAT_WORD definitions.
178 2009-08-24  Roland McGrath  <roland@redhat.com>
180         * sysdeps/unix/syscall-template.S: New file.
181         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
182         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
183         (compile-syscall): Pass mkdep and -g options as normal.
184         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
185         (common-generated): Don't add them here.
187 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
189         * math/s_fdim.c: In case of overflows set errno.
190         * math/s_fdimf.c: Likewise.
191         * math/s_fdiml.c: Likewise.
193         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
194         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
195         are using the inline optimizations.
197         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
198         (__signbitf): Likewise.
200 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
202         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
203         terminated.
204         * posix/Makefile (tests): Add bug-regex29.
205         * posix/bug-regex29.c: New file.
207         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
208         older POSIX versions are selected.
210         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
211         as well.
212         * stdio-common/printf_fphex.c: Likewise.
213         * stdio-common/tstdiomisc.c: Add more tests.
215         * locale/locale.h: Include xlocale.h and the thread-local locale
216         declarations for XPG7, not XPG6.
218 2009-08-21  Andreas Schwab  <schwab@redhat.com>
220         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
221         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
223         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
224         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
225         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
227 2009-08-20  Roland McGrath  <roland@redhat.com>
229         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
230         Use l_addr instead of l_map_start (dli_fbase).
231         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
232         address when there is no proximate symbol.
233         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
234         Likewise.
236 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
238         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
240 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
242         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
243         Also handle SIGINT.  In that case only do the cleanup and then
244         re-raise the signal.
245         (main): Install handler for SIGINT.
247 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
249         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
250         clobber list.
252 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
254         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
255         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
256         tst-auditmod7b.c.
257         (tests): Add tst-audit6 tst-audit7.
258         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
259         tst-auditmod7a tst-auditmod7b.
260         ($(objpfx)tst-audit6): New.
261         ($(objpfx)tst-audit6.out): Likewise.
262         ($(objpfx)tst-audit7): Likewise.
263         ($(objpfx)tst-audit7.out): Likewise.
264         (tst-audit6-ENV): Likewise.
265         (tst-audit7-ENV): Likewise.
266         (CFLAGS-tst-auditmod6b.c): Likewise.
267         (CFLAGS-tst-auditmod6c.c): Likewise.
268         (CFLAGS-tst-auditmod7b.c): Likewise.
269         * elf/tst-audit6.c: New file.
270         * elf/tst-audit7.c: New file.
271         * elf/tst-auditmod6a.c: New file.
272         * elf/tst-auditmod6b.c: New file.
273         * elf/tst-auditmod6c.c: New file.
274         * elf/tst-auditmod7a.c: New file.
275         * elf/tst-auditmod7b.c: New file.
276         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
277         saving and restoring SSE/AVX registers to ...
278         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
280 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
282         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
283         only if SHARED is defined.
284         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
286 2009-08-03  Jim Meyering  <meyering@redhat.com>
288         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
290 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
292         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
293         section as the other functions for this architecture.
294         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
296 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
298         * sysdeps/x86_64/strcmp.S: Add support to compile with
299         USE_SSSE3.  In this case palignr is used.
300         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
301         available but SSSE3 is, pick __str{,n}cmp_ssse3.
302         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
303         Add strcmp-ssse3 and strncmp-ssse3.
304         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
305         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
307         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
308         warning through fake initialization.
310 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
312         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
314 2009-08-07  Andreas Schwab  <schwab@redhat.com>
316         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
317         unique symbols.
319 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
321         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
322         EBX from EAX = 1.  Handle EAX = 11.
324 2009-08-07  Andreas Schwab  <schwab@redhat.com>
326         * Makefile (TAGS): Use separate sed -e expressions to avoid \
327         inside ''.
329 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
331         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
332         hidden IFUNC functions.
333         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
335         * sysdeps/i386/i686/multiarch/strlen.S: New file.
337         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
338         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
339         strcasestr-c.
340         (CFLAGS-strcspn-c.c): Define.
341         (CFLAGS-strpbrk-c.c): Define.
342         (CFLAGS-strspn-c.c): Define.
343         (CFLAGS-strstr.c): Define.
344         (CFLAGS-strcasestr.c): Define.
345         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
346         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
347         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
348         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
349         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
350         * sysdeps/i386/i686/multiarch/strspn.S: New file.
351         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
352         * sysdeps/i386/i686/multiarch/strstr.c: New file.
353         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
354         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
355         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
356         -16L instead of 0xfffffffffffffff0L.
357         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
359 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
361         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
363 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
365         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
366         another rewrite.  Much smaller and faster.
367         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
369         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
370         ss_flags from the correct location.
372 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
374         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
375         * sysdeps/i386/i686/cacheinfo.c: New file.
376         * sysdeps/i386/i686/multiarch/Makefile: New file.
377         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
378         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
379         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
380         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
381         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
382         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
383         (__cpuid_count): New. Provide the default.
384         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
385         (__x86_64_preferred_memory_instruction): Define only if
386         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
387         (intel_check_word): Use __cpuid.
388         (handle_intel): Likewise.
389         (handle_amd): Likewise.
390         (__cache_sysconf): Likewise.
391         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
392         (__cache_sysconf): Likewise.
393         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
394         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
395         (get_common_indeces): Use __cpuid.
396         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
397         if ENABLE_SSSE3_ON_ATOM is not defined.
398         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
399         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
400         popcnt instead of popcntq.
402 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
404         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
406 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
408         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
409         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
410         which always causes a compile error.
412         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
414         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
415         comes from...
416         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
417         which always causes a compile error.
419         * debug/Makefile (tests): Add tst-longjmp_chk2.
420         * debug/tst-longjmp_chk2.c: New file.
422         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
423         Remove incorrect use of BP_SYM.
424         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
425         here now since it is more complex than just a simple check.
427         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
428         we make no more progress.
430 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
432         * math/s_fma.c: Don't define alias if __fma is a macro.
433         * math/s_fmaf.c: Likewise.
434         * sysdeps/x86_64/multiarch/s_fma.c: New file.
435         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
436         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
438         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
439         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
440         New macro HAS_FMA.
441         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
442         function.
443         * include/libc-symbols.h (libm_ifunc): Define.
444         * sysdeps/x86_64/multiarch/Versions: New file.
446         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
448 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
450         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
452 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
454         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
455         call that registers used in calling conventions need to be preserved.
456         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
457         to preserve register content if necessary.
458         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
459         (_dl_x86_64_restore_sse): New function.
460         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
461         is allowed to modify xmm/ymm registers.
463         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
464         application's perspective.
465         * stdio-common/scanf17.c: Likewise.
467 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
469         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
470         size to memsz.
471         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
472         here.
473         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
474         two steps to catch bugs.
476 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
478         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
479         determines which files are used in runtime lookups and only checks
480         those for SSE use.
481         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
482         testing.
483         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
484         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
485         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
486         take a while.
488         * elf/dl-open.c: Move _dl_scope_free to...
489         * elf/dl-scope.c: ...here.  New file.
490         * elf/Makefile (dl-routines): Add scope.
492         * resolv/resolv.h (RES_USE_DNSSEC): Define.
493         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
494         RES_USE_DNSSEC.
495         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
496         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
497         all the places we handled RES_USE_EDNS0 only before.
498         Patch by Adam Tkac <atkac@redhat.com>.
500 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
502         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
503         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
504         Update size when reallocating.
506 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
508         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
509         functions used in ld.so modify xmm/ymm registers.
510         * sysdeps/x86_64/Makefile:  Hook new test up.
511         * sysdeps/x86_64/rtld-memchr.c: New file.
512         * sysdeps/x86_64/rtld-memcmp.c: New file.
513         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
514         * sysdeps/x86_64/rtld-strchr.S: New file.
515         * sysdeps/x86_64/rtld-strlen.S: New file.
516         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
517         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
519 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
521         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
522         strncmp-c.
523         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
524         (exit): Likewise.
525         (Byte1): Likewise.
526         (Byte2): Likewise.
527         (Byte3): Likewise.
528         (Byte4): Likewise.
529         (Byte5): Likewise.
530         (Byte6): Likewise.
531         (next_8_bytes): Likewise.
532         (Byte0): Remove commented out codes.
533         (unaligned_table): Align jump table at 8 bytes.
534         Add _sse4_2 to all labels.  Always include "../strcmp.S".
535         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
536         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
537         * sysdeps/x86_64/strncmp.S: New file.
539 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
541         [BZ #10422]
542         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
543         kernels, dropped when eventfd2 support was added.
544         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
545         kernels, dropped when signalfd4 support was added.
546         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
547         added, name them.
549         [BZ #10452]
550         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
551         replies up.
553         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
555 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
557         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
558         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
560         [BZ #10448]
561         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
562         callback we must touch the status to avoid using stale value.
564         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
565         compiled in.
567 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
569         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
570         /lib/modules/* headers anymore.  We have sane headers in the standard
571         place now.
573 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
575         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
576         "etf3enh" and "highgprs" added.
577         (_dl_s390_platforms): "z10" added.
578         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
579         Increased for the new entries.
580         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
581         HWCAP_S390_HIGH_GPRS added.
583         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
584         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
585         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
586         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
587         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
589 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
591         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
592         avoid additional cpuid instructions.  Most of the information is
593         stored somewhere.
595         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
596         cache descriptors.
597         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
599         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
600         SSSE3 bit for Atoms.
601         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
602         here anymore.
604         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
605         structure before copying it to avoid warning.
606         * posix/tst-rfc3484-2.c (do_test): Likewise.
607         * posix/tst-rfc3484-3.c (do_test): Likewise.
609         [BZ #10416]
610         * include/unistd.h: Make header file suitable for C++ test cases.
611         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
613         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
614         stack alignment in the exit code.
616         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
617         potentially be zero.
619         * elf/tst-unique1.c: Extend test to check for unloading DSO with
620         unique symbol definition.
621         Patch by Jakub Jelinek.
622         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
623         make sure the object with the definition cannot be unloaded.  Adjust
624         a few types.
625         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
626         the unique symbol hash table should not be const.
628 2009-07-22  Jakub Jelinek  <jakub@redhat.com>
630         * Makeconfig (ASFLAGS): Append $(sysdep-ASFLAGS).
631         * sysdeps/i386/Makefile (sysdep-ASFLAGS): Add -U__i686.
633 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
635         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
636         unnecesary variables.  Comment fixes.
638 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
640         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
641         Use NONASCII_CASE information provided by the locale to determine
642         whether optimized string load function can be used.  Minor cleanups.
644 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
646         * string/strcasestr.c (STRCASESTR): New macro.
647         (__strcasestr): Renamed to ..
648         (STRCASESTR): ...this.
649         * string/strstr.c (STRSTR): New macro.
650         (strstr): Renamed to ..
651         (STRSTR): ...this.
652         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
653         strstr-c strcasestr-c
654         (CFLAGS-strstr.c): New.
655         (CFLAGS-strcasestr.c): Likewise.
656         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
657         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
658         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
659         * sysdeps/x86_64/multiarch/strstr.c: New file.
661 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
663         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
664         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
665         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
666         _NL_CTYPE_NONASCII_CASE.
667         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
668         field.
669         (ctype_finish): Check whether there are any 8-bit characters outside
670         the range ASCII has or whether the mapping isn't the same as for
671         ASCII (±0x20).  Set nonascii_case appropriately.
672         (ctype_output): Add output handler for nonascii_case.
674 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
676         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
677         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
679 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
681         [BZ #10360]
682         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
683         0xffff in the EDNS0 record.
685 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
687         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
688         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
689         is written before the list head update.
690         Patch by Andreas Schwab <aschwab@redhat.com>.
692 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
693             Jakub Jelinek  <jakub@redhat.com>
695         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
696         corruption thread-safe.
698 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
700         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
701         overrides atomic_compare_and_exchange_val_rel, define to
702         atomic_compare_and_exchange_val_rel by default, otherwise default
703         to catomic_compare_and_exchange_val_acq.
704         (catomic_compare_and_exchange_bool_rel): If arch overrides
705         atomic_compare_and_exchange_bool_rel, define to
706         atomic_compare_and_exchange_bool_rel by default.
707         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
708         Use catomic_compare_and_exchange_val_rel instead of
709         catomic_compare_and_exchange_val_acq.
711 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
713         * sysdeps/generic/ldsodefs.h: Add prototype for
714         _dl_higher_prime_number.
715         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
717         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
718         restoring of ymm registers a bit.
720 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
722         * sysdeps/x86_64/memcmp.S: New file.
724 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
726         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
727         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
728         pointers in writable memory.
730 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
732         * config.h.in: Add HAVE_AVX_SUPPORT entry.
733         * config.make.in: Add config-cflags-avx entry.
734         * configure.in: Substitute libc_cv_cc_avx.
735         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
736         * elf/tst-audit4.c: New file.
737         * elf/tst-audit5.c: New file.
738         * elf/tst-auditmod4a.c: New file.
739         * elf/tst-auditmod4b.c: New file.
740         * elf/tst-auditmod5a.c: New file.
741         * elf/tst-auditmod5b.c: New file.
742         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
743         link-defines.sym.
744         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
745         (La_x86_64_vector): Likewise.
746         (La_x86_64_regs): Append lr_vector.
747         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
748         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
749         saving and restoring SSE registers to ...
750         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
751         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
752         <link-defines.h>.
753         (_dl_runtime_profile): Use LR_SIZE to allocate space for
754         La_x86_64_regs.  Allocate extra space and jump to memory at
755         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
756         (save_and_restore_vector_sse): New.
757         (save_and_restore_vector_avx): Likewise.
758         (check_avx): Likewise.
759         (save_and_restore_vector): Likewise.
760         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
761         HAVE_AVX_SUPPORT.
762         * sysdeps/x86_64/link-defines.sym: New file.
764 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
766         * elf/do-lookup.h: Removed after folding content into...
767         * elf/dl-lookup.c: ...here.
769         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
771 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
773         * configure.in: Check for gnu_unique_symbol symbol type.
774         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
775         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
776         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
777         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
778         change.
779         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
780         unique symbol table.
781         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
782         for first namespace.
783         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
784         unique symbol hash table.
785         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
786         * elf/tst-unique1.c: New file.
787         * elf/tst-unique1mod1.c: New file.
788         * elf/tst-unique1mod2.c: New file.
789         * elf/tst-unique2.c: New file.
790         * elf/tst-unique2mod1.c: New file.
791         * elf/tst-unique2mod2.c: New file.
793 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
795         * elf/elf.h (STB_GNU_UNIQUE): Define.
797         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
798         from...
799         * include/inline-hashtab.h: ...here.
800         (htab_expand): Adjust for renamed function.  Correct memory handling.
802 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
804         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
806 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
808         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
809         (PPC_FEATURE_HAS_VSX): Likewise.
811 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
813         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
814         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
816         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
817         aligned to 16 byte boundaries.
818         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
819         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
820         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
822 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
824         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
825         * config.make.in (config-cflags-sse4): New variable.
826         * configure.in: Substitute libc_cv_cc_sse4.
827         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
828         HAVE_SSE4_SUPPORT.
829         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
830         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
831         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
832         * sysdeps/x86_64/multiarch/strcspn.S: New file.
833         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
834         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
835         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
836         * sysdeps/x86_64/multiarch/strspn.S: New file.
838 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
840         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
841         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
842         (tests): Add tst-audit3 for x86_64.
843         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
844         ($(objpfx)tst-audit3): Define.
845         ($(objpfx)tst-audit3.out): Define.
846         (tst-audit3-ENV): Define.
847         * elf/tst-audit3.c: New file.
848         * elf/tst-auditmod3a.c: New file.
849         * elf/tst-auditmod3b.c: New file.
850         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
851         and restore xmm6.
853         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
854         (__stpncpy): Renamed to ...
855         (STPNCPY): This.
856         (stpncpy): Create alias only if STPNCPY is not defined.
857         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
858         defined.
859         (strncpy): Renamed to ...
860         (STRNCPY): This.
861         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
862          stpncpy-c strncpy-c for string.
863         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
864         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
865         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
866         * sysdeps/x86_64/multiarch/strcpy.S: New file.
867         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
868         * sysdeps/x86_64/multiarch/strncpy.S: New file.
870 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
872         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
873         adding to fast bin list.
875 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
877         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
878         inet_makeaddr.  This worked only with class-based networks.
879         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
880         Likewise.
882         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
883         recognize all types.
884         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
885         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
886         be in host byte order.
888 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
890         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
891         (MODEL_OFFSET): Define.
892         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
893         family and model.
894         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
895         out common code into new function get_common_indeces. Determine
896         extended family and model for Intel processors.
898 2009-06-26  Andreas Schwab  <aschwab@redhat.com>
900         * timezone/zic.c (stringzone): Don't try to generate a POSIX TZ
901         string when the timezone ends in DST.
903 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
905         * resolv/resolv.h: Define RES_SNGLKUPREOP.
906         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
907         option.
908         * resolv/res_send.c (reopen): New function.  Broken out of...
909         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
910         fallback mechanism.  If single-request fails switch to
911         single-request-reopen mode which opens a new socket for the second
912         request.
914 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
916         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
917         (CHECK_SP): Use it.
919 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
921         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
922         for saved registers.
923         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
924         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
925         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
927 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
929         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
931 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
933         * po/id.po: Update from translation team.
935         * po/bg.po: Update from translation team.
937 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
939         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
940         defined.
941         (strncmp): Renamed to STRNCMP.
942         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
943         strncmp-c for string.
944         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
945         * sysdeps/x86_64/multiarch/strcmp.S: New file.
946         * sysdeps/x86_64/multiarch/strncmp.S: New file.
947         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
949 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
951         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
952         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
953         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
954         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
955         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
956         ifuncmain7static.c.
957         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
958         ifuncmain7static, and ifuncmain7picstatic.
959         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
960         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
961         $(objpfx)ifuncmain7pie.out.
962         (modules-names): Add ifuncmod5 ifuncmod6
963         (ifuncmod5.so-no-z-defs): Define.
964         (ifuncmod6.so-no-z-defs): Define.
965         (CFLAGS-ifuncmain5pic.c): Define.
966         (CFLAGS-ifuncmain5picstatic.c): Define.
967         (CFLAGS-ifuncmain5staticpic.c): Define.
968         (CFLAGS-ifuncdep5pic.c): Define.
969         (CFLAGS-ifuncmain7pic.c): Define.
970         (CFLAGS-ifuncmain7picstatic.c): Define.
971         (CFLAGS-ifuncmain1staticpie.c): Define.
972         (CFLAGS-ifuncmain5pie.c): Define.
973         (CFLAGS-ifuncmain6pie.c): Define.
974         (CFLAGS-ifuncmain7pie.c): Define.
975         ($(objpfx)ifuncmain1staticpie.out): Define.
976         ($(objpfx)ifuncmain1staticpie): Define.
977         ($(objpfx)ifuncmain5pie.out): Define.
978         ($(objpfx)ifuncmain5pie): Define.
979         ($(objpfx)ifuncmain6pie.out): Define.
980         ($(objpfx)ifuncmain6pie): Define.
981         ($(objpfx)ifuncmain5): Define.
982         ($(objpfx)ifuncmain5pic): Define.
983         ($(objpfx)ifuncmain5static): Define.
984         ($(objpfx)ifuncmain5staticpic): Define.
985         ($(objpfx)ifuncmain5picstatic): Define.
986         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
987         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
988         ifuncmain6pie.out.
989         * elf/b/elf/ifuncmain1staticpie.c: New file.
990         * elf/ifuncdep5.c: New file.
991         * elf/ifuncdep5pic.c: New file.
992         * elf/ifuncmain5.c: New file.
993         * elf/ifuncmain5pic.c: New file.
994         * elf/ifuncmain5picstatic.c: New file.
995         * elf/ifuncmain5pie.c: New file.
996         * elf/ifuncmain5static.c: New file.
997         * elf/ifuncmain5staticpic.c: New file.
998         * elf/ifuncmain6pie.c: New file.
999         * elf/ifuncmain7.c: New file.
1000         * elf/ifuncmain7pic.c: New file.
1001         * elf/ifuncmain7picstatic.c: New file.
1002         * elf/ifuncmain7pie.c: New file.
1003         * elf/ifuncmain7static.c: New file.
1004         * elf/ifuncmod5.c: New file.
1005         * elf/ifuncmod6.c: New file.
1007 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
1009         [BZ #10085]
1010         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
1011         (nss_endgrent): New variable.
1012         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
1013         fields. Change type of files to bool and adjust all users.
1014         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
1015         (internal_endgrent): Call nss_endgrent if necessary.
1016         (add_group): New function.  Broken out of...
1017         (check_and_add_group): ...here.
1018         (getgrent_next_nss): Remove test that any callback is available.
1019         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
1020         callback.  If there is no blacklist we can trust the results returned
1021         by the initgroups_dyn callback.  In case there is a callback and we
1022         find a group entry for the group ID but it doesn't contain the
1023         correct member, switch to the slow mode and use getgrent_r.
1024         (internal_getgrent_r): When we see a +: entry, determine whether
1025         there is any callback and which we can use the initgroups_dyn
1026         callback.
1028 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
1030         * malloc/malloc.c (_int_malloc): Add some consistency checks.
1031         (_int_free): Likewise.
1033         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
1034         AF_IEEE802154.
1035         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1036         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
1037         and ARPHRD_IEEE802154_PHY.
1039         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
1040         relative to generic Linux version.
1042 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
1044         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
1045         ($(objpfx)ifuncmain1vispie): Likewise.
1047 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1049         * login/Makefile: Build pt_chown as PIE.
1051 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
1053         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
1054         a format string.
1055         * elf/sln.c (usage): Likewise.
1056         * malloc/memusage.sh (do_help): Likewise.
1057         * nss/getent.c (more_help): Likewise.
1058         * posix/getconf.c (main): Likewise.
1059         * sunrpc/rpcinfo.c (usage): Likewise.
1060         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1062 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1064         * login/programs/pt_chown.c: Use libcap to drop privileges other than
1065         those needed.
1066         * login/Makefile: If necessary link pt_chown with -lcap.
1067         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
1068         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
1070 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
1072         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
1073         comparisons.
1074         * string/test-memchr.c (do_random_tests): Test very large lengths
1075         as well.
1077 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1079         * Makeconfig (+link-pie): Define.
1080         (+prectorS): Define.
1081         (+postctorS): Define.
1082         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
1083         * nscd/Makefile ($(objpfx)nscd): Likewise.
1085 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
1087         [BZ #10107]
1088         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
1089         with cmplwi.
1090         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
1092 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1094         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
1095         into ...
1096         * sysdeps/unix/grantpt.c: ...here.
1098 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
1100         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
1101         chmod if it is necessary.
1103         [BZ #10166]
1104         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
1105         when the slave device is in devpts or devfs.
1107         [BZ #10183]
1108         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
1110         [BZ #10195]
1111         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
1112         of nd_opt_home_agent_info_preference to uint16_t.
1113         Patch by Arnaud Ebalard <arno@natisbad.org>.
1115         [BZ #10207]
1116         * nss/getent.c: Add support for printing gshadow data.
1118         [BZ #10203]
1119         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
1120         not just the currently used one and those which follow.
1121         Patch by Joe Landers <jlanders@vmware.com>.
1123         [BZ #10196]
1124         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
1125         * libio/Makefile: Run tst-fgetwc with necessary envvar.
1126         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
1128         [BZ #10217]
1129         * stdlib/abort.c: Define variable __abort_msg.
1130         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
1131         * include/stdlib.h: Declare __abort_msg.
1132         * assert/assert-perr.c: Don't free buffer for message immediately.
1133         Store atomically in __abort_msg and free old buffer if necessary.
1134         * assert/assert.c: Likewise.
1135         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
1136         store pointer in __abort_msg, and possibly free old string.
1137         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
1139         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
1141         [BZ #10211]
1142         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
1143         handle leap seconds if they are available.
1144         Patch by Akinori Hattori <hattya@gentoo.org>.
1146         * timezone/tzselect.ksh: Update from tzcode2009i.
1147         * timezone/zdump.c: Likewise.
1148         * timezone/zic.c: Likewise.
1150         * timezone/africa: Update from tzdata2009i.
1151         * timezone/antarctica: Likewise.
1152         * timezone/asia: Likewise.
1153         * timezone/australasia: Likewise.
1154         * timezone/backward: Likewise.
1155         * timezone/etcetera: Likewise.
1156         * timezone/europe: Likewise.
1157         * timezone/factory: Likewise.
1158         * timezone/iso3166.tab: Likewise.
1159         * timezone/leapseconds: Likewise.
1160         * timezone/northamerica: Likewise.
1161         * timezone/pacificnew: Likewise.
1162         * timezone/solar87: Likewise.
1163         * timezone/solar88: Likewise.
1164         * timezone/solar89: Likewise.
1165         * timezone/southamerica: Likewise.
1166         * timezone/systemv: Likewise.
1167         * timezone/yearistype: Likewise.
1168         * timezone/zone.tab: Likewise.
1170 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
1172         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
1173         STT_GNU_IFUNC symbol or in 8 into type_class.
1175         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
1176         instead of Elf64_Addr.
1178 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
1180         * po/sv.po: Update from translation team.
1182         [BZ #10229]
1183         * misc/sys/select.h (__NFDBITS): Expression should have type int.
1184         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
1185         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
1186         the C version.
1188 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
1190         * Versions.def: Add GLIBC_2.11 for libpthread.
1192 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
1194         * resolv/res_send.c (send_dg): Remember we switched to
1195         single-request mode.
1197 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
1199         * dlfcn/dlfcn.h: Remove comma at end of enum.
1200         Patch by J.H.M. Dassen <rdassen@redhat.com>.
1202         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
1203         parsing mode string.
1205 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
1207         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
1209         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
1211         * sysdeps/x86_64/multiarch/strlen.S: New file.
1212         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
1213         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
1214         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
1215         content.
1217         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
1218         is defined.
1220 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
1222         * sysdeps/x86_64/strlen.S: Minor optimizations.
1224 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1226         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
1227         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
1228         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
1229         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
1230         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
1231         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
1232         ifuncmain3.c, ifuncmod3.c,.
1233         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
1234         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
1235         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
1236         ifuncmain4picstatic.
1237         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
1238         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
1239         ifuncmain3, ifuncmain4.
1240         (tests): Depend on $(objpfx)ifuncmain1pie.out and
1241         $(objpfx)ifuncmain1vispie.out.
1242         (modules-names): Add ifuncmod1 ifuncmod3.
1243         (generated): Add ifuncmain1pie ifuncmain1pie.out
1244         ifuncmain1vispie ifuncmain1vispie.out.
1245         Define rules to build and run the tests.
1246         * elf/ifuncdep1.c: New file.
1247         * elf/ifuncdep1pic.c: New file.
1248         * elf/ifuncdep2.c: New file.
1249         * elf/ifuncdep2pic.c: New file.
1250         * elf/ifuncmain1.c: New file.
1251         * elf/ifuncmain1pic.c: New file.
1252         * elf/ifuncmain1picstatic.c: New file.
1253         * elf/ifuncmain1pie.c: New file.
1254         * elf/ifuncmain1static.c: New file.
1255         * elf/ifuncmain1staticpic.c: New file.
1256         * elf/ifuncmain1vis.c: New file..
1257         * elf/ifuncmain1vispic.c: New file..
1258         * elf/ifuncmain1vispie.c: New file.
1259         * elf/ifuncmain2.c: New file.
1260         * elf/ifuncmain2pic.c: New file.
1261         * elf/ifuncmain2picstatic.c: New file.
1262         * elf/ifuncmain2static.c: New file.
1263         * elf/ifuncmain3.c: New file.
1264         * elf/ifuncmain4.c: New file.
1265         * elf/ifuncmain4picstatic.c: New file.
1266         * elf/ifuncmain4static.c: New file.
1267         * elf/ifuncmod1.c: New file.
1268         * elf/ifuncmod3.c: New file.
1270 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
1272         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
1274 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
1276         [BZ #10221]
1277         * posix/Makefile (routines): Add execvpe.
1278         * posix/Versions: Export execvpe for GLIBC_2.11.
1279         * posix/execvp.c: Now only a wrapper.  Move code to...
1280         * posix/execvpe.c: ...here.  New file.
1281         * posix/unistd.h: Declare execvpe.
1283 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
1285         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
1286         for STT_GNU_IFUNC handling for efficiency.
1287         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1289         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
1290         _exit.
1291         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
1293 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
1295         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
1296         for !SHARED.
1298 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
1300         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
1301         is not defined.
1302         (__rela_iplt_start): New declaration.
1303         (__rela_iplt_end): Likewise.
1304         (__rel_iplt_start): Likewise.
1305         (__rel_iplt_end): Likewise.
1306         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
1307         * elf/elf.h (R_386_IRELATIVE): New macro.
1308         (R_X86_64_IRELATIVE): New macro.
1309         (R_386_NUM): Updated.
1310         (R_X86_64_NUM): Likewise.
1311         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
1312         (libc_ifunc_hidden_def): New macro.
1313         * sysdeps/generic/dl-irel.h: New file.
1314         * sysdeps/i386/dl-irel.h: New file.
1315         * sysdeps/x86_64/dl-irel.h: New file.
1316         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
1317         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
1318         Handle R_386_IRELATIVE.
1319         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
1320         (elf_machine_lazy_rela): Likewise.
1321         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1322         R_X86_64_IRELATIVE.
1323         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
1325 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
1327         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
1328         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
1329         are no differences.  If an architecture has bits in CPUID index 1
1330         meaning different things the values for the COMMON_CPUID_INDEX_1
1331         index must not be set.
1332         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
1333         (HAS_POPCOUNT): ...this.  New macro.
1334         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
1335         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
1336         to set the value for Intel and AMD architectures.
1337         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
1338         INTEL_CPUID_INDEX_1.
1339         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
1340         change.
1342 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
1344         * configure.in: Move AC_CANONICAL_HOST before first use of $host
1345         and $build.
1347 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
1349         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
1350         (__expm1l): Set errno to ERANGE on overflow.
1351         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
1352         (__tanl): Set errno to EDOM for Â±Inf.
1353         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
1354         (__cosl): Set errno to EDOM for Â±Inf.
1355         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
1356         (__sinl): Set errno to EDOM for Â±Inf.
1358         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
1359         defined, use it.
1360         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
1361         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
1362         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
1364 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
1366         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
1367         code accessing it.
1368         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
1370 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
1372         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
1373         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
1374         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
1375         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
1377         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
1378         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
1379         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
1380         defined.
1381         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1382         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
1384 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
1386         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
1387         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
1388         is, either do nothing at all if __ASSUME_ACCEPT4, or
1389         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
1390         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
1391         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
1392         define.
1393         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
1394         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
1395         internal_accept4 in socket directory.
1397 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
1399         * sysdeps/ia64/configure.in: New file.
1401 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1403         [BZ #10162]
1404         * sysdeps/ia64/memchr.S: Use speculative load.
1406         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
1407         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
1408         use it.
1410         * sysdeps/i386/__longjmp.S: Add .text.
1411         * sysdeps/x86_64/__longjmp.S: Likewise.
1413 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
1415         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
1416         __ASSUME_ACCEPT4 for IA-64.
1418 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
1420         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
1422         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
1423         (SOCKOP_accept4): Define.
1425 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
1427         Sun approved the change of the license.
1428         * sunrpc/auth_des.c: Replace license text.
1429         * sunrpc/auth_none.c: Likewise.
1430         * sunrpc/auth_unix.c: Likewise.
1431         * sunrpc/authdes_prot.c: Likewise.
1432         * sunrpc/authuxprot.c: Likewise.
1433         * sunrpc/bindrsvprt.c: Likewise.
1434         * sunrpc/clnt_gen.c: Likewise.
1435         * sunrpc/clnt_perr.c: Likewise.
1436         * sunrpc/clnt_raw.c: Likewise.
1437         * sunrpc/clnt_simp.c: Likewise.
1438         * sunrpc/clnt_tcp.c: Likewise.
1439         * sunrpc/clnt_udp.c: Likewise.
1440         * sunrpc/clnt_unix.c: Likewise.
1441         * sunrpc/des_crypt.c: Likewise.
1442         * sunrpc/des_soft.c: Likewise.
1443         * sunrpc/get_myaddr.c: Likewise.
1444         * sunrpc/getrpcport.c: Likewise.
1445         * sunrpc/key_call.c: Likewise.
1446         * sunrpc/key_prot.c: Likewise.
1447         * sunrpc/openchild.c: Likewise.
1448         * sunrpc/pm_getmaps.c: Likewise.
1449         * sunrpc/pm_getport.c: Likewise.
1450         * sunrpc/pmap_clnt.c: Likewise.
1451         * sunrpc/pmap_prot.c: Likewise.
1452         * sunrpc/pmap_prot2.c: Likewise.
1453         * sunrpc/pmap_rmt.c: Likewise.
1454         * sunrpc/rpc/auth.h: Likewise.
1455         * sunrpc/rpc/auth_unix.h: Likewise.
1456         * sunrpc/rpc/clnt.h: Likewise.
1457         * sunrpc/rpc/des_crypt.h: Likewise.
1458         * sunrpc/rpc/key_prot.h: Likewise.
1459         * sunrpc/rpc/netdb.h: Likewise.
1460         * sunrpc/rpc/pmap_clnt.h: Likewise.
1461         * sunrpc/rpc/pmap_prot.h: Likewise.
1462         * sunrpc/rpc/pmap_rmt.h: Likewise.
1463         * sunrpc/rpc/rpc.h: Likewise.
1464         * sunrpc/rpc/rpc_des.h: Likewise.
1465         * sunrpc/rpc/rpc_msg.h: Likewise.
1466         * sunrpc/rpc/svc.h: Likewise.
1467         * sunrpc/rpc/svc_auth.h: Likewise.
1468         * sunrpc/rpc/types.h: Likewise.
1469         * sunrpc/rpc/xdr.h: Likewise.
1470         * sunrpc/rpc_clntout.c: Likewise.
1471         * sunrpc/rpc_cmsg.c: Likewise.
1472         * sunrpc/rpc_common.c: Likewise.
1473         * sunrpc/rpc_cout.c: Likewise.
1474         * sunrpc/rpc_dtable.c: Likewise.
1475         * sunrpc/rpc_hout.c: Likewise.
1476         * sunrpc/rpc_main.c: Likewise.
1477         * sunrpc/rpc_parse.c: Likewise.
1478         * sunrpc/rpc_parse.h: Likewise.
1479         * sunrpc/rpc_prot.c: Likewise.
1480         * sunrpc/rpc_sample.c: Likewise.
1481         * sunrpc/rpc_scan.c: Likewise.
1482         * sunrpc/rpc_scan.h: Likewise.
1483         * sunrpc/rpc_svcout.c: Likewise.
1484         * sunrpc/rpc_tblout.c: Likewise.
1485         * sunrpc/rpc_util.c: Likewise.
1486         * sunrpc/rpc_util.h: Likewise.
1487         * sunrpc/rpcinfo.c: Likewise.
1488         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
1489         * sunrpc/rpcsvc/key_prot.x: Likewise.
1490         * sunrpc/rpcsvc/klm_prot.x: Likewise.
1491         * sunrpc/rpcsvc/mount.x: Likewise.
1492         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
1493         * sunrpc/rpcsvc/rex.x: Likewise.
1494         * sunrpc/rpcsvc/rstat.x: Likewise.
1495         * sunrpc/rpcsvc/rusers.x: Likewise.
1496         * sunrpc/rpcsvc/sm_inter.x: Likewise.
1497         * sunrpc/rpcsvc/spray.x: Likewise.
1498         * sunrpc/rpcsvc/yppasswd.x: Likewise.
1499         * sunrpc/rtime.c: Likewise.
1500         * sunrpc/svc.c: Likewise.
1501         * sunrpc/svc_auth.c: Likewise.
1502         * sunrpc/svc_authux.c: Likewise.
1503         * sunrpc/svc_raw.c: Likewise.
1504         * sunrpc/svc_run.c: Likewise.
1505         * sunrpc/svc_simple.c: Likewise.
1506         * sunrpc/svc_tcp.c: Likewise.
1507         * sunrpc/svc_udp.c: Likewise.
1508         * sunrpc/svc_unix.c: Likewise.
1509         * sunrpc/svcauth_des.c: Likewise.
1510         * sunrpc/xcrypt.c: Likewise.
1511         * sunrpc/xdr.c: Likewise.
1512         * sunrpc/xdr_array.c: Likewise.
1513         * sunrpc/xdr_float.c: Likewise.
1514         * sunrpc/xdr_mem.c: Likewise.
1515         * sunrpc/xdr_rec.c: Likewise.
1516         * sunrpc/xdr_ref.c: Likewise.
1517         * sunrpc/xdr_sizeof.c: Likewise.
1518         * sunrpc/xdr_stdio.c: Likewise.
1520         * po/da.po: Update from translation team.
1522 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1524         * sysdeps/sh/____longjmp_chk.S: New file.
1525         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
1526         * sysdeps/sh/sh4/__longjmp.S: Likewise.
1528 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
1529             Ulrich Drepper  <drepper@redhat.com>
1531         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
1532         (__nscd_cache_search): Assume each entry in the
1533         hash chain needs one hashentry and half of datahead.  Use
1534         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
1536 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
1538         * posix/sys/wait.h: Fix typos.  Pretty printing.
1539         * stdlib/stdlib.h: Likewise.  Correct comments.
1541         [BZ #10159]
1542         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
1544         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
1545         patch.
1547 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
1549         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
1550         Use it if we absolutely cannot reach any more correct list elements
1551         because that many do not fit into the currently mapped database.
1553 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
1555         * nscd/nscd_helper.c: Include stddef.h.
1556         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
1557         in a couple of places.  Return NULL if trail is not less than
1558         datasize, don't consider dataheads with length smaller than
1559         offsetof (struct datahead, data) + datalen.
1560         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
1561         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
1562         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
1563         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1564         * nscd/nscd_getai.c (__nscd_getai): Likewise.
1565         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
1566         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
1568         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
1569         Rename ...
1570         (fallocate64): ... to this.
1571         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
1572         Rename ...
1573         (fallocate64): ... to this.
1574         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
1575         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
1576         fallocate64@@GLIBC_2.10.
1577         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
1578         fallocate64@@GLIBC_2.11.
1579         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
1580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
1581         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
1582         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
1584         * nscd/selinux.c (nscd_avc_destroy): Removed.
1585         * nscd/selinux.h (nscd_avc_destroy): Likewise.
1586         * nscd/nscd.c (termination_handler): Don't call
1587         nscd_avc_destroy.
1589 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
1591         * include/atomic.h: Formatting.
1592         (catomic_compare_and_exchange_val_acq): Don't define if already
1593         defined by bits/atomic.h.
1595 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
1597         * math/libm-test.inc (expm1_test): Add test for range error.
1599         * Versions.def: Add GLIBC_2.11 for libc.
1600         * debug/Makefile (routines): Add longjmp_chk.
1601         Add rules to build and run tst-longjmp_chk.
1602         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
1603         * debug/longjmp_chk.c: New file.
1604         * debug/tst-longjmp_chk.c: New file.
1605         * include/bits/setjmp2.: New file.
1606         * include/stdio.h: Mark __fortify_fail as internal_function.
1607         * setjmp/Makefile (headers): Add bits/setjmp2.h.
1608         * setjmp/bits/setjmp2.h: New file.
1609         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
1610         of the aliases.
1611         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
1612         defined.
1613         * sysdeps/i386/____longjmp_chk.S: New file.
1614         * sysdeps/x86_64/____longjmp_chk.S: New file.
1615         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
1616         * sysdeps/x86_64/__longjmp.S: Likewise.
1618         * version.h: Bump for 2.11 development.
1620         * elf/check-execstack.c: New file.
1621         * elf/Makefile: Add rules to build and run check-execstack.
1623 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
1625         * version.h (VERSION): Bump to 2.10.1.
1627         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
1628         compatibility functions.
1629         * nss/getXXent_r.c: Likewise.
1630         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
1631         * gshadow/getsgnam_r.c: Likewise.
1632         * gshadow/Version: Remove duplicate entries.
1634         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
1635         for recent processor.
1636         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
1637         Likewise.
1639 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
1641         * version.h (VERSION): Bump for 2.10 release.
1642         * include/features.h (__GLIBC_MINOR__): Bump to 10.
1644         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
1645         same place we add ASFLAGS-config.
1647 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
1649         [BZ #10128]
1650         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
1651         or FORMERR and the other NOERROR, don't raise an error.
1653 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
1655         [BZ #10118]
1656         * Makeconfig (+asflags): New variable based upon ASFLAG or
1657         asflags-cpu.
1658         (ASFLAGS): Add override to set ASFLAGS to +asflags.
1659         * config.make.in (asflags-cpu): Add variable based upon
1660         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
1661         the assembler.
1662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1663         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
1664         recognizes power6 instruction set due to passing -mcpu=power6 from
1665         --with-cpu=power6 when compiling .S files.
1666         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1667         Likewise.
1668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1669         Likewise.
1670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1671         Likewise.
1673 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
1675         * string/stratcliff.c (do_test): Test for zero length
1676         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
1677         at the end of the page.
1679 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
1681         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
1683         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
1684         count is zero.
1686         * po/da.po: Update from translation team.
1688 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
1690         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
1691         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
1693 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
1695         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
1696         and READ_IMPLIES_EXEC.
1698 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
1700         * po/da.po: Update from translation team.
1702 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
1704         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
1705         comment change.
1707 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
1709         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
1710         to MAP_ANON in PROT_NONE mmap64 call.
1711         (open_archive): Likewise.
1712         (file_data_available_p): Use mmap64 instead of mremap.
1713         (enlarge_archive): Likewise.  Update head if ah->addr changed.
1714         Attempt to reserve address space after mmap64 region.
1716 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
1718         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
1719         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
1720         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1722         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
1723         atanh should set ERANGE.
1725         [BZ #10087]
1726         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
1727         result of lookup to make call to implement STT_GNU_IFUNC.
1728         (_dl_profile_fixup): Likewise.
1729         Patch by H.J. Lu <hjl.tools@gmail.com>.
1731         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
1732         warning.
1734         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
1735         from definition.
1737         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
1738         label if it is not used.
1740         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
1741         of gmon_hist_hdr and gmon_hdr structures and use them.
1742         * elf/sprof.c: Likewise.
1744         * elf/dl-load.c (open_verify): Add temporary variable to avoid
1745         warning.
1747         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
1749         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
1750         to avoid cast.
1752         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
1753         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
1754         to avoid warnings.
1755         (iruserok_af): Use ss_family instead of casts.
1757         * gmon/gmon.c (write_hist): Define real-type variant of
1758         gmon_hist_hdr structure and use it.
1759         (write_gmon): Likewise for gmon_hdr.
1761         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
1762         function if we are not going to define it.
1763         * sysdeps/unix/sysv/linux/writev.c: Likewise.
1765         * inet/inet6_option.c (option_alloc): Add temporary variable to
1766         avoid warning.
1768         * libio/strfile.h (struct _IO_streambuf): Use correct type and
1769         name of VTable element.
1770         * libio/iovsprintf.c: Avoid casts to avoid warnings.
1771         * libio/iovsscanf.c: Likewise.
1772         * libio/vasprintf.c: Likewise.
1773         * libio/vsnprintf.c: Likewise.
1774         * stdio-common/isoc99_vsscanf.c: Likewise.
1775         * stdlib/strfmon_l.c: Likewise.
1776         * debug/vasprintf_chk.c: Likewise.
1777         * debug/vsnprintf_chk.c: Likewise.
1778         * debug/vsprintf_chk.c: Likewise.
1780         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
1781         function pointers.
1783 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
1785         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
1787 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
1789         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
1791         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
1792         * sysdeps/i386/fpu/s_tanf.S: Likewise.
1793         * sysdeps/i386/fpu/s_tanl.S: Likewise.
1794         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1795         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
1796         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
1797         * math/libm-test.inc: Add tests for errno after tan calls with
1798         Â±Inf.
1800         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
1801         errno value vor pow(+-0,neg).
1802         * math/libm-test.inc (pow_test): Add tests for errno value for
1803         pole errors.
1805         * math/w_fmod.c: Also handle x=±Inf as error.
1806         * math/w_fmodf.c: Likewise.
1807         * math/w_fmodl.c: Likewise.
1808         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
1809         x=±Inf or y=0.
1811         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
1812         * sysdeps/i386/fpu/s_cosf.S: Likewise.
1813         * sysdeps/i386/fpu/s_cosl.S: Likewise.
1814         * sysdeps/i386/fpu/s_sin.S: Likewise.
1815         * sysdeps/i386/fpu/s_sinf.S: Likewise.
1816         * sysdeps/i386/fpu/s_sinl.S: Likewise.
1817         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1818         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
1819         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
1820         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
1821         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
1822         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
1823         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
1824         * math/libm-test.inc: Add tests for errno after sin/cos calls with
1825         Â±Inf.
1827         * stdlib/strtod_l.c (round_and_return): We have to set errno to
1828         ERANGE for underflows.
1829         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
1831         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
1832         the 2001 revision.
1834         * libio/tst-widetext.input: Remove surrogates.
1836         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
1838         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
1839         for lgamma should set errno to ERANGE, not EDOM.
1840         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
1842 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
1844         [BZ #10093]
1845         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
1846         UTF-16 surrogates.
1848         * locale/programs/locarchive.c (enlarge_archive): Conserve address
1849         space when temporarily mapping the whole content of the old file.
1851         [BZ #10100]
1852         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
1853         not zero.
1855 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
1857         * iconvdata/sjis.c (BODY): Don't advance inptr before
1858         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
1859         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
1860         two byte chars.
1862 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
1864         * locale/locarchive.h (struct locarhandle): Rename len field to
1865         mmaped and add new reserved field.
1866         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
1867         (create_archive): Reserve address space and then map file into it.
1868         (open_archive): Likewise.
1869         (file_data_available_p): New function.
1870         (compare_from_file): New function.
1871         (close_archive): Adjust to member name changes.
1872         (add_locale): Before comparing locale data, check it is mapped.
1873         Otherwise fall back to reading from the file.
1875 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
1877         * stdio-common/psiginfo.c: Include <errno.h>.
1879 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
1881         [BZ #9920]
1882         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
1883         to get consistency between 32 and 64 bit architectures.
1885         [BZ #10052]
1886         * sysdeps/unix/make-syscalls.sh: Add rule to create target
1887         directory for dummy syscall rules.
1888         Patch by Chris Steinbroner <hesh@pobox.com>.
1890 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
1892         [BZ #10092]
1893         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
1894         MNT_EXPIRE.
1896 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
1898         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
1899         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1901 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
1903         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
1904         data from vector to temporary buffer and call PWRITEV after it
1905         instead of vice versa.
1906         * sysdeps/posix/preadv.c: Fix up comment.
1907         * misc/preadv.c: Likewise.
1908         * misc/preadv64.c: Likewise.
1909         * misc/pwritev.c: Likewise.
1910         * misc/pwritev64.c: Likewise.
1911         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
1913 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
1915         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
1917         * shadow/Makefile (tests): Add tst-shadow.
1918         * shadow/tst-shadow.c: New file.
1920         [BZ #9955]
1921         * gshadow/Makefile: New file.
1922         * gshadow/Versions: New file.
1923         * gshadow/fgetsgent.c: New file.
1924         * gshadow/fgetsgent_r.c: New file.
1925         * gshadow/getsgent.c: New file.
1926         * gshadow/getsgent_r.c: New file.
1927         * gshadow/getsgnam.c: New file.
1928         * gshadow/getsgnam_r.c: New file.
1929         * gshadow/gshadow.h: New file.
1930         * gshadow/putsgent.c: New file.
1931         * gshadow/sgetsgent.c: New file.
1932         * gshadow/sgetsgent_r.c: New file.
1933         * gshadow/tst-gshadow.c: New file.
1934         * include/gshadow.h: New file.
1935         * Makeconfig (all-subdirs): Add gshadow.
1936         * Makefile (installed-headers): Add gshadow/gshadow.h.
1937         * nss/Makefile (databases): Add sgrp.
1938         * nss/Versions: Add gshadow functions as private exports.
1939         * nss/nsswitch.conf: Add gshadow entry.
1940         * nss/sgrp-lookup.c: New file.
1941         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
1942         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
1943         * nss/nss_files/files-sgrp.c: New file.
1944         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
1945         * sysdeps/unix/sysv/linux/paths.h: Likewise.
1947 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
1949         * stdio-common/printf.h: Add missing const to register_printf_modifier.
1950         * stdio-common/reg-modifier.c: Likewise.
1952 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
1954         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
1955         is no FPU.
1957 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
1959         [BZ #10086]
1960         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
1961         headers up to 2.6.30.
1963         * po/ca.po: Update from translation team.
1965 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
1967         [BZ #10069]
1968         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
1969         an object that uses static TLS if the TLS modid is higher than the
1970         reserve we always allocate.  At least for multi-threaded code.
1972 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
1974         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
1975         Numerically stable check for valid width.
1977         * locale/programs/locarchive.c (open_archive): Map the entire file
1978         and not just the administrative data.
1979         (add_locale): When we find a hash sum match compare the content
1980         to be sure.
1982         * malloc/malloc.c (malloc_info): Output address space information.
1984 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
1986         * malloc/malloc.c (malloc_info): Also output system memory information.
1988         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
1989         architectures have preadv/pwritev in 2.6.30.
1991         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
1992         * sysdeps/posix/readv.c: Likewise.
1993         Reported by Markus Armbruster <armbru@redhat.com>.
1995         * malloc/hooks.c (top_check): Force hook value into register.
1997 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1999         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
2000         calls to _dl_relocate_object.
2002 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
2004         [BZ #9957]
2005         * malloc/malloc.c (force_reg): Define.
2006         (sYSMALLOc): Load hook variable into variable
2007         before test and force into register.
2008         (sYSTRIm): Likewise.
2009         (public_mALLOc): Force hook value into register.
2010         (public_fREe): Likewise.
2011         (public_rEALLOc): Likewise.
2012         (public_mEMALIGn): Likewise.
2013         (public_vALLOc): Likewise.
2014         (public_pVALLOc): Likewise.
2015         (public_cALLOc): Likewise.
2016         (__posix_memalign): Likewise.
2017         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
2018         before test and force into register.
2019         * malloc/hooks.c (top_check): Likewise.
2020         (public_sET_STATe): Pretty printing.
2022         * resolv/res_send.c (send_dg): Don't just ignore the result we got
2023         in case we only receive one reply in single-request mode.
2025 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
2027         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
2028         are dlopened in statically linked program even for __LM_ID_CALLER.
2030 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
2032         * resolv/res_send.c (send_dg): Don't switch into single-request
2033         mode if we already are in it.
2035 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
2037         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
2038         are always at least 4 bytes in the returned line.
2040 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
2042         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
2043         __libc_use_alloca (8192), if the stack is too small use 512 bytes
2044         instead of 8K.  Stop searching in /proc/stat after hitting first
2045         line not starting with cpu.
2046         (next_line): Truncate too long
2047         lines at buffer size * 3/4 instead of pretending there were line
2048         breaks inside of large lines.
2050 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2052         * sysdeps/x86_64/mp_clz_tab.c: New file.
2054 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
2055             Ulrich Drepper  <drepper@redhat.com>
2057         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
2058         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
2059         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2061 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
2063         * sysdeps/sh/libc-tls.c: New file.
2065         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
2067 2009-04-14  Roland McGrath  <roland@redhat.com>
2069         * elf/elf.h: Add various missing ARM constants, to match binutils.
2071 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2073         Optimizations from GMP.
2074         * sysdeps/x86_64/add_n.S: New file.
2075         * sysdeps/x86_64/addmul_1.S: New file.
2076         * sysdeps/x86_64/lshift.S: New file.
2077         * sysdeps/x86_64/mul_1.S: New file.
2078         * sysdeps/x86_64/rshift.S: New file.
2079         * sysdeps/x86_64/sub_n.S: New file.
2080         * sysdeps/x86_64/submul_1.S: New file.
2082 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
2084         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
2085         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
2086         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2087         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2089 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2091         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
2092         preadv/pwritev.
2094 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
2096         * sysdeps/x86-64/strrchr.S: New file.
2098 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
2100         * stdio-common/printf.h (struct printf_info): Add user element.
2101         New types printf_arginfo_size_function, printf_va_arg_function.
2102         Declare register_printf_specifier, register_printf_modifier,
2103         register_printf_type.
2104         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
2105         (union printf_arg): Add pa_user element.
2106         Adjust __printf_arginfo_table type.
2107         Add __printf_va_arg_table, __printf_modifier_table,
2108         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
2109         declarations.
2110         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
2111         If registered arginfo call failed try normal specifier.
2112         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
2113         function.
2114         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
2115         * stdio-common/Versions: Export register_printf_modifier,
2116         register_printf_type, and register_printf_specifier for GLIBC_2.10.
2117         * stdio-common/reg-modifier.c: New file.
2118         * stdio-common/reg-type.c: New file.
2119         * stdio-common/reg-printf.c (__register_printf_specifier): New
2120         function.  Mostly the old __register_printf_function function but
2121         uses locking and type of third parameter changed.
2122         (__register_printf_function): Implement using
2123         __register_printf_specifier.
2124         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
2125         calls to arginfo functions.  Allocate enough memory for user-defined
2126         types.  Call new va_arg functions to get user-defined types.
2127         Try installed handlers even for existing format specifiers first.
2129 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
2131         * sysdeps/x86_64/rawmemchr.S: New file.
2133         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
2134         Simplified code and possible copy problem fixed.
2136         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
2137         function if it is not defined.  Add some necessary casts.
2138         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2140         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
2141         have preadv/pwritev in 2.6.30.
2143 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
2145         * malloc/malloc.c (malloc_info): New function.
2146         * malloc/malloc.h: Declare it.
2147         * malloc/Versions: Export malloc_info for GLIBC_2.10.
2149         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
2150         to avoid PLT slot.
2152         * malloc/malloc.c (_int_realloc): Add parameter with old block
2153         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
2154         Adjust all callers.
2155         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
2157 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
2159         * sysdeps/x86_64/strchrnul.S: New file.
2161         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
2162         depending libcrypt on -lfreebl3.
2164         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
2165         preadv/pwritev in 2.6.30.
2167         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
2168         instead of __strcasecmp.
2170         * string/stratcliff.c (do_test): Add memchr tests..
2171         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
2172         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
2173         first read quad word.
2175 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
2177         * string/strverscmp.c (__strverscmp): Fix last cleanups.
2178         * string/tst-svc.input: Add new test case.
2179         * string/tst-svc.expect: Adjust.
2180         * string/Makefile: Don't ignore tst-svc error.
2182         * sysdeps/x86_64/memchr.S: New file.
2184         * resolv/resolv.h (RES_SNGLKUP): Define.
2185         * resolv/res_init.c (res_setoptions): Recognize single-request option.
2186         * resolv/res_send.c (send_dg): If we sent two requests at once and
2187         only get one reply before timeout switch to mode where we send the
2188         second request only after the first answer has been received.
2190 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
2192         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
2193         * sysdeps/x86_64/strchr.S: Likewise.
2195 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
2197         * configure.in: We need to test for the compiler earlier.
2199         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
2200         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
2201         GLIBC_2.10.
2202         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
2203         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
2204         and pwritev.
2205         * misc/preadv.c: New file.
2206         * misc/preadv64.c: New file.
2207         * misc/pwritev.c: New file.
2208         * misc/pwritev64.c: New file.
2209         * sysdeps/posx/preadv.c: New file.
2210         * sysdeps/posx/preadv64.c: New file.
2211         * sysdeps/posx/pwritev.c: New file.
2212         * sysdeps/posx/pwritev64.c: New file.
2213         * sysdeps/unix/sysv/linux/preadv.c: New file.
2214         * sysdeps/unix/sysv/linux/preadv64.c: New file.
2215         * sysdeps/unix/sysv/linux/pwritev.c: New file.
2216         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
2217         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
2218         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
2220         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
2221         compatibility code.
2222         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
2224         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2225         __ASSUME_COMPLETE_READV_WRITEV.
2226         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
2227         with modern kernels.
2228         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2230         * sysdeps/posix/readv.c: Since read is a cancellation point we have
2231         to free a possible malloced buffer in case of cancellation.
2232         * sysdeps/posix/writev.c: Likewise for write.
2234 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
2236         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
2238         * configure.in: Recognize --enable-nss-crypt.
2239         * config.make.in: Add nss-crypt entry.
2240         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
2241         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
2242         and include path for NSS directory to compiler for md5-crypt,
2243         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
2244         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
2245         function implementation, use NSS.  Introduce wrappers around the
2246         hash function calls.  Little code size optimization.
2247         * crypt/sha256-crypt.c: Likewise.
2248         * crypt/sha512-crypt.c: Likewise.
2249         * scripts/check-local-headers.sh: Ignore nss3 directory.
2251         * configure.in: Rename pic_default to libc_cv_pic_default.
2252         * config.make.in: Likewise.
2254 2009-04-01  Roland McGrath  <roland@redhat.com>
2256         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
2257         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
2258         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
2259         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
2260         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
2261         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
2262         (R_SPARC_NUM): Update.
2263         From Dave Miller <davem@davemloft.net>.
2265 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
2267         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
2269 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
2271         * elf/dl-open.c: Keep track of used name spaces and only iterate over
2272         those which are used.
2273         * elf/dl-addr.c: Likewise.
2274         * elf/dl-caller.c: Likewise.
2275         * elf/dl-fini.c: Likewise.
2276         * elf/dl-iteratephdr.c: Likewise.
2277         * elf/dl-libc.c: Likewise.
2278         * elf/dl-load.c: Likewise.
2279         * elf/dl-support.c: Likewise.
2280         * elf/dl-sym.c: Likewise.
2281         * elf/rtld.c: Likewise.
2282         * sysdeps/generic/ldsodefs.h: Likewise.
2284         * elf/dl-load.c: Remove support for systems without MAP_ANON.
2285         * elf/dl-minimal.c: Likewise.
2286         * elf/dl-misc.c: Likewise.
2287         * elf/rtld.c: Likewise.
2288         * sysdeps/generic/ldsodefs.h: Likewise.
2290 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
2292         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
2293         Avoid reuse of complex expression.
2295         * po/fr.po: Update from translation team.
2297 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
2299         * include/dirent.h: Yet more changes to match sort function type
2300         change.
2301         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
2302         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
2303         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
2305 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
2307         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
2309 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
2311         * nscd/connections.c (restart): Try to preserve the process name
2312         by reading the /proc/self/exe symlink and using the return name.
2313         Patch by Jeff Bastian <jbastian@redhat.com>.
2315 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
2317         [BZ #9733]
2318         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
2319         if we are not loading a new audit library.
2320         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
2321         Only use profiling trampoline for auditing if we are not relocating
2322         an audit library.
2323         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
2324         * elf/rtld.c: Likewise.
2325         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
2327         * elf/rtld.c (dl_main): Extend help message for --audit option.
2329         [BZ #9759]
2330         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
2331         alphasort64, versionsort, and versionsort64 to POSIX 2008.
2332         * dirent/alphasort.c: Adjust implementation to type change.
2333         * dirent/alphasort64.c: Likewise.
2334         * dirent/scandir.c: Likewise.
2335         * dirent/versionsort.c: Likewise.
2336         * dirent/versionsort64.c: Likewise.
2337         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
2338         declaration.
2339         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
2340         declaration.
2342         [BZ #9880]
2343         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
2344         correctly.  Set segleft member in output as required.
2345         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2346         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
2348         [BZ #9881]
2349         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
2350         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2351         * inet/Makefile (tests): Add tst-inet6_rth.
2352         * inet/tst-inet6_rth.c: New file.
2354         [BZ #5807]
2355         * string/strlen.c (strlen): Fix omission in the expression to test
2356         for NUL bytes.
2358 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
2360         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
2362         * elf/dl-runtime.c (reloc_offset): Define.
2363         (reloc_index): Define.
2364         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
2365         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
2366         computing index from reloc_offset.
2367         (_dl_call_pltexit): Likewise.
2368         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
2369         the relocation index to _dl_fixup.
2370         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
2371         _dl_call_pltexit.
2372         * sysdeps/x86_64/dl-runtime.c: New file.
2374         [BZ #9893]
2375         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
2376         alignment of La_x86_64_regs.  Store xmm parameters.
2377         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
2379         [BZ #9913]
2380         * string/strverscmp.c (__strverscmp): Fix case of different digits
2381         in fractional part of string.
2382         Patch by Jingyu Liu <jyliu@fortinet.com>.
2383         * string/Makefile (tests): Add tst-svc2.
2384         * string/tst-svc2.c: New file.
2386         * string/strverscmp.c (__strverscmp): Optimize size of tables.
2388         * locale/iso-639.def: Add Min Nan.
2390 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2392         [BZ #9948]
2393         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
2395 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
2397         * elf/dl-sysdep.c (auxvars): Compress data structure.
2399         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
2400         STT_GNU_IFUNC handling.
2401         (elf_machine_rela): Likewise.
2403 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
2405         * config.h.in (USE_MULTIARCH): Define.
2406         * configure.in: Handle --enable-multi-arch.
2407         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
2408         (_dl_fixup_profile): Likewise.
2409         * elf/do-lookup.c (dl_lookup_x): Likewise.
2410         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
2411         * elf/elf.h (STT_GNU_IFUNC): Define.
2412         * include/libc-symbols.h (libc_ifunc): Define.
2413         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
2414         framework in init-arch.h to get CPUID values.
2415         * sysdeps/x86_64/multiarch/Makefile: New file.
2416         * sysdeps/x86_64/multiarch/init-arch.c: New file.
2417         * sysdeps/x86_64/multiarch/init-arch.h: New file.
2418         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
2420         * config.make.in (experimental-malloc): Define.
2421         * configure.in: Handle --enable-experimental-malloc.
2422         * malloc/Makefile: Handle experimental-malloc flag.
2423         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
2424         * malloc/arena.c: Likewise.
2425         * malloc/hooks.c: Likewise.
2426         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
2428 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
2430         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
2431         prediction.  A few size optimizations.
2433 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2435         * time/tzset.c: Optimize a bit for size.
2437 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
2439         * include/stdio.h (fmemopen): Add libc_hidden_proto.
2440         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
2442         * elf/sprof.c: Avoid warning about multi-line comment.
2444 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2446         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
2447         DST name.
2448         * time/tst-posixtz.c: Add tests for quoted timezone names.
2450 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
2452         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
2453         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
2454         200809L instead of 200112L.
2455         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
2456         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
2458         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
2459         instead of __quick_exit_funcs to __run_exit_handlers.
2460         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
2461         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
2462         (__cxa_at_quick_exit): Remove attribute_hidden.
2463         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
2464         to __run_exit_handlers.
2465         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
2466         attribute_hidden.
2468 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2470         * po/id.po: Update from translation team.
2472 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
2474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
2475         .machine push; .machine "power6" and .machine pop around mtfsf
2476         insns outside of _ARCH_PWR6 define.
2477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2478         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
2479         Likewise.
2480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
2481         Likewise.
2482         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
2483         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
2484         relax_fenv_state): Likewise.
2486 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
2488         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
2489         cxa_at_quick_exit.
2490         (static-only-routines): Add at_quick_exit.
2491         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
2492         GLIBC_2.10.
2493         * stdlib/quick_exit.c: New file.
2494         * stdlib/at_quick_exit.c: New file.
2495         * stdlib/cxa_at_quick_exit.c: New file.
2496         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
2497         it appropriately.
2498         (__internal_atexit): New function.
2499         (__new_exitfn): Now takes parameter to point to the list to use.
2500         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
2501         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
2502         (exit): ...here.  Just call __run_exit_handlers appropriately.
2503         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
2504         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
2505         * stdlib/on_exit.c: Adjust call to __new_exitfn.
2506         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
2508         * po/id.po: Update from translation team.
2510 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
2512         * po/ru.po: Update from translation team.
2514 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
2516         * po/nl.po: Update from translation team.
2518 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
2520         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
2521         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2522         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2523         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2524         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2525         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2526         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2528         * po/pl.po: Update from translation team.
2530 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
2532         [BZ #7083]
2533         * sysdeps/unix/sysv/linux/fallocate.c: New file.
2534         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
2535         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
2536         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
2537         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
2538         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
2539         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
2540         for GLIBC_2.10.
2541         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2542         Add fallocate and fallocate64.
2544         * io/fcntl.h: Pretty printing.
2546 2009-03-02  Richard Guenther  <rguenther@suse.de>
2548         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
2549         attribute also for non-C99 inline semantics variant.
2551 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2553         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
2554         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
2555         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
2556         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
2557         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
2558         Likewise.
2559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
2560         Likewise.
2562 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
2564         * po/cs.po: Update from translation team.
2566 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
2568         * po/bg.po: Update from translation team.
2569         * po/sv.po: Likewise.
2570         * po/fi.po: Likewise.
2571         * po/vi.po: Likewise.
2573 2009-02-27  Roland McGrath  <roland@redhat.com>
2575         * Makeconfig (%.v.i): Depend on Makeconfig.
2576         Exclude % lines from initial #-comment removal.
2578 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
2580         * po/ko.po: Update from translation team.
2582 2009-02-26  Roland McGrath  <roland@redhat.com>
2584         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
2585         avoids unused warning.
2587 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
2588             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
2590         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
2591         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
2592         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
2593         and asm/user.h.  Include asm/ptrace.h.
2594         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
2595         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2596         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
2597         Undefine.
2598         (start_thread): Don't undefine.
2599         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
2600         Define.
2602 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
2604         * wctype/wctype.h: The *_l functions are in POSIX 2008.
2605         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
2606         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
2607         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
2608         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
2609         200112L to 200809L.
2610         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
2611         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2612         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
2613         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2614         _SC_THREAD_ROBUST_PRIO_PROTECT.
2615         * posix/unistd.h: fexecve is in POSIX 2008.
2616         * time/time.h: strftime_l is in POSIX 2008.
2617         * io/sys/stat.h: futimens is in POSIX 2008.
2618         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
2619         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
2620         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
2621         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
2622         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
2623         open_memstream, and vdprintf are in POSIX 2008.
2625 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
2627         * include/features.h: Define macros for XPG7/POSIX 2008.
2628         * ctype/ctype.h: The *_l functions are in POSIX 2008.
2629         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
2630         POSIX 2008.
2631         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
2632         * locale/xlocale.h: Define locale_t type.
2633         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
2634         in POSIX 2008.  Don't define locale_t here.
2635         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
2636         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
2637         UTIME_OMIT only with __USE_ATFILE.
2638         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
2639         * stdio-common/psiginfo.c: New file.
2640         * stdio-common/psiginfo-data.h: New file.
2641         * stdio-common/psiginfo-define.h: New file.
2642         * stdio-common/Makefile (routines): Add psiginfo.
2643         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
2644         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2645         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2646         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2647         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2648         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2649         * io/sys/stat.h: Move mknodat definition into same conditional as
2650         mknod.
2651         * time/sys/time.h: futimesat is not among the functions accepted
2652         into the POSIX standard.
2654         * include/features.h: If no feature selection given and we select
2655         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
2656         * posix/Versions: Export __posix_getopt.
2657         * posix/getopt.c (_getopt_initialize): Take additional parameter.
2658         Use it to alternatively initialize __posixly_correct.
2659         (_getopt_internal_r): Take addition parameter.  Pass on to
2660         _getopt_initialize.
2661         (_getopt_internal): Take addition parameter.  Pass on to
2662         _getopt_internal_r.
2663         (getopt): Pass additional zero to _getopt_internal.
2664         (__posix_getopt): New function.
2665         * posix/getopt.h: Add redirection for getopt.
2666         * posix/getopt1.c (getopt_long): Pass additional zero to
2667         _getopt_internal.
2668         (getopt_long_only): Likewise.
2669         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
2670         (_getopt_long_only_r): Likewise.
2671         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
2672         _getopt_internal_r.
2674 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
2676         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
2677         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2678         * sysdeps/posix/sysconf.c (__sysconf): Handle
2679         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
2680         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2682 2009-02-24  Roland McGrath  <roland@redhat.com>
2684         [BZ #9895]
2685         * README.template: Reworded not to use substituted version number.
2686         Renamed to ...
2687         * README: ... here (no longer generated).
2688         * Makefile (README): Target removed.
2690 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
2692         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
2693         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
2694         instead.
2696         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
2698         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
2700 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
2702         * po/bg.po: Update from translation team.
2704 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
2706         * stdlib/monetary.h: Uglify function parameter names.
2707         * sunrpc/rpc/pmap_clnt.h: Likewise.
2708         * sunrpc/rpc/svc.h: Likewise.
2709         * sunrpc/rpc/xdr.h: Likewise.
2710         * sunrpc/rpc/clnt.h: Likewise.
2711         * resolv/netdb.h: Likewise.
2712         * resolv/arpa/nameser.h: Likewise.
2713         * resolv/resolv.h: Likewise.
2714         * argp/argp.h: Likewise.
2715         * locale/langinfo.h: Likewise.
2716         * io/sys/stat.h: Likewise.
2717         * posix/spawn.h: Likewise.
2718         * nis/rpcsvc/nislib.h: Likewise.
2719         * malloc/obstack.h: Likewise.
2720         * sysdeps/ia64/bits/link.h: Likewise.
2721         * sysdeps/i386/bits/link.h: Likewise.
2722         * sysdeps/s390/bits/link.h: Likewise.
2723         * sysdeps/powerpc/bits/link.h: Likewise.
2724         * sysdeps/x86_64/bits/link.h: Likewise.
2725         * sysdeps/sparc/bits/link.h: Likewise.
2726         * sysdeps/sh/bits/link.h: Likewise.
2727         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
2728         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
2729         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
2730         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
2732 2008-12-01  Fredrik Unger  <fred@tree.se>
2734         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
2735         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
2736         _FP_UNPACK_RAW_2, fix up first argument.
2738 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
2740         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
2741         (GET_NPROCS_PARSER): Change parameters and use next_line.
2742         (__get_nprocs): Rewrite to not use stdio routines.
2743         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
2744         Change parameters and use next_line.
2746 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
2748         [BZ #5381]
2749         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
2750         Change mempool_alloc prototype.
2751         * nscd/mem.c (gc): Don't handle mem_in_flight.
2752         (mempool_alloc): Third parameter now only indicates whether this is the
2753         first call (to allocate data) or not.  If it is, get db rdlock.
2754         Release it on error.  Don't handle mem_in_flight.
2755         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
2756         Adjust third parameter of mempool_alloc calls.
2757         Nothing to do here in case mempool_alloc fails.
2758         Avoid local variable shadowing parameter.  No need to get db rdlock
2759         before calling cache_add.
2760         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
2761         no mem_in_flight array anymore.
2762         * nscd/connections.c: Remove definition and handling of mem_in_flight.
2763         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
2764         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
2765         in case mempool_alloc fails. No need to get db rdlock before calling
2766         cache_add.
2767         * nscd/hstcache.c (cache_addhst): Likewise.
2768         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2769         * nscd/servicescache.c (cache_addserv): Likewise.
2770         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
2772 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
2774         * po/lt.po: Update from translation team.
2776 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
2778         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
2779         defined, allow additional data to be added using the optional
2780         MORE_ELF_HEADER_DATA macro.
2781         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
2782         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
2784 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
2786         * include/atomic.h: Define catomic_and if not already defined.
2787         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
2788         * sysdeps/i386/i486/bits/atomic.h: Likewise.
2790 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
2792         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
2793         Change all callers.
2794         (_int_realloc): Likewise.  Third argument is now padded size
2795         All _int_* functions are now static.
2797         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
2798         * malloc/arena.c: Likewise.
2799         * include/malloc.h: Remove now unnecessary declarations of the _int_*
2800         functions.
2802         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
2803         easily.
2805         * malloc/malloc.c: Add branch prediction for use of the hooks.
2807         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
2809 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
2811         [BZ #7095]
2812         * bits/confname.h: Add SUSv7 macros for getconf environments.
2813         * bits/environments.h: Likewise.
2814         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
2815         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
2816         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
2817         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
2818         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
2819         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
2820         * posix/getconf.c: Likewise.
2821         * posix/sysconf.c: Likewise.
2822         * sysdeps/posix/sysconf.c: Likewise.
2823         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
2824         environments.
2826 2009-01-16  Petr Baudis  <pasky@suse.cz>
2828         [BZ #9753]
2829         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
2830         even if we currently have zero nscount.
2832 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
2834         [BZ #9781]
2835         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
2836         the input line is too long.
2838         * po/Makefile (libc.pot): Add f_print as function taking c-format
2839         parameter.
2841         * debug/xtrace.sh: Unify translatable messages.
2842         * elf/ldd.bash.in: Likewise.
2843         * elf/sprof.c: Likewise.
2844         * locale/programs/locale.c: Likewise.
2845         * malloc/memusage.sh: Likewise.
2846         * nss/getent.c: Likewise.
2848 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
2850         * debug/pcprofiledump.c (print_version,
2851         argp_program_version_hook): New function.
2852         * elf/ldconfig.c (more_help): New function.
2853         (argp): Use it.
2854         * elf/sln.c (usage): New function.
2855         (main): Support --help and --version.
2856         * malloc/memusagestat.c (print_version): New function.
2857         (argp_program_version_hook): New variable.
2858         * nscd/nscd.c (more_help): New function.
2859         (argp): Use it.
2860         * posix/getconf.c (main): Send --version output to stdout.
2861         Support --help.
2862         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
2863         arguments.  All callers changed.
2864         (print_version): New function.
2865         (parseargs): Support --help and --version.
2866         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
2867         changed.
2868         (print_version): New function.
2869         (main): Use getopt_long.  Support --help and --version.
2870         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
2871         --version.
2873 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
2875         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
2876         (update_data): Fix handling of wrapping back
2877         to the beginning of the buffer.
2879         [BZ #9823]
2880         * stdio-common/psignal.c (psignal): Fix test for empty string.
2882 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
2884         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
2885         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
2886         move _null_auth to .rodata.
2888         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
2889         value of 24.
2891         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
2893         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
2894         today than when the original code was written.  Use larger
2895         buffers.  This also makes it unnecessary to have stat information,
2896         if this causes extra efforts.
2897         (__opendir): In case O_DIRECTORY works, don't call fstat just for
2898         __alloc_dir.
2900 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
2902         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
2903         is set.
2904         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
2905         * sysdeps/sh/sh4/__longjmp.S: Likewise.
2906         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
2907         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
2908         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
2909         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
2911 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
2913         * po/ru.po: Update from translation team.
2915 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
2917         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
2918         Add _tid slot to maintain consistency with kernel.
2920 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
2922         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
2923         incomplete characters at end of input buffer.
2924         * libio/Makefile (tests): Add tst-fgetwc.
2925         * libio/tst-fgetwc.c: New file.
2926         * libio/tst-fgetwc.input: New file.
2928 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
2930         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
2932 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
2934         [BZ #9793]
2935         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
2936         *OUTBUFSTART unless the whole output fit into the buffer.
2937         * iconv/Makefile (tests): Add tst-iconv4.
2938         * iconv/tst-iconv4.c: New file.
2940 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
2942         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
2943         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2945 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
2947         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
2948         newer linker scripts.
2950 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
2952         [BZ #7040]
2953         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
2954         inotify_rm_watch should have type int.
2956 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
2958         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
2959         Make aligned_restore_vmx a local symbol.
2960         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
2961         Likewise.
2963 2009-01-30  Andreas Jaeger  <aj@suse.de>
2965         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
2966         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
2967         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
2968         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
2969         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
2970         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
2971         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
2973 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
2975         [BZ #9726]
2976         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
2977         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
2979 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
2981         [BZ #9726]
2982         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2983         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
2984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2985         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
2987 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
2989         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
2990         memcpy instead of memcmp.
2991         (_dl_setup_pointer_guard): Likewise.
2993 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
2995         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
2996         manipulated brk, use malloc_printerr.
2997         * misc/sbrk.c (__sbrk): Better error handling for nonsense
2998         requests.
3000 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
3002         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
3003         rindex): For C++ add inlines so that they can be recognized as
3004         builtins.
3005         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
3007 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
3008             Jakub Jelinek  <jakub@redhat.com>
3010         * string/string.h: Define correct C++ prototypes for gcc 4.4.
3011         * wcsmbs/wchar.h: Likewise.
3013 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
3015         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
3016         (stackinfo_sub_sp): Define.
3018 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
3020         [BZ #9750]
3021         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
3022         * include/alloca.h (alloca_account): Define.
3023         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
3024         (stackinfo_sub_sp): Define.
3026         * nscd/connections.c (nscd_init): If database file access fails
3027         check whether this is due to permission problems and bail in that
3028         case.
3030         [BZ #9741]
3031         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
3032         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
3034 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3036         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
3037         Add "t" to clobber list.
3038         (INTERNAL_SYSCALL_NCS): Likewise.
3040 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
3042         * nss/getent.c (print_networks): Don't print comma between aliases.
3044 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
3046         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
3048         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
3049         the hash table.
3050         * misc/Makefile (tests): Add bug-hsearch1.
3051         * misc/bug-hsearch1.c: New file.
3053 2009-01-22  Roland McGrath  <roland@redhat.com>
3055         * Makeconfig (%.v.i): Strip trailing # comments,
3056         not only whole-line comments.
3058 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
3060         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
3061         one parameter.  If non-NULL use it to initialize return value.
3062         (_dl_setup_pointer_guard): New function.
3063         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
3064         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
3065         * elf/rtld.c (security_init): Pass _dl_random to
3066         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
3067         pointer_chk_guard.
3068         * elf/dl-sysdep.c (_dl_random): New variable.
3069         (_dl_sysdep_start): Handle AT_RANDOM.
3070         (_dl_show_auxv): Likewise.
3071         * elf/dl-support.c (_dl_random): New variable.
3072         (_dl_aux_init): Handle AT_RANDOM.
3073         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
3074         to _dl_setup_stack_chk_guard.
3076         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
3078 2009-01-10  Roland McGrath  <roland@redhat.com>
3080         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
3082 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
3084         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
3086         [BZ #9706]
3087         * nss/nss_files/files-parse.c (strtou32): New function.
3088         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
3089         across 32-bit and 64-bit platforms.
3090         (INT_FIELD_MAYBE_NULL): Likewise.
3092 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
3094         [BZ #9720]
3095         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
3096         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
3097         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
3098         Likewise.
3100 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
3102         [BZ #697]
3103         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3104         being NULL also if there are no backreferences.
3105         * posix/rxspencer/tests: Add testcases.
3107 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
3109         [BZ #9697]
3110         * posix/bug-regex17.c: Add testcases.
3111         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3112         handling.
3114 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3116         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
3117         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
3118         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
3119         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
3120         for elf subdir.
3121         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
3122         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
3123         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
3124         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
3125         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3126         * sysdeps/unix/sysv/linux/s390/Versions: New file.
3128 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
3130         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3131         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3132         re_string_skip_chars, re_string_reconstruct): Likewise.
3133         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3135 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
3137         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
3138         adjust the buffer alignment.
3140 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3142         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
3143         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
3144         net/route.h.
3146         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
3147         flavor to description only when flavor is not NULL.
3149         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
3150         mutex after SIGIO/SIGURG lookup loop.
3152 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3154         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
3156 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
3158         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
3159         handling.
3161 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
3163         * sysdeps/unix/sysv/linux/kernel-features.h
3164         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
3166         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
3167         if no output is written.
3169         * version.h: Bump to 2.10 development.
3171         * posix/getconf.c: Update copyright year.
3172         * nss/getent.c: Likewise.
3173         * iconv/iconvconfig.c: Likewise.
3174         * iconv/iconv_prog.c: Likewise.
3175         * elf/ldconfig.c: Likewise.
3176         * catgets/gencat.c: Likewise.
3177         * csu/version.c: Likewise.
3178         * elf/ldd.bash.in: Likewise.
3179         * elf/sprof.c (print_version): Likewise.
3180         * locale/programs/locale.c: Likewise.
3181         * locale/programs/localedef.c: Likewise.
3182         * nscd/nscd.c (print_version): Likewise.
3183         * debug/xtrace.sh: Likewise.
3184         * malloc/memusage.sh: Likewise.
3185         * malloc/mtrace.pl: Likewise.
3186         * debug/catchsegv.sh: Likewise.
3188 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
3190         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
3191         script.
3193 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
3195         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
3196         gethostbyname4_r function call succeeded, just leave the loop.
3198         [BZ #9694]
3199         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
3200         very end.
3201         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
3202         * wctype/Makefile (tests): Add bug-wctypeh.
3203         * wctype/bug-wctypeh.c: New file.
3205         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
3206         LOCALDOMAIN is defined.
3207         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3209         * sysdeps/x86_64/bits/select.h: New file.
3211         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
3213 2008-12-21  Bruno Haible  <bruno@clisp.org>
3215         [BZ #9677]
3216         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
3217         if no output is written.
3219 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
3221         * login/utmp_file.c (pututline_file): Replace call to dup2 with
3222         libc internal symbol __dup2 to avoid access through the PLT.
3224 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
3226         [BZ #6545]
3227         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
3228         available only for __USE_GNU.
3230         * inet/Makefile (tests): Add tst-getni2.
3231         * inet/tst-getni2.c: New file.
3233         [BZ #7080]
3234         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
3235         NULL when NI_NAMEREQD is set.
3236         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3237         * inet/Makefile (tests): Add tst-getni1.
3238         * inet/tst-getni1.c: New file.
3240 2008-12-03  Petr Baudis  <pasky@suse.cz>
3242         [BZ #7067]
3243         * nscd/connections.c (invalidate_cache): Use prune_run_lock
3244         instead of prune_lock.
3245         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
3246         * nscd/nscd.h (database_dyn): Add prune_run_cache.
3248 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
3250         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
3251         use.
3253         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
3254         handling.
3256         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
3257         after reading name server list.
3259         [BZ #7058]
3260         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
3261         handling for host name aliases.
3263 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
3265         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
3266         instead of doing things manually.
3268 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
3270         * posix/regex_internal.h (build_wcs_upper_buffer):
3271         Return type is reg_error_t.
3273 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
3275         * posix/globtest.sh: Use mktemp to create temporary file and
3276         directory.
3278         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
3279         sets correctly.
3280         (__CPU_CLR_S): Likewise.
3281         (__CPU_ISSET_S): Likewise.
3283 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
3284             Ulrich Drepper  <drepper@redhat.com>
3286         * scripts/firstversion.awk: Use custom comparison function to compare
3287         version numbers.
3288         * scripts/versions.awk: Use sort invocation which can handle
3289         multi-digit sub-version numbers.
3291 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
3293         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
3294         * locale/iso-639.def: Add Chhattisgarhi entry.
3296 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
3298         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
3299         ESRCH return value.
3300         (_nss_dns_gethostbyname4_r): Likewise.
3301         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
3302         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
3303         gethostbyname4_r, we don't have a separate IPv6 status, so copy
3304         the no_data variable.
3306         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
3307         information at the correct index.
3309         * socket/sys/socket.h: Declare accept4.
3310         * socket/accept4.c: New file.
3311         * sysdeps/unix/sysv/linux/accept4.c: New file.
3312         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
3313         * socket/Makefile (routines): Add accept4.
3314         * socket/Versions: Export accept4 with version GLIBC_2.10.
3315         * socket/paccept.c: Removed.
3316         * sysdeps/unix/sysv/linux/paccept.c: Removed.
3317         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
3318         * Versions.def: Define GLIBC_2.10 for libc.
3319         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
3321         * nscd/connections.c: Use accept4.
3323         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
3325 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
3327         * resolv/res_send.c (send_dg): Create sockets with non-blocking
3328         flag already set.
3330         * stdlib/setenv.c (unsetenv): Don't search environment if it does
3331         not exist.
3332         * stdlib/Makefile (tests): Add tst-unsetenv1.
3333         * stdlib/tst-unsetenv1.c: New file.
3335 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
3337         * login/utmp_file.c (file_writable): New variable.
3338         (setutent_file): Don't try to open file for writing.
3339         (pututline_file): Before writing, make descriptor writable if
3340         necessary.
3342 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
3344         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
3345         to IPv4 or IPv6 if an interface has been found.
3347 2008-11-26  Roland McGrath  <roland@redhat.com>
3349         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
3350         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
3352         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
3353         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
3354         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
3356         * elf/elf.h (NT_386_IOPERM): New macro.
3357         (NT_PPC_VSX): New macro.
3359 2008-11-25  Roland McGrath  <roland@redhat.com>
3361         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
3362         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
3363         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
3364         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
3365         Subdirectories moved to ports repository.
3366         * configure.in (base_machine): Remove alpha case.
3368 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
3370         * sysdeps/mach/strerror_l.c: New file.
3372 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
3374         [BZ #6411]
3375         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
3376         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
3377         magic numbers.
3378         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
3379         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
3380         (relax_fenv_state): Same as above.
3381         (FPSCR_29): Reserve bit in ISA 2.05.
3382         (FPSCR_NI): Provide define for compat.
3383         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
3384         magic numbers.
3385         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
3386         magic numbers.
3387         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
3388         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
3389         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
3390         access to hwcap to account for hwcap size increase to uint64_t.
3391         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
3392         Likewise.
3393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3394         (*setcontext): Likewise.
3395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3396         New file.
3397         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3398         New file.
3399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3400         (*setcontext): dynamically select mtfsf insn based on
3401         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
3402         increase to uint64_t.
3403         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3404         (*swapcontext): dynamically select mtfsf insn based on
3405         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
3406         increase to uint64_t.
3407         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3408         New file.
3409         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3410         New file.
3411         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3412         (*setcontext): dynamically select mtfsf insn based on
3413         PPC_FEATURE_HAS_DFP.
3414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3415         (*swapcontext): dynamically select mtfsf insn based on
3416         PPC_FEATURE_HAS_DFP.
3418 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
3420         * version.h: Bump for 2.9 release.
3421         * include/features.h (__GLIBC_MINOR__): Bump to 9.
3423         [BZ #7029]
3424         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
3425         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
3426         all the rounding.
3428 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
3430         [BZ #7009]
3431         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
3432         unknown request types for now.
3434 2008-11-11  Roland McGrath  <roland@redhat.com>
3436         * sysdeps/x86_64/configure: New file.
3438         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
3439         * configure: Regenerated.
3441 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3443         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
3444         correct instruction to remove the stack frame.
3446 2008-11-03  Michael Matz  <matz@suse.de>
3448         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
3449         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
3451 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
3453         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
3454         Remove.
3456         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
3457         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
3458         of the thread variable instead of void *.
3459         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
3460         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
3461         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3462         __libc_tsd_define arguments.
3463         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
3464         __libc_tsd_address arguments.  Remove union hack.
3465         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
3466         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
3467         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
3468         Adjust __libc_tsd_{set,get} arguments.
3469         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3470         __libc_tsd_define arguments.
3471         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
3472         arguments.
3473         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3474         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
3475         (LOCALE): Adjust __libc_tsd_define arguments.
3476         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
3477         arguments.
3478         (LOCALE): Adjust __libc_tsd_define arguments.
3479         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
3480         arguments.
3481         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
3482         arguments.
3484 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
3486         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
3487         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3489 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
3491         [BZ #6966]
3492         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
3494 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
3495             Ulrich Drepper  <drepper@redhat.com>
3497         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
3498         definition for GCC 3.1 and later.
3500 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
3502         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
3503         refetch dtv, as it might have changed.
3504         * elf/Makefile: Add rules to build and run tst-tls18.
3505         * elf/tst-tls18.c: New test.
3506         * elf/tst-tlsmod18a.c: New file.
3508 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
3510         [BZ #6875]
3511         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
3513 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
3515         [BZ #6867]
3516         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
3518         [BZ #6919]
3519         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
3520         Fix length of copy operation.
3522 2008-10-02  Pierre Habouzit <madcoder@debian.org>
3524         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
3525         and fix its calling convention.
3527 2008-10-07  Andreas Schwab  <schwab@suse.de>
3529         [BZ #6942]
3530         * resolv/res_send.c (send_vc): Fix last change.
3531         (send_dg): Align here as well.
3533 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
3535         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
3536         return value in case rlimit is RLIM_INFINITY.
3538         [BZ #6947]
3539         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
3540         for UL_SETFSIZE.
3541         * resource/Makefile (tests): Add bug-ulimit1.
3542         * resource/bug-ulimit1.c: New file.
3544         [BZ #6974]
3545         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
3546         without dot.  Properly terminate the string with a null byte.
3547         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
3549         [BZ #6980]
3550         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
3551         negative sizees.
3552         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
3553         negative __size.
3555         [BZ #6995]
3556         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
3558 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
3560         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
3561         abort if there is no initgroups_dyn function.
3563         * resolv/res_send.c (send_dg): On timeout, only return nonzero
3564         result if any of the queries really provided an answer.
3566 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
3568         * po/lt.po: Update from translation team.
3570 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
3572         * po/id.po: Update from translation team.
3574 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
3576         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
3577         Fix tests for existence of second reply.
3579 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
3581         * po/id.po: New file.
3582         Contributed by the Indonesian translation team.
3584 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
3586         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
3587         initialization.
3589 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
3591         * elf/Makefile: Add rules to build and run tst-tls17.
3592         * elf/tst-tls17.c: New test.
3593         * elf/tst-tlsmod17a.c: New file.
3594         * elf/tst-tlsmod17b.c: Likewise.
3596 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
3598         * stdlib/divmod_1.c: Use correct type for dummy variable.
3599         * stdlib/mod_1.c: Likewise.
3601 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
3603         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
3605 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
3607         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
3608         __nonnull order for C++.
3609         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
3610         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
3612 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
3614         * stdlib/longlong.h: Update from GCC.
3616 2008-10-09  Jakub Jelinek <jakub@redhat.com>
3617             David S. Miller  <davem@davemloft.net>
3619         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
3620         make sure any registers used with 64-bit 'branch-on-register'
3621         instructions have their top 32-bits clear.
3622         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
3623         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
3625 2008-09-18  Andreas Schwab  <schwab@suse.de>
3627         [BZ #6942]
3628         * resolv/res_send.c (send_vc): Fix use of unaligned address.
3629         Properly handle partial reads.
3631 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
3633         * elf/elf.h (STO_MIPS_PLT): New.
3634         (R_MIPS_COPY): New.
3635         (R_MIPS_JUMP_SLOT): New.
3636         (R_MIPS_NUM): Redefine to 128.
3637         (DT_MIPS_PLTGOT): New.
3638         (DT_MIPS_RWPLT): New.
3639         (DT_MIPS_NUM): Redefine to 0x35.
3641 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
3643         * timezone/africa: Update from tzdata2008f.
3644         * timezone/asia: Likewise.
3645         * timezone/australasia: Likewise.
3646         * timezone/europe: Likewise.
3647         * timezone/leapseconds: Likewise.
3648         * timezone/northamerica: Likewise.
3649         * timezone/southamerica: Likewise.
3650         * timezone/zone.tab: Likewise.
3652 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
3654         * nscd/connections.c: Disable use of paccept for now.
3656 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
3658         * socket/Versions: Remove paccept export for GLIBC_2.9.
3659         * socket/Makefile (routines): Remove paccept.
3660         * socket/sys/socket.h: Remove paccept declaration.
3662         * po/sv.po: Update from translation team.
3664 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
3666         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
3667         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
3669 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
3671         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
3672         Patch by Olivier Fourdan <ofourdan@redhat.com>.
3674 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
3676         * sunrpc/rpc/svc.h: Declare svcfd_create.
3677         Patch by Michael Solberg <msolberg@redhat.com>.
3679 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
3680             Ulrich Drepper  <drepper@redhat.com>
3682         * malloc/malloc.c (public_vALLOc): Try other arenas in case
3683         _int_valloc fails.
3684         (public_pVALLOc): Likewise.
3686 2008-09-02  Andreas Jaeger  <aj@suse.de>
3688         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
3689         commit.
3691 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
3693         [BZ #6860]
3694         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
3696 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
3698         * Makefile (check-data): Check data directory in add-ons.
3699         * elf/Makefile (check-data): Likewise.
3701 2008-08-18  Roland McGrath  <roland@redhat.com>
3703         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
3704         * configure: Regenerated.
3705         * config.make.in (cflags-cpu): New substituted variable.
3706         (with-cpu): Variable removed.
3707         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
3709 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
3711         [BZ #6845]
3712         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
3713         __signbitl definition and __LONG_DOUBLE_128__ guard from:
3714         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
3715         redundant.  Functions which call floating point assembler operations
3716         should go into a sysdeps powerpc/fpu directory.
3718 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
3720         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
3721         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
3723 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
3725         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
3727         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
3728         change related to AT_EXECFN.  We cannot use that string.
3729         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
3730         _dl_execfn member.
3731         * elf/dl-support.c: Remove _dl_execfn variable.
3732         (_dl_aux_init): Remove handling of AT_EXECFN.
3733         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
3734         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
3736 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
3738         [BZ #6544]
3739         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
3740         byte gets added to writes and seeks from the end use the length of
3741         the buffer and not the currently terminating NUL byte.
3743         [BZ #6634]
3744         * login/utmp_file.c (getutent_r_file): Take additional parameter.
3745         Set to true if locking failed.
3746         (getutid_r_file): Adjust caller.
3747         (pututline_file): Likewise.  Return NULL in this case.
3748         Patch mostly by halesh.s@gmail.com.
3750 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
3752         [BZ #6589]
3753         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
3754         Define.
3755         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
3757 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
3759         [BZ #6839]
3760         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
3761         macro since it is now available in elf/dynamic-link.h.
3763 2008-08-12  Roland McGrath  <roland@frob.com>
3765         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
3766         in case used outside of libc.
3767         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
3769 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
3771         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
3772         directly instead of going through dn_comp.
3774 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
3776         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3777         Fix asm constraints.
3779 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
3781         [BZ #6790]
3782         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
3783         (IPV6_PMTUDISC_PROBE): Likewise.
3785 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
3787         [BZ #6791]
3788         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
3790 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
3791             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3793         [BZ #6817]
3794         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
3795         Added the members 'vsx' and 'arch_2_06'.
3796         (_dl_powerpc_platforms): Add the member 'power7'.
3797         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
3798         to reflect the changes required by VSX and ISA 2.06.
3799         Modify _DL_PLATFORMS_COUNT to reflect the addition of
3800         'power7'.
3801         Defined PPC_PLATFORM_POWER7.
3802         (_dl_string_platform): Add support for POWER7.
3803         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
3804         capability and ISA 2.06.
3806 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
3808         [BZ #6824]
3809         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
3810         macro to detect use of 128 bit long double.
3811         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
3813 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
3815         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
3817         [BZ #5794]
3818         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
3819         parameters.
3820         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3821         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3823 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
3825         * nscd/connections.c (main_loop_poll): Pass a buffer which is
3826         guaranteed to be large enough to read inotify event.  Ignore
3827         EAGAIN error.  Better error message.  Add branch predicition.
3828         (main_loop_epoll): Likewise.
3830 2008-08-02  Roland McGrath  <roland@frob.com>
3832         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3833         Add memory clobbers.
3835 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
3837         * manual/arith.texi: Avoid @strong{Note:}.
3838         * manual/creature.texi: Likewise.
3839         * manual/filesys.texi: Likewise.
3840         * manual/math.texi: Likewise.
3841         * manual/memory.texi: Likewise.
3842         * manual/resource.texi: Likewise.
3843         * manual/syslog.texi: Likewise.
3844         * manual/time.texi: Likewise.
3846         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
3847         to prevent warning.
3849 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
3851         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
3852         new epoll_create1 interface.
3853         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3854         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
3855         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
3857         * include/arpa/nameser.h (NS_GET16): Use const pointer.
3858         (NS_GET32): Likewise.
3860         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
3861         syscalls, too.
3863         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
3864         use the AT_EXECFN value if it is no absolute path.
3865         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
3866         __ASSUME_AT_EXECFN.
3868         * Versions.def: Add GLIBC_2.9 to libresolv.
3869         * include/resolv.h: Remove hidden proto declarations for __ns_*
3870         functions.  Add them for __dn_count_labels and __p_secstodate.
3871         * include/arpa/nameser.h: Add a number of hidden proto declarations.
3872         Define ns_msg_getflags macro here.
3873         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
3874         and __p_secstodate.
3875         * resolv/Versions: Export functions from <arpa/nameser.h> from
3876         libresolv in version GLIBC_2.9.
3877         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
3878         hidden definitions.
3879         * resolv/ns_netint.c: Likewise.
3880         * resolv/ns_parse.c: Likewise.
3881         * resolv/ns_print.c: Likewise.
3882         * resolv/ns_samedomain.c: Likewise.
3883         * resolv/ns_ttl.c: Likewise.
3884         * resolv/arpa/nameser_compat.h: Likewise.
3885         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
3886         function calls.
3887         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
3888         instead of ns_get16.
3889         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
3890         __ns_get32 instead of ns_get16 and ns_get32 respectively.
3891         (gaih_getanswer_slice): Likewise.
3892         * resolv/Makefile (libresolv-routines): Add ns_date.
3893         * resolv/ns_date.c: New file.
3895         * elf/Makefile (check-localplt.out): Also check libresolv and
3896         libcrypt.
3898 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
3900         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3901         __ASSUME_O_CLOEXEC.
3903 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
3905         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
3906         buffer passed to NSS functions.
3908         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
3910         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
3911         Define.
3913         * misc/syslog.c (openlog_internal): Fix compile problem.
3915 2008-07-28  Roland McGrath  <roland@redhat.com>
3917         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
3919 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
3921         * io/ftw.c (add_object): Remove inline to avoid warning.
3923         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
3925         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
3926         Use it instead of locally defined resplen2 variable.
3927         (res_nsend): Adjust for __libc_res_nsend interface change.
3928         (send_vc): Initialize *resplen2 if necessary.  Read length of
3929         package into an appropriately aligned variable.  Store converted length
3930         in new variable and use it appropriately.
3931         Add branch prediction help.
3932         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
3933         and pass it on to __libc_res_nsend.  Adjust all callers.
3934         (__libc_res_nsearch): Likewise.
3935         (__libc_res_nqeurydomain): Likewise.
3936         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
3937         change.
3938         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
3939         Define resplen2 variable and pass it to __libc_res_nsearch and then
3940         to gaih_getanswer.
3941         (getanswer_r): In case of incorrect DNS data don't overread buffer.
3942         Add branch prediction.
3943         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
3944         (gaih_getanswer): Don't decode second slice if first one failed due
3945         to a too small buffer.  Don't let not found status of second
3946         decoder shadow results of the first.
3947         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
3948         and __libc_res_nquery interface changes
3949         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
3950         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
3951         __libc_res_nsearch, and __libc_res_nsend.
3952         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
3953         change.
3954         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
3955         __libc_res_nsearch interface changes.
3957 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
3959         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
3961         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
3962         file descriptors with close-on-exec set.
3963         (exec_comm_child): Fix the case where the write end of the pipe is
3964         STDOUT_FILENO already.  In case it is, clear close-on-exec.
3966         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
3967         * io/pipe2.c: Likewise.
3968         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
3969         instead of __ASSUME_PACCEPT.
3970         * include/unistd.h: Declare __have_pipe2.
3971         * libio/iopopen.c: Implement "e" flag.
3972         * libio/Makefile (tests): Add tst-popen1.
3973         * libio/tst-popen1.c: New file.
3975         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
3976         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3978 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
3980         [BZ #6771]
3981         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
3982         success call of _IO_SEEKOFF or calls which failed because the
3983         descriptor is for a pipe.
3985         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
3986         magic number.
3988         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
3990         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
3991         F_SETFD use if we know fopen set the flag.
3993         * login/utmp_file.c (setutent_file): Minor optimization in case
3994         O_CLOEXEC is available.
3996 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
3998         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
3999         * elf/Makefile: Use pie-ccflag variable.
4000         * nscd/Makefile: Likewise.
4001         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
4003 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
4005         [BZ #6724]
4006         * Versions.def: Add GLIBC_2.9 version tag for libutil.
4007         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
4008         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
4009         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
4010         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
4011         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
4012         utmp32, utmpx32 and login32.
4013         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
4014         versions of struct utmp functions to libc and libutil.
4015         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
4016         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
4017         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
4018         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
4019         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
4020         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
4021         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
4022         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
4023         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
4024         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
4025         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
4026         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
4027         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
4028         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
4029         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
4030         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
4031         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
4032         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
4033         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
4034         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
4035         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
4036         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
4038 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
4040         * scripts/gen-as-const.awk: Generate more widely usable code by
4041         using 64-bit arithmetic.
4043         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
4044         the same treatment as narrow output code in last patch.
4046         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
4048         [BZ #6763]
4049         * elf/dl-load.c (local_strdup): Remove inline.
4050         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
4051         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
4052         part of the object.
4054         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
4056 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
4058         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
4059         the new syscalls, too.
4061         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
4062         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
4064         [BZ #6698]
4065         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
4066         parameter for end of buffer.  If temporary copy is too large use
4067         malloc.
4068         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
4069         interface change.
4070         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
4071         string rewrite when allocating buffer.
4073         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
4074         syscalls, too.
4076         * nscd/connections.c (nscd_init): Clean up fcntl call.
4078         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
4079         SOCK_NONBLOCK if possible.
4081         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
4082         SOCK_CLOEXEC if available.
4084         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
4085         __libc_clntudp_bufcreate_internal.
4086         * include/sys/socket.h: Declare __have_sock_cloexec.
4087         * socket/Makefile (aux): Add have_sock_cloexec.
4088         * socket/have_sock_cloexec.c: New file.
4089         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
4090         __libc_clntudp_bufcreate.
4091         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
4092         which takes an additional parameter.  Create socket with non-blocking
4093         mode and close-on-exec flag set, if wanted.
4094         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
4095         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
4096         instead of clntudp_create.  The socket has already the close-on-exec
4097         flag set if SOCK_CLOEXEC is defined.
4099 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
4101         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4102         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
4103         appropriate.
4104         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
4105         non-blocking mode by using socket, paccept, and inotify_init1.
4107         * Versions.def (glibc): Add GLIBC_2.9.
4108         * io/Makefile (routines): Add dup3 and pipe2.
4109         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
4110         * io/dup3.c: New file.
4111         * io/pipe2.c: New file.
4112         * posix/unistd.h: Declare dup3 and pipe2.
4113         * socket/Makefile (routines): Add paccept.
4114         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
4115         * socket/paccept.c: New file.
4116         * socket/sys/socket.h: Declare paccept.
4117         * sysdeps/unix/syscalls.list: Add entry for dup3.
4118         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
4119         epoll_create2 and inotify_init1.
4120         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
4121         * sysdeps/unix/sysv/linux/paccept.c: New file.
4122         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
4123         possible.
4124         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
4125         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
4126         inotify_init1, and pipe2 entries.
4127         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
4128         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
4129         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
4130         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
4131         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
4132         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
4133         SOCK_NONBLOCK.
4134         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
4135         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
4136         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
4137         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
4138         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
4139         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
4140         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
4141         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
4142         EPOLL_NONBLOCK.  Declare epoll_create2.
4143         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
4144         EFD_NONBLOCK.
4145         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
4146         IN_NONBLOCK.  Declare inotify_init1.
4147         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
4148         SFD_NONBLOCK.
4149         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
4150         TFD_NONBLOCK.
4152         * elf/elf.h: Define AT_EXECFN.
4153         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
4154         LD_ORIGIN_PATH.
4155         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
4156         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
4157         if __ASSUME_AT_EXECFN is defined.
4158         (_dl_aux_init): Handle AT_EXECFN.
4159         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
4160         for 2.6.27 and up.
4161         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
4162         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
4163         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
4164         _dl_execfn if available and avoid compatibility code if
4165         __ASSUME_AT_EXECFN is defined.
4167         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
4168         _dl_discover_osversion only for older kernels.
4170 2008-07-22  Roland McGrath  <roland@frob.com>
4172         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
4174 2008-07-21  Roland McGrath  <roland@frob.com>
4176         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
4177         returned too much data out of line.
4179 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
4181         * locale/setlocale.c (setname): Remove inline to avoid compiler
4182         warning.
4184         [BZ #6712]
4185         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
4187 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
4189         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
4190         doesn't manage to write anything, fail.
4192         * malloc/hooks.c (__malloc_check_init): Remove printf.
4194 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4196         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
4198 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
4200         * nscd/connections.c (main_loop_poll): Fix handling of read errors
4201         from inotify.
4202         (main_loop_epoll): Likewise.
4204 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
4206         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
4208         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
4209         if DEBUG is defined.
4211         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
4212         query.  Adjust buffer size computation for padding.
4214 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
4216         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
4217         * stdio-common/tst-setvbuf1.c: New file.
4218         * stdio-common/tst-setvbuf1.expect: New file.
4220         [BZ #6719]
4221         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
4222         when selecting fully-buffered stream.
4223         Patch by Wang Xin <wxinee@gmail.com>.
4225 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4227         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
4228         (__open_2): New function.
4229         (__open64_2): New alias to __open_2.
4230         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
4231         (__openat_2): New function.
4232         (__openat64_2): New alias to __openat_2.
4234 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
4236         [BZ #6723]
4237         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
4239 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4241         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
4242         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
4243         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
4244         __hurd_dfail.
4245         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4246         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4247         * sysdeps/mach/hurd/send.c (__send): Likewise.
4248         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
4249         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
4251 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4253         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
4254         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4255         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4256         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
4257         * hurd/get-host.c (_hurd_get_host_config): Likewise.
4258         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
4260 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
4262         [BZ #6657]
4263         * time/strptime_l.c: Don't clear s.era_cnt after successful match
4264         of %EY.
4265         Patch by Petr Baudis.
4267 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
4269         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
4270         Patch by Peter Jones <pjones@redhat.com>.
4272 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
4274         [BZ #6654]
4275         * stdlib/canonicalize.c (__realpath): readlink can write too much
4276         into the buffer on platforms without PATH_MAX.
4278 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
4280         [BZ #6653]
4281         * posix/tst-regex.c (main): Rename to...
4282         (do_test): ... this. Remove cmdline option processing.
4283         (TIMEOUT): Define.
4284         (TEST_FUNCTION): Define.
4285         (CMDLINE_OPTIONS): Define.
4287 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
4289         [BZ #5210]
4290         * configure.in: Add -Werror to -fstack-protector test to catch
4291         unsupported architectures.
4292         Patch by Gilles Esponasse <g.esp@free.fr>.
4294 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
4296         * stdlib/tst-setcontext.c: Set back_in_main before exit if
4297         getcontext returns ENOSYS.
4299 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
4301         * nscd/connections.c (main_loop_poll): Fix test for read error.
4302         (main_loop_epoll): Likewise.
4304 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
4306         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
4307         better place so it is not called when nscd is used.
4309         * nscd/connections.c: Also recognize and handle changes to the
4310         resolver configuration file.
4312 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
4314         * time/strftime.c: Pass reference to tzset_called around to handle
4315         recursive calls.
4317         [BZ #6612]
4318         * time/strftime.c (__strftime_internal): Call tzset() only
4319         when printing timezone-dependent values.
4320         Based on a patch by Petr Baudis <pasky@suse.cz>.
4322         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
4323         unconditionally use second gaih_getanswer_slice result.
4325         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
4326         (getaddrinfo): RES must always be non-NULL.
4328 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
4330         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
4331         cr[34] registers.
4332         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4333         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4334         Likewise.
4335         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
4336         register.
4338 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
4340         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
4341         fields.
4342         * nscd/connections.c (inotify_fd): New variable.
4343         (nscd_init): Try to open an inotify descriptor.
4344         If successful, watch files for databases using inotify instead of
4345         having prune threads stat the files.
4346         (nscd_run_prune): Recognize clear_cache flag being set and call
4347         prune_cache appropriately.
4348         (main_loop_poll): Add inotify descriptor to wait set and handle the
4349         reported changes.
4350         (main_loop_epoll): Likewise.
4351         * nscd/cache.c (prune_cache): Don't stat files for databases if
4352         inotify is used.
4353         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
4354         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
4356         * nscd/grpcache.c (cache_addgr): Correctly compute size of
4357         fixed-size portion of the record.
4358         * nscd/servicescache.c (cache_addserv): Likewise.
4359         * nscd/pwdcache.c (cache_addpw): Likewise.
4360         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4362 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
4364         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
4365         out we don't use uninitialized memory.
4367         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
4368         the client.
4370 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
4372         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
4373         ignore T_DNAME messages.
4374         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
4376 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
4378         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
4379         Avoid segfault if first GETC returns eof/'\0'/'\n'.
4381 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
4383         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
4384         instead of portstr to nscd_getserv_r.  Patch by
4385         Roman Kagan <rkagan@mail.ru>.
4387 2008-05-26  Jim Meyering  <meyering@redhat.com>
4389         Remove more useless "if" tests before "free".
4390         * include/inline-hashtab.h (htab_delete): Likewise.
4391         * libio/freopen.c (freopen): Likewise.
4392         * libio/freopen64.c (freopen64): Likewise.
4393         * locale/programs/ld-collate.c (collate_read): Likewise.
4394         * misc/fstab.c (libc_freeres_fn): Likewise.
4395         * posix/glob.c (globfree): Likewise.
4397 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
4399         * string/Makefile (strop-tests): Add memmem.
4400         * string/test-memmem.c: New file.
4401         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
4402         (test_init): Size buf1 according to BUF1PAGES.
4404 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
4406         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
4407         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
4408         (CFLAGS-scanf17.c): New.
4409         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
4410         * stdio-common/scanf15.c (main): Likewise.
4411         * stdio-common/scanf16.c: New file.
4412         * stdio-common/scanf17.c: New file.
4414 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
4416         * resolv/res_send.c (send_dg): If we already have one of two
4417         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
4418         use the one answer insted of failing.
4420 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
4422         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
4423         being executed on PowerPC as the expected result exceeds IBM
4424         long double 128 __LDBL_MAX__.
4426 2008-05-21  Roland McGrath  <roland@redhat.com>
4428         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
4430         * Makefile (check-data): Use $(abi-name) before other guesses.
4431         Look in $(add-ons) dirs before scripts/data/.
4432         * elf/Makefile (check-data): Likewise.
4434         * scripts/soversions.awk: Grok ABI line.
4435         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
4436         Emit definition for abi-name variable.
4438 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
4440         * string/endian.h: Define new fixed-size hto* and *toh macros only
4441         if [__USE_BSD].
4443         * iconvdata/Depend: Add localedata.
4445 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4447         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
4449 2008-05-08  David S. Miller  <davem@davemloft.net>
4451         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
4452         HIDDEN_JUMPTARGET.
4453         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4454         (__SYSCALL_CLOBBERS): Remove %g* registers.
4455         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4456         (__SYSCALL_CLOBBERS): Likewise.
4457         * scripts/data/localplt-sparc-linux-gnu.data: New file.
4458         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
4460 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
4462         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4463         (CALL_ERRNO_LOCATION): Define.
4464         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4465         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4466         (CALL_ERRNO_LOCATION): Define.
4467         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4468         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
4469         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
4471 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
4473         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
4474         variable.
4476 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
4478         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
4479         (FIRST_FRAME_POINTER): Define.
4481 2008-05-09  David S. Miller  <davem@davemloft.net>
4483         * sysdeps/sparc/sparc64/backtrace.c: New file.
4485 2008-05-14  David S. Miller  <davem@davemloft.net>
4487         * sysdeps/sparc/machine-gmon.h: New file.
4488         * sysdeps/sparc/sparc-mcount.S: Likewise.
4489         * sysdeps/sparc/Makefile: Add sparc-mcount target to
4490         sysdep_routines in gmon directory.
4492 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
4494         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
4496 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
4498         * resolv/res_query.c (__libc_res_nquery): In case one of two
4499         answer was too short don't try to read that answer's header.
4501         * resolv/res_send.c (send_dg): In case of timeout and there are
4502         two queries and one has been answered, return value indicating
4503         success.
4505 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
4507         * nscd/cache.c (cache_add): Take additional parameter specifying
4508         whether this is in response of a cache refill.  Check alignment
4509         of package data.  Revamp waking of pruning thread.
4510         (prune_cache): Small optimization.
4511         * nscd/nscd.h: Adjust cache_add prototypes.
4512         * nscd/aicache.c: Adjust cache_add calls.
4513         * nscd/grpcache.c: Likewise.
4514         * nscd/hstcache.c: Likewise.
4515         * nscd/initgrcache.c: Likewise.
4516         * nscd/pwdcache.c: Likewise.
4517         * nscd/servicescache.c: Likewise.
4518         * nscd/connections.c (restart): Really disable cache use before
4519         exec attempt.  If it fails, reenable cache.
4520         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
4521         time to max to be able to notice concurrent cache additions.  Unlock
4522         prune_lock while performing gc.  Afterwards compute wakeup time with
4523         current wakeup_time value in mind.
4525 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
4527         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
4529         * nscd/mem.c (gc): Correctly determine highest used array element
4530         in mark.
4532         * nscd/mem.c (markrange): Add assert to check entries are all
4533         aligned.  Small cleanup in bitmap use.
4535         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
4536         blockoff of type nscd_ssize_t.
4537         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
4538         (mempoll_alloc): Record block offset and not address.
4540         * nscd/mem.c (gc): Fix test for stack overuse.
4542         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
4543         more asserts.
4545         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
4546         entry is available, believe it.
4548         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
4549         no answers return NSS_STATUS_NOTFOUND.
4550         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
4551         buffer does not have any content.
4553 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
4555         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
4557         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
4558         lookup, don't assign canon unconditionally.
4560 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
4562         * string/Makefile (distribute): Add str-two-way.h.
4564 2008-03-29  Eric Blake  <ebb9@byu.net>
4566         Rewrite string searches to O(n) rather than O(n^2).
4567         * string/str-two-way.h: New file.  For linear fixed-allocation
4568         string searching.
4569         * string/memmem.c: New implementation.
4570         * string/strstr.c: New implementation.
4571         * string/strcasestr.c: New implementation.
4573 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
4575         * posix/regcomp.c (optimize_utf8): Add a note on why we test
4576         opr.ctx_type.
4577         (calc_first): Initialize constraint field.
4578         (duplicate_node_closure): Use it instead of special casing ANCHORS.
4579         Use search_duplicated_node to avoid loops.  Fix grammar.
4580         (duplicate_node): Merge constraint field for all node types.
4581         (calc_eclosure_iter): Look at constraint field for all node types.
4582         * posix/regex_internal.c (create_cd_newstate): Don't look at
4583         create_cd_newstate.
4585 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
4587         [BZ #6428]
4588         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
4590         [BZ #6442]
4591         * string/endian.h: Add macros for fixed-size endian conversion.
4592         * bits/byteswap.h: Allow inclusion from <endian.h>.
4593         * sysdeps/i386/bits/byteswap.h: Likewise.
4594         * sysdeps/ia64/bits/byteswap.h: Likewise.
4595         * sysdeps/s390/bits/byteswap.h: Likewise.
4596         * sysdeps/x86_64/bits/byteswap.h: Likewise.
4597         * string/Makefile (tests): Add tst-endian.
4598         * string/tst-endian.c: New file.
4600         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
4601         Patch by Reuben Thomas.
4603 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
4605         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
4607 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
4609         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
4611         [BZ #6461]
4612         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
4613         Add missing braces.
4614         (BODY for __gconv_transform_internal_ascii): Likewise.
4616         [BZ #6472]
4617         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
4618         to be treated like link-local addresses.
4619         (match_prefix): Don't treat IPv4 loopback address special when
4620         converting to v4 mapped addressed.
4622         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
4623         if necessary.
4624         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
4625         * posix/tst-rfc3484-2.c: Likewise.
4626         * posix/tst-rfc3484-3.c: Likewise.
4628         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
4629         and SCTP.
4631         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
4633         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
4635         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
4637 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
4639         * po/lt.po: New file.  From Lituanian translation team.
4641 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
4643         Introduce TLS descriptors for i386 and x86_64.
4644         * include/inline-hashtab.h: New file, copied from 2005's
4645         libiberty, with fix for memory leak imported afterwards by
4646         Glauber de Oliveira Costa.
4647         * elf/tlsdeschtab.h: New file.
4648         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
4649         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
4650         (CHECK_STATIC_TLS): Move to...
4651         * elf/dynamic-link.h: ... this file.
4652         (TRY_STATIC_TLS): New macro.
4653         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
4654         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
4655         R_386_TLS_DESC): Define.
4656         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
4657         binutils.
4658         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
4659         R_X86_64_TLSDESC): Define.
4660         (R_386_NUM, R_X86_64_NUM): Adjust.
4661         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
4662         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4663         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4664         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
4665         release tlsdesc_table.
4666         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
4667         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
4668         (elf_machine_rel): Handle R_386_TLS_DESC.
4669         (elf_machine_rela): Likewise.
4670         (elf_machine_lazy_rel): Likewise.
4671         (elf_machine_lazy_rela): Likewise.
4672         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
4673         * sysdeps/i386/dl-tlsdesc.S: New file.
4674         * sysdeps/i386/dl-tlsdesc.h: New file.
4675         * sysdeps/i386/tlsdesc.c: New file.
4676         * sysdeps/i386/tlsdesc.sym: New file.
4677         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
4678         tlsdesc_table.
4679         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
4680         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4681         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4682         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
4683         release tlsdesc_table.
4684         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
4685         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
4686         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
4687         (elf_machine_rel): Handle R_X86_64_TLSDESC.
4688         (elf_machine_rela): Likewise.
4689         (elf_machine_lazy_rel): Likewise.
4690         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
4691         (__tls_get_addr): Do not declare for non-shared compiles.
4692         * sysdeps/x86_64/dl-tlsdesc.S: New file.
4693         * sysdeps/x86_64/dl-tlsdesc.h: New file.
4694         * sysdeps/x86_64/tlsdesc.c: New file.
4695         * sysdeps/x86_64/tlsdesc.sym: New file.
4696         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
4697         tlsdesc_table for both 32- and 64-bit structs.
4699 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
4701         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
4702         its own function.  This reduces the frame setup costs and more.
4704 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
4706         [BZ #3406]
4707         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
4708         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
4710 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
4712         * io/openat.c (__openat_2): Also pass fd to __openat.
4713         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
4714         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
4716         * string/tester.c (test_memcmp): Add a few more tests.
4717         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
4719 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
4721         * nscd/cache.c (cache_add): Before returning with failure and this
4722         is the first use of the record, mark it as unusable.
4723         * nscd/aicache.c: Don't touch the dataset after cache_add returns
4724         reporting a failure.
4725         * nscd/grpcache.c: Likewise
4726         * nscd/hstcache.c: Likewise.
4727         * nscd/initgrcache.c: Likewise.
4728         * nscd/pwdcache.c: Likewise.
4729         * nscd/servicescache.c: Likewise.
4731 2008-05-10  Roland McGrath  <roland@redhat.com>
4733         [BZ #6505]
4734         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
4736 2008-05-08  David S. Miller  <davem@davemloft.net>
4738         * misc/truncate64.c (truncate64): Use __truncate not truncate.
4740         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
4741         (__ieee754_y0l): Likewise.
4742         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
4743         (__ieee754_y1l): Likewise.
4744         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
4745         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
4746         frexpl and ldexpl.  math_private.h provides them and the latter
4747         is not even used.
4748         (__log1pl): Use __frexpl.
4750 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
4752         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
4753         prototypes.
4754         * include/arpa/nameser_compat.h: Define T_UNSPEC.
4755         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
4756         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
4757         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
4758         af==AF_UNSPEC.
4759         (_nss_nis_gethostbyname4_r): New function.
4760         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
4761         Change to also handle af==AF_UNSPEC.
4762         (get_tablename): New function.  Use it to avoid duplication.
4763         (_nss_nisplus_gethostbyname4_r): New function.
4764         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
4765         available.
4766         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
4767         * nss/nss.h: Define struct gaih_addrtuple.
4768         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
4769         af==AF_UNSPEC.
4770         (_nss_files_gethostbyname4_r): New function.
4771         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
4772         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
4773         calls.
4774         * resolv/res_query.c (__libc_res_nquery): Take two additional
4775         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
4776         look up IPv4 and IPv6.
4777         Change all callers.
4778         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
4779         for an additional query and answer buffer.  Pass to send_vc and
4780         send_dg.
4781         (send_vc): Send possibly two requests and receive two answers.
4782         (send_dg): Likewise.
4783         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
4784         __libc_res_nquery.
4785         (_nss_dns_gethostbyname4_r): New function.
4786         (gaih_getanswer_slice): Likewise.
4787         (gaih_getanswer): Likewise.
4788         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
4789         __libc_res_nquery call.
4790         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
4791         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
4792         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
4793         available.
4795 2008-05-05  David S. Miller  <davem@davemloft.net>
4797         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
4798         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
4800 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4802         Fix termios bit macros.
4803         Move *DLY definitions where they belong, in termios.h.
4804         Add *[0-3] definitions.
4805         Fixes confusion between VT and FF.
4806         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
4807         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
4808         are already defined to avoid collision with termios.h.
4809         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
4810         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
4811         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
4812         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
4813         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
4814         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
4815         VTDLY, VT0, VT1): New macros.
4816         [__USE_GNU] (OLCUC): Change value of macro.
4817         [__USE_XOPEN] (OFILL): New macro.
4818         [__USE_BSD] (CRTSCTS): Change value.
4819         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
4820         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
4821         (B7200, B14400, B28800, B76800): New macros.
4823 2008-05-01  David S. Miller  <davem@davemloft.net>
4825         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
4826         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
4827         (gen-as-const-headers): Add it.
4828         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
4829         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
4830         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
4831         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
4833         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
4834         six system call parameters.
4835         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
4837 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
4839         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
4840         RUSAGE_LWP.
4841         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
4842         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
4844 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
4846         * stdlib/tst-setcontext.c: Include unistd.h.
4848 2008-04-25  David S. Miller  <davem@davemloft.net>
4850         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
4851         Pass "union semun" properly in to sys_ipc, it must be passed
4852         by value, not by reference.
4854 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
4856         * nscd/Makefile (nscd-cflags): Set back to -fpie.
4857         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
4858         * nscd/connections.c (mem_in_flight): Likewise.
4860         * nscd/nscd.h (dbs): Make hidden.
4862         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
4863         Avoid returning -1, return 0 instead.
4865 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
4867         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
4869 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
4871         [BZ #5209]
4872         * sysdeps/unix/sysv/linux/times.c: New file.
4874         [BZ #5381]
4875         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
4876         mem_in_flight_list variables.  Add new parameter to mempool_alloc
4877         prototype.
4878         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
4879         appropriate mem_in_flight element.
4880         (gc): Take allocations which have not yet been committed to the
4881         database into account.
4882         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
4883         Reset mem_in_flight before returning.
4884         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
4885         cue it up in mem_in_flight_list.
4886         * nscd/aicache.c: Adjust mempool_alloc call.
4887         * nscd/grpcache.c: Likewise.
4888         * nscd/hstcache.c: Likewise.
4889         * nscd/initgrcache.c: Likewise.
4890         * nscd/pwdcache.c: Likewise.
4891         * nscd/servicescache.c: Likewise.
4892         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
4893         of -fpie.
4895         * nscd/connections.c (handle_request): Provide better error message
4896         in case SELinux forbids the service.
4898         * version.h (VERSION): Bump to 2.8.90.
4900 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
4902         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
4904 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
4906         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
4907         Also use for 32-bit.
4908         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
4909         __nextafter instead of nextafter to avoid local PLT.
4910         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
4911         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
4913         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
4915         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
4916         __fe_nomask_env.
4917         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
4918         <fenv_libc.h> instead of <fenv.h>.
4919         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
4920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
4922         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
4924         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
4925         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
4926         function from fegetexcept and make old name weak alias.
4927         * include/fenv.h: Declare __fegetexcept.
4928         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
4929         fegetexcept.
4930         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
4931         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
4932         to fetestexcept.
4933         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
4934         instead of frexpl to avoid local PLT.
4935         * math/s_significandl.c (__significandl): Use __ilogbl instead of
4936         ilogbl to avoid local PLT.
4937         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
4938         instead of ldexpl to avoid local PLT.
4939         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
4940         __roundl not roundl to avoid local PLT.
4941         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
4942         local PLTs.  Use __sincosl instead of separate sinl and cosl
4943         calls.
4944         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4946         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
4947         version for ppc64 to 2.4.21 since without it makecontext will fail.
4949         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
4950         to the ABI in use.
4951         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
4952         .__tls_get_addr.
4953         [__powerpc64__] (TLS_GD): Likewise.
4955 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
4957         [BZ #4997]
4958         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
4959         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
4960         mantissa.
4961         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4962         Likewise.  Also account for when x is an odd number between 2^52
4963         and 2^53-1.
4964         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
4965         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4966         * math/libm-test.inc (lround_test, llround_test): Added test cases to
4967         detect aforementioned erroneous conditions.
4969 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
4971         * configure.in: Check for -fno-section-anchors in addition to
4972         -fno-toplevel-reorder.
4974 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
4976         * include/features.h (__GLIBC_MINOR__): Bump to 8.
4978         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
4979         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
4980         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
4981         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
4982         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
4983         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
4985 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
4987         [BZ #5443]
4988         * time/era.c: Transform __libc_setlocale_lock into rwlock.
4989         * time/alt_digit.c: Likewise.
4990         * wcsmbs/wcsmbsload.c: Likewise.
4992 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
4994         * version.h (VERSION): Bump to 2.8.
4996         * timzeone/asia: Update from tzdata2008b.
4997         * timezone/backward: Likewise.
4998         * timezone/europe: Likewise.
4999         * timezone/northamerica: Likewise.
5000         * timezone/southamerica: Likewise.
5001         * timezone/iso3166.tab: Likewise.
5002         * timezone/leapseconds: Likewise.
5003         * timezone/zone.tab: Likewise.
5004         * timezone/private.h: Update from tzcode2008a.
5005         * timezone/zdump.c: Likewise.
5006         * timezone/zic.c: Likewise.
5008 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
5010         [BZ #5741]
5011         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
5012         Define additonal Data Cache Block instruction macros.
5013         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
5014         Replace dcbst with dcbf and sync with sync/isync.
5016 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
5018         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
5019         Always set ELF_RTYPE_CLASS_PLT.
5020         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
5022 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
5024         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
5025         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
5026         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
5027         For ISA 2.01 and later replace mftb with mfspr 268.
5029 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
5031         [BZ #5768]
5032         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
5033         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
5035 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
5037         [BZ #5768]
5038         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
5039         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
5040         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
5041         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
5043 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
5045         * stdlib/tst-makecontext.c (othervar): New variable.
5046         (cf): Test sign extending the argument to long.
5048 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
5050         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
5051         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
5052         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
5053         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
5054         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
5055         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
5056         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
5058 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
5060         * elf/Makefile (tests): Substitute tests-vis-yes here.
5061         (tests-vis-yes): Delete.
5062         (modules-name, modules-vis-yes): Similarly.
5064 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
5066         [BZ #4407]
5067         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5068         Preserve sign in signgamp when x is zero.
5070 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
5072         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
5073         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
5074         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
5075         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
5076         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
5077         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
5079 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
5081         [BZ #4314]
5082         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
5083         buffers.
5085         [BZ #5209]
5086         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
5087         a reserved error value.
5089         * stdlib/tst-makecontext.c: Change parameter to cf to negative
5090         value to check for correct sign extension.
5092         [BZ #5436]
5093         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
5094         Copy 64-bit parameter values even though this is not required in
5095         the standard.
5097         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
5098         PC save.
5100 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
5102         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
5103         PC save.
5105 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
5107         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
5109 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
5111         [BZ #5998]
5112         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
5113         in line-buffered stream failed.
5114         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
5116 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
5118         [BZ #6024]
5119         * scripts/abi-versions.awk: If the version specified by
5120         --enable-oldest-abi is older than the first version for this
5121         architecture, use the default version.
5123         * locale/programs/ld-collate.c (collate_read): Ignore script lines
5124         as well when ignoring the whole category.
5126 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
5128         [BZ #6042]
5129         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
5130         ETHERTYPE_* definitions.
5131         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
5133 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
5135         * stdlib/mbtowc.c (__no_r_state): Remove.
5136         (mbtowc): New static state variable.  Use it instead of
5137         __no_r_state.
5138         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
5139         (__wctomb_state): New hidden variable.
5140         (wctomb): Use __wctomb_state instead of __no_r_state.
5141         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
5142         (__wctomb_state): New extern decl.
5143         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
5145 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
5147         [BZ #5475]
5148         * resolv/res_init.c: Handle scope IDs in resolv.conf.
5150 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
5152         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
5154 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
5156         * po/nl.po: Update from translation team.
5158 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
5160         [BZ #6007]
5161         * string/strfry.c: Handle empty strings again.
5163 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
5165         [BZ #5443]
5166         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
5167         before looking for translation.
5168         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
5169         * locale/freelocale.c: Likewise.
5170         * locale/newlocale.c: Likewise.
5171         * locale/setlocale.c: Likewise.
5172         Based partially on a patch by ryo@np.css.fujitsu.com.
5174 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
5176         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
5177         acquiring wrlock.  Do conv_tab allocation while holding lock.
5178         * intl/Makefile: Add rules to build and run tst-gettext6.
5179         * intl/tst-gettext6.c: New test.
5180         * intl/tst-gettext6.sh: New file.
5182 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
5184         * po/nl.po: Update from translation team.
5186         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
5187         provided through st_blksize, try the default size before giving up.
5189 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
5191         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
5193         [BZ #5939]
5194         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
5196         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
5197         error message.  POSIX today does not require the messages to be in
5198         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
5200         [BZ #5979]
5201         * sunrpc/auth_unix.c: Unify printed strings.
5202         * sunrpc/clnt_tcp.c: Likewise.
5203         * sunrpc/clnt_udp.c: Likewise.
5204         * sunrpc/clnt_unix.c: Likewise.
5205         * sunrpc/svc_tcp.c: Likewise.
5206         * sunrpc/svc_udp.c: Likewise.
5207         * sunrpc/svc_unix.c: Likewise.
5208         * sunrpc/xdr.c: Likewise.
5209         * sunrpc/xdr_array.c: Likewise.
5210         * sunrpc/xdr_rec.c: Likewise.
5211         * sunrpc/xdr_ref.c: Likewise.
5212         * locale/programs/ld-time.c (time_finish): Unify messages.
5213         * locale/programs/locfile.c (handle_copy): Fix typo.
5214         * nscd/nscd.c (options): Fix typo.
5216         [BZ #5995]
5217         * stdlib/strtod_l.c: Use correct sign for result in one more
5218         underflow case.
5219         Patch by Eric Blake <ebb9@byu.net>.
5221 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
5223         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
5224         and creat system calls.
5225         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
5226         call.
5227         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
5228         system calls.
5229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
5230         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5231         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5233 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
5235         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
5236         <linux/limits.h> has defined it.
5237         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
5238         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
5239         headers.
5240         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
5241         it instead of ARG_MAX.
5243 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
5245         * posix/gai.conf: Fix comment for scope nullbits.
5246         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
5247         default to 128 bits for v4 mapped addresses.
5249 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5251         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
5252         ptrace call to get the ieee_instruction_pointer from the kernel.
5253         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
5254         ptrace call to set the ieee_instructtion_pointer.
5255         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
5256         Add comment that ieee_instruction_pointer is always 0.
5258 2008-03-09  Andreas Jaeger  <aj@suse.de>
5260         [BZ #5857]
5261         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
5262         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
5263         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
5265         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
5266         (rint_test): Likewise.
5268 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
5270         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
5271         call.
5272         (__nisfind_server): Similar for open readColdStartFile call.
5273         Patch partially by Jim Meyering.
5274         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
5275         around internal_setent call.
5277         * po/vi.po: New Vietnamese translation.
5279         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
5280         ADJ_OFFSET_SS_READ.
5282         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
5283         remove CLONE_STOPPED.
5285 2008-02-10  Jim Meyering  <meyering@redhat.com>
5287         Remove useless "if" before "free":
5288         * elf/ldconfig.c (parse_conf_include): Likewise.
5289         * gmon/gmon.c (weak_alias): Likewise.
5290         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
5291         * inet/rcmd.c (__validuser2_sa): Likewise.
5292         * intl/bindtextdom.c (set_binding_values): Likewise.
5293         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
5294         * libio/genops.c (save_for_backup): Likewise.
5295         * libio/wgenops.c (save_for_wbackup): Likewise.
5296         * locale/programs/ld-collate.c (collate_read): Likewise.
5297         * locale/programs/linereader.c (get_string): Likewise.
5298         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
5299         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
5300         * resolv/res_debug.c (do_section): Likewise.
5301         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
5302         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
5303         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
5304         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
5305         * time/tzset.c (tzset_internal): Likewise.
5307 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
5309         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
5310         of ASSEMBLER.
5312 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
5314         [BZ #5903]
5315         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
5316         not stream for output file.  Open output file here.
5317         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
5318         and output file name.
5319         (process_fd): Likewise.
5320         (process_file): Likewise.
5321         (main): Adjust callers of changed functions.
5322         * iconv/iconv_prog.h: Adjust prototype.
5324 2008-03-09  Andreas Jaeger  <aj@suse.de>
5326         [BZ #5753]
5327         * sysdeps/ia64/ieee754.h: Use protected namespace
5328         __BIG_ENDIAN/__LITTLE_ENDIAN.
5329         * sysdeps/ieee754/ieee754.h: Likewise.
5330         Patch by Aurelien Jarno <aurelien@aurel32.net>.
5332 2008-03-08  Roland McGrath  <roland@frob.com>
5334         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
5335         ignore a signal that came from a machine exception, treat it as a
5336         fatal core-dump signal instead.
5337         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5339         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5340         Clear DF bit in thread state's eflags.
5341         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5343 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
5345         [BZ #5774]
5346         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
5347         of NAN(...) sequence.
5348         * stdlib/Makefile (tests): Add tst-strtod6.
5349         * stdlib/tst-strtod6.c: New file.
5351         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
5353         [BZ #5762]
5354         * posix/getopt.c (_getopt_internal_r): Clarify error message by
5355         putting offending option character in quotes.  Clean up error
5356         messages.
5357         * po/be.po: Adjust msgstr in translation file.
5358         * po/bg.po: Likewise.
5359         * po/ca.po: Likewise.
5360         * po/cs.po: Likewise.
5361         * po/da.po: Likewise.
5362         * po/de.po: Likewise.
5363         * po/es.po: Likewise.
5364         * po/fr.po: Likewise.
5365         * po/hr.po: Likewise.
5366         * po/ko.po: Likewise.
5367         * po/nl.po: Likewise.
5368         * po/rw.po: Likewise.
5369         * po/sk.po: Likewise.
5370         * po/sv.po: Likewise.
5371         * po/tr.po: Likewise.
5372         * po/zh_CN.po: Likewise.
5373         * po/zh_TW.po: Likewise.
5375         [BZ #5760]
5376         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
5377         Patch by Roland Bless <roland@bless.de>.
5379         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
5380         .o file.
5381         * elf/Makefile (routines): Add dl-sysdep.
5382         (elide-routines.os): Likewise.
5384 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
5386         [BZ #5786]
5387         * elf/dl-sysdep.c: Undefine ROUND after use.
5388         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
5389         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
5390         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
5391         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
5392         to ...
5393         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
5394         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
5395         if necessary.
5396         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
5398         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
5399         _dl_tls_get_addr_soft element.
5400         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
5401         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
5402         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
5403         GLRO.
5404         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5405         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
5406         of internal_function.
5408         * stdlib/Makefile (aux): Add tens_in_limb.
5409         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
5410         * stdlib/tens_in_limb.c: ...here.  New file.
5412         [BZ #5778]
5413         * sysdeps/unix/sysv/linux/pathconf.h: Declare
5414         __statfs_chown_restricted.
5415         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
5416         for _PC_CHOWN_RESTRICTED.
5417         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
5418         Implement __statfs_chown_restricted.
5419         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
5420         _POSIX_CHOWN_RESTRICTED value to zero.
5421         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
5422         defined to zero.
5424         * sysdeps/x86_64/rtld-memset.c: New file.
5426 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
5428         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
5430         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
5431         Barcelona machine.  Make default fall through branch of
5432         __x86_64_preferred_memory_instruction check as the integer code path.
5434 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
5436         * sysdeps/x86_64/cacheinfo.c
5437         (__x86_64_preferred_memory_instruction): New variable.
5438         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5440         * sysdeps/x86_64/memset.S: Rewrite.
5442 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
5444         * include/stdio.h (__asprintf_chk, __dprintf_chk,
5445         __obstack_printf_chk): New prototypes.
5446         (__vasprintf_chk, __vdprintf_chk,
5447         __obstack_vprintf_chk): Likewise.
5448         Add libc_hidden_proto.
5449         * libio/obprintf.c
5450         (_IO_obstack_jumps): No longer static, add attribute_hidden.
5451         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
5452         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5453         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
5454         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
5455         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5456         __obstack_vprintf_chk): New prototypes.
5457         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
5458         obstack_vprintf): New inlines.
5459         * debug/dprintf_chk.c: New file.
5460         * debug/vdprintf_chk.c: New file.
5461         * debug/asprintf_chk.c: New file.
5462         * debug/vasprintf_chk.c: New file.
5463         * debug/obprintf_chk.c: New file.
5464         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
5465         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
5466         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
5467         @@GLIBC_2.8.
5468         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
5469         vdprintf_chk and obprintf_chk, set CFLAGS for them.
5470         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
5471         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
5472         libc_hidden_proto.
5473         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
5474         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
5475         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
5476         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
5477         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
5478         @@GLIBC_2.8.
5479         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
5480         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
5481         obstack_vprintf_chk.
5482         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
5483         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
5484         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
5485         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
5486         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
5487         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
5489 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
5491         [BZ #5779]
5492         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
5493         Patch by Roy Marples <roy@marples.name>.
5495         [BZ #5736]
5496         * malloc/malloc.c: Fix typo in comment.
5498         [BZ #5627]
5499         * locale/iso-639.def: Add Shuswap.
5501 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
5503         [BZ #5790]
5504         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
5505         overwrite *h_errnop/*errnop values from getanswer_r in case of
5506         failure.
5508 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
5510         [BZ #5818]
5511         * nscd/connections.c (dbs): Add initializers for .suggested_module.
5512         (verify_persistent_db): Remove one unnecessary test and add a new one
5513         for bad configuration.
5514         (nscd_init): Improve error reported when persistent database cannot
5515         be reused.
5516         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
5517         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
5518         .suggested_module and .max_db_size and case config file says the
5519         values are zero.
5520         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
5522         [BZ #5854]
5523         * nis/ypclnt.c (yp_order): Fix handling of return value of
5524         do_ypcall_tr call.
5525         Patch by Jeff Moyer <jmoyer@redhat.com>.
5527         * po/fr.po: Update from translation team.
5529 2008-02-22  Andreas Jaeger  <aj@suse.de>,
5530             Carlos O'Donell <carlos@systemhalted.org>
5532         [BZ #5012]
5533         * FAQ.in: Describe why glibc needs to be compiled with
5534         optimization.
5536 2008-02-19  Roland McGrath  <roland@redhat.com>
5538         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
5540 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
5542         [BZ #5737]
5543         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
5544         __USE_MISC is defined.
5546 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
5548         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
5549         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
5550         sys/timerfd.h.
5551         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
5552         timerfd_gettime, timerfd_settime.
5553         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
5554         timerfd_gettime, timerfd_settime for GLIBC_2.8.
5556 2008-02-08  Roland McGrath  <roland@redhat.com>
5558         * elf/elf.h (NT_PPC_SPE): New macro.
5560 2008-02-06  Roland McGrath  <roland@redhat.com>
5562         * Makerules ($(common-objpfx)sysd-rules):
5563         Depend on $(sysdep-makeconfigs).
5565 2008-01-31  Roland McGrath  <roland@redhat.com>
5567         [BZ #5442]
5568         * configure.in: Use -print-file-name if it yields a directory,
5569         for each of include and include-fixed.
5570         * configure: Regenerated.
5572         * Makeconfig (sysd-rules-targets): New variable.
5573         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
5574         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
5576 2008-01-30  Roland McGrath  <roland@redhat.com>
5578         * manual/libc.texinfo: Update back-cover text.
5580         * elf/elf.h (NT_386_TLS): New macro.
5582 2008-01-29  Roland McGrath  <roland@redhat.com>
5584         * Makeconfig (sysd-rules-patterns): New variable.
5585         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
5586         (check-inhibit-asm): New canned sequence, replaces ...
5587         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
5588         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
5589         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
5590         (CFLAGS-rtld): Variable removed.
5592 2008-01-24  Roland McGrath  <roland@redhat.com>
5594         * configure.in: Let configure fragments set base_os.
5595         * configure: Regenerated.
5597 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
5599         * po/ko.po: Update from translation team.
5601 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
5603         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
5605 2008-01-12  Andreas Jaeger  <aj@suse.de>
5607         [BZ #5040]
5608         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
5609         Add EPOLLRDHUP.
5611 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5613         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
5614         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
5615         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
5617 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
5619         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
5620         * elf/dl-close.c (_dl_close): Check for it.
5621         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
5622         (_dl_allocate_static_tls): Likewise.
5623         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
5624         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
5625         to it.
5626         * elf/tst-tls16.c: New file.
5627         * elf/tst-tlsmod16a.c: New file.
5628         * elf/tst-tlsmod16b.c: New file.
5629         * elf/Makefile: Add rules to build and run tst-tls16.
5631 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
5633         [BZ #5628]
5634         * bits/shm.h: Fix comment describing shmid_ds.
5635         * sysdeps/gnu/bits/shm.h: Likewise.
5636         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
5637         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
5638         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5639         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5640         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5641         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5642         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5643         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
5644         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
5646         [BZ #5607]
5647         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
5648         prototypes.
5649         * conform/data/limits.h-data: Adjust limits changed in v6 and add
5650         additional suffixes.
5651         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
5652         Add optional functions mq_timedreceive and mq_timedsend.
5653         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
5654         * conform/data/pthread.h-data: Fix prototype of
5655         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
5656         * conform/data/semaphore.h-data: Allow time.h definitions.
5657         * conform/data/signal.h-data: Likewise.
5658         * conform/data/stdio.h-data: getw and putw are not required in v6.
5659         * conform/data/stdlib.h-data: Change setstate prototype.
5660         * conform/data/string.h-data: Fix strerror_r prototype.
5661         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
5662         * conform/data/unistd.h-data: pthread_atfork not required in v6.
5663         Fix readlink prototype.
5664         * conform/data/netinet/in.h-data: Add const to in6addr_any and
5665         in6addr_loopback.
5666         * inet/netinet/in.h: Cleanup namespace.
5667         * posix/regex.h: Likewise.
5668         * resolv/netdb.h: Likewise.
5669         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
5670         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
5671         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
5672         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
5673         of names of in in6_addr.
5674         (default_precedence): Likewise.
5675         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
5676         NULL definition.
5678 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
5680         * conform/data/fmtmsg.h-data: Add missing allows.
5681         * conform/data/ftw.h-data: Likewise.
5682         * conform/data/inttypes.h-data: Likewise.
5683         * conform/data/math.h-data: Likewise.
5684         * conform/data/signal.h-data: Likewise.
5685         * conform/data/net/if.h-data: Likewise.
5686         * conform/data/netinet/in.h-data: Likewise.
5687         * conform/data/sys/socket.h-data: Likewise.
5689         [BZ #5614]
5690         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
5691         (__strtok_r): Simplify.
5692         * string/tester.c (test_strtok_r): Add test case for futile search
5693         with single-character seach string.
5695 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
5697         * po/ko.po: Update from translation team.
5699 2008-01-11  Andreas Jaeger  <aj@suse.de>
5701         [BZ #5600]
5702         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
5703         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
5704         kernel header.
5706 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
5708         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
5709         native interface lookup in all the relevant places.
5711 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
5712             Ulrich Drepper  <drepper@redhat.com>
5714         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
5715         field.  Use sockaddr_in6 for source_addr.
5716         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
5717         (match_prefix): Likewise.
5718         (get_label): Likewise.
5719         (get_precedence): Likewise.
5720         (rfc3484_sort): Change to use indirect access to results array.
5721         Adjust to use of sockaddr_in6.  Replace service_order test with
5722         simple index comparison.
5723         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
5724         service_order field.  Adjust qsort_t calls.  Access sorted result
5725         array indirectly through order array.
5726         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
5727         * posix/tst-rfc3484-2.c: Likewise.
5728         * posix/tst-rfc3484-3.c: Likewise.
5730 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
5732         [BZ #5541]
5733         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
5734         pollfd structures.
5735         Patch by André Cruz.
5737         [BZ #5545]
5738         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
5739         (clnt_spcreateerror): Likewise.
5741         [BZ #5553]
5742         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
5743         (public_mEMALIGn): Likewise.
5744         Patch mostly by Daniel Jacobowitz.
5746 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
5748         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
5749         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
5750         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
5751         * stdlib/tst-makecontext2.c: New test.
5753 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
5755         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
5756         defined.
5757         (REINIT_PARAMS): Likewise.  Undefine before end of file.
5758         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
5759         transliteration hooks and REINIT_PARAMS afterwards.
5760         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
5761         status.
5762         (REINIT_PARAMS): Define.
5763         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
5764         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
5765         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
5766         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
5767         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
5768         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
5769         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
5770         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
5771         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
5772         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
5773         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
5774         * iconvdata/tst-iconv7.c: New test.
5776 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
5778         * libio/stdio.h (vscanf): Fix definition for loser compilers.
5780 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
5782         [BZ #5112]
5783         * nscd/connections.c (restart): Fix condition.
5785 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
5787         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
5788         __ctype_toupper_loc): Add __THROW.
5790 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
5792         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
5793         recognition of interface family.
5795         * posix/getconf.c: Update copyright year.
5796         * nss/getent.c: Likewise.
5797         * iconv/iconvconfig.c: Likewise.
5798         * iconv/iconv_prog.c: Likewise.
5799         * elf/ldconfig.c: Likewise.
5800         * catgets/gencat.c: Likewise.
5801         * csu/version.c: Likewise.
5802         * elf/ldd.bash.in: Likewise.
5803         * elf/sprof.c (print_version): Likewise.
5804         * locale/programs/locale.c: Likewise.
5805         * locale/programs/localedef.c: Likewise.
5806         * nscd/nscd.c (print_version): Likewise.
5807         * debug/xtrace.sh: Likewise.
5808         * malloc/memusage.sh: Likewise.
5809         * malloc/mtrace.pl: Likewise.
5810         * debug/catchsegv.sh: Likewise.
5812 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
5814         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
5815         second lookup.
5817 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
5819         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
5820         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5822 2007-12-17  Roland McGrath  <roland@redhat.com>
5824         * inet/ether_line.c (ether_line): Remove unused variable.
5826 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5828         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
5829         and winp.
5830         * login/openpty.c (openpty): Likewise.
5831         * login/pty.h (openpty, forkpty): Likewise.
5832         * manual/terminal.texi (openpty, forkpty): Likewise.
5834 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
5836         * malloc/malloc.c (public_cALLOc): For arenas other than
5837         main_arena, count all bytes inside the mprotect_size range of the
5838         heap as uninitialized.
5840 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
5842         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
5843         executable stacks.
5845         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
5846         mTRIm for all of them.
5847         (mTRIm): Additionally iterate over all free blocks and use madvise
5848         to free memory for all those blocks which contain at least one
5849         memory page.
5850         * malloc/tst-trim1.c: New file.
5851         * malloc/Makefile (tests): Add tst-trim1.
5853         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
5855 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
5857         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
5858         First cast argument to long
5859         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
5860         Return long.
5861         (__vdso_clock_gettime): Likewise.
5862         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
5863         return long.
5865 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
5867         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
5868         * locale/nl_langinfo_l.c: Real implementation, copied from
5869         nl_langinfo.c.
5870         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
5872 2007-12-01  Jim Meyering  <meyering@redhat.com>
5874         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
5875         that would inhibit utf8-optimization of a regexp containing line-
5876         or buffer-anchors, e.g., `^', `$'.
5878 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
5880         * time/bug-getdate1.c (do_test): Don't use century values which
5881         aren't valid on 32-bit systems.
5883 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
5885         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
5886         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
5887         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
5888         __strcat_g, __strncat_g): Add __asm__.
5890 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
5892         [BZ #5477]
5893         * io/fchmodat.c: Fix typo in stub_warning use.
5894         Patch by Petr Salinger.
5896 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
5898         * iconvdata/hp-thai8.c: New file.
5899         * iconvdata/Makefile: Add rules for hp-thai8.c.
5900         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
5901         * iconvdata/gconv-modules: Likewise.
5903         [BZ #5464]
5904         * iconvdata/hp-greek8.c: New file.
5905         * iconvdata/Makefile: Add rules for hp-greek8.c.
5906         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
5907         * iconvdata/gconv-modules: Likewise.
5909         [BZ #5463]
5910         * iconvdata/hp-turkish8.c: New file.
5911         * iconvdata/Makefile: Add rules for hp-turkish8.c.
5912         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
5913         * iconvdata/gconv-modules: Likewise.
5915         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
5916         (shrink_heap): ... this new function.
5917         (heap_trim): Call shrink_heap instead of grow_heap.
5919         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
5920         case don't call alloc_perturb.
5922 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
5924         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
5925         possible.
5926         * sysdeps/unix/sysv/linux/kernel-features.h
5927         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
5928         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
5930 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
5932         [BZ #5424]
5933         * stdio-common/vfprintf.c: Do not overflow when adding to done.
5934         * stdio-common/Makefile (tests): Add bug22.
5935         * stdio-common/bug22.c: New file.
5937         [BZ #5451]
5938         * time/getdate.c: Fix filling in default values.
5939         * time/bug-getdate1.c: New file.
5940         * time/Makefile: Add rules to build and run bug-getdate1.
5942         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
5943         * iconvdata/ebcdic-es.c: Likewise.
5944         * iconvdata/ebcdic-es-a.c: Likewise.
5945         * iconvdata/ebcdic-uk.c: Likewise.
5946         * iconvdata/iso8859-16.c: Likewise.
5947         * iconvdata/viscii.c: Likewise.
5948         * iconvdata/iso8859-9e.c: Likewise.
5949         * iconvdata/Makefile: Adjust appropriately.
5951         [BZ #5428]
5952         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
5953         __need_wint_t.
5955 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
5957         [BZ #5427]
5958         * iconvdata/hp-roman9.c: New file.
5959         * iconvdata/Makefile: Add rules for hp-roman9.c.
5960         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
5961         * iconvdata/gconv-modules: Likewise.
5963         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
5964         * iconvdata/Makefile: Adjust appropriately.
5966         [BZ #5441]
5967         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
5968         structure, it's allocated with alloca.
5969         * stdio-common/Makefile (tests): Add bug21.
5970         * stdio-common/bug21.c: New file.
5972 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
5974         [BZ #5452]
5975         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
5976         keyword for gcc's braced-groups.
5978 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
5980         [BZ #5454]
5981         * inet/ether_line.c: Strip hostname of whitespaces.
5982         * inet/Makefile (tests): Add tst-ether_line.
5983         * inet/tst-ether_line.c: New file.
5985 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
5987         [BZ #5439]
5988         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
5990         [BZ #5435]
5991         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
5993         * stdlib/tst-setcontext.c: Catch the case where the links gets
5994         messed up and we do not reach main again.
5996         * po/ca.po: Update from translation team.
5998 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
6000         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
6001         * posix/regex.h (REG_ENOSYS): Likewise.
6002         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
6004 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
6006         * nscd/nscd.h (MAX_STACK_USE): Define.
6007         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
6008         (gc): Initialize stack_used based on allocation in prune_cache.
6009         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
6010         Clear array before use.
6012         * nscd/aicache.c (addhstaiX): Update statistics counter in case
6013         memory allocation failed.
6014         * nscd/hstcache.c (cache_addhst): Likewise.
6015         * nscd/grpcache.c (cache_addgr): Likewise.
6016         * nscd/servicescache.c (cache_addserv): Likewise.
6017         * nscd/pwdcache.c (cache_addpw): Likewise.
6018         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6020 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
6022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
6023         and creat system calls.
6025         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
6027 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6029         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
6030         Add netiucv/iucv.h.
6031         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
6032         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
6033         protocol.
6034         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
6035         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
6036         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
6038 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6040         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
6041         strncat): Define as macros to avoid compile errors.
6043         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
6044         creat entries.
6046 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
6048         [BZ #5382]
6049         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
6050         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
6051         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
6052         overflow it.
6053         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6055         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
6056         Return zero in case the thread library is not NPTL.
6058         [BZ #5375]
6059         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
6060         initializing interface list.
6062         [BZ #5378]
6063         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
6064         use result of nss_getgrgid_r if nothing was found.  For other
6065         error return with a failure.
6066         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6068         * locale/programs/ld-collate.c (collate_read): Fix loop to match
6069         macro name.
6071 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
6073         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
6074         (get_scope): For IPv4 scope, use scopes table.
6075         (fini): Free scopes table if necessary.
6076         (free_scopelist): New function.
6077         (scopecmp): New function.
6078         (gaiconf_init): Also handle scopev4 entries.
6079         * posix/tst-rfc3484.c (do_test): Initialize scopes.
6080         * posix/tst-rfc3484-2.c (do_test): Likewise.
6081         * posix/gai.conf: Document scopev4 defaults.
6082         * posix/Makefile (tests): Add tst-rfc3484-3.
6083         * posix/tst-rfc3484-3.c: New file.
6085         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
6086         Teredo tunnels.
6087         * posix/gai.conf: Update for current default tables.
6089 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
6091         * po/tr.po: Update from translation team.
6093 2007-11-18  Roland McGrath  <roland@frob.com>
6095         * manual/arith.texi (Remainder Functions): Spelling fix.
6096         From Shaun Silk <genix@mysoul.com.au>.
6098         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
6100 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
6102         * po/zh_CN.po: Update from translation team.
6104         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
6105         Add sys/signalfd.h and sys/eventfd.h.
6107 2007-11-15  Bruno Haible  <bruno@clisp.org>
6109         [BZ #5346]
6110         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
6111         union.
6112         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
6113         (DCIGETTEXT): Change the allocation of the 'search' variable so that
6114         it needs only fixed stack space. Delay the initialization of
6115         msgid_len until it is needed.
6117 2007-11-15  Andreas Jaeger  <aj@suse.de>
6119         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
6120         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
6122 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
6124         * po/ko.po: Update from translation team.
6126 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
6128         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
6129         significantly.  The device type is also part of the ifinfomsg data.
6131         * po/sv.po: Update from translation team.
6132         * po/nl.po: Likewise.
6134         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
6135         to wake up in 24 hours.
6137         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
6139 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
6141         * po/cs.po: Update from translation team.
6142         * po/pl.po: Likewise.
6144         * include/ifaddrs.h: Remove in6ai_temporary.
6145         (struct in6addrinfo): Add index element.
6146         Declare __check_native.
6147         * inet/Makefile (aux): Add check_native.
6148         * sysdeps/unix/sysv/linux/check_native.c: New file.
6149         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
6150         IFA_F_TEMPORARY.  Pass back ifa_index.
6151         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
6152         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
6153         call __check_native if necessary.
6154         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
6155         to sort addresses.  Pass information about the results.
6156         * posix/tst-rfc3484.c: Adjust for addition of index field and change
6157         of rfc3484_sort interface.
6158         * posix/tst-rfc3484-2.c: Likewise.
6160         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
6161         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
6162         for _quicksort.
6163         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
6164         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
6165         on as third parameter to compare function and _quicksort.
6166         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
6167         to the compare function.
6168         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
6169         * Versions.def: Add GLIBC_2.8 for libc.
6171         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
6172         * posix/tst-rfc3484-2.c: Likewise.
6174         * include/kernel-features.h: Moved to...
6175         * sysdeps/mach/hurd/kernel-features.h: ...here.
6177 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
6179         * sysdeps/i386/i586/memcpy_chk.S: New file.
6180         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
6181         * sysdeps/i386/i586/memset_chk.S: Likewise.
6183 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
6185         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
6186         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
6187         list of interfaces.  Also store prefix length.
6188         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
6189         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
6190         prefix if source and destination address are in the same subnet.
6191         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
6192         Always look for matching record in in6ai list.
6193         Correct source_addr_len value for IPv6->IPv4 converted records.
6195 2007-11-11  Roland McGrath  <roland@frob.com>
6197         * include/kernel-features.h: New file.
6199 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
6201         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
6202         complications for 64-bit platforms.
6204         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
6205         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
6206         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
6207         open64_2.
6208         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
6209         entries.
6210         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6211         * sysdeps/wordsize-64/alphasort.c: New file.
6212         * sysdeps/wordsize-64/alphasort64.c: New file.
6213         * sysdeps/wordsize-64/fseeko.c: New file.
6214         * sysdeps/wordsize-64/fseeko64.c: New file.
6215         * sysdeps/wordsize-64/ftello.c: New file.
6216         * sysdeps/wordsize-64/ftello64.c: New file.
6217         * sysdeps/wordsize-64/ftw.c: New file.
6218         * sysdeps/wordsize-64/ftw64.c: New file.
6219         * sysdeps/wordsize-64/iofgetpos.c: New file.
6220         * sysdeps/wordsize-64/iofgetpos64.c: New file.
6221         * sysdeps/wordsize-64/iofopen.c: New file.
6222         * sysdeps/wordsize-64/iofopen64.c: New file.
6223         * sysdeps/wordsize-64/iofsetpos.c: New file.
6224         * sysdeps/wordsize-64/iofsetpos64.c: New file.
6225         * sysdeps/wordsize-64/lockf.c: New file.
6226         * sysdeps/wordsize-64/lockf64.c: New file.
6227         * sysdeps/wordsize-64/mkostemp.c: New file.
6228         * sysdeps/wordsize-64/mkostemp64.c: New file.
6229         * sysdeps/wordsize-64/mkstemp.c: New file.
6230         * sysdeps/wordsize-64/mkstemp64.c: New file.
6231         * sysdeps/wordsize-64/scandir.c: New file.
6232         * sysdeps/wordsize-64/scandir64.c: New file.
6233         * sysdeps/wordsize-64/tmpfile.c: New file.
6234         * sysdeps/wordsize-64/tmpfile64.c: New file.
6235         * sysdeps/wordsize-64/versionsort.c: New file.
6236         * sysdeps/wordsize-64/versionsort64.c: New file.
6237         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
6238         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
6239         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
6240         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
6241         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
6242         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
6243         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
6244         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
6245         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
6246         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
6247         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
6248         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
6250         * crypt/sha256-crypt.c: Fix a comment.
6251         * crypt/sha512-crypt.c: Likewise.
6253 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6255         * sysdeps/x86_64/memset.S: Add sfence after movnti.
6257 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
6259         [BZ #5277]
6260         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
6261         because output buffer is too small break, don't loop.
6262         * iconvdata/Makefile (tests): Add bug-iconv6.
6263         * iconvdata/bug-iconv6.c: New file.
6265 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
6267         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
6268         with size_t type.
6269         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
6270         size_t.  Add casts where needed.
6272         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
6273         old headers, don't call avc_has_perm if we don't have the
6274         permission information.
6276 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
6278         * elf/rtld.c (dl_main): Use the page size to find the map start.
6280 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
6282         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
6283         Patch by Szymon Siwek <sls@poczta.wp.pl>.
6285         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
6286         when the lookup call failed.
6288         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
6289         Add prune_cond and wakeup_time.
6290         (CACHE_PRUNE_INTERNAL): Define.
6291         Update declarations of prune_cache and setup_thread.
6292         * nscd/connections.c (dbs): Update initializers.
6293         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
6294         (nscd_init): Default number of threads is now 4.
6295         (invalidate_cache): Take lock before calling prune_cache.
6296         (handle_request): If SELinux forbids the request, say so.
6297         (readylist_cond): Use static initializer.
6298         (nscd_run_prune): New function.  Used only by pruning threads.
6299         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
6300         here.
6301         (fd_ready): Update nscd_run reference.
6302         (start_threads): No need to initialize readylist_cond.
6303         Start pruning threads separately.
6304         * nscd/nscd_setup_thread.c: Change return value type to int and always
6305         return 0.
6306         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
6307         to int and return nonzero value if we can use the TID address hack.
6308         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
6309         the database is later than the new entry's timeout, update the
6310         wakeup time and wake the cleanup thread.
6311         (prune_cache): Return seconds the next entry in the database is still
6312         valid.  Remove locking for pruning here.
6313         * nscd/nscd.conf: Document default number of threads.
6315 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
6317         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
6318         stack is properly aligned for the target function.
6319         Correct unwind info.
6321         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
6322         when using auditing libraries.
6324 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
6326         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
6327         _nss_dns_getnetbyaddr2_r.
6328         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
6329         extra parameter to getanswer_r.
6330         (_nss_dns_getnetbyaddr_r): Now a wrapper around
6331         _nss_dns_getnetbyaddr2_r.
6333         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
6334         gethstbynm3_r.
6335         * nscd/gethstbynm2_r.c: Remove.
6336         * nscd/gethstbynm3_r.c: New file.
6337         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
6338         __gethostbyaddr_r.
6339         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
6340         __gethostbyaddr_r compatibility wrapper.
6341         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
6342         determining timeout of entry.
6343         (lookup): Take new parameter and pass it to __gethostbyname3_r and
6344         __gethostbyaddr2_r.
6345         (addhstbyX): Pass reference to variable for TTL to lookup and
6346         cache_addhst.
6347         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
6348         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
6349         and __nss_next2.  Remove __nss_services_lookup.
6350         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
6351         Add compat wrapper.
6352         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
6353         __nss_next2.
6354         * nss/getXXent_r.c: Likewise.
6355         * nss/getnssent_r.c: Likewise.
6356         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
6357         does not exist in module, try the optional second name.
6358         (__nss_next2): New function.
6359         (__nss_next): Now wrapper around __nss_next2.
6360         * nss/nsswitch.h: Adjust __nss_lookup prototype.
6361         Declare __nss_next2.
6362         Adjust definition of db_lookup_function type.
6363         * nss/service-lookup.c: Define NO_COMPAT.
6364         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
6365         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
6366         * inet/ether_ntoh.c: Likewise.
6367         * sunrpc/netname.c: Likewise.
6368         * sunrpc/publickey.c: Likewise.
6369         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
6370         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
6371         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
6372         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
6373         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
6375         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
6377         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
6379 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
6381         [BZ #5204]
6382         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
6383         * crypt/sha512c-test.c: Likewise.
6385         [BZ #5225]
6386         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
6387         to keep track of end of %[ format string element.
6388         * stdio-common/Makefile (tests): Add bug20.
6389         * stdio-common/bug20.c: New file.
6391         [BZ #5222]
6392         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
6393         path elements in counting mode.
6395 2007-10-27  Andreas Jaeger  <aj@suse.de>
6397         [BZ #5040]
6398         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
6400         [BZ #3112]
6401         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
6402         (__cleanup): Free shared library when exiting.
6403         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
6404         (__cleanup): Free shared library when exiting.
6406 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
6408         [BZ #2549]
6409         * math/libm-test.inc (check_float_internal): Support
6410         denormalized return.
6412 2007-10-23  Andreas Jaeger  <aj@suse.de>
6414         [BZ #5208]
6415         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
6416         __LONG_LONG_PAIR to handle little endian byte order.
6417         Suggested by abhishekrai@google.com
6419 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
6421         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
6423 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
6425         * nscd/cache.c (prune_cache): Move test for modified file outside
6426         of locking.
6428 2007-10-21  Andreas Jaeger  <aj@suse.de>
6430         * manual/texinfo.tex: Update to latest version.
6432         * manual/sysinfo.texi (System Parameters): Fix Formatting.
6434         * manual/arith.texi (Status bit operations): Fix formatting.
6436         * manual/errno.texi (Error Messages): Fix formatting.
6438         * manual/sysinfo.texi (System Parameters): Fix formatting.
6440         * manual/libc.texinfo: Update VERSION and UPDATED.
6442 2007-10-19  Roland McGrath  <roland@redhat.com>
6444         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
6446 2007-10-06  David S. Miller  <davem@davemloft.net>
6448         * configure.in: Add sparcv9v2 and sparc64v2.
6449         * scripts/config.sub: Likewise.
6450         * configure: Regenerate.
6451         * elf/elf.h (HWCAP_SPARC_N2): New.
6452         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
6453         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
6454         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
6455         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
6456         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
6457         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
6458         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
6460 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
6462         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
6463         even if the poll result indicates there is data to read.
6464         Patch by Jeff Moyer <jmoyer@redhat.com>.
6466 2007-10-18  Roland McGrath  <roland@redhat.com>
6468         * elf/elf.h (NT_PPC_VMX): New macro.
6470 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6472         * version.h (VERSION): Set to 2.7.90.
6474 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
6476         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
6477         weak_alias.
6479 2007-10-17  Roland McGrath  <roland@frob.com>
6481         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
6482         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
6484 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6486         * version.h (VERSION): Bump to 2.7.
6487         * include/features.h (__GLIBC_MINOR__): Bump to 7.
6489         [BZ #5186]
6490         * time/tzset.c (__tz_convert): Don't force testing for a change of
6491         TZ if not called from localtime.  But then also see whether the
6492         file changed, in case __use_tzfile is set.
6494         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
6495         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6496         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6497         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6498         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6499         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6500         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
6501         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6503 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
6505         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
6506         and admin selects to be able to replace the gai.conf file, lock
6507         data structures around the qsort call.
6509 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6511         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
6512         new memset.
6513         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
6514         too high for the improvements.  Implement bzero unconditionally for
6515         use in libc.
6517 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6518             Jakub Jelinek  <jakub@redhat.com>
6520         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
6521         even when time_t is 32-bit.
6522         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
6523         timezone data read by __tzfile_default.  Ensure __tzname[0] is
6524         always set after the search.
6526 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
6528         * time/tzfile.c (__tzfile_read): Help the compiler recognize
6529         unreachable code on 32-bit machines.
6531 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
6533         [BZ #5184]
6534         * time/strftime_l.c: Include stdbool.h.
6535         (my_strftime): New wrapper, old function renamed to...
6536         (__strftime_internal): ... new function.  Add tzset_called
6537         argument, pass it down to recursive calls, don't call tzset ()
6538         if already true, set to true after call to tzset ().
6540 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
6542         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
6543         into account when copying TZ string.
6545 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
6547         * time/tzfile.c (__tzfile_compute): For use_last case set i to
6548         num_transition rather than num_transitions - 1.
6550 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
6552         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
6553         PIC indirect jump.
6555         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
6556         a local label rather than HIDDEN_JUMPTARGET.
6558 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
6560         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
6561         (init_cacheinfo): Initialize it.
6562         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
6563         Always define bzero.
6564         Remove non-glibc code.
6565         * sysdeps/x86_64/bzero.S: Make an empty file.
6567 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
6569         * sysdeps/x86_64/cacheinfo.c
6570         (__x86_64_preferred_memory_instruction): New.
6571         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6573         * sysdeps/x86_64/memset.S: Rewrite.
6575 2007-10-15  Roland McGrath  <roland@redhat.com>
6577         * po/libc.pot: Regenerated.
6579 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
6581         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
6582         pointers.
6584         [BZ #3425]
6585         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
6586         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
6587         address record to T_A/T_AAAA requests.
6589 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
6591         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
6593         * posix/glob.c: Add some branch prediction throughout.
6595         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
6596         read from nscd.
6598         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
6599         service_order.
6600         (rfc3484_sort): Make sure that even if qsort doesn't support
6601         stable sorting out sorting here is stable by comparing service_order.
6602         (getaddrinfo): Initialize service_order.
6603         * posix/tst-rfc3484.c (do_test): Adjust for addition of
6604         service_order field to sorting structure.
6605         * posix/tst-rfc3484-2.c (do_test): Likewise.
6607         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
6608         * time/tzset.c (tzset_internal): Break TZ string parsing out into
6609         __tzset_parse_tz and updating of daylight, timezone, tzname into
6610         update_vars.
6611         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
6612         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
6613         happens in __tz_compute.
6614         * time/tzfile.c (__tzfile_read): Also read TZ string.
6615         (find_transition): Fold into __tzfile_compute.
6616         (__tzfile_compute): For times beyond the last transition try to
6617         use the TZ string.
6618         * timezone/tst-timezone.c: Information in daylight and tzname does
6619         change for Asia/Tokyo timezone with more concrete information.
6620         Remove the test.
6622         * include/stdio.h: Add libc_hidden_proto for ftello.
6623         * libio/ftello.c: Add libc_hidden_def.
6625         [BZ #1140]
6626         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
6627         on the specified time and not the last entries in the file.  Move
6628         code to determine tzname[] to...
6629         (find_transition): ...here.  Add ugly guess for times before the
6630         first transition.
6632 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
6634         [BZ #3195]
6635         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
6636         no entry.
6637         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
6638         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6639         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6640         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6642         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
6643         read mechanism when there are no group members and avoid no-op
6644         read syscall in this case.
6646         [BZ #3242]
6647         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
6648         (__readall): If reading failed due to EAGAIN error wait a bit
6649         and possibly try again.
6650         (__readvall): Likewise.
6652 2007-10-13  Bruno Haible  <bruno@clisp.org>
6654         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
6655         when we cannot recode the message.
6657 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
6659         [BZ #4359]
6660         * libio/__freading.c (__freading): Don't return true for
6661         write-only streams.  For read/write streams, check whether we
6662         performed a read operation already.
6663         * libio/Makefile (tests): Add tst-ext2.
6664         * libio/tst-ext2.c: New file.
6666 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
6668         * locale/programs/repertoire.c (repertoire_read): Always free
6669         memory for repertoire file name [Coverity CID 270].
6671         * elf/cache.c (save_aux_cache): Free memory allocated for
6672         temporary file name [Coverity CID 267].
6674 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
6676         * misc/Makefile (headers): Add bits/error.h.
6678 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
6680         * posix/fnmatch_loop.c: Take rule index returned as part of
6681         findidx return value into account when accessing weights.
6682         * posix/regcomp.c: Likewise.
6683         * posix/regexec.c: Likewise.
6685         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
6686         (skip_to): Fix problems with parameter of elifdef/elifndef.
6688 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
6690         * iconv/gconv_simple.c: Add some branch prediction.
6692 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
6694         * locale/programs/ld-collate.c (collate_read): If ignore_content
6695         and nowtok is tok_define, eat any tok_eol tokens.
6697 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
6699         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
6700         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
6702         * inet/netinet/in.h: Don't include bits/socket.h.
6703         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
6704         macro.
6705         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6707 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
6709         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
6710         and tok_elifndef.
6711         * locale/programs/locfile-kw.gperf: Likewise.
6712         * locale/programs/ld-collate.c: Implement primitive preprocessor.
6714 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
6716         * stdio-common/printf-parse.h: Include string.h and wchar.h.
6717         (__find_specwc): Change into __extern_always_inline function.
6718         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
6719         (__parse_one_specmb): Remove ps argument.
6720         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
6721         Adjust __find_specmb and __parse_one_specmb callers.
6722         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
6723         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
6724         Removed.
6725         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
6726         caller.
6728 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
6730         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
6731         with some Pentium Ds.
6733 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
6735         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
6736         __read not read.
6737         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
6738         __write not write.
6740 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
6742         [BZ #181]
6743         * locale/C-time.c: Set week_1stday data to 19971201.
6744         * locale/programs/ld-time.c (time_finish): Default for
6745         first_workday is Monday.
6747         [BZ #2633]
6748         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
6750         [BZ #5103]
6751         * posix/glob.c (glob): Recognize patterns starting \/.
6752         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
6753         (main): Add test for pattern starting \/.
6755         * misc/error.h: Use __const instead of const.
6756         * misc/bits/error.h: Likewise.
6758 2007-10-07  Andreas Jaeger  <aj@suse.de>
6760         * include/bits/error.h: New file.
6762         * misc/bits/error.h (error_at_line): Fix prototype.
6764 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
6766         [BZ #3924]
6767         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
6768         more little bugs in creating the stack frame when pltexit has to
6769         be called.
6771         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
6772         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
6774         [BZ #4407]
6775         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
6776         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6777         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
6778         * math/libm-test.inc: Add test for this case.
6780         [BZ #5010]
6781         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
6782         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
6783         map service succeeded.
6784         (svc_is_mapped): New function.
6785         (svc_unregister): Use it before trying to unmap service.
6787 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
6789         * timezone/zic.c: Update from tzcode2007h.
6791         [BZ #5063]
6792         * timezone/africa: Update from tzdata2007h.
6793         * timezone/antarctica: Likewise.
6794         * timezone/asia: Likewise.
6795         * timezone/australasia: Likewise.
6796         * timezone/europe: Likewise.
6797         * timezone/leapseconds: Likewise.
6798         * timezone/northamerica: Likewise.
6799         * timezone/southamerica: Likewise.
6800         * timzeone/zone.tab: Likewise.
6802         [BZ #5104]
6803         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
6805         [BZ #5113]
6806         * string/bits/string2.h (__strdup): Cast parameters to calloc to
6807         avoid warning with -Wconversion.
6808         (__strndup): Likewise.
6809         Half the patch by Christian Iseli <christian.iseli@licr.org>.
6811         [BZ #5112]
6812         * nscd/connections.c (restart): Don't resync if database is
6813         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
6815         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
6816         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
6818         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
6819         evetnfd_read, eventfd_write.
6820         * sysdeps/unix/sysv/linux/eventfd.c: New file.
6821         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
6822         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
6823         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
6824         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
6825         eventfd_write for GLIBC_2.7.
6827         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
6828         * sysdeps/unix/sysv/linux/signalfd.c: New file.
6829         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
6830         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
6832 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
6834         * stdlib/msort.c: Include stdint.h.
6835         (struct msort_param): New type.
6836         (msort_with_tmp): Use struct msort_param pointer for unchanging
6837         parameters.  Add optimized handling for several common sizes
6838         and indirect sorting mode.
6839         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
6840         sorting.
6841         Suggested by Belazougui Djamel .
6843         * stdlib/Makefile (tests): Add tst-qsort2.
6844         * stdlib/tst-qsort2.c: New test.
6846 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
6848         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
6849         for dup2 in case another thread races with the current one.  Retry
6850         in this case.
6852         * misc/error.h: Remove support for use outside of libc.  We have to
6853         include <features.h> now.  Include <bits/error.h> if possible.
6854         * misc/bits/error.h: New file.
6856 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
6858         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
6859         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
6860         __extern_always_inline functions unconditionally, drop macros.
6862         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
6863         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
6864         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
6866         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
6867         add __artificial__ attribute.
6869 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
6871         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
6872         backward to forward direction.
6874         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
6876         [BZ #645]
6877         * locale/programs/ld-collate.c (collate_finish): Compare against last
6878         used section which is known to have rules defined.
6879         (collate_read): After order_start, correctly record order of sections
6880         and queue sections up.
6882 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
6884         [BZ #5071]
6885         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
6886         the same number of pages.
6887         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
6889         * locale/programs/ld-collate.c (collate_read): After initial copy
6890         statement, continue in state 0.
6892         * include/stdio_ext.h (__fsetlocking): Define as macro.
6894 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
6896         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
6897         of section order.
6899         * po/pt_BR.po: Fix typo.
6901 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
6903         * iconvdata/Makefile (modules): Add ISO8859-9E.
6904         (distribute): Add iso8859-9e.c.
6905         (gen-8bit-gap-modules): Add iso8859-9e.
6906         * iconvdata/iso8859-9e.c: New file.
6907         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
6908         * iconvdata/TESTS: Likewise.
6909         * iconvdata/tst-tables.sh: Likewise.
6911         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6913         * locale/iso-639.def: Add several new entries.
6915 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
6917         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
6918         void * pointers instead of struct link_map **.
6919         (_dl_scope_free): Change argument type to void *.
6920         * include/link.h (struct link_map): Change type of l_reldeps
6921         to struct link_map_reldeps, move l_reldepsact into that
6922         struct too.
6923         * elf/dl-deps.c: Include atomic.h.
6924         (_dl_map_object_deps): Only change l->l_initfini when it is
6925         fully populated, use _dl_scope_free for freeing it.  Optimize
6926         removal of libs from reldeps by using l_reserved flag, when
6927         some removal is needed, allocate a new list instead of
6928         reallocating and free the old with _dl_scope_free.  Adjust
6929         for l_reldeps and l_reldepsact changes.
6930         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
6931         searching in l_initfini and l_reldeps without holding dl_load_lock.
6932         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
6933         l_reldepsact changes.
6934         * elf/dl-close.c (_dl_close_worker): Likewise.
6935         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
6937 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
6939         * iconvdata/Makefile (modules): Add KOI8-RU.
6940         (distribute): Add koi8-ru.c.
6941         (gen-8bit-gap-modules): Add koi8-ru.
6942         * iconvdata/koi8-ru.c: New file.
6943         * iconvdata/gconv-modules: Add entries for KOI8-RU.
6944         * iconvdata/TESTS: Likewise.
6945         * iconvdata/tst-tables.sh: Likewise.
6947         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6949 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
6951         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
6952         with __warning__/__error__ attributes.
6953         (__warnattr): Define.
6954         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
6955         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
6956         __warnattr.
6957         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
6958         of __*_chk if compile time detectable overflow is found.
6959         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
6960         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
6961         with __warnattr.
6962         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
6963         instead of __*_chk if compile time detectable overflow is found.
6964         (__gets_alias): Rename to...
6965         (__gets_warn): ... this.  Add __warnattr.
6966         (gets): Call __gets_warn instead of __gets_alias.
6967         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
6968         aliases with __warnattr.
6969         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
6970         time detectable overflow is found.
6971         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
6972         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
6973         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
6974         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
6975         __getdomainname_chk_warn): New aliases with __warnattr.
6976         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
6977         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
6978         __*_chk_warn instead of __*_chk if compile time detectable overflow
6979         is found.
6980         (__getgroups_chk): Rename argument to __listlen from listlen.
6981         (__getwd_alias): Rename to...
6982         (__getwd_warn): ... this.  Add __warnattr.
6983         (getwd): Call __getwd_warn instead of __getwd_alias.
6984         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
6985         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
6986         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
6987         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
6988         __wcsnrtombs_chk_warn): New aliases with __warnattr.
6989         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
6990         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
6991         compile time detectable overflow is found.
6992         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
6993         to use __*_chk or not.
6994         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
6995         in comparisons which function should be called and in __*_chk*
6996         arguments.  Call __*_chk_warn instead of __*_chk if compile time
6997         detectable overflow is found.
6998         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
6999         __*_chk argument.
7000         * debug/tst-chk1.c (do_test): Add a few more tests.
7002 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
7004         [BZ #5058]
7005         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
7006         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
7007         (_nl_unload_domain): Finalize conversions_lock.
7008         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
7009         handling table of known conversions.
7011 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
7013         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
7014         close_not_cancel_no_status instead of close.
7016 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
7018         [BZ #5028]
7019         * posix/regcomp.c (lookup_collation_sequence_value): Check that
7020         nrules != 0 for multibyte chars.
7022 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
7024         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
7025         Provide better error message in case the type is unknown.
7027         [BZ #4963]
7028         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
7029         * string/stratcliff.c: Make usable to test wide char functions.
7030         * wcsmbs/wcsatcliff.c: New file.
7031         * wcsmbs/Makefiel (tests): Add wcsatcliff.
7033         [BZ #4972]
7034         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
7035         (distribute): Add mac-centraleurope.c.
7036         (gen-8bit-gap-modules): Add mac-centraleurope.
7037         * iconvdata/mac-centraleurope.c: New file.
7038         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
7039         * iconvdata/TESTS: Likewise.
7040         * iconvdata/tst-tables.sh: Likewise.
7042         [BZ #5043]
7043         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
7045 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
7047         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
7048         from __x86_64_core_cache_size_half.
7049         (init_cacheinfo): Compute shared cache size for AMD processors with
7050         shared L3 correctly.
7051         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
7052         name change.
7053         Patch in large parts by Evandro Menezes.
7055 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
7057         * elf/dl-lookup.c (add_dependency): Handle failing memory
7058         allocation for dependency list.  Remove unnecessary check.
7060         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
7061         open/close when determining source addresses.
7063         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
7064         sha512-crypt, and sha512.
7065         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
7066         (distribute): Add sha256.h and sha512.h.
7067         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
7068         and call the appropriate code.
7069         * crypt/sha256-crypt.c: New file.
7070         * crypt/sha256.c: New file.
7071         * crypt/sha256.h: New file.
7072         * crypt/sha256c-test.c: New file.
7073         * crypt/sha256test.c: New file.
7074         * crypt/sha512-crypt.c: New file.
7075         * crypt/sha512.c: New file.
7076         * crypt/sha512.h: New file.
7077         * crypt/sha512c-test.c: New file.
7078         * crypt/sha512test.c: New file.
7080 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
7082         * misc/bits/syslog.h (syslog): Remove extraneous argument from
7083         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
7084         __syslog_chk.
7086 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
7088         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
7089         %as in fscanf format strings.
7091         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
7092         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
7093         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
7094         Likewise.
7095         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
7096         Likewise.
7098         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
7099         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
7100         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
7101         * elf/dl-sym.c (do_sym): Likewise.
7102         * include/link.h (struct link_map): Add l_serial field.
7103         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
7104         * elf/dl-lookup.c (add_dependency): Add flags argument.
7105         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
7106         flags, use THREAD_GSCOPE_RESET_FLAG before and
7107         THREAD_GSCOPE_SET_FLAG after
7108         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
7109         Don't dereference map until it has been found on some list.
7110         If map->l_serial changed, return -1.
7112 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
7114         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
7115         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
7116         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
7117         libc_hidden_proto.
7118         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
7119         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
7120         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
7121         add libc_hidden_proto.
7122         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7123         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7124         conformance requested.
7125         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
7126         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7127         conformance requested.
7128         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7129         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
7130         conformance requested.
7131         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
7132         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
7133         ISO C99 or POSIX conformance requested.
7134         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
7135         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
7136         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
7137         and __isoc99_vsscanf@@GLIBC_2.7.
7138         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
7139         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
7140         (tests): Add scanf14.
7141         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
7142         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
7143         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
7144         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
7145         CFLAGS-isoc99_scanf.c): Add $(exceptions).
7146         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
7147         from using internal headers.
7148         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
7149         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
7150         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
7151         and __isoc99_vswscanf@@GLIBC_2.7.
7152         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
7153         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
7154         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
7155         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
7156         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
7157         * stdio-common/isoc99_scanf.c: New file.
7158         * stdio-common/isoc99_vsscanf.c: New file.
7159         * stdio-common/isoc99_vscanf.c: New file.
7160         * stdio-common/isoc99_vfscanf.c: New file.
7161         * stdio-common/isoc99_fscanf.c: New file.
7162         * stdio-common/isoc99_sscanf.c: New file.
7163         * wcsmbs/isoc99_fwscanf.c: New file.
7164         * wcsmbs/isoc99_vswscanf.c: New file.
7165         * wcsmbs/isoc99_swscanf.c: New file.
7166         * wcsmbs/isoc99_wscanf.c: New file.
7167         * wcsmbs/isoc99_vwscanf.c: New file.
7168         * wcsmbs/isoc99_vfwscanf.c: New file.
7169         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
7170         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
7171         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
7172         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
7173         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
7174         * stdio-common/scanf14.c: New test.
7175         * stdio-common/scanf15.c: New test.
7176         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
7177         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
7178         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
7179         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
7180         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
7181         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
7182         __nldbl___isoc99_scanf@@GLIBC_2.7,
7183         __nldbl___isoc99_fscanf@@GLIBC_2.7,
7184         __nldbl___isoc99_sscanf@@GLIBC_2.7,
7185         __nldbl___isoc99_vscanf@@GLIBC_2.7,
7186         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
7187         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
7188         __nldbl___isoc99_wscanf@@GLIBC_2.7,
7189         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
7190         __nldbl___isoc99_swscanf@@GLIBC_2.7,
7191         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
7192         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
7193         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
7194         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
7195         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
7196         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
7197         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
7198         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
7199         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7200         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
7201         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
7202         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
7203         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
7204         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
7205         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
7206         functions.
7207         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
7208         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
7209         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
7210         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
7211         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
7212         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
7213         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
7214         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
7215         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
7216         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
7217         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
7218         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
7220         * stdio-common/Makefile (tests): Add scanf13.
7221         (scanf13-ENV): New.
7222         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
7223         m modifier followed by l.
7224         (STRING_ARG): Add width argument.
7225         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
7226         <case L_('C')>: Handle %mlc and %mC.
7227         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
7228         arguments.
7229         * stdio-common/scanf13.c: New test.
7231         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
7232         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
7234 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
7236         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
7237         type and __THROW marker of splice, vmsplice, and tee.
7238         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7239         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7240         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7241         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7242         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7243         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7244         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7245         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
7246         as cancellation points.
7248 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
7250         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
7251         parse more than three parts of the version number.
7253 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
7255         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
7256         modifier.  Patch by Jakub Jelinek.
7258 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
7260         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
7261         call_fallocate in misc subdir.
7262         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
7263         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
7264         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
7265         instead of __fallocate64.
7266         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
7268 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
7270         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
7271         * rt/Makefile (headers): Add bits/mqueue2.h.
7272         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
7273         optimizing with GCC and __va_arg_pack_len is defined.
7274         * rt/bits/mqueue2.h: New file.
7275         * rt/mq_open.c (__mq_open): Renamed from mq_open.
7276         (mq_open): New strong_alias.
7277         (__mq_open_2): New function.
7278         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
7279         (mq_open): New strong_alias.
7280         (__mq_open_2): New function.
7281         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
7282         * Versions.def (librt): Add GLIBC_2.7 version.
7283         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
7284         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
7286         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
7287         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
7288         is defined rather than when not C++.
7289         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
7290         __openat64_alias): New redirects.
7291         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
7292         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
7293         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
7294         (open, open64, openat, openat64): Rewrite as __extern_always_inline
7295         functions instead of function-like macros.
7297 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
7299         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
7300         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
7301         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
7303 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
7305         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
7306         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
7308 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
7310         * inet/tst-network.c: Increment ERRORS for failing tests.
7312 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
7314         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
7315         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
7316         implement as __extern_always_inline function.
7317         (vsyslog): Define as __extern_always_inline function unconditionally.
7318         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
7319         When __va_arg_pack is defined, implement as __extern_always_inline
7320         functions.
7321         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7322         __extern_always_inline functions unconditionally.
7323         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
7324         bits/stdio2.h will be included.
7325         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
7326         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
7327         implement as __extern_always_inline functions.
7328         (vswprintf, vwprintf, vfwprintf): Define as
7329         __extern_always_inline functions unconditionally.
7330         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
7332 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
7334         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
7335         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
7336         attribute.
7337         * include/features.h (__USE_EXTERN_INLINES): Define only when
7338         __extern_inline is defined.
7339         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
7340         is defined instead of when not __cplusplus.
7341         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
7342         is defined instead of when not __cplusplus.
7343         * socket/sys/socket.h: Include bits/socket2.h when
7344         __extern_always_inline is defined instead of when not __cplusplus.
7345         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
7346         is defined instead of when not __cplusplus.
7347         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
7348         is defined instead of when not __cplusplus.
7349         * string/string.h: Include bits/string3.h when __extern_always_inline
7350         is defined instead of when not __cplusplus.
7351         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
7352         is defined instead of when not __cplusplus.
7353         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
7354         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
7355         is not defined.
7356         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
7357         defined __extern_always_inline instead of !defined __cplusplus.
7358         * libio/bits/stdio-ldbl.h: Likewise.
7359         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7360         * misc/bits/syslog.h (syslog): Don't define for C++.
7361         (vsyslog): Use __extern_always_inline function for C++ instead of
7362         a macro.
7363         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
7364         whenever that macro is defined.
7365         (vprintf): Don't provide the inline for C++.
7366         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
7367         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
7368         define the macros for C++.
7369         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7370         __extern_always_inline functions for C++.
7371         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
7372         stat64, lstat64, fstat64, fstatat64): Don't define if not
7373         __USE_EXTERN_INLINES.
7374         * wcsmbs/bits/wchar2.h: Fix #error message.
7375         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
7376         (vswprintf, vwprintf, vfwprintf): Define using
7377         __extern_always_inline functions for C++.
7378         * string/bits/string3.h: Don't #undef macros if __cplusplus.
7379         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
7380         strncpy, strcat, strncat): Define as __extern_always_inline
7381         functions instead of macros for C++.
7382         * math/bits/cmathcalls.h: Guard __extern_inline routines with
7383         defined __extern_inline.
7384         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
7385         to __extern_inline whenever that macro is defined.
7386         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7387         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7388         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
7389         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
7390         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7391         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7392         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7393         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7394         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
7395         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
7396         prototypes.  Only provide __extern_inline routines if
7397         __USE_EXTERN_INLINES.
7398         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
7399         tests.
7400         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
7401         For now avoid some *printf tests in C++.  Skip all testing
7402         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
7403         is not.
7404         * debug/tst-chk4.cc: New file.
7405         * debug/tst-chk5.cc: New file.
7406         * debug/tst-chk6.cc: New file.
7407         * debug/tst-lfschk4.cc: New file.
7408         * debug/tst-lfschk5.cc: New file.
7409         * debug/tst-lfschk6.cc: New file.
7410         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
7411         prototypes in C++.
7412         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
7413         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
7414         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
7416 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
7418         * po/cs.po: Update from translation team.
7420 2007-09-11  Roland McGrath  <roland@redhat.com>
7422         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
7423         compiling.
7425 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7427         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
7429 2007-09-05  Roland McGrath  <roland@redhat.com>
7431         * manual/signal.texi (Signaling Another Process): Typo fix.
7432         From Karl Berry <karl@freefriends.org>.
7434 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
7436         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
7437         zero if not defined.
7438         (make_request): Recognize optimistic addresses and treat them like
7439         deprecated addresses.
7440         Reported by Neil Horman <nhorman@redhat.com>.
7442 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
7444         * nscd/connections.c (send_ro_fd): Also transfer file size.
7445         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
7446         file size don't call fstat.
7448         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
7449         ahead and map the file.  This should always be correct and we can
7450         catch problems later.
7452 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
7454         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
7455         prototypes.
7456         (__fread_alias, __fread_unlocked_alias): New aliases.
7457         (fread): New extern inline.
7458         (fread_unlocked): Likewise.  Undef macro before definition of
7459         the inline function.
7460         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
7461         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
7462         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
7463         and __fread_unlocked_chk@@GLIBC_2.7.
7464         * debug/fread_chk.c: New file.
7465         * debug/fread_u_chk.c: New file.
7466         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
7468 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
7470         * sysdeps/unix/sysv/linux/syscalls.list
7471         (personality): Change caller to EXTRA.
7473 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
7475         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
7476         to keep gcc quiet.
7477         * iconvdata/iso-2022-cn.c (BODY): Likewise.
7479         * locale/programs/ld-collate.c (collate_output): Avoid warning if
7480         NDEBUG is defined.
7482         * Makerules: Use -p option with mkdir.
7484         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
7485         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
7486         (_xdr_directory_obj): Likewise.
7487         (xdr_entry_obj): Likewise.
7488         (xdr_group_obj): Likewise.
7489         (xdr_link_obj): Likewise.
7490         (xdr_table_obj): Likewise.
7491         (_xdr_nis_result): Likewise.
7492         (_xdr_ns_request): Likewise.
7493         (_xdr_ib_request): Likewise.
7494         (_xdr_nis_taglist): Likewise.
7495         (xdr_cback_data): Likewise.
7496         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
7497         (xdr_ypresp_maplist): Likewise.
7499         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
7501         * posix/regex_internal.h: Prevent some declarations and definitions
7502         to be seen when used in tests.
7504         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
7505         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
7507         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
7509         * config.make.in (datarootdir): Add to shut up configure.
7511         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
7512         associativity for fully-associative caches.
7514         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
7515         requests.  Fill on more associativity values for L2.
7516         Patch mostly by Evandro Menezes.
7518 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
7520         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7521         (_libc_vdso_platform_setup): Avoid using exported variable by using
7522         alias.
7524         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
7526         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
7527         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
7528         defined.
7530 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
7532         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
7533         align stack for call if pltexit is to be used.
7535         [BZ #3924]
7536         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
7537         align for function call in case pltexit has to be called later.
7539         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
7540         implicit atomic operation when storing function pointer.
7541         (_dl_runtime_profile): Likewise.
7543 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
7545         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
7546         NIS_NOTFOUND.
7548 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
7550         [BZ #4566]
7551         * string/strtok.c: Fix typo in comment.
7553         [BZ #4582]
7554         * debug/segfault.c: Fix typos in comments.
7556         [BZ #4588]
7557         * stdio-common/tempnam.c: Fix comment, it is not checked that
7558         TMPDIR points to a writable directory.
7560         [BZ #4726]
7561         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
7562         memory allocated for the name server address.
7564         [BZ #4946]
7565         * nscd/connections.c (handle_request): Using sendfile always
7566         requires that mmap is used for the database.
7567         Patch by Petr Baudis <pasky@suse.cz>.
7569         [BZ #4905]
7570         * nscd/hstcache.c (cache_addhst): When reloading an entry which
7571         suddenly has two or more addresses, ignore it and remove the old
7572         entry.
7574         [BZ #4814]
7575         * resolv/res_hconf.c: Prepare for compiling outside libc.
7576         * nscd/res_hconf.c: New file.
7577         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
7578         the new file.
7579         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
7580         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
7582         * nscd/hstcache.c (cache_addhst): Minimal optimization.
7584         [BZ #4925]
7585         * debug/pcprofiledump.c: Turn on internationalization by calling
7586         setlocale.  Patch mostly by Benno Schulenberg.
7588         [BZ #4936]
7589         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
7590         the state.
7591         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
7592         * iconvdata/bug-iconv5.c: New file.
7594 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
7596         [BZ #4896]
7597         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
7598         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
7599         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
7600         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
7601         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
7602         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
7603         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
7604         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
7606 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
7608         [BZ #4937]
7609         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
7610         lookup loop.  Suggested by John Reiser.
7612 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
7614         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
7616 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
7618         * csu/libc-start.c: Don't handle VDSO_SETUP here.
7619         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
7620         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
7621         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
7622         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
7623         to...
7624         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
7626 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
7628         * po/nl.po: Update from translation team.
7630 2007-08-16  Andreas Jaeger  <aj@suse.de>
7632         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
7633         Reported by Peter Festner <peter.festner@ewetel.net>.
7635 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
7637         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
7639 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
7641         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
7642         to check for undefined symbols.
7644         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
7645         If the syscall fails, set errno to the actual returned error number
7646         rather than EINVAL.
7647         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
7648         arguments are incorrect, set errno to EINVAL, if the syscall
7649         fails, set errno to the actual returned error number.
7651         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
7652         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
7654         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
7655         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
7656         file.
7657         (ASI_PNF, ASI_BLK_P): Don't define.
7658         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
7659         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
7660         file.
7661         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
7662         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
7663         file.
7665 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
7667         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
7668         FE_UNDERFLOW on Niagara CPUs.
7670         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
7671         exceptions.
7673 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
7675         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
7676         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
7677         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
7678         flush should be used or not inside of the function.
7679         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
7681         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
7682         __thread_start): Use HIDDEN_JUMPTARGET.
7683         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
7684         __thread_start): Likewise.
7685         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
7687         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
7688         Add libc_hidden_proto.
7689         (STRTOF): Add libc_hidden_proto.
7690         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
7691         (strtold_l, wcstold_l): Use them as second argument for
7692         long_double_symbol.
7694 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
7696         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
7698 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7700         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
7702 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
7704         * po/bg.po: New file.  From the translation team.
7706 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
7708         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
7709         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
7710         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
7711         when each feature was introduced.
7713         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
7714         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
7715         (CHECK_HASH): New macro.
7716         (PREPARE_VERSION): Use it.
7718         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
7719         prototype if not __ASSUME_PSELECT.
7720         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
7721         prototype if not __ASSUME_PPOLL.
7723         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
7725         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
7726         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
7727         is defined.
7729 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
7731         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7732         (_libc_vdso_platform_setup): If vDSO is not available point
7733         __vdso_gettimeofday to the vsyscall.
7734         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
7735         __vdso_gettimeofday instead of vsyscall.
7737 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
7739         * nscd/servicescache.c: Include kernel-features.h.
7740         * nscd/gai.c: Likewise.
7741         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
7742         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
7743         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
7744         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
7745         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
7746         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
7747         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
7748         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
7749         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
7751 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
7753         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
7754         and _dl_get_origin defines anymore.
7756         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
7757         Build fix for systems which might lack POSIX timer support.
7759         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7760         (_libc_vdso_platform_setup): Mangle function pointers before storing
7761         them.
7762         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
7763         Demangle vdso pointer before use.
7764         (INTERNAL_VSYSCALL): Likewise.
7766         * elf/cache.c (primes): Mark as const.
7767         Noted by Roland McGrath.
7769 2007-08-01  Andreas Jaeger  <aj@suse.de>
7770             Jakub Jelinek  <jakub@redhat.com>
7772         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
7773         (options): Add option.
7774         (parse_opt): Handle option.
7775         (manual_link): Adjust process_file caller.  Call implicit_soname.
7776         (search_dir): Formatting.  Use and populate auxiliary cache.
7777         (main): Load and save auxiliary cache.
7778         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
7779         stat64 from fstat64 to caller.
7780         (implicit_soname): New function.
7781         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
7782         leave *soname as NULL.
7783         * elf/cache.c: Include libgen.h.
7784         (print_entry, print_cache, compare, save_cache, add_to_cache):
7785         Formatting and cleanups.
7786         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
7787         aux_cache_file): New structures.
7788         (AUX_CACHEMAGIC): Define.
7789         (primes): New array.
7790         (aux_hash_size, aux_hash): New variables.
7791         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
7792         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
7793         load_aux_cache, save_aux_cache): New functions.
7794         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
7795         (init_aux_cache, search_aux_cache, add_to_aux_cache,
7796         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
7797         (process_file): Adjust prototype.
7799 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
7801         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
7802         with __need_size_t.
7804 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
7806         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
7807         r_found_version structure as second parameter.
7808         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
7809         (_dl_vdso_vsym): Change type of second parameter accordingly.
7810         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
7811         (_libc_vdso_platform_setup): Adjust.
7812         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7813         (_libc_vdso_platform_setup): Likewise.
7815         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
7816         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
7817         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
7818         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
7819         * csu/libc-start.c: Pretty printing.
7820         Use VDSO_SETUP if defined.
7821         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
7822         and let generic code call into _libc_vdso_platform_setup.
7823         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
7824         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
7825         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
7826         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
7827         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
7828         for GLIBC_PRIVATE.
7829         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
7830         (sysdep_rountines): Add dl-vdso.
7832         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
7833         of routines.
7835         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
7836         attribute_hidden to __vdso_gettimeofday prototype.
7838 2007-08-12  Roland McGrath  <roland@redhat.com>
7840         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
7841         From: Karl Berry <karl@freefriends.org>.
7843 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
7845         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
7846         an atime update for the files we read.
7848 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
7850         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
7852         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
7853         instead of mkstemp.
7855         * misc/Makefile (routines): Add mkostemp and mkostemp64.
7856         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
7857         * misc/mkostemp.c: New file.
7858         * misc/mkostemp64.c: New file.
7859         * stdlib/stdlib.h: Declare the new functions.
7860         * sysdeps/posix/tempname.c: Add new parameter which is added to
7861         the flags for open.  Remove __GT_BIGFILE handling.
7862         * stdio-common/tempname.c: Likewise.
7863         * include/stdio.h: Adjust __gen_tempname prototype.
7864         Renumber __GT_* constants.
7865         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
7866         * misc/mkdtemp.c: Likewise.
7867         * misc/mkstemp.c: Likewise.
7868         * misc/mkstemp64.c: Likewise.
7869         * misc/mktemp.c: Likewise.
7870         * stdio-common/tempnam.c: Likewise.
7871         * stdio-common/tmpfile.c: Likewise.
7872         * stdio-common/tmpfile64.c: Likewise.
7873         * stdio-common/tmpnam.c: Likewise.
7874         * stdio-common/tmpnam_r.c: Likewise.
7876 2007-08-10  Roland McGrath  <roland@frob.com>
7878         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
7879         New macros.
7880         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
7881         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7883 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
7885         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
7886         possible.
7887         * nss/nss_files/files-alias.c (internal_setent): Likewise.
7888         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
7889         * nss/nss_files/files-have_o_cloexec.c: New file.
7891         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
7892         available.
7894 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
7896         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
7897         ___new_wcstold_l): New weak aliases.
7898         (strtold_l, wcstold_l): Use them as second argument for
7899         long_double_symbol.
7901 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
7903         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
7904         register in test for error.
7906         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
7907         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
7909         * po/sv.po: Update from translation team.
7911 2007-08-06  Roland McGrath  <roland@redhat.com>
7913         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
7914         Remove __strto*_l inlines.
7915         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
7916         * stdlib/strtod.c: Add libc_hidden_def.
7917         * stdlib/strtod_l.c: Likewise.
7918         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
7919         for __new_strtold and __new_wcstold.
7920         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
7921         __STRTOF, STRTOF.
7922         * stdlib/strtol.c: Add libc_hidden_def.
7923         * stdlib/strtol_l.c: Likewise.
7924         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
7925         strtoq.
7927         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
7929         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
7930         * scripts/data/localplt-generic.data: ... here.
7931         * elf/Makefile (check-data): Get generic file if no other.
7932         ($(objpfx)check-localplt.out): Make target unconditional.
7934         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
7935         Use ElfW(Nhdr).
7937 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
7939         * po/zh_CN.po: Updated translation from translation team.
7941 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
7943         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
7944         Don't use CGOTSETUP and CGOTRESTORE macros.
7946 2007-08-04  Roland McGrath  <roland@redhat.com>
7948         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
7950 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
7952         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
7953         __extension__ around the whole statement expression.
7955 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
7957         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
7958         elements during initialization.
7960         * po/pl.po: Updated translation from translation team.
7961         * po/tr.po: Likewise.
7962         * po/nl.po: Likewise.
7964 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
7966         * rt/aio.h: Add __nonnull attributes.
7968 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
7970         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
7971         * stdlib/Makefile (tests): Add tst-strtod5.
7972         (tst-strtod5-ENV): New.
7973         * stdlib/tst-strtod5.c: New file.
7975         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
7976         failed.
7977         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
7978         on failure.
7980         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
7981         allocated.
7983 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
7985         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
7986         numbers.
7988 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
7990         * io/Makefile (aux): Add have_o_cloexec.
7991         * include/fcntl.h: Declare __have_o_cloexec.
7992         * io/have_o_cloexec.c: New file.
7993         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
7994         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
7995         fcntl call if not necessary.
7996         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
7997         of local variable.
7999         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
8000         Avoid memset, add explicit initialization.
8001         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
8002         to the end and change into zero-sized array.
8003         Move lock member to fill a hole on 64-bit platforms.
8005         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
8006         inline functions.
8007         * include/stdlib.h: Add __strto*_internal prototypes here.
8008         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
8009         inline functions.
8010         * include/wchar.h: Add __wcsto*_internal prototypes.
8011         * sysdeps/generic/inttypes.h: No need to protect the declaration
8012         of the __strto*_internal and __wcsto*_internal members here.
8014         * rt/mqueue.h: Change const to __const and add nonnull attributes.
8016 2007-08-02  Roland McGrath  <roland@redhat.com>
8018         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
8019         $(inst_bindir)/getconf if possible.
8021         * posix/Makefile ($(objpfx)getconf.speclist): New target.
8022         (generated): Add it.
8023         ($(inst_libexecdir)/getconf): Use it.
8025 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
8027         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
8028         /proc is faster and sufficient.  /sys is still needed for
8029         __get_nprocs_conf.
8031 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
8033         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
8034         syscall as __fallocate64.
8035         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
8036         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
8038 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
8040         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
8041         value.
8043         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
8044         if off_t is different rank from size_t.
8046         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
8047         uw_frame_state_for): Avoid type punning warnings.
8048         * sysdeps/generic/unwind-dw2-fde-glibc.c
8049         (_Unwind_IteratePhdrCallback): Likewise.
8050         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
8051         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
8052         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
8053         pointers.
8055 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
8057         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
8058         total processors using sysfs.
8059         (__get_nprocs): Use sysfs to determine which processors are online.
8061 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
8063         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
8064         syscall arguments count.
8066         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
8068 2007-07-30  Roland McGrath  <roland@redhat.com>
8070         * manual/libc.texinfo: Update copyrights, formatting magic, and
8071         @dircategory.  From Karl Berry <karl@freefriends.org>.
8073 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
8075         [BZ #4860]
8076         * io/Makefile (headers): Add bits/fcntl2.h.
8078         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
8079         using gcc builtin.
8080         (__CPU_EQUAL_S): Likewise.
8082         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
8083         (tests): Add tst-cpuset.
8084         * posix/sched_cpualloc.c: New file.
8085         * posix/sched_cpufree.c: New file.
8086         * posix/tst-cpuset.c: New file.
8087         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
8088         GLIBC_2.7.
8089         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
8090         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
8091         macros.  Define CPU_*_S macros.
8093 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
8095         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
8096         entry.
8098         [BZ #4858]
8099         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
8100         #.0g and value rounded to 1.0.
8101         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
8103 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
8105         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
8106         for int_frac_digits and frac_digits.
8108         * login/logout.c (logout): Avoid aliasing violation.
8109         * login/logwtmp.c (logwtmp): Likewise.
8111         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
8113         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
8114         to avoid warning.
8115         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
8116         warning.
8117         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
8118         warning.
8119         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
8120         to avoid warnings.
8122         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
8123         void **.
8124         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
8126         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
8127         char * to avoid warning.
8128         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
8130         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
8132         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
8133         allocate_arrays): Cast second argument to charmap_find_symbol
8134         to char * to avoid warnings.
8136         * locale/programs/repertoire.c (repertoire_new_char): Change
8137         from_nr, to_nr and cnt to unsigned long, adjust printf format
8138         string.
8140         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
8141         Cast second argument to new_element to char * to avoid warnings.
8143         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
8145         * intl/gettextP.h (struct loaded_domain): Change plural to const
8146         struct expression *.
8147         * intl/plural-eval.c (plural_eval): Change first argument to
8148         const struct expression *.
8149         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
8150         argument to const struct expression **.
8151         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
8152         prototypes.
8153         * intl/loadmsgcat (_nl_unload_domain): Cast away const
8154         in call to __gettext_free_exp.
8156         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
8157         unitialized wstring/wpattern var warnings.
8159         * posix/runtests.c (struct a_test): Make data field const char *.
8161         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
8162         vars if not LDBL_MANT_DIG >= 106.
8164         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
8166         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
8167         __find_specmb to avoid warning.
8169         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
8171         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
8172         to avoid warnings.
8174         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
8175         initializer.
8177         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
8178         tv var when it will be actually used.
8180         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
8181         to avoid warnings.
8183         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
8184         char array resp. pointer.
8185         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
8186         char array.
8187         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
8188         to const unsigned char **.
8189         (ucs4_to_cns11643): Change second argument to unsigned char *.
8190         * iconvdata/euc-tw.c (BODY): Change endp type to
8191         const unsigned char *.
8192         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
8193         to unsigned char *.
8194         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
8195         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
8196         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
8197         types to unsigned char pointers/arrays instead of char.
8198         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
8199         to unsigned char *.
8200         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
8201         * iconvdata/jis0212.h: Include assert.h.
8202         (ucs4_to_jisx0212): Change second argument to unsigned char *.
8203         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
8204         of trying to handle that.
8205         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
8206         shut up a warning.
8207         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
8208         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
8209         two dimensional const unsigned char arrays.
8210         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
8211         Initialize endp to inptr to shut up a warning.
8213 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
8215         [BZ #4772]
8216         * time/strptime_l.c (__strptime_internal): Silently ignore
8217         strftime modifiers and field width in recursive calls.
8219         * include/time.h (enum ptime_locale_status): Remove.
8220         (__strptime_internal): Remove decided and era_cnt arguments,
8221         add statep argument.
8222         * time/strptime_l.c (__strptime_internal): Remove decided
8223         and era_cnt arguments, add statep argument.  Don't recompute
8224         any fields in recursive calls, only update caller's tm
8225         and state, if recursive call fails, don't change tm nor
8226         any state.
8227         (get_alt_number): Adjust.
8228         (recursive): Adjust caller.
8229         (strptime): Likewise.
8230         * time/strptime.c (strptime): Likewise.
8232 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
8234         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
8235         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
8236         if from and to charsets are the same.
8237         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
8238         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
8239         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
8241 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
8243         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
8244         Don't define wint_t when __need_mbstate_t unless it
8245         is necessary.
8246         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
8247         in the typedef if possible.
8248         * wctype/wctype.h (wint_t): Define by including
8249         wchar.h with __need_wint_t instead of including stddef.h
8250         with __need_wint_t and as fallback definining it ourselves.
8251         * iconv/gconv.h (__need_wint_t): Define before including
8252         wchar.h.
8253         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
8254         or _GLIBCPP_USE_WCHAR_T.
8255         (__need_wchar_t): Don't define
8256         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8257         (__need_wint_t): Don't define before including stddef.h,
8258         define before including wchar.h only if _LIBC or
8259         _GLIBCPP_USE_WCHAR_T.
8260         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8261         * sysdeps/mach/hurd/_G_config.h: Likewise.
8262         * sysdeps/generic/_G_config.h: Likewise.
8263         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
8264         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
8265         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
8266         if _LIBC or _GLIBCPP_USE_WCHAR_T.
8268 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
8270         * sysdeps/posix/posix_fallocate64.c: Undefine
8271         __posix_fallocate64_l64 before alias handling.
8272         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
8273         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
8274         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
8275         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
8277         * io/tst-posix_fallocate.c: Include <fcntl.h>.
8279 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
8281         * locale/programs/ld-collate.c (atwc): New variable.
8282         (add_to_tablewc): New toplevel function, moved from collate_output.
8283         (collate_output): Remove add_to_tablewc nested function.
8285         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
8286         (name_insert): New function.
8287         (write_output): Remove hash_table and hash_size vars and name_insert
8288         nested function.
8290 2007-07-24  Roland McGrath  <roland@redhat.com>
8292         * Makerules (install-others-programs-nosubdir): New target.
8293         (install-no-libc.a-nosubdir): Depend on it.
8295         * iconv/Makefile (install-others-programs): Set this instead of
8296         install-others.
8297         * login/Makefile (install-others-programs): Likewise.
8298         * posix/Makefile (install-others-programs): Likewise.
8300         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
8301         dependencies.
8303 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
8305         * io/Makefile (tests): Add tst-posix_fallocate.
8306         * io/tst-posix_fallocate.c: New file.
8308         * sysdeps/unix/sysv/linux/kernel-features.h: Define
8309         __ASSUME_FALLOCATE.
8311 2007-07-22  Roland McGrath  <roland@frob.com>
8313         * hurd/getdport.c: Add missing copyright year update.
8315         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
8316         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
8318 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
8320         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
8322         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
8323         O_CLOEXEC is needed.
8324         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
8325         Avoid additional fcntl to set O_CLOEXEC if not needed.
8326         * nis/nss_compat/compat-initgroups.c: Likewise.
8327         * nis/nss_compat/compat-pwd.c: Likewise.
8328         * nis/nss_compat/compat-spwd.c: Likewise.
8330 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8332         [BZ #3665]
8333         * manual/errno.texi: Change ECANCELED value to 119.
8335         [BZ #4610]
8336         * mach/lock-intern.h: Include <sys/cdefs.h>.
8338         [BZ #4178]
8339         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
8340         reading A.
8342         [BZ #4126]
8343         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
8344         to __sigsuspend.
8346         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
8348 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
8350         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
8351         `__ASSEMBLER__'.
8352         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8354 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
8356         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
8357         descriptor received from nscd.
8359         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
8361         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
8362         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8363         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8364         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8365         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8366         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8368 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
8370         [BZ #4816]
8371         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
8373         [BZ #4813]
8374         * login/forkpty.c (forkpty): Close master and slave fds on
8375         fork failure.  Patch by
8376         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
8378 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
8380         * include/features.h (__USE_ISOC95): New define.
8381         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
8382         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
8383         for -std=iso9899:199409.
8384         * CONFORMANCE: Remove comments about unsupported AMD1.
8386 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
8388         * sysdeps/ia64/sched_cpucount.c: New file.
8389         * sysdeps/powerpc/sched_cpucount.c: New file.
8391         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
8392         __BEGIN_DECLS/__END_DECLS around the prototype.
8393         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
8394         pointer to const cpu_set_t.
8396         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
8397         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
8398         __need_size_t and include stddef.h.
8399         * sysvipc/sys/msg.h: Likewise.
8400         * posix/sched.h: Likewise.
8401         * hurd/hurd/signal.h (__need_size_t): Define.
8403         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
8404         neither does signal.h in pedantic ISO C namespaces.  stdio.h
8405         no longer defines wint_t or wchar_t.
8407         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
8408         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
8409         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
8410         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
8411         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
8412         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
8413         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
8414         * debug/printf_chk.c (__printf_chk): Likewise.
8415         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
8416         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
8418         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
8419         Define.
8421         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
8422         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
8424 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
8426         [BZ #4792]
8427         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
8428         * malloc/malloc.h (realloc): Likewise.
8430         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
8431         if one of proc_file_chain streams has that fileno.
8432         * stdio-common/Makefile (tests): Add tst-popen2.
8433         * stdio-common/tst-popen2.c: New test.
8435 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
8437         * elf/ldconfig.c: Allow GPLv2 or any later version.
8438         * elf/readlib.c: Likewise.
8439         * elf/chroot_canon.c: Likewise.
8440         * elf/cache.c: Likewise.
8441         * nscd/mem.c: Likewise.
8442         * nscd/getpwuid_r.c: Likewise.
8443         * nscd/grpcache.c: Likewise.
8444         * nscd/aicache.c: Likewise.
8445         * nscd/getsrvbynm_r.c: Likewise.
8446         * nscd/nscd.c: Likewise.
8447         * nscd/servicescache.c: Likewise.
8448         * nscd/getsrvbypt_r.c: Likewise.
8449         * nscd/initgrcache.c: Likewise.
8450         * nscd/gethstbyad_r.c: Likewise.
8451         * nscd/gethstbynm2_r.c: Likewise.
8452         * nscd/getgrnam_r.c: Likewise.
8453         * nscd/nscd_setup_thread.c: Likewise.
8454         * nscd/getpwnam_r.c: Likewise.
8455         * nscd/gai.c: Likewise.
8456         * nscd/connections.c: Likewise.
8457         * nscd/dbg_log.c: Likewise.
8458         * nscd/cache.c: Likewise.
8459         * nscd/hstcache.c: Likewise.
8460         * nscd/nscd_conf.c: Likewise.
8461         * nscd/getgrgid_r.c: Likewise.
8462         * nscd/pwdcache.c: Likewise.
8463         * catgets/gencat.c: Likewise.
8464         * locale/programs/linereader.h: Likewise.
8465         * locale/programs/locarchive.c: Likewise.
8466         * locale/programs/ld-paper.c: Likewise.
8467         * locale/programs/locfile-kw.h: Likewise.
8468         * locale/programs/ld-address.c: Likewise.
8469         * locale/programs/xmalloc.c: Likewise.
8470         * locale/programs/ld-time.c: Likewise.
8471         * locale/programs/localedef.c: Likewise.
8472         * locale/programs/simple-hash.c: Likewise.
8473         * locale/programs/xstrdup.c: Likewise.
8474         * locale/programs/ld-numeric.c: Likewise.
8475         * locale/programs/locfile-kw.gperf: Likewise.
8476         * locale/programs/ld-collate.c: Likewise.
8477         * locale/programs/charmap-kw.gperf: Likewise.
8478         * locale/programs/charmap.h: Likewise.
8479         * locale/programs/charmap-kw.h: Likewise.
8480         * locale/programs/config.h: Likewise.
8481         * locale/programs/locfile.c: Likewise.
8482         * locale/programs/ld-ctype.c: Likewise.
8483         * locale/programs/charmap.c: Likewise.
8484         * locale/programs/ld-messages.c: Likewise.
8485         * locale/programs/repertoire.h: Likewise.
8486         * locale/programs/locale.c: Likewise.
8487         * locale/programs/ld-name.c: Likewise.
8488         * locale/programs/linereader.c: Likewise.
8489         * locale/programs/locfile.h: Likewise.
8490         * locale/programs/3level.h: Likewise.
8491         * locale/programs/ld-monetary.c: Likewise.
8492         * locale/programs/ld-measurement.c: Likewise.
8493         * locale/programs/charmap-dir.c: Likewise.
8494         * locale/programs/ld-identification.c: Likewise.
8495         * locale/programs/localedef.h: Likewise.
8496         * locale/programs/charmap-dir.h: Likewise.
8497         * locale/programs/repertoire.c: Likewise.
8498         * locale/programs/simple-hash.h: Likewise.
8499         * locale/programs/ld-telephone.c: Likewise.
8500         * locale/programs/locale-spec.c: Likewise.
8501         * locale/programs/locfile-token.h: Likewise.
8502         * posix/getconf.c: Likewise.
8503         * iconv/dummy-repertoire.c: Likewise.
8504         * iconv/iconv_charmap.c: Likewise.
8505         * iconv/iconvconfig.c: Likewise.
8506         * iconv/iconv_prog.c: Likewise.
8507         * malloc/memusagestat.c: Likewise.
8508         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
8510 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8512         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
8513         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
8514         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
8515         check for the first argument.
8517 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
8519         [BZ #4775]
8520         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
8521         (__tgmath_real_type): Fix if expr is const int or other const
8522         qualified integral type.
8523         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
8524         expressions and handle const qualified arguments.
8525         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
8526         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
8527         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
8528         statement expressions.
8529         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
8530         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
8531         (__TGMATH_UNARY_IMAG): Define.
8532         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
8533         * math/Makefile (tests): Add test-tgmath2.
8534         (CFLAGS-test-tgmath2.c): Add.
8535         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
8536         count_cfloat, count_cldouble): New variables.
8537         (NCCALLS): Define.
8538         (main): Check number of complex calls as well.
8539         (F(compile_test)): Add complex tests and tests with const qualified
8540         arguments.
8541         (y, z, ccount): Define.
8542         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
8543         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
8544         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
8545         F(cproj)): New functions.
8546         * math/test-tgmath2.c: New test.
8548 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
8550         [BZ #4776]
8551         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
8552         RPATH etc. as "/" rather than "", don't segfault on empty paths,
8553         instead output ".".
8554         * dlfcn/Makefile (distribute): Add glreflib3.c.
8555         (module-names): Add glreflib3.
8556         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
8557         glreflib1.so.
8558         (LDFLAGS_glreflib3.so): New.
8559         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
8560         glreflib1.so.
8561         * dlfcn/glreflib3.c: New file.
8563         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
8564         returned -1, return NULL.
8565         * intl/explodename.c (_nl_explode_name): Return -1 if
8566         _nl_normalize_codeset failed.
8568 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
8570         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
8571         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
8572         and avoid branch misspredicts for > 31 bytes memset case.
8573         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
8574         Remove toc ref to __cache_line_size.
8576         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
8577         to get ISA-V2.0 branch hints.
8578         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
8579         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
8580         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
8581         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
8582         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
8583         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
8584         Remove toc ref to __cache_line_size.
8586         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
8587         Include math_ldbl_opt.h.
8589 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
8591         [BZ #4773]
8592         * time/strptime_l.c (__strptime_internal): Implement greedy
8593         matching of weekday and month names.
8595 2007-07-09  Roland McGrath  <roland@redhat.com>
8597         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
8598         (ELF_NOTE_ABI): Use it.
8599         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
8601 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
8603         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
8604         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
8606 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
8608         [BZ #4745]
8609         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
8610         in loop to look for conversion specifier to avoid testing of
8611         wrong errno value.
8612         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
8613         * stdio-common/bug18.c: New file.
8614         * stdio-common/bug18a.c: New file.
8615         * stdio-common/bug19.c: New file.
8616         * stdio-common/bug19a.c: New file.
8618 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
8620         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
8621         running awk script.
8623 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
8625         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
8626         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
8627         Return NULL if mmap failed instead of asserting it does not.
8628         (calloc): Check for integer overflow.
8630         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
8631         than LONG_MAX / 10.
8633 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
8635         [BZ #4702]
8636         * nis/nss-default.c: Include errno.h.
8637         (init): Preserve errno.
8639 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
8641         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
8643 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
8645         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
8647 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8649         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
8651 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8653         * sysdeps/s390/dl-procinfo.c: New file.
8654         * sysdeps/s390/dl-procinfo.h: New file.
8655         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
8657 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
8659         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
8660         in PT_NOTE segments with multiple notes.
8661         * elf/readelflib.c (process_elf_file): Likewise.
8663 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
8665         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
8666         ISO C compliant.
8668 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
8670         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
8672 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
8674         * include/link.h: Don't include rtld-lowlevel.h.
8675         (struct link_map): Remove l_scope_lock.
8676         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
8677         (_dl_scope_free_list): New field (variable) in _rtld_global.
8678         (DL_LOOKUP_SCOPE_LOCK): Remove.
8679         (_dl_scope_free): New prototype.
8680         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
8681         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
8682         (_dl_profile_fixup): Likewise.
8683         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
8684         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
8685         THREAD_GSCOPE_RESET_FLAG around it.
8686         * elf/dl-close.c (_dl_close_worker): Don't use
8687         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
8688         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
8689         scopes were queued or if l_scope_mem has been abandoned.
8690         * elf/dl-open.c (_dl_scope_free): New function.
8691         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
8692         * elf/dl-support.c (_dl_scope_free_list): New variable.
8693         * elf/dl-lookup.c (add_dependency): Remove flags argument.
8694         Remove DL_LOOKUP_SCOPE_LOCK handling.
8695         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
8696         handling.
8697         * elf/dl-object.c (_dl_new_object): Don't use
8698         __rtld_mrlock_initialize.
8700 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
8702         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
8703         to fill in holes
8704         (rtld_global_ro): Likewise.
8706 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
8708         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
8709         Move PT_LOAD checking to...
8710         (_dl_addr_inside_object): ... here, new function.
8711         * elf/dl-sym.c (do_sym): If not l_contiguous,
8712         call _dl_addr_inside_object.
8713         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
8714         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
8715         * elf/dl-open.c (dl_open_worker): Likewise.
8716         (_dl_addr_inside_object): New function if IS_IN_rtld.
8717         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
8718         holes are present or are PROT_NONE protected.
8719         * include/link.h (struct link_map): Add l_contiguous field.
8720         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
8722 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
8723             Tomas Janousek  <tjanouse@redhat.com>
8724             Ulrich Drepper  <drepper@redhat.com>
8726         [BZ #4647]
8727         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
8728         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
8729         socket.
8730         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
8731         unused member a bitmap.
8732         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
8733         servers are configured.
8735 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
8737         * elf/rtld.c (dl_main): Don't call init_tls more than once.
8739 2007-06-17  Andreas Schwab  <schwab@suse.de>
8741         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
8743 2007-06-16  Andreas Jaeger  <aj@suse.de>
8745         [BZ #4125]
8746         * sysdeps/unix/sysv/linux/sys/ptrace.h
8747         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
8748         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
8749         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
8750         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
8751         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
8752         Define.
8753         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8754         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8755         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8756         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8758 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
8760         [BZ #4599]
8761         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
8762         determining whether there are IPv4/IPv6 addresses, ignore loopback
8763         addresses.
8765 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
8767         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
8768         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
8769         as the return type.  Change type of "r" variable to CMPtype.
8770         * soft-fp/eqsf2.c (__eqsf2): Likewise.
8771         * soft-fp/eqtf2.c (__eqtf2): Likewise.
8772         * soft-fp/gedf2.c (__gedf2): Likewise.
8773         * soft-fp/gesf2.c (__gesf2): Likewise.
8774         * soft-fp/getf2.c (__getf2): Likewise.
8775         * soft-fp/ledf2.c (__ledf2): Likewise.
8776         * soft-fp/lesf2.c (__lesf2): Likewise.
8777         * soft-fp/letf2.c (__letf2): Likewise.
8778         * soft-fp/unorddf2 (__unorddf2): Likewise.
8779         * soft-fp/unordsf2 (__unordsf2): Likewise.
8780         * soft-fp/unordtf2 (__unordtf2): Likewise.
8782 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
8784         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
8785         make sure gcc doesn't mess around with this.
8787 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
8789         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
8791 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
8793         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
8794         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
8795         at most once per _dl_close_worker.
8797 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
8799         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
8800         __sched_cpucount as const.
8801         * posix/sched_cpucount.c: Adjust.
8803         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
8804         instruction for counting bits.
8805         * sysdeps/x86_64/sched_cpucount.c: New file.
8807 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
8809         * configure.in: Avoid variable named BASH.
8810         * config.make.in: Likewise.
8811         Patch in part by Mike Frysinger.
8813 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
8815         [BZ #4586]
8816         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
8817         pseudo-zeros as zero.
8818         * sysdeps/x86_64/ldbl2mpn.c: New file.
8819         * sysdeps/ia64/ldbl2mpn.c: New file.
8821 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
8823         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
8824         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
8825         Remove unreachable code at the end.
8827 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
8829         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
8830         ldbl-128ibm in comment.
8831         (fpclassifyl): Correct classification of denormals.
8832         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
8833         return value for MIN denormal. Rewrite using long double math too
8834         correctly handle denormals and canonicalize the results.
8836 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
8838         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
8839         (__mpn_construct_long_double): Fix conversion where result ought
8840         to be smaller than __LDBL_MIN__, or the low double should be
8841         denormal.  Fix decision where to negate low double - honor round
8842         to even rules.
8843         * stdio-common/tst-sprintf2.c: Include string.h.
8844         (COMPARE_LDBL): Define.
8845         (TEST): Also test whether a string hexadecimal float representation
8846         can be parsed back to the number.
8847         (main): Add a couple of further tests.
8849 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
8851         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
8852         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
8853         is non-zero, but smaller than 2 * __DBL_MIN__.
8854         * stdio-common/tst-sprintf2.c: New test.
8855         * stdio-common/Makefile (tests): Add tst-sprintf2.
8857         * math/test-misc.c (main): Don't run last batch of tests with
8858         IBM long double format.
8860 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
8862         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
8863         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
8864         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
8865         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
8866         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8867         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
8868         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
8869         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
8870         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
8871         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
8873         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
8874         New file.
8875         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
8876         New file.
8877         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
8878         New file.
8879         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
8880         New file.
8881         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
8882         New file.
8883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
8884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
8885         New file.
8886         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
8887         New file.
8888         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
8889         New file.
8890         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
8891         New file.
8892         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
8893         New file.
8895 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
8897         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
8898         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
8899         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
8900         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
8901         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
8902         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
8903         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
8904         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
8906 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
8908         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
8909         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8910         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
8911         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8912         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
8913         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8914         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
8915         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8917 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
8919         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
8920         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
8921         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
8922         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
8924 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
8926         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
8927         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
8929 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
8931         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
8932         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
8933         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
8934         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
8936 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
8938         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
8939         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
8941 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
8943         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
8944         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
8946         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
8947         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
8948         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
8949         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
8951 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
8953         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
8954         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
8955         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
8956         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
8958 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
8960         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
8961         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
8962         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
8963         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8964         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
8965         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8967 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
8969         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
8970         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
8971         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
8972         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
8974 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
8976         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
8977         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
8978         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
8979         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
8980         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
8981         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
8982         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
8983         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
8984         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
8985         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
8986         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
8987         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
8988         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
8989         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
8990         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
8991         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
8993 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
8995         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
8996         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
8998 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
9000         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
9001         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
9003 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9005         * sysdeps/powerpc/powerpc32/970/Implies: New file.
9006         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
9007         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
9008         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
9009         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
9010         * sysdeps/powerpc/powerpc64/970/Implies: New file.
9011         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
9012         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
9013         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
9014         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
9016 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
9018         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
9020 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
9022         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
9023         branch miss-predicts. Ensure that cache line crossing does not impact
9024         dispatch grouping.
9026 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
9028         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
9029         "../../powerpc32/power4/memcopy.h".
9030         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
9031         "../../powerpc32/power4/wordcopy.c".
9033 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
9035         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
9036         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
9037         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
9038         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
9039         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
9040         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
9042 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
9044         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
9046 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
9048         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
9049         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
9050         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
9051         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
9052         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
9053         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
9054         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
9055         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
9057 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
9059         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
9061 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
9063         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
9064         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
9065         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
9066         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
9067         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
9068         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
9069         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
9071 2007-05-29  Roland McGrath  <roland@redhat.com>
9073         * po/Makefile (po-sed-cmd): New variable.
9074         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
9076 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
9078         * crypt/md5-crypt.c: Fix comment.
9080         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
9081         of crashing.  When this is the case or if the reply is malformed,
9082         don't try to close the new file descriptor since it does not
9083         exist.
9084         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
9086 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
9088         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
9089         if __NR_utimensat is not defined.
9091 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
9093         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
9095 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
9097         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
9098         (open): Fix comment typos.  Don't call __open_2 if flags
9099         is a compile time constant without O_CREAT.
9100         (__open64_2): Add nonnull attribute.
9101         (open64): Fix comment typos.  Don't call __open64_2 if flags
9102         is a compile time constant without O_CREAT.
9103         (__openat_2): Add nonnull attribute, fix nonnull attribute
9104         on redirect.
9105         (openat): Fix comment typos.  Don't call __openat_2 if flags
9106         is a compile time constant without O_CREAT.
9107         (__openat64_2): Add nonnull attribute, fix nonnull attribute
9108         on redirect.
9109         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
9110         is a compile time constant without O_CREAT.
9112 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
9114         * Makerules (sysd-rules): Define PTW for ptw-* files.
9115         * Versions: Define GLIBC_2.7 for libc.
9116         * include/stdio.h: Declare __fortify_fail.
9117         * debug/fortify_fail.c: New file.
9118         * debug/Makefile (routines): Add fortify_fail.
9119         * debug/chk_fail.c: Use __fortify_fail.
9120         * debug/stack_chk_fail.c: Likewise.
9121         * io/Versions: Export __open_2, __open64_2, __openat_2, and
9122         __openat64_2 for GLIBC_2.7.
9123         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
9124         * io/open.c: Define *_2 variant of function which checks for O_CREAT
9125         and fails if necessary.
9126         * io/open64.c: Likewise.
9127         * io/openat.c: Likewise.
9128         * io/openat64.c: Likewise.
9129         * sysdeps/unix/sysv/linux/open64.c: Likewise.
9130         * sysdeps/unix/sysv/linux/openat.c: Likewise.
9131         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
9132         * io/bits/fcntl2.h: New file.
9133         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
9134         __openat64_2.
9135         * include/bits/fcntl2.h: New file.
9136         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9137         Add open_2.
9138         * sysdeps/unix/sysv/linux/open_2.c: New file.
9140 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
9142         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
9143         as second parameter to handle_intel.
9145         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
9146         the entry.
9148         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
9149         handling to ...
9150         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
9151         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
9152         cacheinfo.
9153         * sysdeps/x86_64/memcpy.S: Complete rewrite.
9154         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
9155         Patch by Evandro Menezes <evandro.menezes@amd.com>.
9157         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
9159 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
9161         [BZ #4525]
9162         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
9163         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
9164         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
9166         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
9168         [BZ #4514]
9169         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
9170         reinitialize workend at the start of each do_positional format spec
9171         loop, free workstart before do_positional loops.
9172         (printf_unknown): Fix size of work_buffer.
9173         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
9175         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
9176         (public_sET_STATe): If ms->version < 3, put all chunks into
9177         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
9178         chunks.
9180         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
9181         * malloc/hooks.c: Likewise.
9182         * malloc/arena.c: Likewise.
9183         * malloc/malloc.c (do_check_malloc_state): Don't assert
9184         n_mmaps is not greater than n_mmaps_max.  This removes the need
9185         for the previous change.
9187         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
9188         2007-05-07 commit.
9190 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
9192         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
9193         Define for kernel >= 2.6.22.
9195 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
9197         * elf/dl-close.c (_dl_close_worker): When removing object from
9198         global scope, wait for all lookups to finish afterwards.
9199         * elf/dl-open.c (add_to_global): When global scope array must
9200         grow, allocate a new one and free old array only after all
9201         lookups finish.
9202         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
9203         (_dl_lookup_symbol_x): Likewise.
9204         * elf/dl-support.c: Define _dl_wait_lookup_done.
9205         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9206         _dl_wait_lookup_done.
9208         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
9209         not overlapping with arena.
9211         * malloc/mcheck.c (reallochook): If size==0, free the block.
9213         * rt/tst-shm.c: Use fstat64 instead of fstat.
9215         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
9216         __NR_sync_file_range is not defined.
9218 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
9220         Dummy files to prevent stub versions from being used.
9221         * sysdeps/x86_64/fpu/k_cosl.c: New file.
9222         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
9223         * sysdeps/x86_64/fpu/k_sinl.c: New file.
9224         * sysdeps/x86_64/fpu/k_tanl.c: New file.
9226         * version.h (VERSION): Set to 2.6.90.
9228 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
9230         * version.h (VERSION): Define to 2.6.
9231         * include/features.h (__GLIBC_MINOR__): Define to 6.
9233         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
9235         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
9236         sizes.
9238 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
9240         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
9241         number of mmaps.  n_mmaps_max is the target.
9242         * malloc/hooks.c: Likewise.
9243         * malloc/arena.c: Likewise.
9245 2007-05-12  Andreas Jaeger  <aj@suse.de>
9247         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
9248         getpid.
9250 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
9252         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
9253         adding new variables.
9255         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
9256         optimize.  Completely extend global scope array before making the
9257         new entries visible.
9259 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
9261         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
9262         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
9263         tst-getcpu.
9265         * include/link.h: Move l_version and l_nversion members around to
9266         fill gaps.
9268         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
9270         * sysdeps/unix/sysv/linux/sched_setaffinity.c
9271         (__sched_setaffinity_new): If syscall was successful and
9272         RESET_VGETCPU_CACHE is defined, use it before returning.
9273         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
9275         * io/sys/stat.h: Make sure struct timespec is defined for
9276         __USE_ATFILE.
9278         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
9279         UTIME_OMIT.
9280         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
9281         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
9282         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
9283         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
9284         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
9285         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
9286         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
9287         * io/sys/stat.h: Declare utimensat, futimens.
9288         * io/utimensat.c: New file.
9289         * io/futimens.c: New file.
9290         * sysdeps/unix/sysv/linux/utimensat.c: New file.
9291         * sysdeps/unix/sysv/linux/futimens.c: New file.
9292         * io/Makefile (routines): Add utimensat, futimens.
9293         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
9294         * sysdeps/unix/sysv/linux/lutimes.c: New file.
9295         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
9296         available.
9298         * include/sys/cdefs.h: Redefine __nonnull so that test for
9299         incorrect parameters in the libc code itself are not omitted.
9301 2006-07-02  Jakub Jelinek  <jakub@redhat.com>
9303         * nscd/connections.c (sighup_pending): New variable.
9304         (nscd_run): If sighup_pending, prune all 3 caches.
9305         (sighup_handler): Don't prune caches here, rather just set
9306         sighup_pending flag.
9308 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
9310         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
9311         exception in addition to inexact when asked to raise only FE_INEXACT.
9313         [BZ #3427]
9314         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
9315         in *envp.
9317 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
9319         [BZ #4403]
9320         * string/strfry.c (strfry): Make result more random.
9322 2007-05-07  Richard Henderson  <rth@redhat.com>
9324         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
9325         if __NO_LONG_DOUBLE_MATH.
9326         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
9327         available in the compiler, add .arch directive to the assembly.
9329 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
9331         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
9332         compat_symbol to GLIBC_2_1.
9333         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
9334         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
9335         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
9336         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
9337         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
9338         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
9339         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
9340         libc, not libm.
9341         (__isnanl): New compat_symbol.
9343 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
9344             Jakub Jelinek  <jakub@redhat.com>
9346         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
9347         (new_heap): Initialize mprotect_size.
9348         (grow_heap): When growing, only mprotect from mprotect_size till
9349         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
9350         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
9352 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
9353             Peter Bergner  <bergner@us.ibm.com>
9355         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
9356         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
9357         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
9358         * sysdeps/powerpc/fpu/fe_mask.c: New file.
9359         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
9360         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
9361         Call __fe_mask_env() if all FP exceptions disabled.
9362         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
9363         from old FPSCR to new fenv to propagate DFP rounding modes.
9364         Call __fe_mask_env() if FP exceptions previously enabled.
9365         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
9366         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
9367         transitioning from all exceptions disabled to any exception enabled
9368         or visa versa.
9369         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
9370         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
9371         when transitioning from all exceptions disabled to any exception
9372         enabled or visa versa.
9373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
9374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
9375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
9376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
9377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
9378         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
9380 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
9382         [BZ #4465]
9383         * posix/unistd.h: Remove __THROW from fdatasync.
9385 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
9387         [BZ #4465]
9388         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
9390 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
9392         * stdio-common/vfprintf.c (process_string_arg): Optimize
9393         ridiculous precision in wide char code printing multi-byte string.
9394         Reported by Jim Meyering <jim@meyering.net>.
9396         [BZ #4131]
9397         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
9398         boundaries to work around systems with overlapping binary loading.
9399         Based on a patch by Suzuki <suzuki@in.ibm.com>.
9401 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
9403         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
9404         __mbsnrtowcs after last change.
9406         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
9407         (get_ident): Likewise.
9409 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
9411         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
9412         with setting the sticky bit.
9413         * math/test-misc.c (main): Add more truncation tests.
9415 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
9417         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
9418         double in the function declaration.
9419         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
9420         double in the function declaration.
9421         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9422         float in the function declaration.
9423         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9424         float in the function declaration.
9426         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
9427         denormal operands.  Do not generate FP_EX_DENORM exception.
9428         (FP_UNPACK_RAW_EP): Ditto.
9429         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
9430         undefined _FP_UNPACK_RAW_E.
9431         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
9432         undefined _FP_UNPACK_RAW_EP.
9433         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
9434         undefined _FP_PACK_RAW_E.
9435         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
9436         undefined _FP_PACK_RAW_EP.
9438         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
9439         _FP_FRAC_COPY_2.
9440         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
9441         _FP_FRAC_COPY_4.
9443 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
9444             Jakub Jelinek  <jakub@redhat.com>
9446         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
9447         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
9448         this case.
9449         * soft-fp/op-common.h (FP_TRUNC): Ditto.
9451 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
9453         * math/test-misc.c (main): Add tests for rounding long double
9454         values close to smallest double denormalized value to double.
9456 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
9458         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
9459         condition for truncating to 0.  Set sticky bit for such
9460         truncation.
9462 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
9464         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
9465         fixed length array for ignore.
9467 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
9469         [BZ #4438]
9470         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
9471         stack for large precisions.
9472         * stdio-common/test-vfprintf.c (main): Add test for large
9473         precision.
9475 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
9477         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
9478         for exponent 0.
9479         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
9481         [BZ #4439]
9482         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
9483         account in the size check.
9484         * resolv/tst-inet_ntop.c: New test.
9485         * resolv/Makefile (tests): Add tst-inet_ntop.
9487 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
9488             Jakub Jelinek  <jakub@redhat.com>
9490         [BZ #4349]
9491         * malloc/malloc.c: Keep separate list for first blocks on the bin
9492         lists with a given size.  This helps skipping over list elements
9493         we know won't fit in two places.
9494         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
9496 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
9498         [BZ #4102]
9499         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
9500         label to Teredo tunnel addresses 2001://32.
9502 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
9504         * locale/programs/ld-collate.c (collate_read): Allow order_start
9505         after copy.
9507         * locale/programs/ld-collate.c (collate_read): Fix printing of
9508         error message.
9510         [BZ #3213]
9511         * locale/C-translit.h.in: Add entry for U2044.
9513         [BZ #4342]
9514         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
9515         hexa-decimal floats without exponent.
9516         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
9518 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
9520         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
9521         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
9522         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
9523         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
9524         GLIBC_2.6.
9525         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
9526         Add sched_getcpu.
9528 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
9530         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
9531         of 0 after the out_fail label.
9533 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
9535         [BZ #4406]
9536         * iconv/gconv_charset.h (strip): Allow ':'.
9537         * iconv/iconv_open.c (iconv_open): Adjust comment.
9539 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
9541         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
9542         version.
9544 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
9546         [BZ #4381]
9547         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
9548         alignment of buffer and tmp_buffer.
9549         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
9550         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
9551         alignment of buffer.
9552         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
9553         bigger than INT_MAX.
9554         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
9555         h_errnop arguments.  Fail if buflen is too small.
9556         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
9558 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
9560         [BZ #4405]
9561         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
9562         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
9564 2007-04-22  Roland McGrath  <roland@redhat.com>
9566         * elf/elf.h (NT_PRXFPREG): New macro.
9568 2007-04-19  Andreas Jaeger  <aj@suse.de>
9570         [BZ #3905]
9571         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
9572         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
9573         Added.
9575 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
9577         * include/sys/mman.h: Mark madvise hidden.
9578         * misc/madvise.c: Add libc_hidden_def.
9580 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
9582         * nis/nis_domain_of.c (__nis_domain_of): New function.
9583         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
9584         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
9585         * nis/nis_call.c (rec_dirsearch): Likewise.
9586         (first_shoot): Likewise.  Remove search_parent_first argument.
9587         (struct nis_server_cache): Rename search_parent_first field
9588         to search_parent.
9589         (nis_server_cache_search, nis_server_cache_add): Rename
9590         search_parent_first argument to search_parent.
9591         (__nisfind_server): Likewise.  If search_parent, call
9592         __nis_domain_of.
9594 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
9596         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
9598 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
9600         [BZ #4368]
9601         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
9603 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
9605         * locale/programs/locarchive.c (add_alias, insert_name): Remove static.
9607 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
9609         [BZ #4364]
9610         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
9612 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
9614         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
9615         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
9616         current number of locales in SUPPORTED.
9617         (create_archive): Initialize serial.
9618         (enlarge_archive): Preserve aliases rather than duplicating
9619         their locrecs.
9621 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
9623         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
9624         after _IO_un_link, not before it.
9626         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
9627         special case handling when wcp == wstartp + 1.  Fix a comment typo.
9628         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
9630 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
9632         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
9633         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
9634         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
9635         Remove __THROW.
9636         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
9637         _IO_file_xsgetn_maybe_mmap): Likewise.
9638         * libio/oldfileops.c (old_do_write): Likewise.
9639         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
9640         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
9641         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
9642         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
9643         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
9644         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
9645         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
9646         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
9647         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
9648         _IO_file_underflow, _IO_file_underflow_mmap,
9649         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
9650         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
9651         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
9652         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
9653         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
9654         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
9655         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
9656         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
9657         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
9658         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
9659         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
9660         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
9661         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
9662         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
9663         _IO_adjust_column_internal, _IO_default_uflow_internal,
9664         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
9665         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
9666         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
9667         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
9668         _IO_file_close_it_internal, _IO_file_underflow_internal,
9669         _IO_file_overflow_internal, _IO_file_attach_internal,
9670         _IO_file_fopen_internal, _IO_file_sync_internal,
9671         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
9672         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
9673         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
9674         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
9675         _IO_seekpos_unlocked): Likewise.
9676         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
9677         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
9679 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
9681         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
9682         argument in xmalloc size computation.
9684 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
9686         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
9687         math_opt_barrier and math_force_eval macros.
9689 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
9691         [BZ #3306]
9692         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
9693         * sysdeps/i386/fpu/math_private.h: New file.
9694         * sysdeps/x86_64/fpu/math_private.h: New file.
9695         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
9696         math_force_eval macros.  Use "+m" constraint on asm rather than
9697         "=m" and "m".
9698         * math/s_nextafter.c (__nextafter): Likewise.
9699         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
9700         Likewise.
9701         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
9702         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
9703         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9704         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
9705         math_opt_barrier and math_force_eval macros.
9706         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
9707         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
9708         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
9709         (__nexttoward): Use math_opt_barrier and
9710         math_force_eval macros.  Use "+m" constraint on asm rather than
9711         "=m" and "m".  Only use asm to force double result if
9712         FLT_EVAL_METHOD is 2.
9713         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
9714         (__nexttowardf): Use math_opt_barrier and
9715         math_force_eval macros.  Use "+m" constraint on asm rather than
9716         "=m" and "m".  Only use asm to force double result if
9717         FLT_EVAL_METHOD is not 0.
9718         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
9719         (__nexttowardf): Use math_opt_barrier and
9720         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
9721         x to float using asm.
9722         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
9723         (__nldbl_nexttowardf): Use math_opt_barrier and
9724         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
9725         x to float using asm.
9726         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
9727         (__nexttowardf): Use math_opt_barrier and math_force_eval
9728         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
9729         * math/bug-nextafter.c (zero, inf): New variables.
9730         (main): Add new tests.
9731         * math/bug-nexttoward.c (zero, inf): New variables.
9732         (main): Add new tests.
9734 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
9736         [BZ #3427]
9737         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
9738         exceptions both in SW and MXCSR.
9739         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
9740         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
9741         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
9742         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9743         in MXCSR if SSE is available.
9744         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
9745         and ldsodefs.h.
9746         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
9747         Fix comment typo.
9748         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
9749         Return 0 rather than 1.
9750         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
9751         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
9752         * math/test-fenv.c (feholdexcept_tests): New function.
9753         (main): Call it.
9755 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
9757         [BZ #3427]
9758         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9759         in SW.
9761 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
9763         [BZ #4344]
9764         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
9765         Reported by David Anderson <davea42@earthlink.net>.
9767 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
9769         * posix/sys/wait.h: Remove unnecessary forward declaration.
9771 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
9773         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
9774         with obj->do_servers after first_shoot.
9776 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
9778         * posix/Makefile (routines): Add sched_cpucount.
9779         (tests): Add tst-cpucount.
9780         * posix/sched_cpucount.c: New file.
9781         * posix/tst-cpucount.c: New file.
9782         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
9783         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
9784         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
9785         * posix/sched.h: Define CPU_COUNT.
9787 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
9789         * posix/fnmatch.c (STRUCT): Define.
9790         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
9791         * posix/fnmatch_loop.c (struct STRUCT): New type.
9792         (FCT): Add ends argument.  If ends != NULL and normal * is
9793         seen in the pattern, store current pattern and string pointers
9794         and return.  Adjust recursive calls.
9795         (EXT): Adjust FCT callers.
9796         (STRUCT): Undef at the end of the file.
9797         * posix/Makefile (tests): Add tst-fnmatch2.
9798         * posix/tst-fnmatch2.c: New test.
9800 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
9802         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
9803         and 1 on failure.
9805         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
9806         Change last argument to unsigned int.
9808 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
9810         * scripts/check-local-headers.sh: Filter out sys/capability.h.
9812 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
9814         * config.h.in (HAVE_LIBCAP): Add.
9815         * nscd/selinux.h: Include sys/capability.h rather than non-existent
9816         sys/capabilities.h.
9817         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
9818         free_caps.  Cast away const from 4th cap_set_flag argument.
9820 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
9822         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
9823         GLIBC_2.6.
9824         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9825         Add sync_file_range.
9826         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
9828 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
9830         * sysdeps/powerpc/bits/atomic.h
9831         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
9832         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
9833         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9834         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
9835         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9836         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
9837         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
9838         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9839         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9840         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9841         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
9842         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9843         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9844         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9845         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9846         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
9847         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9848         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
9849         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9850         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
9852 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
9854         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9855         (__cache_line_size): Define the variable here.  Add
9856         attribute_hidden, remove weak_extern.
9857         (__libc_start_main): Set __cache_line_size
9858         unconditionally.
9859         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
9860         (__cache_line_size): Define the variable here.  Add
9861         attribute_hidden, remove weak_extern.
9862         (DL_PLATFORM_AUXV): Set __cache_line_size
9863         unconditionally.
9864         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
9865         weak_extern, add attribute_hidden.
9866         (__elf_machine_runtime_setup): Assume __cache_line_size is always
9867         defined in ld.so.
9868         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
9869         definition.
9870         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
9872 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
9874         [BZ #4276]
9875         * timezone/africa: Update from tzdata2007d.
9876         * timezone/asia: Likewise.
9877         * timezone/australasia: Likewise.
9878         * timezone/backward: Likewise.
9879         * timezone/europe: Likewise.
9880         * timezone/iso3166.tab: Likewise.
9881         * timezone/leapseconds: Likewise.
9882         * timezone/northamerica: Likewise.
9883         * timezone/southamerica: Likewise.
9884         * timezone/zone.tab: Likewise.
9886         * timezone/private.h: Update from tzcode2007d.
9887         * timezone/zdump.c: Likewise.
9888         * timezone/zic.c: Likewise.
9890 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
9892         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
9893         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
9894         variables.
9895         (nis_server_cache_search, nis_server_cache_add): New functions.
9896         (__nisfind_server): Use them.  Add dbp and flags argument, if
9897         call __nisbind_create.
9898         (__nisbind_create): Add server_used and current_ep arguments,
9899         only call __nis_findfastest if server_used is ~0.
9900         (__do_niscall2, __prepare_niscall): Adjust callers.
9901         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
9902         ckey_cache_euid, ckey_cache_lock): New variables.
9903         (get_ckey): New function.
9904         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
9905         __pmap_getnisport.  Save __pmap_getnisport result in
9906         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
9907         key.
9908         * nis/nis_lookup.c (nis_lookup): Likewise.
9909         * nis/nis_table.c (nis_list): Likewise.
9910         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
9911         prototypes.
9913         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
9914         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
9915         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
9916         _nss_nisplus_getservbyport_r): Likewise.
9917         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
9918         _nss_nisplus_getnetbyaddr_r): Likewise.
9919         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
9920         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
9921         _nss_nisplus_getntohost_r): Likewise.
9922         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
9923         _nss_nisplus_getrpcbynumber_r): Likewise.
9925 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
9927         * configure.in (libc_cv_gnu89_inline): Only do compile test.
9928         * configure: Rebuilt.
9930         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
9931         bit-fields.
9932         * soft-fp/extended.h (_FP_UNION_E): Likewise.
9934 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
9936         [BZ #2831]
9937         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
9938         bit-fields.
9940 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
9942         * nscd/gai.c: Include alloca.h.
9943         (__libc_use_alloca): Define.
9945 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
9947         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
9948         smaller scopes.
9949         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
9950         (DL_DST_REQUIRED): Adjust user.
9952         * include/dlfcn.h (struct link_map): New forward decl.
9954         * inet/getnameinfo.c: Include stddef.h.
9955         (getnameinfo): Use offsetof.
9957         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
9959         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
9961         * string/strerror_l.c: Include stdlib.h.
9963         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
9964         * config.make.in (gnu89-inline-CFLAGS): New variable.
9965         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
9966         -std=gnu99.
9967         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
9968         * argp/argp.h: Use it.
9969         * bits/mathinline.h: Likewise.
9970         * bits/sigset.h: Likewise.
9971         * bits/string.h: Likewise.
9972         * ctype/ctype.h: Likewise.
9973         * hurd/hurd.h: Likewise.
9974         * hurd/hurd/fd.h: Likewise.
9975         * hurd/hurd/port.h: Likewise.
9976         * hurd/hurd/signal.h: Likewise.
9977         * hurd/hurd/threadvar.h: Likewise.
9978         * hurd/hurd/userlink.h: Likewise.
9979         * io/sys/stat.h: Likewise.
9980         * libio/bits/stdio.h: Likewise.
9981         * libio/bits/stdio2.h: Likewise.
9982         * mach/lock-intern.h: Likewise.
9983         * mach/mach/mig_support.h: Likewise.
9984         * math/bits/cmathcalls.h: Likewise.
9985         * posix/bits/unistd.h: Likewise.
9986         * socket/bits/socket2.h: Likewise.
9987         * stdlib/bits/stdlib.h: Likewise.
9988         * stdlib/stdlib.h: Likewise.
9989         * string/argz.h: Likewise.
9990         * string/bits/string2.h: Likewise.
9991         * string/bits/string3.h: Likewise.
9992         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
9993         * sysdeps/generic/inttypes.h: Likewise.
9994         * sysdeps/generic/machine-lock.h: Likewise.
9995         * sysdeps/generic/machine-sp.h: Likewise.
9996         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
9997         * sysdeps/i386/i486/bits/string.h: Likewise.
9998         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
9999         * sysdeps/mach/alpha/machine-lock.h: Likewise.
10000         * sysdeps/mach/alpha/machine-sp.h: Likewise.
10001         * sysdeps/mach/i386/machine-lock.h: Likewise.
10002         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10003         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
10004         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
10005         * sysdeps/s390/bits/string.h: Likewise.
10006         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
10007         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
10008         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
10009         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
10010         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10011         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
10012         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
10013         * wcsmbs/bits/wchar2.h: Likewise.
10014         * wcsmbs/wchar.h: Likewise.
10015         * stdlib/gmp.h: Likewise.  Include <features.h> to get
10016         __extern_inline definition.
10018 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
10020         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
10021         NULL.
10023         [BZ #3919]
10024         * math/libm-test.inc (log_test): Test -Inf and NaN.
10025         (log10_test, log1p_test, log2_test): Test -Inf.
10026         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
10027         FE_INVALID when argument is qNaN.
10028         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
10029         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
10030         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
10031         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
10032         andb $1, %ah with testb $1, %ah, don't test for parity, instead
10033         testb $4, %ah and jump if non-zero.
10034         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
10035         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
10037         [BZ #4101]
10038         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
10039         ancestors with the same depths.
10040         Patch by Niels Moeller <nisse@lysator.liu.se>.
10041         (filter_doc): Don't crash if argp is NULL.
10042         * argp/Makefile (tests): Add tst-argp2.
10043         * argp/tst-argp2.c: New test.
10045         [BZ #4130]
10046         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
10047         open_not_cancel_2.
10048         (updwtmp_file): Likewise.
10050         [BZ #4181]
10051         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
10052         (inet6_opt_append): Don't check extlen is big enough if extbuf
10053         is NULL.
10054         (inet6_opt_finish): Likewise.
10055         * inet/Makefile (tests): Add test-inet6_opt.
10056         * inet/test-inet6_opt.c: New test.
10058         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
10059         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
10060         NLMSG_ERR.  Instead use a page sized buffer.
10061         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
10062         buffer.
10064 2007-03-14  Richard Henderson  <rth@redhat.com>
10066         * sysdeps/alpha/fpu/s_llround.c: New file.
10067         * sysdeps/alpha/fpu/s_llroundf.c: New file.
10068         * sysdeps/alpha/fpu/s_lround.c: New file.
10069         * sysdeps/alpha/fpu/s_lroundf.c: New file.
10070         * sysdeps/alpha/fpu/s_round.c: New file.
10071         * sysdeps/alpha/fpu/s_roundf.c: New file.
10072         * sysdeps/alpha/fpu/s_trunc.c: New file.
10073         * sysdeps/alpha/fpu/s_truncf.c: New file.
10075         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
10076         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10077         * sysdeps/alpha/fpu/s_floor.c: Likewise.
10078         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10079         * sysdeps/alpha/fpu/s_rint.c: Likewise.
10080         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
10082         * sysdeps/alpha/fpu/s_fmax.S: New file.
10083         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
10084         * sysdeps/alpha/fpu/s_fmin.S: New file.
10085         * sysdeps/alpha/fpu/s_fminf.S: New file.
10086         * sysdeps/alpha/fpu/s_isnan.c: New file.
10087         * sysdeps/alpha/fpu/s_isnanf.c: New file.
10088         * sysdeps/alpha/fpu/s_llrint.c: New file.
10089         * sysdeps/alpha/fpu/s_llrintf.c: New file.
10090         * sysdeps/alpha/fpu/s_lrint.c: New file.
10091         * sysdeps/alpha/fpu/s_lrintf.c: New file.
10092         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
10093         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
10095         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
10096         (__fdimf, fdimf, __fdim, fdim): Remove.
10097         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
10098         (__isnanf, __isnan, __isnanl): New.
10100 2007-03-13  Richard Henderson  <rth@redhat.com>
10102         * sysdeps/ieee754/ldbl-128/Makefile: New file.
10104 2007-03-13  Richard Henderson  <rth@redhat.com>
10106         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
10107         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
10108         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
10109         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
10110         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
10111         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
10113 2007-03-13  Richard Henderson  <rth@redhat.com>
10115         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
10116         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
10117         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
10118         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
10119         Move to dl-auxv.h; initialize instead of extern weak.
10120         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
10121         weak symbol.
10122         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
10123         Extern instead of initialized.
10125 2007-03-13  Richard Henderson  <rth@redhat.com>
10127         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
10128         __sigsuspend_nocancel.
10130 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
10132         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
10133         172.16/12 address range.
10135 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
10137         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
10138         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
10139         message.
10141 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
10143         [BZ #4069]
10144         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
10145         earlier.
10146         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
10148         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
10149         for x qNaN and y either +-inf or non-integer value.
10150         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
10151         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
10152         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10154 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
10156         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
10157         from sysdep_headers.
10159 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
10161         * time/tzfile.c (find_transition): Instead of a linear search try to
10162         guess the transition index, use a linear search if the result is at
10163         most 10 transitions away from the guess or binary search otherwise.
10165 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
10167         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
10168         memory reallocation.
10170 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
10172         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
10173         and fix some typos.
10174         Optimize use of TOLOWER.
10176         [BZ #3325]
10177         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
10178         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10179         * sysdeps/i386/fpu/e_fmod.S: Likewise.
10181         [BZ #3458]
10182         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
10183         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
10185         [BZ #4076]
10186         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
10187         (open_dir_stream): Likewise.
10188         * io/Makefile (tests): Add bug-ftw5.
10189         * io/bug-ftw5.c: New file.
10191         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
10192         * nscd/servicescache.c (cache_addserv): Likewise.
10194         * nscd/grpcache.c (cache_addgr): In case a record changed on
10195         refresh, adjust key_copy.
10197         [BZ #4074]
10198         * nscd/pwdcache.c (cache_addpw): In case a record changed on
10199         refresh, adjust key_copy.
10201         [BZ #4070]
10202         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
10203         special cases.
10204         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
10206 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
10208         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
10209         optimization.
10211         * stdio-common/vfscanf.c: Small cleanups throughout.
10213 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
10215         [BZ #3325]
10216         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
10217         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10218         * sysdeps/i386/fpu/e_fmod.S: Likewise.
10219         Patch by Jared Casper <jaredcasper@gmail.com>.
10221         * sysdeps/unix/closedir.c: Outside libc don't use locking.
10222         * sysdeps/unix/opendir.c: Likewise.
10223         * sysdeps/unix/readdir.c: Likewise.
10225         [BZ #2211]
10226         * stdio-common/vfscanf.c: Handle localized digits etc for floating
10227         point numbers.
10228         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
10230         * stdio-common/vfscanf.c: Fix problems in width accounting.
10231         * stdio-common/tst-sscanf.c (double_tests): New tests.
10232         (main): Hook them up.
10234         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
10235         More simplifications of floating-point reader.
10237         * stdio-common/Makefile (tests): Add tst-swscanf.
10238         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
10239         testing.
10240         * stdio-common/tst-swscanf.c: New file.
10242 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
10244         [BZ #2633]
10245         * libio/stdio.h: Define struct _IO_FILE in global namespace.
10246         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
10247         Remove using for __jmp_buf_tag.
10248         * locale/locale.h (struct lconv): Also define in std namespace.
10249         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
10251         [BZ #3842]
10252         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
10253         using __libc_enable_secure.
10255         [BZ #3818]
10256         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
10258         [BZ #3745]
10259         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
10260         of names for ellipsises.
10262         [BZ #3348]
10263         * malloc/memusage.sh: Cleanups.
10264         * debug/xtrace.sh: Quoting and trap changes.
10266 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
10268         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
10270         * locale/iso-3166.def: Update entry for Serbia.
10271         * locale/iso-4217.def: Define RSD, remove CSD.
10273         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
10274         and 64-bit operations.
10276         [BZ #4040]
10277         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
10278         16-bit operations.
10280         * nscd/nscd.c (parse_opt): One more conversion to use send instead
10281         of writev.
10283 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
10285         [BZ #3991]
10286         * assert/assert.h (assert): Simplify.
10287         (assert_perror): Likewise.
10288         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
10290         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
10291         reqdata.
10293         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
10294         change: don't pass NULL in place of an integer.
10296 2007-02-02  Bruno Haible  <bruno@clisp.org>
10298         [BZ #3954]
10299         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
10300         Add mapping for U+327E.
10301         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
10302         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10303         mapping of 0xD9 0xE8.
10304         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
10305         mapping of U+327E.
10306         Reported by Jungshik Shin <jungshik@google.com>.
10308         [BZ #3955]
10309         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10310         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
10311         Reported by Jungshik Shin <jungshik@google.com>.
10313 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
10315         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
10316         byte variants.
10318         [BZ #4040]
10319         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
10320         byte variants.  Patch mostly be tom@tommay.net.
10322 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
10324         [BZ #3996]
10325         * posix/glob.c (attribute_hidden): Define if not defined.
10326         (glob): Unescape dirname, filename or username when needed and not
10327         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
10328         is NULL.  Handle unescaped [ in pattern without closing ].
10329         Don't pass GLOB_CHECK down to recursive glob for directories.
10330         (__glob_pattern_type): New function.
10331         (__glob_pattern_p): Implement using __glob_pattern_type.
10332         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
10333         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
10334         Remove unreachable code.
10335         * posix/globtest.sh: Add a couple of new tests.
10337 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
10339         * po/ru.po: Update from translation team.
10341 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
10343         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
10344         to the list of i486+ CPUs.
10345         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10347 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
10349         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
10350         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
10351         references.
10353 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
10355         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
10357         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
10358         * resolv/res_mkquery.c: Define __res_nopt.
10359         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
10360         try adding EDNS0 record.
10361         * resolv/res_send.c (send_dg): If request failed with FORMERR and
10362         EDNS0 record was send make sure we don't try it again.
10363         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
10364         * include/resolv.h: Declare __res_nopt.
10366 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
10368         [BZ #3944]
10369         * time/strptime_l.c (__strptime_internal): Set have_mon for
10370         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
10371         have been computed from tm_yday and tm_year.  Don't crash
10372         in day_of_the_week or day_of_the_year if not have_mon
10373         and tm_mon contains bogus value.
10374         * time/Makefile (tests): Add tst-strptime3.
10375         * time/tst-strptime3.c: New test.
10377 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
10379         [BZ #3957]
10380         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
10381         bit for RE_HAT_LISTS_NOT_NEWLINE.
10382         (build_charclass_op): Remove bogus comment.
10383         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
10384         * posix/bug-regex27.c: New test.
10385         * posix/bug-regex28.c: New test.
10387 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
10389         * po/sv.po: Update from translation team.
10391 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
10393         * nscd/nscd_helper.c (open_socket): Minor size optimization.
10395 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
10397         * include/locale.h (__uselocale): Add libc_hidden_proto.
10398         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
10400         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
10401         gettimeofday.
10403 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
10405         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
10406         returning.
10407         (PTR_DEMANGLE): Real definition now that it's not the same as
10408         PRT_MANGLE anymore.
10409         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10411         * string/strerror_l.c: New file.
10412         * string/Makefile (routines): Add strerror_l.
10413         * string/string.h: Declare strerror_l.
10414         * string/Versions: Export strerror_l for GLIBC_2.6.
10416 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
10418         * nscd/nscd_helper.c (open_socket): Now takes request type and key
10419         as parameter.  Construct request record.  Try sending request
10420         before the first poll use, it usually succeeds.  Adjust all
10421         callers.
10422         * nscd/nscd-client.h: Define MAXKEYLEN.
10423         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
10425 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
10427         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
10428         from return value.
10429         * nscd/nscd_helper.c: Include string.h.
10430         (__nscd_cache_search): Remove const qualifier from return value.
10431         On strict alignment architectures check hash entry and data head
10432         alignment.
10433         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
10434         mmapped data during GC cycle contains garbage.  If
10435         __nscd_drop_map_ref fails, decrement mapped->counter when returning
10436         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
10437         dropped to 0.
10438         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
10439         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
10440         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
10441         * nscd/nscd_getai.c (__nscd_getai): Likewise.
10442         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
10444 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
10446         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
10448 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
10450         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
10451         names not numbers in cfi_*.
10453 2007-01-26  Andreas Jaeger  <aj@suse.de>
10455         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
10456         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
10457         Correct values of PER_HPUX and PER_OSF4.
10459 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
10461         * elf/dl-minimal.c: Undefine _itoa first.
10462         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
10463         * malloc/mtrace.c: Revert last change.
10464         * posix/wordexp.c: Likewise.
10466 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
10468         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
10469         and __geode__ to the list of i486+ CPUs.
10470         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10472 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
10474         * stdio-common/_itoa.c: Include <limits.h>.
10475         * stdio-common/_itowa.c: Likewise.
10477 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
10479         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
10480         platforms.
10481         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
10482         64-bit platforms.
10483         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
10484         possible.
10485         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
10486         if possible.
10488         [BZ #3902]
10489         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
10490         * stdio-common/Makefile (tests): Add bug17.
10491         * stdio-common/bug17.c: New file.
10493 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
10495         * iconvdata/brf.c: New file.
10496         * iconvdata/testdata/BRF: New file.
10497         * iconvdata/testdata/BRF..UTF8: New file.
10498         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
10499         * iconvdata/Makefile: Add rules to build BRF.
10500         * iconvdata/TESTS: Add BRF entry.
10501         * iconvdata/gconv-modules: Likewise.
10502         * iconvdata/tst-tables.sh: Likewise.
10504 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
10506         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
10507         type `long long int', not `long int'.
10508         (wcstoq): Likewise.
10510 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
10512         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
10513         of values on 64-bit platforms which are too large.
10515 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
10516             Joe Kerian  <jkerian@us.us.ibm.com>
10518         [BZ #2749]
10519         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
10520         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
10521         (__copysignl): Use signbit() for comparison.
10522         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
10523         SET_LDOUBLE_WORDS64.
10525         [BZ #2423, #2749]
10526         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
10527         (__ceill): Remove calls to fegetround(), fesetround().
10528         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
10529         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
10530         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
10532 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
10534         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
10536         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
10538 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
10540         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
10541         demangle pointer.
10542         * csu/libc-start.c: Likewise.
10544 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
10546         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
10547         really work anyway.
10549 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
10551         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
10552         users.
10553         (handle_request): Remove unnecessary tests.
10555         * nscd/cache.c (cache_add): Record the failure to add to the cache.
10557 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
10559         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
10560         workbits in semi-raw fraction.
10562         * math/test-misc.c: Add new tests.
10564 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
10566         * math/basic-test.c: Include test-skeleton.c.
10567         (TEST_TRUNC): Define.
10568         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
10569         (main): Rename to ...
10570         (do_test): ...this.  Run new tests.
10571         (TEST_FUNCTION): Define.
10573 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
10574             Joe Kerian  <jkerian@us.us.ibm.com>
10576         [BZ #2749]
10577         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
10578         handling for high words.
10579         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
10580         and overflow for infinity.
10582 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
10584         * nscd/connections.c (handle_request): Add a __builtin_expect.
10586         * nscd/connections.c (serv2db): Change type into structure which
10587         also says whether this is a request for data.  Renamed to
10588         servinfo.  All users changed.
10589         (handle_request): Much simpler test whether we should search the cache.
10591         * nscd/connections.c (handle_request): Fix thinko in selinux test
10592         invocation.
10594         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
10595         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
10596         it before getting dl_load_lock and then relock.
10597         (_dl_lookup_symbol_x): Pass flags to add_dependency.
10598         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
10599         case we unlocked the scope.
10600         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
10601         _dl_lookup_symbol_x in case we locked the scope.
10602         (_dl_profile_fixup): Likewise.
10603         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
10604         set DL_LOOKUP_SCOPE_LOCK.
10606 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
10608         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
10609         CFLAGS-getsrvbynpt_r.c.
10610         * nscd/getsrvbynm_r.c: New file.
10611         * nscd/getsrvbypt_r.c: New file.
10612         * nscd/nscd_getserv_r.c: New file.
10613         * nscd/servicescache.c: New file.
10614         * nscd/Makefile (routines): Add nscd_getserv_r.
10615         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
10616         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
10617         CFLAGS-getsrvbypt_r.c.
10618         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
10619         table.  Add entries for services database.
10620         * nscd/connections.c (serv2str): Mark as const.  Add entries for
10621         services database.
10622         (dbs): Add .reset_res and servdb initialization.
10623         (serv2db): Add entries for services database.
10624         (verify_persistent_db): Accept dbnr == servdb.
10625         (invalidate_cache): Rewrite database name recognition to use a table.
10626         Call res_init() if .reset_res is set for database.
10627         (handle_request): Add code to handle services database.
10628         * nscd/gai.c: Don't define __getservbyname_r.
10629         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
10630         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
10631         (serv_response_header): Define.
10632         (struct datahead): Add serv_response_header member.
10633         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
10634         using table.
10635         * nscd/nscd.conf: Add entries for services database.
10636         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
10637         Declare serv_iov_disabled.
10638         Declare addservbyname, readdservbyname, addservbyport, and
10639         readdservbyport.
10640         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
10641         (find_db): Fix error message.
10642         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
10643         __nscd_getservbyname_r, and __nscd_getservbyport_r.
10644         * nscd/selinux.c (perms): Add entries for services database.
10645         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
10646         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
10648         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
10649         * nscd/hstcache.c: Likewise.
10650         * nscd/pwdcache.c: Likewise.
10652         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
10653         computation of keylen.
10655         * include/string.h: Only redefine strndupa if this is really for
10656         libc code.
10658 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
10660         * nscd/nscd_gethst_r.c: Minor cleanups.
10662         * nscd/connections.c (handle_request): Check selinux permissions
10663         for all non-admin commands.
10665         * sysdeps/i386/i486/bits/atomic.h: Define
10666         atomic_compare_and_exchange_val_acq,
10667         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
10668         using __sync_* built-ins for gcc >= 4.1.
10669         * sysdeps/x86_64/bits/atomic.h: Likewise.
10671         [BZ #3840]
10672         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
10673         and .oS.d files.
10675 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
10677         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
10678         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
10679         (do_test): Check errno and exit(0) if ENOSYS.
10681 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
10683         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
10684         thousands separators.
10685         * stdlib/Makefile: Add rules to build and run tst-strtod4.
10686         * stdlib/tst-strtod4.c: New test.
10688         [BZ #3855]
10689         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
10690         hexadecimal digit should accept just the initial 0.
10691         * stdlib/tst-strtod2.c (tests): New variable.
10692         (do_test): Run several tests rather than just one.
10694 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
10696         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
10697         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
10699 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
10701         * io/fts.c: Make sure fts_cur is always valid after return from
10702         fts_read.
10703         Patch by Miloslav Trmac <mitr@redhat.com>.
10705 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
10707         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
10708         (R_MIPS_NUM): Bump by 1.
10710 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
10712         * posix/execvp.c: Include alloca.h.
10713         (allocate_scripts_argv): Renamed to...
10714         (scripts_argv): ... this.  Don't allocate buffer here nor count
10715         arguments.
10716         (execvp): Use alloca if possible.
10717         * posix/Makefile: Add rules to build and run tst-vfork3 test.
10718         * posix/tst-vfork3.c: New test.
10720 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
10722         * string/Makefile (tst-strxfrm2-ENV): Define.
10723         * stdlib/Makefile (tst-strtod3-ENV): Define.
10725 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
10727         * posix/getconf.c: Update copyright year.
10728         * nss/getent.c: Likewise.
10729         * iconv/iconvconfig.c: Likewise.
10730         * iconv/iconv_prog.c: Likewise.
10731         * elf/ldconfig.c: Likewise.
10732         * catgets/gencat.c: Likewise.
10733         * csu/version.c: Likewise.
10734         * elf/ldd.bash.in: Likewise.
10735         * elf/sprof.c (print_version): Likewise.
10736         * locale/programs/locale.c: Likewise.
10737         * locale/programs/localedef.c: Likewise.
10738         * nscd/nscd.c (print_version): Likewise.
10739         * debug/xtrace.sh: Likewise.
10740         * malloc/memusage.sh: Likewise.
10741         * malloc/mtrace.pl: Likewise.
10742         * debug/catchsegv.sh: Likewise.
10744 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
10746         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
10747         attempts.
10749 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
10751         * posix/wordexp.c: Remove some unnecessary tests.
10753 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
10755         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
10756         blacklist the group till after we look it up.
10758 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
10760         * include/atomic.h (atomic_forced_read): New macro.
10762 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
10764         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
10766 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
10768         * nss/getXXbyYY_r.c: Include atomic.h.
10769         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
10770         add atomic_write_barrier () in between.
10772         * stdlib/Makefile (tests): Add tst-makecontext.
10773         * stdlib/tst-makecontext.c: New test.
10775         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
10776         (__makecontext): Don't realign uc_mcontext.uc_regs.
10778 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
10780         * elf/dl-support.c: Include dl-procinfo.h.
10781         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
10782         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
10783         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
10784         Define.
10785         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
10786         hardcoded constants.
10787         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
10788         PPC_PLATFORM_* macros for array designators.
10790 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
10792         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
10793         names to the beginning.
10794         (_dl_powerpc_platforms): Add "power6x".
10795         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10796         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
10797         (_DL_PLATFORMS_COUNT): Increase.
10798         (_dl_string_platform): Handle power6x case.
10799         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
10800         PPC_FEATURE_POWER6_EXT): Define.
10801         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
10803 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
10805         [BZ #3747]
10806         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
10807         [-2^31 .. 2^31) range.
10808         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
10809         targets.
10810         * stdlib/tst-rand48-2.c: New test.
10811         * stdlib/Makefile (tests): Add tst-rand48-2.
10813 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
10815         * misc/tst-pselect.c (do_test): Fix sigblock argument.
10817 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
10819         * misc/tst-pselect.c (do_test): Make sure the helper process is
10820         terminating when the test is aborted.
10822 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
10824         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
10825         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
10826         Handle relatime mount option.
10828         [BZ #2337]
10829         * libio/Makefile (tests): Add tst-setvbuf1.
10830         * libio/tst-setvbuf1.c: New file.
10832 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
10834         [BZ #2337]
10835         * libio/genops.c (__uflow): Fix a typo.
10836         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
10837         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
10838         the narrow buffer size.
10840 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
10842         [BZ #2337]
10843         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
10844         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
10845         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
10846         in _flags.
10847         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
10848         _IO_wstr_finish): Likewise.
10849         * libio/wmemstream.c (open_wmemstream): Likewise.
10850         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
10851         even for wide streams.
10853 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
10855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
10856         kernel-features.h.
10858 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
10860         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
10861         separators also if no non-zero digits found.
10862         * stdlib/Makefile (tests): Add tst-strtod3.
10864 2006-12-10  Jakub Jelinek  <jakub@redhat.com>
10866         * sysdeps/unix/sysv/linux/netlinkaccess.h: Include linux/if_addr.h
10867         if IFA_MAX is not defined.
10868         (IFA_RTA, IFA_PAYLOAD, IFLA_RTA, IFLA_PAYLOAD): Define if not
10869         defined.
10870         * sysdeps/unix/sysv/linux/check_pf.c: Include netlinkaccess.h
10871         instead of asm/types.h, linux/netlink.h and linux/rtnetlink.h.
10873 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
10875         [BZ #3632]
10876         * include/features.h: Fix comment about default value for
10877         _POSIX_C_SOURCE.
10879         [BZ #3664]
10880         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
10881         empty parsed strings.
10882         * stdlib/Makefile (tests): Add tst-strtod2.
10883         * stdlib/tst-strtod2.c: New file.
10885         [BZ #3673]
10886         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
10887         computation.
10888         * stdlib/Makefile (tests): Add tst-atof2.
10889         * stdlib/tst-atof2.c: New file.
10891         [BZ #3674]
10892         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
10893         correctly if removing trailing zero of hex-float.
10894         * stdlib/Makefile (tests): Add tst-atof1.
10895         * stdlib/tst-atof1.c: New file.
10897 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
10899         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
10900         Start searching for next comma at p rather than rest.
10901         * misc/Makefile (tests): Add tst-mntent2.
10902         * misc/tst-mntent2.c: New test.
10904         * misc/getusershell.c (initshells): Check for integer overflows.
10905         Make strings buffer one bigger as fgets always succeeds when second
10906         argument is 1.  Don't use calloc for shells array.  Disallow
10907         / as shell.
10909 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
10911         * malloc/memusage.c: Handle realloc with new size of zero and
10912         non-NULL pointer correctly.
10913         (me): Really write first record twice.
10914         (struct entry): Make format bi-arch safe.
10915         (dest): Write out more realloc statistics.
10916         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
10918 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
10920         * nis/nis_subr.c (nis_getnames): Revert last change.
10922 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
10924         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
10925         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
10926         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
10927         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
10928         ENOTTY.
10929         * io/Makefile: Add rules to build and run tst-ttyname_r test.
10930         * io/tst-ttyname_r.c: New test.
10932 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10934         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
10936 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
10938         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
10939         jump table entries.
10941 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
10943         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
10944         `clone' function to ensure proper unwinding stop of gdb.
10945         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
10947 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
10949         * nscd/nscd.init: Remove obsolete and commented-out -S option
10950         handling.
10952 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
10954         [BZ #3514]
10955         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
10957         [BZ #3515]
10958         * manual/string.texi (strtok): Remove duplicate paragraph.
10960 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10962         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
10963         libgcc not supporting `rflags' unwinding (register # >= 17).
10965 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
10967         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
10968         succeeded.
10970 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
10971             Jakub Jelinek  <jakub@redhat.com>
10972             Jan Kratochvil  <jan.kratochvil@redhat.com>
10974         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
10975         unwind information.
10976         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
10977         'restore_rt' even in the 'signal' directory.
10978         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
10980 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
10982         [BZ #3559]
10983         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
10984         malloc crashed.  Don't allocate memory unnecessarily in each
10985         loop.
10987 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
10989         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
10991 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
10993         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
10995 2006-11-18  Bruno Haible  <bruno@clisp.org>
10997         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
10998         __sysconf only after having tried to call getgroups32.
11000 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
11002         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
11003         addresses for IPv4 queries if they can be mapped.
11005 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
11007         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
11008         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
11009         (signmask): Add .size directive.
11010         (othermask): Add .type directive.
11012 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
11014         * po/nl.po: Update from translation team.
11016         * timezone/zdump.c: Redo fix for BZ #3137.
11018 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
11020         * nss/nss_files/files-alias.c (get_next_alias): Set line back
11021         to first_unused after parsing :include: file.
11023 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
11025         * timezone/africa: Update from tzdata2006o.
11026         * timezone/antarctica: Likewise.
11027         * timezone/asia: Likewise.
11028         * timezone/australasia: Likewise.
11029         * timezone/backward: Likewise.
11030         * timezone/europe: Likewise.
11031         * timezone/iso3166.tab: Likewise.
11032         * timezone/northamerica: Likewise.
11033         * timezone/southamerica: Likewise.
11034         * timezone/zone.tab: Likewise.
11036         * time/tzfile.c (__tzfile_read): Extend to handle new file format
11037         on machines with 64-bit time_t.
11039         * timezone/checktab.awk: Update from tzcode2006o.
11040         * timezone/ialloc.c: Likewise.
11041         * timezone/private.h: Likewise.
11042         * timezone/scheck.c: Likewise.
11043         * timezone/tzfile.h: Likewise.
11044         * timezone/tzselect.ksh: Likewise.
11045         * timezone/zdump.c: Likewise.
11046         * timezone/zic.c: Likewise.
11048         [BZ #3483]
11049         * elf/ldconfig.c (main): Call setlocale and textdomain.
11050         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11052         [BZ #3480]
11053         * manual/argp.texi: Fix typos.
11054         * manual/charset.texi: Likewise.
11055         * manual/errno.texi: Likewise.
11056         * manual/filesys.texi: Likewise.
11057         * manual/lang.texi: Likewise.
11058         * manual/maint.texi: Likewise.
11059         * manual/memory.texi: Likewise.
11060         * manual/message.texi: Likewise.
11061         * manual/resource.texi: Likewise.
11062         * manual/search.texi: Likewise.
11063         * manual/signal.texi: Likewise.
11064         * manual/startup.texi: Likewise.
11065         * manual/stdio.texi: Likewise.
11066         * manual/sysinfo.texi: Likewise.
11067         * manual/syslog.texi: Likewise.
11068         * manual/time.texi: Likewise.
11069         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11071         [BZ #3465]
11072         * sunrpc/clnt_raw.c: Minimal message improvements.
11073         * sunrpc/pm_getmaps.c: Likewise.
11074         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11075         * nis/nis_print_group_entry.c: Likewise.
11076         * locale/programs/repertoire.c: Likewise.
11077         * locale/programs/charmap.c: Likewise.
11078         * malloc/memusage.sh: Likewise.
11079         * elf/dl-deps.c: Likewise.
11080         * locale/programs/ld-collate.c: Likewise.
11081         * libio/vswprintf.c: Likewise.
11082         * malloc/memusagestat.c: Likewise.
11083         * sunrpc/auth_unix.c: Likewise.
11084         * sunrpc/rpc_main.c: Likewise.
11085         * nscd/cache.c: Likewise.
11086         * locale/programs/repertoire.c: Unify output messages.
11087         * locale/programs/charmap.c: Likewise.
11088         * locale/programs/ld-ctype.c: Likewise.
11089         * locale/programs/ld-monetary.c: Likewise.
11090         * locale/programs/ld-numeric.c: Likewise.
11091         * locale/programs/ld-time.c: Likewise.
11092         * elf/ldconfig.c: Likewise.
11093         * nscd/selinux.c: Likewise.
11094         * elf/cache.c: Likewise.
11095         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11097         [BZ #3451]
11098         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
11099         change atomic.
11100         (ceil): Likewise.
11102 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
11104         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
11105         if N is one bigger than return value.
11106         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
11107         and l1 last arguments, if buf is defined, verify the return value
11108         equals to strlen (buf) and verify no byte beyond passed length
11109         is modified.
11111 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
11113         * po/sv.po: Update from translation team.
11115 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
11117         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
11118         noinline attribute.
11120 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
11122         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
11123         noinline attribute.
11125         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
11126         Use __new_sys_siglist instead of _sys_siglist_internal as
11127         second macro argument.
11128         (_old_sys_siglist): Use declare_symbol_alias macro instead of
11129         strong_alias.
11131 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
11133         [BZ #3493]
11134         * posix/unistd.h (sysconf): Remove const attribute.
11136         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
11137         temporary or deprecated addresses.
11138         Patch by Sridhar Samudrala <sri@us.ibm.com>.
11140         * string/Makefile (tests): Add tst-strxfrm2.
11141         * string/tst-strxfrm2.c: New file.
11143 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
11145         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
11146         rather than r->r_brk.
11148 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
11150         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
11151         optimization even if needed > n.
11153         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
11154         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
11155         return false, otherwise return true.
11156         (cache_rpath): Return decompose_rpath return value.
11158 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
11160         * include/libc-symbols.h (declare_symbol): Rename to...
11161         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
11162         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
11163         .size directive.
11164         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
11165         changes.
11166         * sysdeps/gnu/siglist.c: Likewise.
11168 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
11170         * sysdeps/powerpc/fpu/bits/mathinline.h
11171         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
11172         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
11174 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
11176         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
11177         Update handling of cache descriptor 0x49 for new models.
11178         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
11179         Likewise.
11181 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
11183         * malloc/memusage.c (dest): Reset not_me back to false after
11184         printing statistics.
11186 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
11188         * configure.in: Work around ld --help change and avoid -z relro
11189         test completely if the architecture doesn't care about security.
11191 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
11193         * po/sv.po: Update from translation team.
11195 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
11197         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
11198         generate compatibility version.
11200 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
11202         * configure.in: Relax -z relro requirement a bit.
11204         * po/sv.po: Update from translation team.
11206 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
11208         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
11209         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
11210         * elf/dl-close.c (_dl_close_worker): Likewise.
11211         * elf/dl-open.c (_dl_open_worker): Likewise.
11212         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
11214 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
11216         * configure.in: Require assembler support for visibility, compiler
11217         support for visibility and aliases, linker support for various -z
11218         options.
11219         * Makeconfig: Remove conditional code which now is unnecessary.
11220         * config.h.in: Likewise.
11221         * config.make.in: Likewise.
11222         * dlfcn/Makefile: Likewise.
11223         * elf/Makefile: Likewise.
11224         * elf/dl-load.c: Likewise.
11225         * elf/rtld.c: Likewise.
11226         * include/libc-symbols.h: Likewise.
11227         * include/stdio.h: Likewise.
11228         * io/Makefile: Likewise.
11229         * io/fstat.c: Likewise.
11230         * io/fstat64.c: Likewise.
11231         * io/fstatat.c: Likewise.
11232         * io/fstatat64.c: Likewise.
11233         * io/lstat.c: Likewise.
11234         * io/lstat64.c: Likewise.
11235         * io/mknod.c: Likewise.
11236         * io/mknodat.c: Likewise.
11237         * io/stat.c: Likewise.
11238         * io/stat64.c: Likewise.
11239         * libio/stdio.c: Likewise.
11240         * nscd/Makefile: Likewise.
11241         * stdlib/Makefile: Likewise.
11242         * stdlib/atexit.c: Likewise.
11243         * sysdeps/generic/ldsodefs.h: Likewise.
11244         * sysdeps/i386/dl-machine.h: Likewise.
11245         * sysdeps/i386/sysdep.h: Likewise.
11246         * sysdeps/i386/i686/memcmp.S: Likewise.
11247         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11248         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11249         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
11251         * Makerules: USE_TLS support is now default.
11252         * tls.make.c: Likewise.
11253         * csu/Versions: Likewise.
11254         * csu/libc-start.c: Likewise.
11255         * csu/libc-tls.c: Likewise.
11256         * csu/version.c: Likewise.
11257         * dlfcn/dlinfo.c: Likewise.
11258         * elf/dl-addr.c: Likewise.
11259         * elf/dl-cache.c: Likewise.
11260         * elf/dl-close.c: Likewise.
11261         * elf/dl-iteratephdr.c: Likewise.
11262         * elf/dl-load.c: Likewise.
11263         * elf/dl-lookup.c: Likewise.
11264         * elf/dl-object.c: Likewise.
11265         * elf/dl-open.c: Likewise.
11266         * elf/dl-reloc.c: Likewise.
11267         * elf/dl-support.c: Likewise.
11268         * elf/dl-sym.c: Likewise.
11269         * elf/dl-sysdep.c: Likewise.
11270         * elf/dl-tls.c: Likewise.
11271         * elf/ldconfig.c: Likewise.
11272         * elf/rtld.c: Likewise.
11273         * elf/tst-tls-dlinfo.c: Likewise.
11274         * elf/tst-tls1.c: Likewise.
11275         * elf/tst-tls10.h: Likewise.
11276         * elf/tst-tls14.c: Likewise.
11277         * elf/tst-tls2.c: Likewise.
11278         * elf/tst-tls3.c: Likewise.
11279         * elf/tst-tls4.c: Likewise.
11280         * elf/tst-tls5.c: Likewise.
11281         * elf/tst-tls6.c: Likewise.
11282         * elf/tst-tls7.c: Likewise.
11283         * elf/tst-tls8.c: Likewise.
11284         * elf/tst-tls9.c: Likewise.
11285         * elf/tst-tlsmod1.c: Likewise.
11286         * elf/tst-tlsmod13.c: Likewise.
11287         * elf/tst-tlsmod13a.c: Likewise.
11288         * elf/tst-tlsmod14a.c: Likewise.
11289         * elf/tst-tlsmod2.c: Likewise.
11290         * elf/tst-tlsmod3.c: Likewise.
11291         * elf/tst-tlsmod4.c: Likewise.
11292         * elf/tst-tlsmod5.c: Likewise.
11293         * elf/tst-tlsmod6.c: Likewise.
11294         * include/errno.h: Likewise.
11295         * include/link.h: Likewise.
11296         * include/tls.h: Likewise.
11297         * locale/global-locale.c: Likewise.
11298         * locale/localeinfo.h: Likewise.
11299         * malloc/arena.c: Likewise.
11300         * malloc/hooks.c: Likewise.
11301         * malloc/malloc.c: Likewise.
11302         * resolv/Versions: Likewise.
11303         * sysdeps/alpha/dl-machine.h: Likewise.
11304         * sysdeps/alpha/libc-tls.c: Likewise.
11305         * sysdeps/generic/ldsodefs.h: Likewise.
11306         * sysdeps/generic/tls.h: Likewise.
11307         * sysdeps/i386/dl-machine.h: Likewise.
11308         * sysdeps/ia64/dl-machine.h: Likewise.
11309         * sysdeps/ia64/libc-tls.c: Likewise.
11310         * sysdeps/mach/hurd/fork.c: Likewise.
11311         * sysdeps/mach/hurd/i386/tls.h: Likewise.
11312         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
11313         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
11314         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
11315         * sysdeps/s390/libc-tls.c: Likewise.
11316         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11317         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11318         * sysdeps/sh/dl-machine.h: Likewise.
11319         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11320         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11321         * sysdeps/x86_64/dl-machine.h: Likewise.
11323         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
11324         split out locking and parameter checking.
11325         (_dl_close): Call _dl_close_worker after locking and checking.
11326         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
11327         _dl_close.
11328         * elf/Makefile: Add rules to build and run tst-thrlock.
11329         * elf/tst-thrlock.c:  New file.
11331         [BZ #3426]
11332         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
11333         reality.
11335         [BZ #3429]
11336         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
11337         we are sure we do not need it anymore for _dl_close.  Also move
11338         the asserts inside the lock region.
11339         Patch mostly by Suzuki <suzuki@in.ibm.com>.
11341 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
11343         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
11344         argument.
11345         (_dl_lookup_symbol_x): Adjust caller.
11347         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
11348         _ns_global_scope.
11349         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
11351         * elf/dl-libc.c: Revert l_scope name changes.
11352         * elf/dl-load.c: Likewise.
11353         * elf/dl-object.c: Likewise.
11354         * elf/rtld.c: Likewise.
11355         * elf/dl-close.c (_dl_close): Likewise.
11356         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
11357         always use __rtld_mrlock_{change,done}.  Always free old scope list
11358         here if not l_scope_mem.
11359         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
11360         change.  Never free scope list here.  Just __rtld_mrlock_lock before
11361         the lookup and __rtld_mrlock_unlock it after the lookup.
11362         * elf/dl-sym.c: Likewise.
11363         * include/link.h (struct r_scoperec): Remove.
11364         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
11365         with l_scope_mem and l_scoperec_lock with l_scope_lock.
11367 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
11369         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
11371 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11373         * configure.in: Disable building profile libraries by default.
11375 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11377         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
11378         as signed longs, check for x_base + pos overflow.
11379         * sunrpc/Makefile (tests): Add tst-xdrmem2.
11380         * sunrpc/tst-xdrmem2.c: New test.
11382 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11384         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
11385         _dl_lookup_symbol_x code.
11387 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11389         * elf/dl-runtime.c: Include sysdep-cancel.h.
11390         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
11391         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
11392         instead of catomic_* macros.
11393         * elf/dl-sym.c: Include sysdep-cancel.h.
11394         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
11395         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11396         * elf/dl-close.c: Include sysdep-cancel.h.
11397         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
11398         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11399         * elf/dl-open.c: Include sysdep-cancel.h.
11400         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
11401         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11403 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11405         [BZ #3313]
11406         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
11407         fastbin rather than end of fastbin array.
11409 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11411         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
11412         body macro.
11413         * sysdeps/x86_64/bits/atomic.h
11414         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
11415         (catomic_decrement): Use correct body macro.
11417 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11419         * include/atomic.h: Add a unique prefix to all local variables
11420         in macros.
11421         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
11423 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
11425         [BZ #3369]
11426         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
11427         and 7.
11429 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
11431         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
11433 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
11435         [BZ #3313]
11436         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
11437         determine highest fast bin to consolidate, always look into all of
11438         them.
11439         (do_check_malloc_state): Only require for empty bins for large
11440         sizes in main arena.
11442         * libio/stdio.h: Add more __wur attributes.
11444         * elf/dl-minimal.c (realloc): Optimize last patch.
11446 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
11448         [BZ #3352]
11449         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
11450         and use memcpy() if it does.
11452 2006-11-12  Andreas Jaeger  <aj@suse.de>
11454         [BZ #2510]
11455         * manual/search.texi (Hash Search Function): Clarify.
11456         (Array Search Function): Clarify.
11458 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
11460         [BZ #2830]
11461         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
11462         shifting.
11463         * math/atest-exp2.c (read_mpn_hex): Likewise.
11464         * math/atest-sincos.c (main): Likewise.
11466 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
11468         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
11469         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
11470         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
11471         version GLIBC_2.6.
11472         * Versions.def: Add GLIBC_2.6 for libc.
11474         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
11476         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
11478 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
11480         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
11482         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
11484         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
11485         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
11487 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
11489         * include/atomic.c: Define catomic_* operations.
11490         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
11491         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
11492         * malloc/memusage.c: Likewise.
11493         * gmon/mcount.c: Likewise.
11494         * elf/dl-close.c: Likewise.
11495         * elf/dl-open.c: Likewise.
11496         * elf/dl-profile.c: Likewise.
11497         * elf/dl-sym.c: Likewise.
11498         * elf/dl-runtime.c: Likewise.
11499         * elf/dl-fptr.c: Likewise.
11500         * resolv/res_libc.c: Likewise.
11502 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
11504         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
11505         components which lack them.
11507         * nis/nis_subr.c (nis_getnames): Make sure that we always return
11508         at least one entry consisting of the parameter concatenated with
11509         the domain.
11511 2006-10-10  Roland McGrath  <roland@frob.com>
11513         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
11514         * sysdeps/mach/hurd/futimes.c: Likewise.
11515         * sysdeps/mach/hurd/lutimes.c: Likewise.
11517 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
11518             Jakub Jelinek  <jakub@redhat.com>
11520         Implement reference counting of scope records.
11521         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
11522         from the list in objects which remain.  Always allocate new scope
11523         record.
11524         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
11525         don't resize, allocate a new one.
11526         * elf/dl-runtime.c: Update reference counters before using a scope
11527         array.
11528         * elf/dl-sym.c: Likewise.
11529         * elf/dl-libc.c: Adjust for l_scope name change.
11530         * elf/dl-load.c: Likewise.
11531         * elf/dl-object.c: Likewise.
11532         * elf/rtld.c: Likewise.
11533         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
11534         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
11535         Add l_scoperec_lock.
11536         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
11537         * sysdeps/generic/rtld-lowlevel.h: New file.
11539         * include/atomic.h: Rename atomic_and to atomic_and_val and
11540         atomic_or to atomic_or_val.  Define new macros atomic_and and
11541         atomic_or which do not return values.
11542         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
11543         Various cleanups.
11544         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11546         * po/sv.po: Update from translation team.
11548 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
11550         * Versions.def: Add GLIBC_2.6 to libpthread.
11552         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
11553         (versioned_symbol): Likewise.
11554         (compat_symbol): Likewise.
11556         * po/tr.po: Update from translation team.
11558 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
11560         * nis/Banner: Removed.  It's been integral part forever and the
11561         author info is incomplete anyway.
11562         * libio/Banner: Likewise.
11564         * nis/nis_table.c (nis_list): If __follow_path fails in the new
11565         code, make sure the nis_freeresult call doesn't crash and that the
11566         result is reported correctly.
11568 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
11570         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
11571         when callback is NULL.
11573         * nis/Versions (libnss_nisplus): Add
11574         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
11575         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
11576         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
11577         _nss_create_tablename): Rename to...
11578         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
11579         ... these.  No longer static.
11580         (internal_setgrent): Adjust users.
11581         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
11582         Don't use locking around _nss_grp_create_tablename call.
11583         * nis/nss_nisplus/nisplus-initgroups.c: New file.
11585 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
11587         * version.h (VERSION): Bump to 2.5.90 for new development tree.
11589 2006-10-06  Andreas Jaeger  <aj@suse.de>
11591         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
11593 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
11595         * po/pl.po: Update from translation team.
11597         * nscd/nscd.c (main): Fix typo in message.
11598         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
11600 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
11602         [BZ #3291]
11603         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
11604         errno.h, signal.h, unistd.h and sysdep-cancel.h.
11605         (__sigprocmask): Define.
11607 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
11609         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
11610         used.
11612 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
11614         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
11615         in oldtotal and newtotal calculation.
11616         * nscd/nscd-client.h (struct mapped_database): Add datasize
11617         field.
11618         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
11619         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
11620         increased.
11621         (__nscd_cache_search): Add checks to make sure we never reference
11622         data beyond the current mapping.
11624 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
11626         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
11627         variables const to avoid compiler warnings.
11629         * io/fts.c (fts_close): Remove redundant checks.
11630         (fts_build): Likewise.
11631         (fts_palloc): Likewise.
11633         * manual/message.texi (Advanced gettext functions,
11634         Using gettextized software): Fix typos.
11636 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
11638         * posix/glob.c (glob_in_dir): Add some comments and asserts to
11639         explain why there are no leaks.
11641 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
11643         * libio/wmemstream.c: Include <wchar.h>.
11644         * libio/bug-wmemstream1.c: Likewise.
11645         * libio/tst-wmemstream1.c: Likewise.
11646         * libio/tst-wmemstream2.c: Likewise.
11648         * version.h (RELEASE): Bump to 2.5.
11649         * README: Regenerated.
11651         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
11653         [BZ #3273]
11654         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
11655         found no group members.
11656         Patch by Petr Baudis.
11658 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
11660         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
11661         assert bootstrap_map.l_tls_modid is zero.
11662         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
11663         if USE___THREAD.
11665 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
11667         * libio/stdio.h: Move open_wmemstream prototype to ...
11668         * wcsmbs/wchar.h: ... here.
11670 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
11672         [BZ #3252]
11673         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
11674         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
11675         __{,l}chown to handle the rest.
11676         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
11677         fchownat syscall and __ASSUME_32BITUIDS case inline, call
11678         __{,l}chown to handle the rest.
11679         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
11680         i386/fchownat.c.
11681         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
11682         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
11684         [BZ #3253]
11685         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
11686         time, rather allocate increasingly bigger arrays of pointers, if
11687         possible with alloca, if too large with malloc.
11689 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
11691         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
11693         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
11695 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
11697         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
11698         home addresses.
11699         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
11700         IFA_F_HOMEADDRESS flag for interfaces.
11701         * include/ifaddrs.h (struct in6addrinfo): Define
11702         in6ai_homeaddress.
11704 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
11706         [BZ #3225]
11707         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
11708         PTR_DEMANGLE3): Define.
11709         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
11710         PTR_DEMANGLE3): Likewise.
11711         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
11712         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
11713         Likewise.
11714         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
11716 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
11718         * po/libc.pot: Regenerated.
11719         * po/be.po: Updated.
11720         * po/ca.po: Likewise.
11721         * po/cs.po: Likewise.
11722         * po/da.po: Likewise.
11723         * po/de.po: Likewise.
11724         * po/el.po: Likewise.
11725         * po/en_GB.po: Likewise.
11726         * po/es.po: Likewise.
11727         * po/fi.po: Likewise.
11728         * po/fr.po: Likewise.
11729         * po/gl.po: Likewise.
11730         * po/hr.po: Likewise.
11731         * po/hu.po: Likewise.
11732         * po/ja.po: Likewise.
11733         * po/ko.po: Likewise.
11734         * po/nb.po: Likewise.
11735         * po/nl.po: Likewise.
11736         * po/pl.po: Likewise.
11737         * po/pt_BR.po: Likewise.
11738         * po/ru.po: Likewise.
11739         * po/rw.po: Likewise.
11740         * po/sk.po: Likewise.
11741         * po/sv.po: Likewise.
11742         * po/tr.po: Likewise.
11743         * po/zh_CN.po: Likewise.
11744         * po/zh_TW.po: Likewise.
11746         [BZ #3137]
11747         * iconv/iconv_prog.c (main): Fix spelling in error message.
11748         * iconv/iconvconfig.c (main): Likewise.
11749         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
11750         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
11751         * locale/programs/localedef.c (main): Likewise.
11752         * locale/programs/repertoire.c (repertoire_read): Likewise.
11753         * timezone/zdump.c (main): Likewise.
11754         * nscd/connections.c (handle_request): Fix spelling in log message.
11755         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
11757 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
11759         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
11760         interfaces.
11762 2006-09-20  Andreas Jaeger  <aj@suse.de>
11764         * math/libm-test.inc (lrint_test_upward): Fix typo.
11766 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
11768         [BZ #2592]
11769         * math/libm-test.inc (lrint_test_tonearest): New function.
11770         (lrint_test_towardzero): New function.
11771         (lrint_test_downward): New function.
11772         (lrint_test_upward): New function.
11773         (main): Run these new tests.
11774         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
11775         of values near to 0.
11776         (two52): Use double not long double.
11777         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11778         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11779         (two23): Use float not double.
11780         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11781         (two23): Use float not double.
11782         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
11783         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11784         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
11785         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11787 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11789         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
11790         Cast sp to unsigned long to avoid compiler warning.
11791         Use __makecontext_ret function instead of a trampoline on the stack.
11792         (__makecontext_ret): New function.
11793         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
11795 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
11797         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
11798         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
11799         bits.
11801 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
11803         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
11804         sure no reference to the unloaded map's search list remains in the
11805         dependency's scope.
11807 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
11809         * elf/Makefile: Add rules to build and run unload7 test.
11810         * elf/unload7.c: New test.
11811         * elf/unload7mod1.c: New file.
11812         * elf/unload7mod2.c: New file.
11814 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
11816         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
11817         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
11818         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11819         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
11820         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11821         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
11822         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11823         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
11824         PTRACE_GETEVENTMSG): Likewise.
11825         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
11826         values.
11828 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
11830         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
11831         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11832         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
11833         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
11835 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
11837         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
11838         write '\0' to the fd.
11839         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
11840         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
11841         Change regs to unsigned long pointer from unsigned int, fix fscr
11842         offset.
11844 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
11846         * io/Makefile (CFLAGS-fstatat.c): Set.
11847         (CFLAGS-fstatat64.c): Likewise.
11848         (CFLAGS-mknodat.c): Likewise.
11850         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
11851         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11852         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
11853         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
11855 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
11856             Steven Munroe  <sjmunroe@us.ibm.com>
11858         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
11859         names to the beginning.  Rename "cell" to "cellbe".
11860         (_dl_powerpc_platforms): New.
11861         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11862         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
11863         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
11864         (_DL_HWCAP_PLATFORM): Define to new mask.
11865         (_dl_platform_string, _dl_string_platform): New functions.
11866         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
11867         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
11869 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
11871         [BZ #2526]
11872         * README.libm: Fix a thinko in sqrt algorithm description.
11874         [BZ #3143]
11875         * manual/string.texi (argz_delete): Fix prototype.
11876         Patch by <alpt@freaknet.org>.
11878 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
11880         [BZ #3138]
11881         * io/test-lfs.c (do_prepare): Give name_len type size_t.
11882         * io/tst-fcntl.c (do_prepare): Likewise.
11883         * posix/tst-exec.c (do_prepare): Likewise.
11884         * posix/tst-preadwrite.c (do_prepare): Likewise.
11885         * posix/tst-spawn.c (do_prepare): Likewise.
11886         * posix/tst-truncate.c (do_prepare): Likewise.
11887         * rt/tst-aio.c (do_prepare): Likewise.
11888         * rt/tst-aio64.c (do_prepare): Likewise.
11889         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
11890         size_t.
11892 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
11894         [BZ #2821]
11895         * time/mktime.c (guess_time_tm): Fix overflow detection.
11896         * time/Makefile (tests): Add bug-mktime1.
11897         * time/bug-mktime1.c: New file.
11899         [BZ #3189, #3188]
11900         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
11901         (mremap): Likewise.
11903 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
11905         [BZ #1006]
11906         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
11907         Ensure relocation doesn't clobber any bits outside of the
11908         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
11909         R_SPARC_HI22 and R_SPARC_H44.
11911         [BZ #2775]
11912         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
11913         (long) (MINSIZE + nb - old_size) is positive.
11915         * malloc/arena.c (grow_heap): When growing bail even if new_size
11916         is negative.
11918         [BZ #3155]
11919         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
11920         stack below r1.
11922 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
11924         * posix/regex_internal.c (re_string_reconstruct): Handle
11925         offset < pstr->valid_raw_len && pstr->offsets_needed case.
11926         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
11927         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
11928         re_string_context_at.
11929         * posix/Makefile: Add rules to build and run bug-regex26 test.
11930         * posix/bug-regex26.c: New test.
11932         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
11933         rather than col_sym_free.  Move seqp declaration earlier.
11935         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
11937 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
11939         * nscd/initgrcache.c (addinitgroupsX): Move any_success
11940         decl before first goto out.
11942 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
11944         * Makerules (shlib.lds): If have-hash-style, put .hash section
11945         at the end of the RO segment.
11947 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
11949         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
11950         style hash table format is used.
11952 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
11954         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
11955         randomization rather than before.
11956         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
11958 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
11960         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
11962         * malloc/malloc.c (_int_malloc): Use full list insert and not
11963         shortcut which assumes the list is empty for large requests
11964         too.
11966         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
11968 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
11970         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
11971         and offout arguments to the prototype.
11972         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
11973         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
11974         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
11975         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
11976         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
11977         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
11978         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
11979         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
11981 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
11983         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
11985         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
11986         dlopen parameters.
11988 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
11990         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
11991         only if herrno is NETDB_INTERNAL.  Handle errors other than
11992         ERANGE outside of the loops, handle TRY_AGAIN.
11994         * locale/programs/ld-ctype.c (translit_flatten): Issue error
11995         if other's ctype category was missing.
11996         * locale/programs/ld-collate.c (collate_read): Return if
11997         copy_locale's collate category is missing.
11999 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
12001         [BZ #2684]
12002         * malloc/malloc.c (public_rEALLOc): Try harder by using other
12003         arenas if allocation failed.
12004         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
12006 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
12008         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
12009         waste bins[0..1].
12010         (malloc_state): Reduce bins size by 2.
12011         (_int_malloc): Fix test for large enough buffer for early termination.
12012         When no unsorted block matches perfectly and an exiting block has
12013         to be split, use full list insert and not shortcut which assumes
12014         the list is empty.
12016         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
12017         failure.
12019 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
12021         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
12022         do anything.
12024         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
12025         symbol require exact match (these are PLTs).
12026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
12027         (_dl_ppc64_addr_sym_match): Likewise.
12029         [BZ #2683]
12030         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
12031         If symbol has a value use it.
12032         * elf/tst-dladdr1.c: New file.
12033         * elf/Makefile: Add rules to build and run tst-addr1.
12035 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
12037         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
12038         keeps failing and heap growth or new heap creation isn't
12039         successful either.
12040         * malloc/tst-malloc.c (main): Add new tests.
12042 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
12044         [BZ #2734]
12045         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
12046         as in the x86-64 code to use bswap.
12048 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
12050         [BZ #2680]
12051         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
12052         __USE_UNIX98.
12053         * posix/bits/unistd.h: Likewise.
12055 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
12057         [BZ #2751]
12058         * string/strchr.c: Add cast to avoid warning.
12060 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
12062         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
12063         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
12064         limit is needed to avoid the exploding of the address space
12065         requirement for secondary heaps.
12066         * malloc/arena.c (HEAP_MAX_SIZE): Define using
12067         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
12069 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
12071         [BZ #3018]
12072         * Makerules (depfiles): Handle extra-test-objs the same as
12073         extra-objs.
12074         (common-mostlyclean): Likewise.
12075         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
12076         instead.
12077         * elf/Makefile (extra-objs): Likewise.
12078         * stdlib/Makefile (extra-objs): Likewise.
12080 2006-08-14  Eric Blake  <ebb9@byu.net>
12082         [BZ #3044]
12083         * misc/error.h: Assume C89 or better.
12084         * misc/error.c: Likewise.
12086 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
12088         [BZ #3040]
12089         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
12090         __ASSUME_ATFCTS is defined.
12092 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
12094         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
12095         to sort in each call.
12097         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
12098         is empty simply return and use next service.
12099         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
12101         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
12102         tells us when not finding a charmap file is an error.
12103         * locale/programs/charmap.h: Adjust charmap_read prototype.
12104         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
12105         cannot find a charmap.
12106         * locale/programs/localedef.c (main): Adjust charmap_read call.
12108 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
12110         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
12111         sysdeps/posix/pause.c implementation instead.
12113 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
12115         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
12116         to EPERM.
12118 2006-08-13  Andreas Schwab  <schwab@suse.de>
12120         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
12121         Don't clobber caller's LRSAVE.
12122         (_dl_prof_resolve): Likewise.
12124 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
12126         [BZ #1996]
12127         * libio/memstream.c (open_memstream): Allocate initial buffer with
12128         calloc.
12129         * libio/wmemstream.c (open_wmemstream): Likewise.
12130         * libio/strops.c: Pretty printing.
12131         (_IO_str_overflow): Clear uninitialized part of the new buffer.
12132         (enlarge_userbuf): New function.
12133         (_IO_str_seekoff): Call it if seek position is larger than current
12134         buffer.
12135         * libio/wstrops.c: Likewise.
12136         * libio/vasprintf.c: Add comment as to why we do not have to use
12137         calloc instead of malloc to allocate initial buffer.
12138         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
12139         * libio/bug-memstream1.c: New file.
12140         * libio/bug-wmemstream1.c: New file.
12142 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
12144         * libio/wstrops.c: Remove dead macro definitions and comments.
12145         * libio/strops.c: Likewise.
12147         [BZ #2764]
12148         * login/utmpname.c (__utmpname): Remove unnecessary test.
12150 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
12152         [BZ #2832]
12153         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
12154         0s from integers.
12156 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
12158         [BZ #2987]
12159         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
12160         for CPU clocks.
12161         * sysdeps/unix/clock_settime.c: Add support for platform-specific
12162         setting of CPU clocks.
12164 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12166         [BZ #2841]
12167         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
12168         since C99 requires the result to promote to 'int' when uint_least8_t
12169         and uint_least16_t promote to 'int'.
12171 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
12173         [BZ #3013]
12174         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
12175         lenght of one output field, correct bitmask creation.
12176         * locale/programs/ld-time.c: Add alignment.
12178         [BZ #2997]
12179         * misc/error.c: Add space between program name and message if file
12180         name is missing.
12182 2006-08-03  Eric Blake  <ebb9@byu.net>
12184         [BZ #2998]
12185         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
12187 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
12189         * malloc/memusagestat.c: Silence warnings.
12191         * malloc/malloc.c: Dynamically size mmap treshold if the program
12192         frees mmaped blocks.
12193         Patch by Valerie Henson and Arjan van de Ven.
12195 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
12197         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
12198         __USE_GNU.
12200         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
12201         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
12202         (DEF): Don't put the var into .gnu.linkonce.r.* section.
12203         Only provide var definitions in strtol_l (or for *ull*
12204         in strtoll_l).
12206         * stdio-common/bug16.c (tests): New array.
12207         (do_tests): Allow the first hexadecimal digit
12208         to be 1, 2, 4 or 8.  Do 3 additional tests.
12210         * sysdeps/s390/fpu/libm-test-ulps: Update.
12212         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
12213         fchownat syscall if available.
12214         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
12215         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
12216         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
12218 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
12220         * nis/nis_xdr.c: Avoid some function calls.
12222 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
12223             Ulrich Drepper  <drepper@redhat.com>
12225         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
12226         short cut if only one name component is stripped away.
12228 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
12230         * nis/nis_call.c: Minor cleanups throughout.
12231         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
12232         (first_shoot): Add search_parent_first parameter.  Only if it is set
12233         search parent server first.
12234         If directory for table found through cold start cache is not the same
12235         as referenced in the cache, don't use it.
12236         (__nisfind_server): Take additional parameter.  Pass it on to
12237         first_shoot.
12238         (__prepare_niscall): Adjust __nisfind_server call.
12239         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
12240         * nis/nis_table.c: Adjust __nisfind_server call.
12241         * nis/nis_lookup.c: Likewise.
12242         (nis_lookup): Don't loop endlessly if name is reduced to ".".
12244 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
12246         [BZ #2182]
12247         * math/s_cacosh.c: Return values from positive branch.
12248         * math/s_cacoshf.c: Likewise.
12249         * math/s_cacoshl.c: Likewise.
12251         [BZ #2883]
12252         * sysvipc/sys/msg.h: Change return value to ssize_t.
12253         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
12254         * sysvipc/msgrcv.c: Likewise.
12255         * include/sys/msg.h: Likewise.
12257         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
12258         test introduced in patch for bz #661.
12259         (getgrouplist): Simplify code a bit.  Don't allocate one additional
12260         element for NEWGROUPS.
12262         [BZ #2908]
12263         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
12264         'f', use '1' as leading digit not '\1'.
12265         * stdio-common/Makefile (tests): Add bug16.
12266         * stdio-common/bug16.c: New file.
12268         [BZ #2914]
12269         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
12270         and don't try to open it.  The patch introducing the macro
12271         contained a bug and used the same file name as the new file
12272         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
12273         this out completely.
12275         [BZ #2926]
12276         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
12277         Patch by Jerry James <Jerry.James@usu.edu>.
12279         * rt/Makefile (tests): Add tst-clock2.
12280         * rt/tst-clock2.c: New file.
12282         [BZ #2978]
12283         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
12284         function and its parameters and pass it to new thread.
12285         (__gai_notify): Add support for alternative waiting for completion.
12286         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
12287         waiting for completion.
12288         * resolv/getaddrinfo_a.c: Likewise.
12289         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
12290         waiting for completion is used.
12291         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
12292         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
12293         * resolv/gai_error.c: Likewise.
12294         * resolv/gai_sigqueue.c: Likewise.
12296 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
12298         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
12299         errno to EBADF and return MACH_PORT_NULL.
12301 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
12303         [BZ #2980]
12304         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
12306 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
12308         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
12309         walk them instead of the symbol table.
12311 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
12313         [BZ #2098]
12314         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
12315         status of NSS calls, not the number of returned entries.
12317         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
12318         request_key, keyctl.
12320 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12322         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
12324 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
12326         * elf/tst-auditmod1.c: Fix typo in #error.
12328 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12330         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
12332         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
12334 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
12336         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
12337         that the directory is empty even on non-POSIX filesystems.
12339 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12341         * elf/dl-open.c (dl_open_worker): Add branch prediction.
12343         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
12344         the backend NSS module.  If backend setgrent call failed, don't have
12345         internal_setgrent fail.  Just remember this until it is needed.
12346         * nis/nss_compat/compat-pwd.c: Likewise.
12347         * nis/nss_compat/compat-spwd.c: Likewise.
12349 2006-07-30  Roland McGrath  <roland@redhat.com>
12351         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
12352         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
12353         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
12354         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
12356         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
12357         (nanosleep_not_cancel): New macro.
12358         (sigsuspend_not_cancel): new macro.
12359         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
12360         (do_sigsuspend): Define as inline.
12361         (__sigsuspend): Always use do_sigsuspend.
12362         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
12363         * include/signal.h: Declare __sigsuspend_nocancel.
12364         * sysdeps/posix/pause.c
12365         [! NO_CANCELLATION] (__pause_nocancel): New function.
12367         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
12368         * include/time.h (__nanosleep_nocancel): Likewise.
12370 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
12372         * locale/programs/localedef.c (add_to_readlist): Rename local
12373         variables to avoid confusion.
12375         * locale/programs/charmap.c (charmap_read): Emit error message if
12376         charmap couldn't be found or read.
12378 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
12380         * sysdeps/unix/sysv/linux/kernel-features.h: Define
12381         __ASSUME_FUTEX_LOCK_PI.
12382         * include/time.h: Declare __nanosleep_nocancel.
12383         * include/unistd.h: Declare __pause_nocancel.
12385         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
12386         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
12387         get the __stack_chk_fail_local definition when it's needed.
12389 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
12391         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
12392         * dlfcn/bug-atexit3.c: New file.
12393         * dlfcn/bug-atexit3-lib.cc: New file.
12395         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
12396         used when the namespace is not the base namespace.
12398 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
12400         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
12401         (__new_exitfn): Bump it in every successful call.
12402         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
12403         more exit handlers, call them right away.
12404         * stdlib/exit.h: Declare __new_exitfn_called.
12406 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
12408         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
12409         calling registered handler.
12411         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
12412         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12413         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12414         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12415         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12416         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12417         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12418         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12420 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
12422         * elf/dl-lookup.c (dl_new_hash): New functions.
12423         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
12424         value here.  Compute new-style hash value.  Pass new hash value
12425         and reference to variable with the old value to do_lookup_x.
12426         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
12427         old-style hash table.
12428         (_dl_debug_bindings): Pass new hash value and reference to variable
12429         with the old value to do_lookup_x.
12430         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
12431         new-style hash value and change old-style hash value parameter to
12432         be a reference.  Reoganize functions to determine whether
12433         new-style hash table is available.  Only fall back on old-style
12434         table.  If old-style hash value is needed, compute it here.
12435         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
12436         entry.
12437         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
12438         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
12439         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
12440         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
12441         * Makeconfig: If linker supports --hash-style option add it to all
12442         linker command lines to build DSOs.
12443         * config.make.in: Define have-hash-style.
12444         * configure.in: Test whether linker supports --hash-style option.
12446         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
12447         * sysdeps/generic/ldsodefs.h: Adjust prototype.
12449 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
12451         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
12452         auditing.
12454         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
12455         RPATH of main map twice.
12457 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
12459         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
12460         look further, return original strings.
12461         (_nl_find_msg): Do not return found translation if the conversion
12462         failed.  Either signal the string is unusable or that something went
12463         wrong and the original should be used.
12465 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
12467         * string/_strerror.c (__strerror_r): Add __builtin_expect.
12469 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
12471         [BZ #2766]
12472         * misc/insremque.c (insque): Handle prev == NULL.
12473         * misc/Makefile (tests): Add tst-insremque.
12474         * misc/tst-insremque.c: New test.
12476 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
12478         [BZ #2792]
12479         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
12480         conflict with DL_DST_REQUIRED.
12482 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
12484         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
12485         match what Solaris does.
12487 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
12489         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
12490         local_setegid instead of seteuid and setegid.
12491         * sysdeps/generic/local-setxid.h: New file.
12492         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
12494         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
12496         * string/Makefile (tests): Add bug-envz1.
12497         * string/bug-envz1.c: New file.
12499 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
12501         * posix/regex_internal.c (re_string_skip_chars): If no character has
12502         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
12503         to the byte which couldn't be converted.
12504         (re_string_reconstruct): Don't clear valid_raw_len before calling
12505         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
12506         tip_context using re_string_context_at.
12507         * posix/Makefile: Add rules to build and run bug-regex25 test.
12508         * posix/bug-regex25.c: New test.
12510 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
12512         [BZ #2703]
12513         * string/envz.c (envz_strip): Correct erroneously reversed src
12514         and dest parameters to memmove() invocation.
12516 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
12518         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
12519         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
12520         to make sure the database has been already invalidated.
12521         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
12522         after the cache has been invalidated.  Use pthread_mutex_lock rather
12523         than pthread_mutex_trylock if fd != -1.
12524         * nscd/connections.c (invalidate_cache): Add fd argument, write
12525         response to fd if not calling prune_cache, pass fd to prune_cache.
12526         (handle_request): Adjust invalidate_cache caller.
12527         (nscd_run): Pass -1 as fd to prune_cache.
12529 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
12531         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
12532         the correct place.
12534 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
12536         * nscd/nscd.h (struct database_dyn): Add prunelock field.
12537         * nscd/cache.c (prune_cache): Take prunelock before starting the
12538         work.  Just return in case it is already taken.
12539         * nscd/connections.c (dbs): Initialize .prunelock.
12541 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
12543         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
12544         copying.  No need to allocate new array for group members.  Just
12545         move the pointers and update the size.
12547         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
12548         Avoid memory leak in case realloc fails.  Simplification for
12549         better code generation.
12551         Avoid deprecation warning because of libc_hidden_proto for
12552         inet6_option_alloc.
12553         * inet/inet6_option.c (option_alloc): Renamed from
12554         inet6_option_alloc.  Made static.
12555         (inet6_option_alloc): Now a simple wrapper around option_alloc.
12556         (inet6_option_append): Call option_alloc.
12557         * include/netinet/in.h: Remove libc_hidden_proto for
12558         inet6_option_alloc.
12560         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
12561         for cleanup when cb!=NULL [Coverity CID 233].
12563 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
12565         [BZ #2693]
12566         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
12567         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
12568         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
12569         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
12570         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
12571         and inet6_rth_getaddr.
12572         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
12573         array.
12574         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
12575         Mark inet6_option_* interfaces as deprecated.
12576         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
12577         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
12578         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
12579         inet6_rth_segments, and inet6_rth_getaddr.
12580         * inet/inet6_opt.c: New file.
12581         * inet/inet6_rth.c: New file.
12583         * inet/netinet/icmp6.h: Pretty printing.
12585         [BZ #2683]
12586         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
12588 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
12590         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
12591         doing it all here.  When server does not know the answer do not
12592         fail immediate, try parent first.
12594         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
12595         overflow test.
12597 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
12599         * nis/nis_call.c (__prepare_niscall): New function.  Split out
12600         from __do_niscall.
12601         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
12602         and exported.
12603         (__follow_path): New function.  Split out from nis_list.
12604         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
12605         _xdr_nis_result.
12606         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
12607         _xdr_nis_result.
12608         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
12609         and __follow_path.
12610         * nis/Versions: Export __prepare_niscall, __create_ib_request,
12611         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
12612         from libnsl for version GLIBC_PRIVATE.
12613         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
12614         Remove entry parameter from _nss_nisplus_parse_pwent and
12615         _nss_nisplus_parse_grent.
12616         * nis/nss_nisplus/nisplus-parser.c: Likewise.
12617         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
12618         again.  Rewrite getpwent handling to not use nis_first_entry and
12619         nis_next_entry.  Roll out own niscall handling.
12620         * nis/nss_nisplus/nisplus-grp.c: Likewise.
12622         * sunrpc/xdr_rec.c: Fix typo in comment.
12624 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
12626         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
12627         handling.
12629         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
12630         to allocate memory for my_pollfd.  Better initialization of
12631         cb_is_running.  Use TEMP_FAILURE_RETRY.
12633         * malloc/memusage.sh (memusageso): Add quotes.
12634         (memusagestat): Likewise.
12635         * debug/xtrace.sh (pcprofileso): Likewise.
12636         (pcprofiledump): Likewise.
12637         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
12638         replacement.
12639         * malloc/Makefile ($(objpfx)memusage): Likewise.
12641         * nis/nis_callback.c (__nis_create_callback): Calls to
12642         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
12643         asprintf call fails.
12645         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
12646         no uninitialized memory is passed to sendto.
12648 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
12650         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
12651         of snprintf+strdup.  Handle OOM.
12652         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
12653         cb->serv together.  Remove now obsolete free calls.
12654         (__nis_destroy_callback): Remove now obsolete free call.
12656 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
12658         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
12659         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
12660         and ULA respectively). Set precedence for IPv4 address to 10 as
12661         defined in RFC3484 for preferring IPv6.
12662         * posix/gai.conf: Update to match the new default tables.
12664 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
12666         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
12667         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
12668         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
12669         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
12671         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
12672         Removed.
12673         (init_nss_interface): Remove initialization of these variables.
12675 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
12677         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
12678         nis_free_directory forward to avoid duplication.
12680 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
12682         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
12683         rec_dirsearch returning NULL.
12684         (first_shoot): Handle __nis_finddirectory returning NULL.
12685         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
12687         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
12688         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
12690 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
12692         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
12693         pid changed.
12695 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
12697         * include/rpc/pmap_prot.h: Mark all functions as hidden.
12699         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
12700         * nscd/nscd_getgr_r.c: Likewise.
12702         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
12704         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
12705         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
12707         * stdlib/longlong.h (__clz_tab): Mark as hidden.
12709         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
12711         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
12713         * include/rpc/auth.h: Mark xdr_des_block_internal and
12714         xdr_opaque_auth_internal as hidden.
12716         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
12717         hidden.
12719         * include/rpc/xdr.h: Mark all _internal functions as hidden.
12721         * misc/getusershell.c (okshells): Don't use static initializers,
12722         do it dynamically.
12724         * stdlib/fmtmsg.c (keywords): Change type of len element to
12725         uint32_t to not waste space on 64bit machines.
12727         * locale/setlocale.c: Change _nl_category_names into a string.
12728         Add new _nl_category_name_idxs.  Change all users.
12729         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
12730         Declare _nl_category_name_idxs.
12731         * locale/findlocale.c: Adjust for _nl_category_names change.
12732         * locale/loadlocale.c: Likewise.
12733         * locale/newlocale.c: Likewise.
12734         * intl/dcigettext.c: Likewise.
12736         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
12737         (add_alias2): ...here.  New function.
12738         (__gconv_read_conf): Simplify builtin alias handling.
12739         (builtin_aliases): Convert to string to avoid relocations.
12740         * iconv/gconv_builtin.h: Add comment about correct formatting.
12742 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
12744         * resolv/res_debug.c (loc_ntoa): Make error const.
12746 2006-05-14  Andreas Schwab  <schwab@suse.de>
12748         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
12750 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
12752         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
12753         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
12754         sizeof (cpu_set_t).
12756 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
12758         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
12760         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
12762         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
12763         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
12765         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
12766         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
12768         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
12769         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
12770         xdr_cback_data.
12772         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
12773         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12774         xdr_ypupdate_args.
12776         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
12777         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
12779         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
12780         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
12782         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
12783         * include/rpcsvc/nis_callback.h: New file.
12785         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
12786         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
12788         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12789         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12791         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
12792         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
12794         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12795         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12797         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
12798         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12799         xdr_ypdelete_args.
12801         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
12802         __BEGIN_DECLS and __END_DECLS, the header is not installed.
12804         * nis/nis_error.c: Remove table of strings.  Use position
12805         independent mechanism.
12806         * nis/nis_error.h: New file.
12808 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
12810         * locale/programs/ld-time.c (time_finish): If wide era name or
12811         format aren't provided, set both wname and wformat to L"".
12813 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
12815         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
12816         results if the call was succesful.
12818         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
12820         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
12821         as hidden.
12823 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
12825         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
12827 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
12829         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
12830         caller makes sure this is not the case.
12831         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
12833 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
12835         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
12836         calls.
12838         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
12839         [Coverity CID 229, 230]
12841         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
12842         DGETTEXT calls.
12843         (hol_help): Likewise.  [Coverity CID 226, 227]
12845         * string/argz-replace.c (__argz_replace): Unconditionally call
12846         free on SRC.  [Coverity CID 225]
12848         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
12849         the return value of __nis_default_owner and __nis_default_group,
12850         it has been especially allocated.  [Coverity CID 224]
12852         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
12853         searchgroup and searchowner.  Significantly simplified.
12854         (__nis_default_owner): Remove duplication.  Do not locally copy the
12855         string before duplicating it.
12856         (__nis_default_group): Likewise.
12858         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
12859         we must clear the variable before calling __nisfind_server.
12861         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
12862         nis_getnames.  [Coverity CID 223]
12864         * locale/programs/locfile.c (locfile_read): Use alloca instead of
12865         xmalloc to allocate local repertoire name.  [Coverity CID 222]
12867         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
12868         allocate memory for the input to add_bytes.  [Coverity CID 221]
12870         * posix/wordexp.c (w_addword): Free word if realloc fails and it
12871         was allocated here.  [Coverity CID 219, 220]
12873         * posix/getconf.c (print_all): Free confstr data after printing.
12874         [Coverity CID 218]
12876         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
12877         list allocation fails.  [Coverity CID 215]
12879         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
12880         [Coverity CID 213]
12882         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
12883         string is NULL.  [Coverity CID 212]
12884         * argp/Makefile: Add rules to build and run bug-argp1.
12885         * argp/bug-argp1.c: New file.
12887         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
12888         end of string.
12889         * stdlib/canonicalize.c (__realpath): Likewise.
12891         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
12892         pointer.  [Coverity CID 206]
12894         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
12895         in statically linked code.
12896         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
12897         statically built code, be prepared to have no link map.
12898         [Coverity CID 205]
12900         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
12901         dgettext calls. [Coverity CID 204]
12903         * argp/argp-help.c (struct uparams): Remove valid member.  Change
12904         the one user.
12905         (uparam_names): Reduce size.  Avoid relative relocations.
12906         Moved to read-only segment.
12907         (fill_in_uparams): Update for new layout.
12909         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
12910         assumed to always be != NULL. [Coverity CID 202]
12912         * argp/argp-help.c (hol_entry_help): Remove some dead code
12913         [Coverity CID 200].
12915         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
12916         away a few more unconditional yperr2nss calls.
12917         (_nss_nis_getservbyname_r): Likewise.
12919 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
12921         * sysdeps/generic/ldsodefs.h: Remove support for non-core
12922         architectures.
12924         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
12925         that unused memory passed to sendto is nevertheless initialized.
12927         [BZ #2499]
12928         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
12929         possibly unaligned memory accesses.
12931         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
12932         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
12933         and __putlong respectively.  Correct buffer overflow check for
12934         NS_NOTIFY_OP.
12936         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
12938         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
12939         (send_dg): Rewrite error handling to be more compact and avoid
12940         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
12942         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
12944         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
12945         instead of ns_get16.
12946         (res_queriesmatch): Likewise.  Minor optimization.
12948         [BZ #2499]
12949         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
12950         __libc_res_nsend might reallocate the buffer for the answer.  In
12951         this case we have to reload the HP pointer.
12953 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
12955         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
12956         some branch prediction hints.
12958         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
12959         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12960         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12961         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12962         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12963         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12964         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12965         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12967 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12969         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
12970         by a GOT relocation to make Scrt1.o position independent.
12971         * sysdeps/s390/s390-64/elf/start.S: Likewise.
12973         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
12974         six system call parameters.
12975         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
12977 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
12979         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
12980         malloc&bzero.
12982         * sunrpc/svc_udp.c (BZERO): Remove definition.
12983         (CALLOC): Define.
12984         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
12986         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
12987         (des_SPtrans): Use uint32_t type.
12988         (des_skb): Likewise.
12990         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
12992 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
12994         [BZ #2509]
12995         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
12996         on 32-bit arches.
12998 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13000         * locale/programs/ld-address.c (address_finish): Fix one more
13001         place where the iso639 array might be accessed beyond the limits.
13003 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
13005         * nis/nis_table.c (nis_list): Avoid clearing res twice before
13006         filling it for the first time.
13008         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
13009         Adjust all callers.
13010         Free res object content before returning.
13012         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
13014         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
13015         client->cl_auth.
13017         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
13018         cleanup for initial thread, just the free call on TVP.
13020         * nscd/gai.c (__getline): Define.
13023 See ChangeLog.16 for earlier changes.