Macro cleanup.
[glibc.git] / ChangeLog
blob6d2a62b48c474223cf2a6930dd64cf37f60c6264
1 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
3         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
4         another rewrite.  Much smaller and faster.
5         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
7         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
8         ss_flags from the correct location.
10 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
12         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
13         * sysdeps/i386/i686/cacheinfo.c: New file.
14         * sysdeps/i386/i686/multiarch/Makefile: New file.
15         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
16         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
17         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
18         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
19         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
20         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
21         (__cpuid_count): New. Provide the default.
22         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
23         (__x86_64_preferred_memory_instruction): Define only if
24         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
25         (intel_check_word): Use __cpuid.
26         (handle_intel): Likewise.
27         (handle_amd): Likewise.
28         (__cache_sysconf): Likewise.
29         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
30         (__cache_sysconf): Likewise.
31         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
32         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
33         (get_common_indeces): Use __cpuid.
34         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
35         if ENABLE_SSSE3_ON_ATOM is not defined.
36         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
37         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
38         popcnt instead of popcntq.
40 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
42         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
44 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
46         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
47         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
48         which always causes a compile error.
50         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
52         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
53         comes from...
54         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
55         which always causes a compile error.
57         * debug/Makefile (tests): Add tst-longjmp_chk2.
58         * debug/tst-longjmp_chk2.c: New file.
60         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
61         Remove incorrect use of BP_SYM.
62         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
63         here now since it is more complex than just a simple check.
65         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
66         we make no more progress.
68 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
70         * math/s_fma.c: Don't define alias if __fma is a macro.
71         * math/s_fmaf.c: Likewise.
72         * sysdeps/x86_64/multiarch/s_fma.c: New file.
73         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
74         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
76         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
77         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
78         New macro HAS_FMA.
79         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
80         function.
81         * include/libc-symbols.h (libm_ifunc): Define.
82         * sysdeps/x86_64/multiarch/Versions: New file.
84         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
86 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
88         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
90 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
92         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
93         call that registers used in calling conventions need to be preserved.
94         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
95         to preserve register content if necessary.
96         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
97         (_dl_x86_64_restore_sse): New function.
98         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
99         is allowed to modify xmm/ymm registers.
101         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
102         application's perspective.
103         * stdio-common/scanf17.c: Likewise.
105 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
107         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
108         size to memsz.
109         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
110         here.
111         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
112         two steps to catch bugs.
114 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
116         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
117         determines which files are used in runtime lookups and only checks
118         those for SSE use.
119         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
120         testing.
121         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
122         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
123         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
124         take a while.
126         * elf/dl-open.c: Move _dl_scope_free to...
127         * elf/dl-scope.c: ...here.  New file.
128         * elf/Makefile (dl-routines): Add scope.
130         * resolv/resolv.h (RES_USE_DNSSEC): Define.
131         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
132         RES_USE_DNSSEC.
133         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
134         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
135         all the places we handled RES_USE_EDNS0 only before.
136         Patch by Adam Tkac <atkac@redhat.com>.
138 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
140         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
141         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
142         Update size when reallocating.
144 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
146         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
147         functions used in ld.so modify xmm/ymm registers.
148         * sysdeps/x86_64/Makefile:  Hook new test up.
149         * sysdeps/x86_64/rtld-memchr.c: New file.
150         * sysdeps/x86_64/rtld-memcmp.c: New file.
151         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
152         * sysdeps/x86_64/rtld-strchr.S: New file.
153         * sysdeps/x86_64/rtld-strlen.S: New file.
154         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
155         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
157 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
159         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
160         strncmp-c.
161         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
162         (exit): Likewise.
163         (Byte1): Likewise.
164         (Byte2): Likewise.
165         (Byte3): Likewise.
166         (Byte4): Likewise.
167         (Byte5): Likewise.
168         (Byte6): Likewise.
169         (next_8_bytes): Likewise.
170         (Byte0): Remove commented out codes.
171         (unaligned_table): Align jump table at 8 bytes.
172         Add _sse4_2 to all labels.  Always include "../strcmp.S".
173         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
174         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
175         * sysdeps/x86_64/strncmp.S: New file.
177 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
179         [BZ #10422]
180         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
181         kernels, dropped when eventfd2 support was added.
182         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
183         kernels, dropped when signalfd4 support was added.
184         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
185         added, name them.
187         [BZ #10452]
188         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
189         replies up.
191         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
193 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
195         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
196         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
198         [BZ #10448]
199         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
200         callback we must touch the status to avoid using stale value.
202         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
203         compiled in.
205 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
207         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
208         /lib/modules/* headers anymore.  We have sane headers in the standard
209         place now.
211 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
213         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
214         "etf3enh" and "highgprs" added.
215         (_dl_s390_platforms): "z10" added.
216         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
217         Increased for the new entries.
218         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
219         HWCAP_S390_HIGH_GPRS added.
221         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
222         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
223         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
224         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
225         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
227 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
229         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
230         avoid additional cpuid instructions.  Most of the information is
231         stored somewhere.
233         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
234         cache descriptors.
235         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
237         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
238         SSSE3 bit for Atoms.
239         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
240         here anymore.
242         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
243         structure before copying it to avoid warning.
244         * posix/tst-rfc3484-2.c (do_test): Likewise.
245         * posix/tst-rfc3484-3.c (do_test): Likewise.
247         [BZ #10416]
248         * include/unistd.h: Make header file suitable for C++ test cases.
249         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
251         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
252         stack alignment in the exit code.
254         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
255         potentially be zero.
257         * elf/tst-unique1.c: Extend test to check for unloading DSO with
258         unique symbol definition.
259         Patch by Jakub Jelinek.
260         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
261         make sure the object with the definition cannot be unloaded.  Adjust
262         a few types.
263         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
264         the unique symbol hash table should not be const.
266 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
268         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
269         unnecesary variables.  Comment fixes.
271 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
273         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
274         Use NONASCII_CASE information provided by the locale to determine
275         whether optimized string load function can be used.  Minor cleanups.
277 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
279         * string/strcasestr.c (STRCASESTR): New macro.
280         (__strcasestr): Renamed to ..
281         (STRCASESTR): ...this.
282         * string/strstr.c (STRSTR): New macro.
283         (strstr): Renamed to ..
284         (STRSTR): ...this.
285         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
286         strstr-c strcasestr-c
287         (CFLAGS-strstr.c): New.
288         (CFLAGS-strcasestr.c): Likewise.
289         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
290         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
291         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
292         * sysdeps/x86_64/multiarch/strstr.c: New file.
294 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
296         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
297         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
298         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
299         _NL_CTYPE_NONASCII_CASE.
300         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
301         field.
302         (ctype_finish): Check whether there are any 8-bit characters outside
303         the range ASCII has or whether the mapping isn't the same as for
304         ASCII (±0x20).  Set nonascii_case appropriately.
305         (ctype_output): Add output handler for nonascii_case.
307 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
309         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
310         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
312 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
314         [BZ #10360]
315         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
316         0xffff in the EDNS0 record.
318 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
320         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
321         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
322         is written before the list head update.
323         Patch by Andreas Schwab <aschwab@redhat.com>.
325 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
326             Jakub Jelinek  <jakub@redhat.com>
328         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
329         corruption thread-safe.
331 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
333         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
334         overrides atomic_compare_and_exchange_val_rel, define to
335         atomic_compare_and_exchange_val_rel by default, otherwise default
336         to catomic_compare_and_exchange_val_acq.
337         (catomic_compare_and_exchange_bool_rel): If arch overrides
338         atomic_compare_and_exchange_bool_rel, define to
339         atomic_compare_and_exchange_bool_rel by default.
340         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
341         Use catomic_compare_and_exchange_val_rel instead of
342         catomic_compare_and_exchange_val_acq.
344 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
346         * sysdeps/generic/ldsodefs.h: Add prototype for
347         _dl_higher_prime_number.
348         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
350         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
351         restoring of ymm registers a bit.
353 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
355         * sysdeps/x86_64/memcmp.S: New file.
357 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
359         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
360         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
361         pointers in writable memory.
363 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
365         * config.h.in: Add HAVE_AVX_SUPPORT entry.
366         * config.make.in: Add config-cflags-avx entry.
367         * configure.in: Substitute libc_cv_cc_avx.
368         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
369         * elf/tst-audit4.c: New file.
370         * elf/tst-audit5.c: New file.
371         * elf/tst-auditmod4a.c: New file.
372         * elf/tst-auditmod4b.c: New file.
373         * elf/tst-auditmod5a.c: New file.
374         * elf/tst-auditmod5b.c: New file.
375         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
376         link-defines.sym.
377         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
378         (La_x86_64_vector): Likewise.
379         (La_x86_64_regs): Append lr_vector.
380         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
381         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
382         saving and restoring SSE registers to ...
383         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
384         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
385         <link-defines.h>.
386         (_dl_runtime_profile): Use LR_SIZE to allocate space for
387         La_x86_64_regs.  Allocate extra space and jump to memory at
388         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
389         (save_and_restore_vector_sse): New.
390         (save_and_restore_vector_avx): Likewise.
391         (check_avx): Likewise.
392         (save_and_restore_vector): Likewise.
393         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
394         HAVE_AVX_SUPPORT.
395         * sysdeps/x86_64/link-defines.sym: New file.
397 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
399         * elf/do-lookup.h: Removed after folding content into...
400         * elf/dl-lookup.c: ...here.
402         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
404 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
406         * configure.in: Check for gnu_unique_symbol symbol type.
407         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
408         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
409         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
410         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
411         change.
412         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
413         unique symbol table.
414         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
415         for first namespace.
416         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
417         unique symbol hash table.
418         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
419         * elf/tst-unique1.c: New file.
420         * elf/tst-unique1mod1.c: New file.
421         * elf/tst-unique1mod2.c: New file.
422         * elf/tst-unique2.c: New file.
423         * elf/tst-unique2mod1.c: New file.
424         * elf/tst-unique2mod2.c: New file.
426 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
428         * elf/elf.h (STB_GNU_UNIQUE): Define.
430         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
431         from...
432         * include/inline-hashtab.h: ...here.
433         (htab_expand): Adjust for renamed function.  Correct memory handling.
435 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
437         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
439 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
441         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
442         (PPC_FEATURE_HAS_VSX): Likewise.
444 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
446         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
447         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
449         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
450         aligned to 16 byte boundaries.
451         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
452         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
453         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
455 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
457         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
458         * config.make.in (config-cflags-sse4): New variable.
459         * configure.in: Substitute libc_cv_cc_sse4.
460         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
461         HAVE_SSE4_SUPPORT.
462         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
463         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
464         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
465         * sysdeps/x86_64/multiarch/strcspn.S: New file.
466         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
467         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
468         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
469         * sysdeps/x86_64/multiarch/strspn.S: New file.
471 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
473         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
474         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
475         (tests): Add tst-audit3 for x86_64.
476         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
477         ($(objpfx)tst-audit3): Define.
478         ($(objpfx)tst-audit3.out): Define.
479         (tst-audit3-ENV): Define.
480         * elf/tst-audit3.c: New file.
481         * elf/tst-auditmod3a.c: New file.
482         * elf/tst-auditmod3b.c: New file.
483         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
484         and restore xmm6.
486         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
487         (__stpncpy): Renamed to ...
488         (STPNCPY): This.
489         (stpncpy): Create alias only if STPNCPY is not defined.
490         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
491         defined.
492         (strncpy): Renamed to ...
493         (STRNCPY): This.
494         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
495          stpncpy-c strncpy-c for string.
496         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
497         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
498         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
499         * sysdeps/x86_64/multiarch/strcpy.S: New file.
500         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
501         * sysdeps/x86_64/multiarch/strncpy.S: New file.
503 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
505         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
506         adding to fast bin list.
508 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
510         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
511         inet_makeaddr.  This worked only with class-based networks.
512         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
513         Likewise.
515         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
516         recognize all types.
517         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
518         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
519         be in host byte order.
521 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
523         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
524         (MODEL_OFFSET): Define.
525         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
526         family and model.
527         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
528         out common code into new function get_common_indeces. Determine
529         extended family and model for Intel processors.
531 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
533         * resolv/resolv.h: Define RES_SNGLKUPREOP.
534         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
535         option.
536         * resolv/res_send.c (reopen): New function.  Broken out of...
537         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
538         fallback mechanism.  If single-request fails switch to
539         single-request-reopen mode which opens a new socket for the second
540         request.
542 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
544         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
545         (CHECK_SP): Use it.
547 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
549         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
550         for saved registers.
551         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
552         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
553         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
555 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
557         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
559 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
561         * po/id.po: Update from translation team.
563         * po/bg.po: Update from translation team.
565 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
567         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
568         defined.
569         (strncmp): Renamed to STRNCMP.
570         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
571         strncmp-c for string.
572         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
573         * sysdeps/x86_64/multiarch/strcmp.S: New file.
574         * sysdeps/x86_64/multiarch/strncmp.S: New file.
575         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
577 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
579         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
580         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
581         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
582         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
583         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
584         ifuncmain7static.c.
585         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
586         ifuncmain7static, and ifuncmain7picstatic.
587         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
588         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
589         $(objpfx)ifuncmain7pie.out.
590         (modules-names): Add ifuncmod5 ifuncmod6
591         (ifuncmod5.so-no-z-defs): Define.
592         (ifuncmod6.so-no-z-defs): Define.
593         (CFLAGS-ifuncmain5pic.c): Define.
594         (CFLAGS-ifuncmain5picstatic.c): Define.
595         (CFLAGS-ifuncmain5staticpic.c): Define.
596         (CFLAGS-ifuncdep5pic.c): Define.
597         (CFLAGS-ifuncmain7pic.c): Define.
598         (CFLAGS-ifuncmain7picstatic.c): Define.
599         (CFLAGS-ifuncmain1staticpie.c): Define.
600         (CFLAGS-ifuncmain5pie.c): Define.
601         (CFLAGS-ifuncmain6pie.c): Define.
602         (CFLAGS-ifuncmain7pie.c): Define.
603         ($(objpfx)ifuncmain1staticpie.out): Define.
604         ($(objpfx)ifuncmain1staticpie): Define.
605         ($(objpfx)ifuncmain5pie.out): Define.
606         ($(objpfx)ifuncmain5pie): Define.
607         ($(objpfx)ifuncmain6pie.out): Define.
608         ($(objpfx)ifuncmain6pie): Define.
609         ($(objpfx)ifuncmain5): Define.
610         ($(objpfx)ifuncmain5pic): Define.
611         ($(objpfx)ifuncmain5static): Define.
612         ($(objpfx)ifuncmain5staticpic): Define.
613         ($(objpfx)ifuncmain5picstatic): Define.
614         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
615         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
616         ifuncmain6pie.out.
617         * elf/b/elf/ifuncmain1staticpie.c: New file.
618         * elf/ifuncdep5.c: New file.
619         * elf/ifuncdep5pic.c: New file.
620         * elf/ifuncmain5.c: New file.
621         * elf/ifuncmain5pic.c: New file.
622         * elf/ifuncmain5picstatic.c: New file.
623         * elf/ifuncmain5pie.c: New file.
624         * elf/ifuncmain5static.c: New file.
625         * elf/ifuncmain5staticpic.c: New file.
626         * elf/ifuncmain6pie.c: New file.
627         * elf/ifuncmain7.c: New file.
628         * elf/ifuncmain7pic.c: New file.
629         * elf/ifuncmain7picstatic.c: New file.
630         * elf/ifuncmain7pie.c: New file.
631         * elf/ifuncmain7static.c: New file.
632         * elf/ifuncmod5.c: New file.
633         * elf/ifuncmod6.c: New file.
635 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
637         [BZ #10085]
638         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
639         (nss_endgrent): New variable.
640         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
641         fields. Change type of files to bool and adjust all users.
642         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
643         (internal_endgrent): Call nss_endgrent if necessary.
644         (add_group): New function.  Broken out of...
645         (check_and_add_group): ...here.
646         (getgrent_next_nss): Remove test that any callback is available.
647         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
648         callback.  If there is no blacklist we can trust the results returned
649         by the initgroups_dyn callback.  In case there is a callback and we
650         find a group entry for the group ID but it doesn't contain the
651         correct member, switch to the slow mode and use getgrent_r.
652         (internal_getgrent_r): When we see a +: entry, determine whether
653         there is any callback and which we can use the initgroups_dyn
654         callback.
656 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
658         * malloc/malloc.c (_int_malloc): Add some consistency checks.
659         (_int_free): Likewise.
661         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
662         AF_IEEE802154.
663         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
664         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
665         and ARPHRD_IEEE802154_PHY.
667         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
668         relative to generic Linux version.
670 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
672         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
673         ($(objpfx)ifuncmain1vispie): Likewise.
675 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
677         * login/Makefile: Build pt_chown as PIE.
679 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
681         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
682         a format string.
683         * elf/sln.c (usage): Likewise.
684         * malloc/memusage.sh (do_help): Likewise.
685         * nss/getent.c (more_help): Likewise.
686         * posix/getconf.c (main): Likewise.
687         * sunrpc/rpcinfo.c (usage): Likewise.
688         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
690 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
692         * login/programs/pt_chown.c: Use libcap to drop privileges other than
693         those needed.
694         * login/Makefile: If necessary link pt_chown with -lcap.
695         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
696         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
698 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
700         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
701         comparisons.
702         * string/test-memchr.c (do_random_tests): Test very large lengths
703         as well.
705 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
707         * Makeconfig (+link-pie): Define.
708         (+prectorS): Define.
709         (+postctorS): Define.
710         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
711         * nscd/Makefile ($(objpfx)nscd): Likewise.
713 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
715         [BZ #10107]
716         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
717         with cmplwi.
718         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
720 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
722         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
723         into ...
724         * sysdeps/unix/grantpt.c: ...here.
726 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
728         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
729         chmod if it is necessary.
731         [BZ #10166]
732         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
733         when the slave device is in devpts or devfs.
735         [BZ #10183]
736         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
738         [BZ #10195]
739         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
740         of nd_opt_home_agent_info_preference to uint16_t.
741         Patch by Arnaud Ebalard <arno@natisbad.org>.
743         [BZ #10207]
744         * nss/getent.c: Add support for printing gshadow data.
746         [BZ #10203]
747         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
748         not just the currently used one and those which follow.
749         Patch by Joe Landers <jlanders@vmware.com>.
751         [BZ #10196]
752         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
753         * libio/Makefile: Run tst-fgetwc with necessary envvar.
754         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
756         [BZ #10217]
757         * stdlib/abort.c: Define variable __abort_msg.
758         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
759         * include/stdlib.h: Declare __abort_msg.
760         * assert/assert-perr.c: Don't free buffer for message immediately.
761         Store atomically in __abort_msg and free old buffer if necessary.
762         * assert/assert.c: Likewise.
763         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
764         store pointer in __abort_msg, and possibly free old string.
765         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
767         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
769         [BZ #10211]
770         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
771         handle leap seconds if they are available.
772         Patch by Akinori Hattori <hattya@gentoo.org>.
774         * timezone/tzselect.ksh: Update from tzcode2009i.
775         * timezone/zdump.c: Likewise.
776         * timezone/zic.c: Likewise.
778         * timezone/africa: Update from tzdata2009i.
779         * timezone/antarctica: Likewise.
780         * timezone/asia: Likewise.
781         * timezone/australasia: Likewise.
782         * timezone/backward: Likewise.
783         * timezone/etcetera: Likewise.
784         * timezone/europe: Likewise.
785         * timezone/factory: Likewise.
786         * timezone/iso3166.tab: Likewise.
787         * timezone/leapseconds: Likewise.
788         * timezone/northamerica: Likewise.
789         * timezone/pacificnew: Likewise.
790         * timezone/solar87: Likewise.
791         * timezone/solar88: Likewise.
792         * timezone/solar89: Likewise.
793         * timezone/southamerica: Likewise.
794         * timezone/systemv: Likewise.
795         * timezone/yearistype: Likewise.
796         * timezone/zone.tab: Likewise.
798 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
800         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
801         STT_GNU_IFUNC symbol or in 8 into type_class.
803         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
804         instead of Elf64_Addr.
806 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
808         * po/sv.po: Update from translation team.
810         [BZ #10229]
811         * misc/sys/select.h (__NFDBITS): Expression should have type int.
812         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
813         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
814         the C version.
816 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
818         * Versions.def: Add GLIBC_2.11 for libpthread.
820 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
822         * resolv/res_send.c (send_dg): Remember we switched to
823         single-request mode.
825 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
827         * dlfcn/dlfcn.h: Remove comma at end of enum.
828         Patch by J.H.M. Dassen <rdassen@redhat.com>.
830         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
831         parsing mode string.
833 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
835         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
837         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
839         * sysdeps/x86_64/multiarch/strlen.S: New file.
840         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
841         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
842         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
843         content.
845         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
846         is defined.
848 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
850         * sysdeps/x86_64/strlen.S: Minor optimizations.
852 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
854         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
855         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
856         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
857         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
858         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
859         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
860         ifuncmain3.c, ifuncmod3.c,.
861         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
862         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
863         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
864         ifuncmain4picstatic.
865         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
866         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
867         ifuncmain3, ifuncmain4.
868         (tests): Depend on $(objpfx)ifuncmain1pie.out and
869         $(objpfx)ifuncmain1vispie.out.
870         (modules-names): Add ifuncmod1 ifuncmod3.
871         (generated): Add ifuncmain1pie ifuncmain1pie.out
872         ifuncmain1vispie ifuncmain1vispie.out.
873         Define rules to build and run the tests.
874         * elf/ifuncdep1.c: New file.
875         * elf/ifuncdep1pic.c: New file.
876         * elf/ifuncdep2.c: New file.
877         * elf/ifuncdep2pic.c: New file.
878         * elf/ifuncmain1.c: New file.
879         * elf/ifuncmain1pic.c: New file.
880         * elf/ifuncmain1picstatic.c: New file.
881         * elf/ifuncmain1pie.c: New file.
882         * elf/ifuncmain1static.c: New file.
883         * elf/ifuncmain1staticpic.c: New file.
884         * elf/ifuncmain1vis.c: New file..
885         * elf/ifuncmain1vispic.c: New file..
886         * elf/ifuncmain1vispie.c: New file.
887         * elf/ifuncmain2.c: New file.
888         * elf/ifuncmain2pic.c: New file.
889         * elf/ifuncmain2picstatic.c: New file.
890         * elf/ifuncmain2static.c: New file.
891         * elf/ifuncmain3.c: New file.
892         * elf/ifuncmain4.c: New file.
893         * elf/ifuncmain4picstatic.c: New file.
894         * elf/ifuncmain4static.c: New file.
895         * elf/ifuncmod1.c: New file.
896         * elf/ifuncmod3.c: New file.
898 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
900         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
902 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
904         [BZ #10221]
905         * posix/Makefile (routines): Add execvpe.
906         * posix/Versions: Export execvpe for GLIBC_2.11.
907         * posix/execvp.c: Now only a wrapper.  Move code to...
908         * posix/execvpe.c: ...here.  New file.
909         * posix/unistd.h: Declare execvpe.
911 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
913         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
914         for STT_GNU_IFUNC handling for efficiency.
915         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
917         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
918         _exit.
919         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
921 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
923         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
924         for !SHARED.
926 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
928         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
929         is not defined.
930         (__rela_iplt_start): New declaration.
931         (__rela_iplt_end): Likewise.
932         (__rel_iplt_start): Likewise.
933         (__rel_iplt_end): Likewise.
934         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
935         * elf/elf.h (R_386_IRELATIVE): New macro.
936         (R_X86_64_IRELATIVE): New macro.
937         (R_386_NUM): Updated.
938         (R_X86_64_NUM): Likewise.
939         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
940         (libc_ifunc_hidden_def): New macro.
941         * sysdeps/generic/dl-irel.h: New file.
942         * sysdeps/i386/dl-irel.h: New file.
943         * sysdeps/x86_64/dl-irel.h: New file.
944         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
945         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
946         Handle R_386_IRELATIVE.
947         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
948         (elf_machine_lazy_rela): Likewise.
949         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
950         R_X86_64_IRELATIVE.
951         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
953 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
955         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
956         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
957         are no differences.  If an architecture has bits in CPUID index 1
958         meaning different things the values for the COMMON_CPUID_INDEX_1
959         index must not be set.
960         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
961         (HAS_POPCOUNT): ...this.  New macro.
962         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
963         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
964         to set the value for Intel and AMD architectures.
965         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
966         INTEL_CPUID_INDEX_1.
967         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
968         change.
970 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
972         * configure.in: Move AC_CANONICAL_HOST before first use of $host
973         and $build.
975 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
977         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
978         (__expm1l): Set errno to ERANGE on overflow.
979         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
980         (__tanl): Set errno to EDOM for Â±Inf.
981         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
982         (__cosl): Set errno to EDOM for Â±Inf.
983         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
984         (__sinl): Set errno to EDOM for Â±Inf.
986         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
987         defined, use it.
988         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
989         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
990         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
992 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
994         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
995         code accessing it.
996         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
998 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
1000         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
1001         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
1002         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
1003         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
1005         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
1006         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
1007         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
1008         defined.
1009         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1010         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
1012 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
1014         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
1015         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
1016         is, either do nothing at all if __ASSUME_ACCEPT4, or
1017         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
1018         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
1019         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
1020         define.
1021         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
1022         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
1023         internal_accept4 in socket directory.
1025 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
1027         * sysdeps/ia64/configure.in: New file.
1029 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1031         [BZ #10162]
1032         * sysdeps/ia64/memchr.S: Use speculative load.
1034         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
1035         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
1036         use it.
1038         * sysdeps/i386/__longjmp.S: Add .text.
1039         * sysdeps/x86_64/__longjmp.S: Likewise.
1041 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
1043         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
1044         __ASSUME_ACCEPT4 for IA-64.
1046 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
1048         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
1050         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
1051         (SOCKOP_accept4): Define.
1053 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
1055         Sun approved the change of the license.
1056         * sunrpc/auth_des.c: Replace license text.
1057         * sunrpc/auth_none.c: Likewise.
1058         * sunrpc/auth_unix.c: Likewise.
1059         * sunrpc/authdes_prot.c: Likewise.
1060         * sunrpc/authuxprot.c: Likewise.
1061         * sunrpc/bindrsvprt.c: Likewise.
1062         * sunrpc/clnt_gen.c: Likewise.
1063         * sunrpc/clnt_perr.c: Likewise.
1064         * sunrpc/clnt_raw.c: Likewise.
1065         * sunrpc/clnt_simp.c: Likewise.
1066         * sunrpc/clnt_tcp.c: Likewise.
1067         * sunrpc/clnt_udp.c: Likewise.
1068         * sunrpc/clnt_unix.c: Likewise.
1069         * sunrpc/des_crypt.c: Likewise.
1070         * sunrpc/des_soft.c: Likewise.
1071         * sunrpc/get_myaddr.c: Likewise.
1072         * sunrpc/getrpcport.c: Likewise.
1073         * sunrpc/key_call.c: Likewise.
1074         * sunrpc/key_prot.c: Likewise.
1075         * sunrpc/openchild.c: Likewise.
1076         * sunrpc/pm_getmaps.c: Likewise.
1077         * sunrpc/pm_getport.c: Likewise.
1078         * sunrpc/pmap_clnt.c: Likewise.
1079         * sunrpc/pmap_prot.c: Likewise.
1080         * sunrpc/pmap_prot2.c: Likewise.
1081         * sunrpc/pmap_rmt.c: Likewise.
1082         * sunrpc/rpc/auth.h: Likewise.
1083         * sunrpc/rpc/auth_unix.h: Likewise.
1084         * sunrpc/rpc/clnt.h: Likewise.
1085         * sunrpc/rpc/des_crypt.h: Likewise.
1086         * sunrpc/rpc/key_prot.h: Likewise.
1087         * sunrpc/rpc/netdb.h: Likewise.
1088         * sunrpc/rpc/pmap_clnt.h: Likewise.
1089         * sunrpc/rpc/pmap_prot.h: Likewise.
1090         * sunrpc/rpc/pmap_rmt.h: Likewise.
1091         * sunrpc/rpc/rpc.h: Likewise.
1092         * sunrpc/rpc/rpc_des.h: Likewise.
1093         * sunrpc/rpc/rpc_msg.h: Likewise.
1094         * sunrpc/rpc/svc.h: Likewise.
1095         * sunrpc/rpc/svc_auth.h: Likewise.
1096         * sunrpc/rpc/types.h: Likewise.
1097         * sunrpc/rpc/xdr.h: Likewise.
1098         * sunrpc/rpc_clntout.c: Likewise.
1099         * sunrpc/rpc_cmsg.c: Likewise.
1100         * sunrpc/rpc_common.c: Likewise.
1101         * sunrpc/rpc_cout.c: Likewise.
1102         * sunrpc/rpc_dtable.c: Likewise.
1103         * sunrpc/rpc_hout.c: Likewise.
1104         * sunrpc/rpc_main.c: Likewise.
1105         * sunrpc/rpc_parse.c: Likewise.
1106         * sunrpc/rpc_parse.h: Likewise.
1107         * sunrpc/rpc_prot.c: Likewise.
1108         * sunrpc/rpc_sample.c: Likewise.
1109         * sunrpc/rpc_scan.c: Likewise.
1110         * sunrpc/rpc_scan.h: Likewise.
1111         * sunrpc/rpc_svcout.c: Likewise.
1112         * sunrpc/rpc_tblout.c: Likewise.
1113         * sunrpc/rpc_util.c: Likewise.
1114         * sunrpc/rpc_util.h: Likewise.
1115         * sunrpc/rpcinfo.c: Likewise.
1116         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
1117         * sunrpc/rpcsvc/key_prot.x: Likewise.
1118         * sunrpc/rpcsvc/klm_prot.x: Likewise.
1119         * sunrpc/rpcsvc/mount.x: Likewise.
1120         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
1121         * sunrpc/rpcsvc/rex.x: Likewise.
1122         * sunrpc/rpcsvc/rstat.x: Likewise.
1123         * sunrpc/rpcsvc/rusers.x: Likewise.
1124         * sunrpc/rpcsvc/sm_inter.x: Likewise.
1125         * sunrpc/rpcsvc/spray.x: Likewise.
1126         * sunrpc/rpcsvc/yppasswd.x: Likewise.
1127         * sunrpc/rtime.c: Likewise.
1128         * sunrpc/svc.c: Likewise.
1129         * sunrpc/svc_auth.c: Likewise.
1130         * sunrpc/svc_authux.c: Likewise.
1131         * sunrpc/svc_raw.c: Likewise.
1132         * sunrpc/svc_run.c: Likewise.
1133         * sunrpc/svc_simple.c: Likewise.
1134         * sunrpc/svc_tcp.c: Likewise.
1135         * sunrpc/svc_udp.c: Likewise.
1136         * sunrpc/svc_unix.c: Likewise.
1137         * sunrpc/svcauth_des.c: Likewise.
1138         * sunrpc/xcrypt.c: Likewise.
1139         * sunrpc/xdr.c: Likewise.
1140         * sunrpc/xdr_array.c: Likewise.
1141         * sunrpc/xdr_float.c: Likewise.
1142         * sunrpc/xdr_mem.c: Likewise.
1143         * sunrpc/xdr_rec.c: Likewise.
1144         * sunrpc/xdr_ref.c: Likewise.
1145         * sunrpc/xdr_sizeof.c: Likewise.
1146         * sunrpc/xdr_stdio.c: Likewise.
1148         * po/da.po: Update from translation team.
1150 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1152         * sysdeps/sh/____longjmp_chk.S: New file.
1153         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
1154         * sysdeps/sh/sh4/__longjmp.S: Likewise.
1156 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
1157             Ulrich Drepper  <drepper@redhat.com>
1159         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
1160         (__nscd_cache_search): Assume each entry in the
1161         hash chain needs one hashentry and half of datahead.  Use
1162         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
1164 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
1166         * posix/sys/wait.h: Fix typos.  Pretty printing.
1167         * stdlib/stdlib.h: Likewise.  Correct comments.
1169         [BZ #10159]
1170         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
1172         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
1173         patch.
1175 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
1177         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
1178         Use it if we absolutely cannot reach any more correct list elements
1179         because that many do not fit into the currently mapped database.
1181 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
1183         * nscd/nscd_helper.c: Include stddef.h.
1184         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
1185         in a couple of places.  Return NULL if trail is not less than
1186         datasize, don't consider dataheads with length smaller than
1187         offsetof (struct datahead, data) + datalen.
1188         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
1189         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
1190         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
1191         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1192         * nscd/nscd_getai.c (__nscd_getai): Likewise.
1193         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
1194         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
1196         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
1197         Rename ...
1198         (fallocate64): ... to this.
1199         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
1200         Rename ...
1201         (fallocate64): ... to this.
1202         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
1203         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
1204         fallocate64@@GLIBC_2.10.
1205         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
1206         fallocate64@@GLIBC_2.11.
1207         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
1208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
1209         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
1210         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
1212         * nscd/selinux.c (nscd_avc_destroy): Removed.
1213         * nscd/selinux.h (nscd_avc_destroy): Likewise.
1214         * nscd/nscd.c (termination_handler): Don't call
1215         nscd_avc_destroy.
1217 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
1219         * include/atomic.h: Formatting.
1220         (catomic_compare_and_exchange_val_acq): Don't define if already
1221         defined by bits/atomic.h.
1223 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
1225         * math/libm-test.inc (expm1_test): Add test for range error.
1227         * Versions.def: Add GLIBC_2.11 for libc.
1228         * debug/Makefile (routines): Add longjmp_chk.
1229         Add rules to build and run tst-longjmp_chk.
1230         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
1231         * debug/longjmp_chk.c: New file.
1232         * debug/tst-longjmp_chk.c: New file.
1233         * include/bits/setjmp2.: New file.
1234         * include/stdio.h: Mark __fortify_fail as internal_function.
1235         * setjmp/Makefile (headers): Add bits/setjmp2.h.
1236         * setjmp/bits/setjmp2.h: New file.
1237         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
1238         of the aliases.
1239         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
1240         defined.
1241         * sysdeps/i386/____longjmp_chk.S: New file.
1242         * sysdeps/x86_64/____longjmp_chk.S: New file.
1243         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
1244         * sysdeps/x86_64/__longjmp.S: Likewise.
1246         * version.h: Bump for 2.11 development.
1248         * elf/check-execstack.c: New file.
1249         * elf/Makefile: Add rules to build and run check-execstack.
1251 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
1253         * version.h (VERSION): Bump to 2.10.1.
1255         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
1256         compatibility functions.
1257         * nss/getXXent_r.c: Likewise.
1258         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
1259         * gshadow/getsgnam_r.c: Likewise.
1260         * gshadow/Version: Remove duplicate entries.
1262         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
1263         for recent processor.
1264         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
1265         Likewise.
1267 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
1269         * version.h (VERSION): Bump for 2.10 release.
1270         * include/features.h (__GLIBC_MINOR__): Bump to 10.
1272         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
1273         same place we add ASFLAGS-config.
1275 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
1277         [BZ #10128]
1278         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
1279         or FORMERR and the other NOERROR, don't raise an error.
1281 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
1283         [BZ #10118]
1284         * Makeconfig (+asflags): New variable based upon ASFLAG or
1285         asflags-cpu.
1286         (ASFLAGS): Add override to set ASFLAGS to +asflags.
1287         * config.make.in (asflags-cpu): Add variable based upon
1288         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
1289         the assembler.
1290         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1291         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
1292         recognizes power6 instruction set due to passing -mcpu=power6 from
1293         --with-cpu=power6 when compiling .S files.
1294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1295         Likewise.
1296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1297         Likewise.
1298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1299         Likewise.
1301 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
1303         * string/stratcliff.c (do_test): Test for zero length
1304         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
1305         at the end of the page.
1307 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
1309         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
1311         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
1312         count is zero.
1314         * po/da.po: Update from translation team.
1316 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
1318         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
1319         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
1321 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
1323         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
1324         and READ_IMPLIES_EXEC.
1326 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
1328         * po/da.po: Update from translation team.
1330 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
1332         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
1333         comment change.
1335 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
1337         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
1338         to MAP_ANON in PROT_NONE mmap64 call.
1339         (open_archive): Likewise.
1340         (file_data_available_p): Use mmap64 instead of mremap.
1341         (enlarge_archive): Likewise.  Update head if ah->addr changed.
1342         Attempt to reserve address space after mmap64 region.
1344 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
1346         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
1347         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
1348         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1350         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
1351         atanh should set ERANGE.
1353         [BZ #10087]
1354         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
1355         result of lookup to make call to implement STT_GNU_IFUNC.
1356         (_dl_profile_fixup): Likewise.
1357         Patch by H.J. Lu <hjl.tools@gmail.com>.
1359         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
1360         warning.
1362         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
1363         from definition.
1365         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
1366         label if it is not used.
1368         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
1369         of gmon_hist_hdr and gmon_hdr structures and use them.
1370         * elf/sprof.c: Likewise.
1372         * elf/dl-load.c (open_verify): Add temporary variable to avoid
1373         warning.
1375         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
1377         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
1378         to avoid cast.
1380         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
1381         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
1382         to avoid warnings.
1383         (iruserok_af): Use ss_family instead of casts.
1385         * gmon/gmon.c (write_hist): Define real-type variant of
1386         gmon_hist_hdr structure and use it.
1387         (write_gmon): Likewise for gmon_hdr.
1389         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
1390         function if we are not going to define it.
1391         * sysdeps/unix/sysv/linux/writev.c: Likewise.
1393         * inet/inet6_option.c (option_alloc): Add temporary variable to
1394         avoid warning.
1396         * libio/strfile.h (struct _IO_streambuf): Use correct type and
1397         name of VTable element.
1398         * libio/iovsprintf.c: Avoid casts to avoid warnings.
1399         * libio/iovsscanf.c: Likewise.
1400         * libio/vasprintf.c: Likewise.
1401         * libio/vsnprintf.c: Likewise.
1402         * stdio-common/isoc99_vsscanf.c: Likewise.
1403         * stdlib/strfmon_l.c: Likewise.
1404         * debug/vasprintf_chk.c: Likewise.
1405         * debug/vsnprintf_chk.c: Likewise.
1406         * debug/vsprintf_chk.c: Likewise.
1408         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
1409         function pointers.
1411 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
1413         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
1415 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
1417         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
1419         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
1420         * sysdeps/i386/fpu/s_tanf.S: Likewise.
1421         * sysdeps/i386/fpu/s_tanl.S: Likewise.
1422         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1423         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
1424         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
1425         * math/libm-test.inc: Add tests for errno after tan calls with
1426         Â±Inf.
1428         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
1429         errno value vor pow(+-0,neg).
1430         * math/libm-test.inc (pow_test): Add tests for errno value for
1431         pole errors.
1433         * math/w_fmod.c: Also handle x=±Inf as error.
1434         * math/w_fmodf.c: Likewise.
1435         * math/w_fmodl.c: Likewise.
1436         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
1437         x=±Inf or y=0.
1439         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
1440         * sysdeps/i386/fpu/s_cosf.S: Likewise.
1441         * sysdeps/i386/fpu/s_cosl.S: Likewise.
1442         * sysdeps/i386/fpu/s_sin.S: Likewise.
1443         * sysdeps/i386/fpu/s_sinf.S: Likewise.
1444         * sysdeps/i386/fpu/s_sinl.S: Likewise.
1445         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1446         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
1447         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
1448         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
1449         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
1450         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
1451         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
1452         * math/libm-test.inc: Add tests for errno after sin/cos calls with
1453         Â±Inf.
1455         * stdlib/strtod_l.c (round_and_return): We have to set errno to
1456         ERANGE for underflows.
1457         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
1459         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
1460         the 2001 revision.
1462         * libio/tst-widetext.input: Remove surrogates.
1464         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
1466         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
1467         for lgamma should set errno to ERANGE, not EDOM.
1468         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
1470 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
1472         [BZ #10093]
1473         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
1474         UTF-16 surrogates.
1476         * locale/programs/locarchive.c (enlarge_archive): Conserve address
1477         space when temporarily mapping the whole content of the old file.
1479         [BZ #10100]
1480         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
1481         not zero.
1483 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
1485         * iconvdata/sjis.c (BODY): Don't advance inptr before
1486         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
1487         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
1488         two byte chars.
1490 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
1492         * locale/locarchive.h (struct locarhandle): Rename len field to
1493         mmaped and add new reserved field.
1494         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
1495         (create_archive): Reserve address space and then map file into it.
1496         (open_archive): Likewise.
1497         (file_data_available_p): New function.
1498         (compare_from_file): New function.
1499         (close_archive): Adjust to member name changes.
1500         (add_locale): Before comparing locale data, check it is mapped.
1501         Otherwise fall back to reading from the file.
1503 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
1505         * stdio-common/psiginfo.c: Include <errno.h>.
1507 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
1509         [BZ #9920]
1510         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
1511         to get consistency between 32 and 64 bit architectures.
1513         [BZ #10052]
1514         * sysdeps/unix/make-syscalls.sh: Add rule to create target
1515         directory for dummy syscall rules.
1516         Patch by Chris Steinbroner <hesh@pobox.com>.
1518 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
1520         [BZ #10092]
1521         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
1522         MNT_EXPIRE.
1524 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
1526         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
1527         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1529 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
1531         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
1532         data from vector to temporary buffer and call PWRITEV after it
1533         instead of vice versa.
1534         * sysdeps/posix/preadv.c: Fix up comment.
1535         * misc/preadv.c: Likewise.
1536         * misc/preadv64.c: Likewise.
1537         * misc/pwritev.c: Likewise.
1538         * misc/pwritev64.c: Likewise.
1539         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
1541 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
1543         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
1545         * shadow/Makefile (tests): Add tst-shadow.
1546         * shadow/tst-shadow.c: New file.
1548         [BZ #9955]
1549         * gshadow/Makefile: New file.
1550         * gshadow/Versions: New file.
1551         * gshadow/fgetsgent.c: New file.
1552         * gshadow/fgetsgent_r.c: New file.
1553         * gshadow/getsgent.c: New file.
1554         * gshadow/getsgent_r.c: New file.
1555         * gshadow/getsgnam.c: New file.
1556         * gshadow/getsgnam_r.c: New file.
1557         * gshadow/gshadow.h: New file.
1558         * gshadow/putsgent.c: New file.
1559         * gshadow/sgetsgent.c: New file.
1560         * gshadow/sgetsgent_r.c: New file.
1561         * gshadow/tst-gshadow.c: New file.
1562         * include/gshadow.h: New file.
1563         * Makeconfig (all-subdirs): Add gshadow.
1564         * Makefile (installed-headers): Add gshadow/gshadow.h.
1565         * nss/Makefile (databases): Add sgrp.
1566         * nss/Versions: Add gshadow functions as private exports.
1567         * nss/nsswitch.conf: Add gshadow entry.
1568         * nss/sgrp-lookup.c: New file.
1569         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
1570         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
1571         * nss/nss_files/files-sgrp.c: New file.
1572         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
1573         * sysdeps/unix/sysv/linux/paths.h: Likewise.
1575 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
1577         * stdio-common/printf.h: Add missing const to register_printf_modifier.
1578         * stdio-common/reg-modifier.c: Likewise.
1580 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
1582         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
1583         is no FPU.
1585 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
1587         [BZ #10086]
1588         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
1589         headers up to 2.6.30.
1591         * po/ca.po: Update from translation team.
1593 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
1595         [BZ #10069]
1596         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
1597         an object that uses static TLS if the TLS modid is higher than the
1598         reserve we always allocate.  At least for multi-threaded code.
1600 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
1602         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
1603         Numerically stable check for valid width.
1605         * locale/programs/locarchive.c (open_archive): Map the entire file
1606         and not just the administrative data.
1607         (add_locale): When we find a hash sum match compare the content
1608         to be sure.
1610         * malloc/malloc.c (malloc_info): Output address space information.
1612 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
1614         * malloc/malloc.c (malloc_info): Also output system memory information.
1616         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
1617         architectures have preadv/pwritev in 2.6.30.
1619         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
1620         * sysdeps/posix/readv.c: Likewise.
1621         Reported by Markus Armbruster <armbru@redhat.com>.
1623         * malloc/hooks.c (top_check): Force hook value into register.
1625 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1627         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
1628         calls to _dl_relocate_object.
1630 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
1632         [BZ #9957]
1633         * malloc/malloc.c (force_reg): Define.
1634         (sYSMALLOc): Load hook variable into variable
1635         before test and force into register.
1636         (sYSTRIm): Likewise.
1637         (public_mALLOc): Force hook value into register.
1638         (public_fREe): Likewise.
1639         (public_rEALLOc): Likewise.
1640         (public_mEMALIGn): Likewise.
1641         (public_vALLOc): Likewise.
1642         (public_pVALLOc): Likewise.
1643         (public_cALLOc): Likewise.
1644         (__posix_memalign): Likewise.
1645         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
1646         before test and force into register.
1647         * malloc/hooks.c (top_check): Likewise.
1648         (public_sET_STATe): Pretty printing.
1650         * resolv/res_send.c (send_dg): Don't just ignore the result we got
1651         in case we only receive one reply in single-request mode.
1653 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
1655         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
1656         are dlopened in statically linked program even for __LM_ID_CALLER.
1658 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
1660         * resolv/res_send.c (send_dg): Don't switch into single-request
1661         mode if we already are in it.
1663 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
1665         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
1666         are always at least 4 bytes in the returned line.
1668 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
1670         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
1671         __libc_use_alloca (8192), if the stack is too small use 512 bytes
1672         instead of 8K.  Stop searching in /proc/stat after hitting first
1673         line not starting with cpu.
1674         (next_line): Truncate too long
1675         lines at buffer size * 3/4 instead of pretending there were line
1676         breaks inside of large lines.
1678 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
1680         * sysdeps/x86_64/mp_clz_tab.c: New file.
1682 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
1683             Ulrich Drepper  <drepper@redhat.com>
1685         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
1686         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
1687         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
1689 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
1691         * sysdeps/sh/libc-tls.c: New file.
1693         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
1695 2009-04-14  Roland McGrath  <roland@redhat.com>
1697         * elf/elf.h: Add various missing ARM constants, to match binutils.
1699 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
1701         Optimizations from GMP.
1702         * sysdeps/x86_64/add_n.S: New file.
1703         * sysdeps/x86_64/addmul_1.S: New file.
1704         * sysdeps/x86_64/lshift.S: New file.
1705         * sysdeps/x86_64/mul_1.S: New file.
1706         * sysdeps/x86_64/rshift.S: New file.
1707         * sysdeps/x86_64/sub_n.S: New file.
1708         * sysdeps/x86_64/submul_1.S: New file.
1710 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
1712         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
1713         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
1714         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
1715         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
1717 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
1719         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
1720         preadv/pwritev.
1722 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
1724         * sysdeps/x86-64/strrchr.S: New file.
1726 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
1728         * stdio-common/printf.h (struct printf_info): Add user element.
1729         New types printf_arginfo_size_function, printf_va_arg_function.
1730         Declare register_printf_specifier, register_printf_modifier,
1731         register_printf_type.
1732         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
1733         (union printf_arg): Add pa_user element.
1734         Adjust __printf_arginfo_table type.
1735         Add __printf_va_arg_table, __printf_modifier_table,
1736         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
1737         declarations.
1738         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
1739         If registered arginfo call failed try normal specifier.
1740         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
1741         function.
1742         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
1743         * stdio-common/Versions: Export register_printf_modifier,
1744         register_printf_type, and register_printf_specifier for GLIBC_2.10.
1745         * stdio-common/reg-modifier.c: New file.
1746         * stdio-common/reg-type.c: New file.
1747         * stdio-common/reg-printf.c (__register_printf_specifier): New
1748         function.  Mostly the old __register_printf_function function but
1749         uses locking and type of third parameter changed.
1750         (__register_printf_function): Implement using
1751         __register_printf_specifier.
1752         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
1753         calls to arginfo functions.  Allocate enough memory for user-defined
1754         types.  Call new va_arg functions to get user-defined types.
1755         Try installed handlers even for existing format specifiers first.
1757 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
1759         * sysdeps/x86_64/rawmemchr.S: New file.
1761         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
1762         Simplified code and possible copy problem fixed.
1764         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
1765         function if it is not defined.  Add some necessary casts.
1766         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1768         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
1769         have preadv/pwritev in 2.6.30.
1771 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
1773         * malloc/malloc.c (malloc_info): New function.
1774         * malloc/malloc.h: Declare it.
1775         * malloc/Versions: Export malloc_info for GLIBC_2.10.
1777         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
1778         to avoid PLT slot.
1780         * malloc/malloc.c (_int_realloc): Add parameter with old block
1781         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
1782         Adjust all callers.
1783         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
1785 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
1787         * sysdeps/x86_64/strchrnul.S: New file.
1789         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
1790         depending libcrypt on -lfreebl3.
1792         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
1793         preadv/pwritev in 2.6.30.
1795         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
1796         instead of __strcasecmp.
1798         * string/stratcliff.c (do_test): Add memchr tests..
1799         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
1800         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
1801         first read quad word.
1803 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
1805         * string/strverscmp.c (__strverscmp): Fix last cleanups.
1806         * string/tst-svc.input: Add new test case.
1807         * string/tst-svc.expect: Adjust.
1808         * string/Makefile: Don't ignore tst-svc error.
1810         * sysdeps/x86_64/memchr.S: New file.
1812         * resolv/resolv.h (RES_SNGLKUP): Define.
1813         * resolv/res_init.c (res_setoptions): Recognize single-request option.
1814         * resolv/res_send.c (send_dg): If we sent two requests at once and
1815         only get one reply before timeout switch to mode where we send the
1816         second request only after the first answer has been received.
1818 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
1820         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
1821         * sysdeps/x86_64/strchr.S: Likewise.
1823 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
1825         * configure.in: We need to test for the compiler earlier.
1827         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
1828         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
1829         GLIBC_2.10.
1830         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
1831         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
1832         and pwritev.
1833         * misc/preadv.c: New file.
1834         * misc/preadv64.c: New file.
1835         * misc/pwritev.c: New file.
1836         * misc/pwritev64.c: New file.
1837         * sysdeps/posx/preadv.c: New file.
1838         * sysdeps/posx/preadv64.c: New file.
1839         * sysdeps/posx/pwritev.c: New file.
1840         * sysdeps/posx/pwritev64.c: New file.
1841         * sysdeps/unix/sysv/linux/preadv.c: New file.
1842         * sysdeps/unix/sysv/linux/preadv64.c: New file.
1843         * sysdeps/unix/sysv/linux/pwritev.c: New file.
1844         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
1845         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
1846         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
1848         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
1849         compatibility code.
1850         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
1852         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1853         __ASSUME_COMPLETE_READV_WRITEV.
1854         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
1855         with modern kernels.
1856         * sysdeps/unix/sysv/linux/writev.c: Likewise.
1858         * sysdeps/posix/readv.c: Since read is a cancellation point we have
1859         to free a possible malloced buffer in case of cancellation.
1860         * sysdeps/posix/writev.c: Likewise for write.
1862 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
1864         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
1866         * configure.in: Recognize --enable-nss-crypt.
1867         * config.make.in: Add nss-crypt entry.
1868         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
1869         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
1870         and include path for NSS directory to compiler for md5-crypt,
1871         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
1872         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
1873         function implementation, use NSS.  Introduce wrappers around the
1874         hash function calls.  Little code size optimization.
1875         * crypt/sha256-crypt.c: Likewise.
1876         * crypt/sha512-crypt.c: Likewise.
1877         * scripts/check-local-headers.sh: Ignore nss3 directory.
1879         * configure.in: Rename pic_default to libc_cv_pic_default.
1880         * config.make.in: Likewise.
1882 2009-04-01  Roland McGrath  <roland@redhat.com>
1884         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
1885         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
1886         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
1887         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
1888         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
1889         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
1890         (R_SPARC_NUM): Update.
1891         From Dave Miller <davem@davemloft.net>.
1893 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
1895         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
1897 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
1899         * elf/dl-open.c: Keep track of used name spaces and only iterate over
1900         those which are used.
1901         * elf/dl-addr.c: Likewise.
1902         * elf/dl-caller.c: Likewise.
1903         * elf/dl-fini.c: Likewise.
1904         * elf/dl-iteratephdr.c: Likewise.
1905         * elf/dl-libc.c: Likewise.
1906         * elf/dl-load.c: Likewise.
1907         * elf/dl-support.c: Likewise.
1908         * elf/dl-sym.c: Likewise.
1909         * elf/rtld.c: Likewise.
1910         * sysdeps/generic/ldsodefs.h: Likewise.
1912         * elf/dl-load.c: Remove support for systems without MAP_ANON.
1913         * elf/dl-minimal.c: Likewise.
1914         * elf/dl-misc.c: Likewise.
1915         * elf/rtld.c: Likewise.
1916         * sysdeps/generic/ldsodefs.h: Likewise.
1918 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
1920         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
1921         Avoid reuse of complex expression.
1923         * po/fr.po: Update from translation team.
1925 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
1927         * include/dirent.h: Yet more changes to match sort function type
1928         change.
1929         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
1930         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
1931         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
1933 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
1935         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
1937 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
1939         * nscd/connections.c (restart): Try to preserve the process name
1940         by reading the /proc/self/exe symlink and using the return name.
1941         Patch by Jeff Bastian <jbastian@redhat.com>.
1943 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
1945         [BZ #9733]
1946         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
1947         if we are not loading a new audit library.
1948         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
1949         Only use profiling trampoline for auditing if we are not relocating
1950         an audit library.
1951         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
1952         * elf/rtld.c: Likewise.
1953         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
1955         * elf/rtld.c (dl_main): Extend help message for --audit option.
1957         [BZ #9759]
1958         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
1959         alphasort64, versionsort, and versionsort64 to POSIX 2008.
1960         * dirent/alphasort.c: Adjust implementation to type change.
1961         * dirent/alphasort64.c: Likewise.
1962         * dirent/scandir.c: Likewise.
1963         * dirent/versionsort.c: Likewise.
1964         * dirent/versionsort64.c: Likewise.
1965         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
1966         declaration.
1967         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
1968         declaration.
1970         [BZ #9880]
1971         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
1972         correctly.  Set segleft member in output as required.
1973         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1974         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
1976         [BZ #9881]
1977         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
1978         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1979         * inet/Makefile (tests): Add tst-inet6_rth.
1980         * inet/tst-inet6_rth.c: New file.
1982         [BZ #5807]
1983         * string/strlen.c (strlen): Fix omission in the expression to test
1984         for NUL bytes.
1986 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
1988         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
1990         * elf/dl-runtime.c (reloc_offset): Define.
1991         (reloc_index): Define.
1992         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
1993         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
1994         computing index from reloc_offset.
1995         (_dl_call_pltexit): Likewise.
1996         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
1997         the relocation index to _dl_fixup.
1998         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
1999         _dl_call_pltexit.
2000         * sysdeps/x86_64/dl-runtime.c: New file.
2002         [BZ #9893]
2003         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
2004         alignment of La_x86_64_regs.  Store xmm parameters.
2005         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
2007         [BZ #9913]
2008         * string/strverscmp.c (__strverscmp): Fix case of different digits
2009         in fractional part of string.
2010         Patch by Jingyu Liu <jyliu@fortinet.com>.
2011         * string/Makefile (tests): Add tst-svc2.
2012         * string/tst-svc2.c: New file.
2014         * string/strverscmp.c (__strverscmp): Optimize size of tables.
2016         * locale/iso-639.def: Add Min Nan.
2018 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2020         [BZ #9948]
2021         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
2023 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
2025         * elf/dl-sysdep.c (auxvars): Compress data structure.
2027         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
2028         STT_GNU_IFUNC handling.
2029         (elf_machine_rela): Likewise.
2031 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
2033         * config.h.in (USE_MULTIARCH): Define.
2034         * configure.in: Handle --enable-multi-arch.
2035         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
2036         (_dl_fixup_profile): Likewise.
2037         * elf/do-lookup.c (dl_lookup_x): Likewise.
2038         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
2039         * elf/elf.h (STT_GNU_IFUNC): Define.
2040         * include/libc-symbols.h (libc_ifunc): Define.
2041         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
2042         framework in init-arch.h to get CPUID values.
2043         * sysdeps/x86_64/multiarch/Makefile: New file.
2044         * sysdeps/x86_64/multiarch/init-arch.c: New file.
2045         * sysdeps/x86_64/multiarch/init-arch.h: New file.
2046         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
2048         * config.make.in (experimental-malloc): Define.
2049         * configure.in: Handle --enable-experimental-malloc.
2050         * malloc/Makefile: Handle experimental-malloc flag.
2051         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
2052         * malloc/arena.c: Likewise.
2053         * malloc/hooks.c: Likewise.
2054         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
2056 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
2058         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
2059         prediction.  A few size optimizations.
2061 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2063         * time/tzset.c: Optimize a bit for size.
2065 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
2067         * include/stdio.h (fmemopen): Add libc_hidden_proto.
2068         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
2070         * elf/sprof.c: Avoid warning about multi-line comment.
2072 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2074         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
2075         DST name.
2076         * time/tst-posixtz.c: Add tests for quoted timezone names.
2078 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
2080         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
2081         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
2082         200809L instead of 200112L.
2083         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
2084         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
2086         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
2087         instead of __quick_exit_funcs to __run_exit_handlers.
2088         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
2089         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
2090         (__cxa_at_quick_exit): Remove attribute_hidden.
2091         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
2092         to __run_exit_handlers.
2093         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
2094         attribute_hidden.
2096 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2098         * po/id.po: Update from translation team.
2100 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
2102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
2103         .machine push; .machine "power6" and .machine pop around mtfsf
2104         insns outside of _ARCH_PWR6 define.
2105         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
2107         Likewise.
2108         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
2109         Likewise.
2110         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
2111         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
2112         relax_fenv_state): Likewise.
2114 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
2116         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
2117         cxa_at_quick_exit.
2118         (static-only-routines): Add at_quick_exit.
2119         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
2120         GLIBC_2.10.
2121         * stdlib/quick_exit.c: New file.
2122         * stdlib/at_quick_exit.c: New file.
2123         * stdlib/cxa_at_quick_exit.c: New file.
2124         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
2125         it appropriately.
2126         (__internal_atexit): New function.
2127         (__new_exitfn): Now takes parameter to point to the list to use.
2128         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
2129         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
2130         (exit): ...here.  Just call __run_exit_handlers appropriately.
2131         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
2132         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
2133         * stdlib/on_exit.c: Adjust call to __new_exitfn.
2134         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
2136         * po/id.po: Update from translation team.
2138 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
2140         * po/ru.po: Update from translation team.
2142 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
2144         * po/nl.po: Update from translation team.
2146 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
2148         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
2149         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2150         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2151         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2152         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2153         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2154         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2156         * po/pl.po: Update from translation team.
2158 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
2160         [BZ #7083]
2161         * sysdeps/unix/sysv/linux/fallocate.c: New file.
2162         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
2163         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
2164         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
2165         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
2166         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
2167         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
2168         for GLIBC_2.10.
2169         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2170         Add fallocate and fallocate64.
2172         * io/fcntl.h: Pretty printing.
2174 2009-03-02  Richard Guenther  <rguenther@suse.de>
2176         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
2177         attribute also for non-C99 inline semantics variant.
2179 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2181         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
2182         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
2183         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
2184         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
2185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
2186         Likewise.
2187         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
2188         Likewise.
2190 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
2192         * po/cs.po: Update from translation team.
2194 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
2196         * po/bg.po: Update from translation team.
2197         * po/sv.po: Likewise.
2198         * po/fi.po: Likewise.
2199         * po/vi.po: Likewise.
2201 2009-02-27  Roland McGrath  <roland@redhat.com>
2203         * Makeconfig (%.v.i): Depend on Makeconfig.
2204         Exclude % lines from initial #-comment removal.
2206 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
2208         * po/ko.po: Update from translation team.
2210 2009-02-26  Roland McGrath  <roland@redhat.com>
2212         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
2213         avoids unused warning.
2215 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
2216             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
2218         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
2219         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
2220         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
2221         and asm/user.h.  Include asm/ptrace.h.
2222         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
2223         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2224         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
2225         Undefine.
2226         (start_thread): Don't undefine.
2227         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
2228         Define.
2230 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
2232         * wctype/wctype.h: The *_l functions are in POSIX 2008.
2233         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
2234         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
2235         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
2236         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
2237         200112L to 200809L.
2238         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
2239         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2240         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
2241         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2242         _SC_THREAD_ROBUST_PRIO_PROTECT.
2243         * posix/unistd.h: fexecve is in POSIX 2008.
2244         * time/time.h: strftime_l is in POSIX 2008.
2245         * io/sys/stat.h: futimens is in POSIX 2008.
2246         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
2247         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
2248         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
2249         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
2250         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
2251         open_memstream, and vdprintf are in POSIX 2008.
2253 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
2255         * include/features.h: Define macros for XPG7/POSIX 2008.
2256         * ctype/ctype.h: The *_l functions are in POSIX 2008.
2257         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
2258         POSIX 2008.
2259         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
2260         * locale/xlocale.h: Define locale_t type.
2261         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
2262         in POSIX 2008.  Don't define locale_t here.
2263         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
2264         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
2265         UTIME_OMIT only with __USE_ATFILE.
2266         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
2267         * stdio-common/psiginfo.c: New file.
2268         * stdio-common/psiginfo-data.h: New file.
2269         * stdio-common/psiginfo-define.h: New file.
2270         * stdio-common/Makefile (routines): Add psiginfo.
2271         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
2272         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2273         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2274         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2275         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2276         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2277         * io/sys/stat.h: Move mknodat definition into same conditional as
2278         mknod.
2279         * time/sys/time.h: futimesat is not among the functions accepted
2280         into the POSIX standard.
2282         * include/features.h: If no feature selection given and we select
2283         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
2284         * posix/Versions: Export __posix_getopt.
2285         * posix/getopt.c (_getopt_initialize): Take additional parameter.
2286         Use it to alternatively initialize __posixly_correct.
2287         (_getopt_internal_r): Take addition parameter.  Pass on to
2288         _getopt_initialize.
2289         (_getopt_internal): Take addition parameter.  Pass on to
2290         _getopt_internal_r.
2291         (getopt): Pass additional zero to _getopt_internal.
2292         (__posix_getopt): New function.
2293         * posix/getopt.h: Add redirection for getopt.
2294         * posix/getopt1.c (getopt_long): Pass additional zero to
2295         _getopt_internal.
2296         (getopt_long_only): Likewise.
2297         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
2298         (_getopt_long_only_r): Likewise.
2299         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
2300         _getopt_internal_r.
2302 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
2304         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
2305         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2306         * sysdeps/posix/sysconf.c (__sysconf): Handle
2307         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
2308         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2310 2009-02-24  Roland McGrath  <roland@redhat.com>
2312         [BZ #9895]
2313         * README.template: Reworded not to use substituted version number.
2314         Renamed to ...
2315         * README: ... here (no longer generated).
2316         * Makefile (README): Target removed.
2318 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
2320         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
2321         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
2322         instead.
2324         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
2326         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
2328 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
2330         * po/bg.po: Update from translation team.
2332 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
2334         * stdlib/monetary.h: Uglify function parameter names.
2335         * sunrpc/rpc/pmap_clnt.h: Likewise.
2336         * sunrpc/rpc/svc.h: Likewise.
2337         * sunrpc/rpc/xdr.h: Likewise.
2338         * sunrpc/rpc/clnt.h: Likewise.
2339         * resolv/netdb.h: Likewise.
2340         * resolv/arpa/nameser.h: Likewise.
2341         * resolv/resolv.h: Likewise.
2342         * argp/argp.h: Likewise.
2343         * locale/langinfo.h: Likewise.
2344         * io/sys/stat.h: Likewise.
2345         * posix/spawn.h: Likewise.
2346         * nis/rpcsvc/nislib.h: Likewise.
2347         * malloc/obstack.h: Likewise.
2348         * sysdeps/ia64/bits/link.h: Likewise.
2349         * sysdeps/i386/bits/link.h: Likewise.
2350         * sysdeps/s390/bits/link.h: Likewise.
2351         * sysdeps/powerpc/bits/link.h: Likewise.
2352         * sysdeps/x86_64/bits/link.h: Likewise.
2353         * sysdeps/sparc/bits/link.h: Likewise.
2354         * sysdeps/sh/bits/link.h: Likewise.
2355         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
2356         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
2357         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
2358         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
2360 2008-12-01  Fredrik Unger  <fred@tree.se>
2362         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
2363         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
2364         _FP_UNPACK_RAW_2, fix up first argument.
2366 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
2368         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
2369         (GET_NPROCS_PARSER): Change parameters and use next_line.
2370         (__get_nprocs): Rewrite to not use stdio routines.
2371         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
2372         Change parameters and use next_line.
2374 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
2376         [BZ #5381]
2377         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
2378         Change mempool_alloc prototype.
2379         * nscd/mem.c (gc): Don't handle mem_in_flight.
2380         (mempool_alloc): Third parameter now only indicates whether this is the
2381         first call (to allocate data) or not.  If it is, get db rdlock.
2382         Release it on error.  Don't handle mem_in_flight.
2383         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
2384         Adjust third parameter of mempool_alloc calls.
2385         Nothing to do here in case mempool_alloc fails.
2386         Avoid local variable shadowing parameter.  No need to get db rdlock
2387         before calling cache_add.
2388         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
2389         no mem_in_flight array anymore.
2390         * nscd/connections.c: Remove definition and handling of mem_in_flight.
2391         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
2392         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
2393         in case mempool_alloc fails. No need to get db rdlock before calling
2394         cache_add.
2395         * nscd/hstcache.c (cache_addhst): Likewise.
2396         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2397         * nscd/servicescache.c (cache_addserv): Likewise.
2398         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
2400 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
2402         * po/lt.po: Update from translation team.
2404 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
2406         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
2407         defined, allow additional data to be added using the optional
2408         MORE_ELF_HEADER_DATA macro.
2409         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
2410         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
2412 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
2414         * include/atomic.h: Define catomic_and if not already defined.
2415         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
2416         * sysdeps/i386/i486/bits/atomic.h: Likewise.
2418 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
2420         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
2421         Change all callers.
2422         (_int_realloc): Likewise.  Third argument is now padded size
2423         All _int_* functions are now static.
2425         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
2426         * malloc/arena.c: Likewise.
2427         * include/malloc.h: Remove now unnecessary declarations of the _int_*
2428         functions.
2430         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
2431         easily.
2433         * malloc/malloc.c: Add branch prediction for use of the hooks.
2435         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
2437 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
2439         [BZ #7095]
2440         * bits/confname.h: Add SUSv7 macros for getconf environments.
2441         * bits/environments.h: Likewise.
2442         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
2443         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
2444         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
2445         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
2446         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
2447         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
2448         * posix/getconf.c: Likewise.
2449         * posix/sysconf.c: Likewise.
2450         * sysdeps/posix/sysconf.c: Likewise.
2451         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
2452         environments.
2454 2009-01-16  Petr Baudis  <pasky@suse.cz>
2456         [BZ #9753]
2457         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
2458         even if we currently have zero nscount.
2460 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
2462         [BZ #9781]
2463         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
2464         the input line is too long.
2466         * po/Makefile (libc.pot): Add f_print as function taking c-format
2467         parameter.
2469         * debug/xtrace.sh: Unify translatable messages.
2470         * elf/ldd.bash.in: Likewise.
2471         * elf/sprof.c: Likewise.
2472         * locale/programs/locale.c: Likewise.
2473         * malloc/memusage.sh: Likewise.
2474         * nss/getent.c: Likewise.
2476 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
2478         * debug/pcprofiledump.c (print_version,
2479         argp_program_version_hook): New function.
2480         * elf/ldconfig.c (more_help): New function.
2481         (argp): Use it.
2482         * elf/sln.c (usage): New function.
2483         (main): Support --help and --version.
2484         * malloc/memusagestat.c (print_version): New function.
2485         (argp_program_version_hook): New variable.
2486         * nscd/nscd.c (more_help): New function.
2487         (argp): Use it.
2488         * posix/getconf.c (main): Send --version output to stdout.
2489         Support --help.
2490         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
2491         arguments.  All callers changed.
2492         (print_version): New function.
2493         (parseargs): Support --help and --version.
2494         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
2495         changed.
2496         (print_version): New function.
2497         (main): Use getopt_long.  Support --help and --version.
2498         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
2499         --version.
2501 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
2503         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
2504         (update_data): Fix handling of wrapping back
2505         to the beginning of the buffer.
2507         [BZ #9823]
2508         * stdio-common/psignal.c (psignal): Fix test for empty string.
2510 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
2512         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
2513         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
2514         move _null_auth to .rodata.
2516         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
2517         value of 24.
2519         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
2521         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
2522         today than when the original code was written.  Use larger
2523         buffers.  This also makes it unnecessary to have stat information,
2524         if this causes extra efforts.
2525         (__opendir): In case O_DIRECTORY works, don't call fstat just for
2526         __alloc_dir.
2528 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
2530         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
2531         is set.
2532         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
2533         * sysdeps/sh/sh4/__longjmp.S: Likewise.
2534         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
2535         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
2536         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
2537         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
2539 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
2541         * po/ru.po: Update from translation team.
2543 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
2545         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
2546         Add _tid slot to maintain consistency with kernel.
2548 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
2550         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
2551         incomplete characters at end of input buffer.
2552         * libio/Makefile (tests): Add tst-fgetwc.
2553         * libio/tst-fgetwc.c: New file.
2554         * libio/tst-fgetwc.input: New file.
2556 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
2558         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
2560 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
2562         [BZ #9793]
2563         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
2564         *OUTBUFSTART unless the whole output fit into the buffer.
2565         * iconv/Makefile (tests): Add tst-iconv4.
2566         * iconv/tst-iconv4.c: New file.
2568 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
2570         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
2571         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2573 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
2575         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
2576         newer linker scripts.
2578 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
2580         [BZ #7040]
2581         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
2582         inotify_rm_watch should have type int.
2584 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
2586         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
2587         Make aligned_restore_vmx a local symbol.
2588         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
2589         Likewise.
2591 2009-01-30  Andreas Jaeger  <aj@suse.de>
2593         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
2594         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
2595         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
2596         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
2597         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
2598         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
2599         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
2601 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
2603         [BZ #9726]
2604         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
2605         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
2607 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
2609         [BZ #9726]
2610         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2611         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
2612         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2613         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
2615 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
2617         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
2618         memcpy instead of memcmp.
2619         (_dl_setup_pointer_guard): Likewise.
2621 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
2623         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
2624         manipulated brk, use malloc_printerr.
2625         * misc/sbrk.c (__sbrk): Better error handling for nonsense
2626         requests.
2628 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
2630         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
2631         rindex): For C++ add inlines so that they can be recognized as
2632         builtins.
2633         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
2635 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
2636             Jakub Jelinek  <jakub@redhat.com>
2638         * string/string.h: Define correct C++ prototypes for gcc 4.4.
2639         * wcsmbs/wchar.h: Likewise.
2641 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
2643         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
2644         (stackinfo_sub_sp): Define.
2646 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
2648         [BZ #9750]
2649         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
2650         * include/alloca.h (alloca_account): Define.
2651         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
2652         (stackinfo_sub_sp): Define.
2654         * nscd/connections.c (nscd_init): If database file access fails
2655         check whether this is due to permission problems and bail in that
2656         case.
2658         [BZ #9741]
2659         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
2660         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
2662 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2664         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
2665         Add "t" to clobber list.
2666         (INTERNAL_SYSCALL_NCS): Likewise.
2668 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
2670         * nss/getent.c (print_networks): Don't print comma between aliases.
2672 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
2674         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
2676         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
2677         the hash table.
2678         * misc/Makefile (tests): Add bug-hsearch1.
2679         * misc/bug-hsearch1.c: New file.
2681 2009-01-22  Roland McGrath  <roland@redhat.com>
2683         * Makeconfig (%.v.i): Strip trailing # comments,
2684         not only whole-line comments.
2686 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
2688         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
2689         one parameter.  If non-NULL use it to initialize return value.
2690         (_dl_setup_pointer_guard): New function.
2691         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
2692         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
2693         * elf/rtld.c (security_init): Pass _dl_random to
2694         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
2695         pointer_chk_guard.
2696         * elf/dl-sysdep.c (_dl_random): New variable.
2697         (_dl_sysdep_start): Handle AT_RANDOM.
2698         (_dl_show_auxv): Likewise.
2699         * elf/dl-support.c (_dl_random): New variable.
2700         (_dl_aux_init): Handle AT_RANDOM.
2701         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
2702         to _dl_setup_stack_chk_guard.
2704         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
2706 2009-01-10  Roland McGrath  <roland@redhat.com>
2708         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
2710 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
2712         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
2714         [BZ #9706]
2715         * nss/nss_files/files-parse.c (strtou32): New function.
2716         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
2717         across 32-bit and 64-bit platforms.
2718         (INT_FIELD_MAYBE_NULL): Likewise.
2720 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
2722         [BZ #9720]
2723         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
2724         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
2725         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
2726         Likewise.
2728 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
2730         [BZ #697]
2731         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
2732         being NULL also if there are no backreferences.
2733         * posix/rxspencer/tests: Add testcases.
2735 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
2737         [BZ #9697]
2738         * posix/bug-regex17.c: Add testcases.
2739         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
2740         handling.
2742 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2744         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
2745         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
2746         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
2747         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
2748         for elf subdir.
2749         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
2750         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
2751         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
2752         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
2753         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2754         * sysdeps/unix/sysv/linux/s390/Versions: New file.
2756 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
2758         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
2759         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
2760         re_string_skip_chars, re_string_reconstruct): Likewise.
2761         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
2763 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
2765         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
2766         adjust the buffer alignment.
2768 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2770         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
2771         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
2772         net/route.h.
2774         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
2775         flavor to description only when flavor is not NULL.
2777         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
2778         mutex after SIGIO/SIGURG lookup loop.
2780 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2782         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
2784 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
2786         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
2787         handling.
2789 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
2791         * sysdeps/unix/sysv/linux/kernel-features.h
2792         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
2794         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
2795         if no output is written.
2797         * version.h: Bump to 2.10 development.
2799         * posix/getconf.c: Update copyright year.
2800         * nss/getent.c: Likewise.
2801         * iconv/iconvconfig.c: Likewise.
2802         * iconv/iconv_prog.c: Likewise.
2803         * elf/ldconfig.c: Likewise.
2804         * catgets/gencat.c: Likewise.
2805         * csu/version.c: Likewise.
2806         * elf/ldd.bash.in: Likewise.
2807         * elf/sprof.c (print_version): Likewise.
2808         * locale/programs/locale.c: Likewise.
2809         * locale/programs/localedef.c: Likewise.
2810         * nscd/nscd.c (print_version): Likewise.
2811         * debug/xtrace.sh: Likewise.
2812         * malloc/memusage.sh: Likewise.
2813         * malloc/mtrace.pl: Likewise.
2814         * debug/catchsegv.sh: Likewise.
2816 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
2818         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
2819         script.
2821 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
2823         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
2824         gethostbyname4_r function call succeeded, just leave the loop.
2826         [BZ #9694]
2827         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
2828         very end.
2829         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
2830         * wctype/Makefile (tests): Add bug-wctypeh.
2831         * wctype/bug-wctypeh.c: New file.
2833         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
2834         LOCALDOMAIN is defined.
2835         * nscd/nscd_getai.c (__nscd_getai): Likewise.
2837         * sysdeps/x86_64/bits/select.h: New file.
2839         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
2841 2008-12-21  Bruno Haible  <bruno@clisp.org>
2843         [BZ #9677]
2844         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
2845         if no output is written.
2847 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
2849         * login/utmp_file.c (pututline_file): Replace call to dup2 with
2850         libc internal symbol __dup2 to avoid access through the PLT.
2852 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
2854         [BZ #6545]
2855         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
2856         available only for __USE_GNU.
2858         * inet/Makefile (tests): Add tst-getni2.
2859         * inet/tst-getni2.c: New file.
2861         [BZ #7080]
2862         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
2863         NULL when NI_NAMEREQD is set.
2864         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2865         * inet/Makefile (tests): Add tst-getni1.
2866         * inet/tst-getni1.c: New file.
2868 2008-12-03  Petr Baudis  <pasky@suse.cz>
2870         [BZ #7067]
2871         * nscd/connections.c (invalidate_cache): Use prune_run_lock
2872         instead of prune_lock.
2873         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
2874         * nscd/nscd.h (database_dyn): Add prune_run_cache.
2876 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
2878         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
2879         use.
2881         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
2882         handling.
2884         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
2885         after reading name server list.
2887         [BZ #7058]
2888         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
2889         handling for host name aliases.
2891 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
2893         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
2894         instead of doing things manually.
2896 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
2898         * posix/regex_internal.h (build_wcs_upper_buffer):
2899         Return type is reg_error_t.
2901 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
2903         * posix/globtest.sh: Use mktemp to create temporary file and
2904         directory.
2906         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
2907         sets correctly.
2908         (__CPU_CLR_S): Likewise.
2909         (__CPU_ISSET_S): Likewise.
2911 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
2912             Ulrich Drepper  <drepper@redhat.com>
2914         * scripts/firstversion.awk: Use custom comparison function to compare
2915         version numbers.
2916         * scripts/versions.awk: Use sort invocation which can handle
2917         multi-digit sub-version numbers.
2919 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
2921         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
2922         * locale/iso-639.def: Add Chhattisgarhi entry.
2924 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
2926         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
2927         ESRCH return value.
2928         (_nss_dns_gethostbyname4_r): Likewise.
2929         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
2930         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
2931         gethostbyname4_r, we don't have a separate IPv6 status, so copy
2932         the no_data variable.
2934         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
2935         information at the correct index.
2937         * socket/sys/socket.h: Declare accept4.
2938         * socket/accept4.c: New file.
2939         * sysdeps/unix/sysv/linux/accept4.c: New file.
2940         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
2941         * socket/Makefile (routines): Add accept4.
2942         * socket/Versions: Export accept4 with version GLIBC_2.10.
2943         * socket/paccept.c: Removed.
2944         * sysdeps/unix/sysv/linux/paccept.c: Removed.
2945         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
2946         * Versions.def: Define GLIBC_2.10 for libc.
2947         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
2949         * nscd/connections.c: Use accept4.
2951         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
2953 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
2955         * resolv/res_send.c (send_dg): Create sockets with non-blocking
2956         flag already set.
2958         * stdlib/setenv.c (unsetenv): Don't search environment if it does
2959         not exist.
2960         * stdlib/Makefile (tests): Add tst-unsetenv1.
2961         * stdlib/tst-unsetenv1.c: New file.
2963 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
2965         * login/utmp_file.c (file_writable): New variable.
2966         (setutent_file): Don't try to open file for writing.
2967         (pututline_file): Before writing, make descriptor writable if
2968         necessary.
2970 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
2972         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
2973         to IPv4 or IPv6 if an interface has been found.
2975 2008-11-26  Roland McGrath  <roland@redhat.com>
2977         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
2978         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
2980         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
2981         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
2982         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
2984         * elf/elf.h (NT_386_IOPERM): New macro.
2985         (NT_PPC_VSX): New macro.
2987 2008-11-25  Roland McGrath  <roland@redhat.com>
2989         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
2990         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
2991         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
2992         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
2993         Subdirectories moved to ports repository.
2994         * configure.in (base_machine): Remove alpha case.
2996 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
2998         * sysdeps/mach/strerror_l.c: New file.
3000 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
3002         [BZ #6411]
3003         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
3004         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
3005         magic numbers.
3006         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
3007         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
3008         (relax_fenv_state): Same as above.
3009         (FPSCR_29): Reserve bit in ISA 2.05.
3010         (FPSCR_NI): Provide define for compat.
3011         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
3012         magic numbers.
3013         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
3014         magic numbers.
3015         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
3016         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
3017         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
3018         access to hwcap to account for hwcap size increase to uint64_t.
3019         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
3020         Likewise.
3021         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3022         (*setcontext): Likewise.
3023         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3024         New file.
3025         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3026         New file.
3027         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3028         (*setcontext): dynamically select mtfsf insn based on
3029         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
3030         increase to uint64_t.
3031         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3032         (*swapcontext): dynamically select mtfsf insn based on
3033         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
3034         increase to uint64_t.
3035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3036         New file.
3037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3038         New file.
3039         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3040         (*setcontext): dynamically select mtfsf insn based on
3041         PPC_FEATURE_HAS_DFP.
3042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3043         (*swapcontext): dynamically select mtfsf insn based on
3044         PPC_FEATURE_HAS_DFP.
3046 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
3048         * version.h: Bump for 2.9 release.
3049         * include/features.h (__GLIBC_MINOR__): Bump to 9.
3051         [BZ #7029]
3052         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
3053         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
3054         all the rounding.
3056 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
3058         [BZ #7009]
3059         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
3060         unknown request types for now.
3062 2008-11-11  Roland McGrath  <roland@redhat.com>
3064         * sysdeps/x86_64/configure: New file.
3066         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
3067         * configure: Regenerated.
3069 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3071         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
3072         correct instruction to remove the stack frame.
3074 2008-11-03  Michael Matz  <matz@suse.de>
3076         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
3077         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
3079 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
3081         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
3082         Remove.
3084         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
3085         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
3086         of the thread variable instead of void *.
3087         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
3088         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
3089         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3090         __libc_tsd_define arguments.
3091         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
3092         __libc_tsd_address arguments.  Remove union hack.
3093         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
3094         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
3095         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
3096         Adjust __libc_tsd_{set,get} arguments.
3097         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3098         __libc_tsd_define arguments.
3099         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
3100         arguments.
3101         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3102         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
3103         (LOCALE): Adjust __libc_tsd_define arguments.
3104         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
3105         arguments.
3106         (LOCALE): Adjust __libc_tsd_define arguments.
3107         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
3108         arguments.
3109         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
3110         arguments.
3112 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
3114         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
3115         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3117 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
3119         [BZ #6966]
3120         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
3122 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
3123             Ulrich Drepper  <drepper@redhat.com>
3125         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
3126         definition for GCC 3.1 and later.
3128 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
3130         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
3131         refetch dtv, as it might have changed.
3132         * elf/Makefile: Add rules to build and run tst-tls18.
3133         * elf/tst-tls18.c: New test.
3134         * elf/tst-tlsmod18a.c: New file.
3136 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
3138         [BZ #6875]
3139         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
3141 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
3143         [BZ #6867]
3144         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
3146         [BZ #6919]
3147         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
3148         Fix length of copy operation.
3150 2008-10-02  Pierre Habouzit <madcoder@debian.org>
3152         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
3153         and fix its calling convention.
3155 2008-10-07  Andreas Schwab  <schwab@suse.de>
3157         [BZ #6942]
3158         * resolv/res_send.c (send_vc): Fix last change.
3159         (send_dg): Align here as well.
3161 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
3163         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
3164         return value in case rlimit is RLIM_INFINITY.
3166         [BZ #6947]
3167         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
3168         for UL_SETFSIZE.
3169         * resource/Makefile (tests): Add bug-ulimit1.
3170         * resource/bug-ulimit1.c: New file.
3172         [BZ #6974]
3173         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
3174         without dot.  Properly terminate the string with a null byte.
3175         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
3177         [BZ #6980]
3178         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
3179         negative sizees.
3180         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
3181         negative __size.
3183         [BZ #6995]
3184         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
3186 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
3188         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
3189         abort if there is no initgroups_dyn function.
3191         * resolv/res_send.c (send_dg): On timeout, only return nonzero
3192         result if any of the queries really provided an answer.
3194 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
3196         * po/lt.po: Update from translation team.
3198 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
3200         * po/id.po: Update from translation team.
3202 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
3204         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
3205         Fix tests for existence of second reply.
3207 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
3209         * po/id.po: New file.
3210         Contributed by the Indonesian translation team.
3212 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
3214         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
3215         initialization.
3217 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
3219         * elf/Makefile: Add rules to build and run tst-tls17.
3220         * elf/tst-tls17.c: New test.
3221         * elf/tst-tlsmod17a.c: New file.
3222         * elf/tst-tlsmod17b.c: Likewise.
3224 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
3226         * stdlib/divmod_1.c: Use correct type for dummy variable.
3227         * stdlib/mod_1.c: Likewise.
3229 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
3231         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
3233 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
3235         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
3236         __nonnull order for C++.
3237         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
3238         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
3240 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
3242         * stdlib/longlong.h: Update from GCC.
3244 2008-10-09  Jakub Jelinek <jakub@redhat.com>
3245             David S. Miller  <davem@davemloft.net>
3247         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
3248         make sure any registers used with 64-bit 'branch-on-register'
3249         instructions have their top 32-bits clear.
3250         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
3251         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
3253 2008-09-18  Andreas Schwab  <schwab@suse.de>
3255         [BZ #6942]
3256         * resolv/res_send.c (send_vc): Fix use of unaligned address.
3257         Properly handle partial reads.
3259 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
3261         * elf/elf.h (STO_MIPS_PLT): New.
3262         (R_MIPS_COPY): New.
3263         (R_MIPS_JUMP_SLOT): New.
3264         (R_MIPS_NUM): Redefine to 128.
3265         (DT_MIPS_PLTGOT): New.
3266         (DT_MIPS_RWPLT): New.
3267         (DT_MIPS_NUM): Redefine to 0x35.
3269 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
3271         * timezone/africa: Update from tzdata2008f.
3272         * timezone/asia: Likewise.
3273         * timezone/australasia: Likewise.
3274         * timezone/europe: Likewise.
3275         * timezone/leapseconds: Likewise.
3276         * timezone/northamerica: Likewise.
3277         * timezone/southamerica: Likewise.
3278         * timezone/zone.tab: Likewise.
3280 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
3282         * nscd/connections.c: Disable use of paccept for now.
3284 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
3286         * socket/Versions: Remove paccept export for GLIBC_2.9.
3287         * socket/Makefile (routines): Remove paccept.
3288         * socket/sys/socket.h: Remove paccept declaration.
3290         * po/sv.po: Update from translation team.
3292 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
3294         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
3295         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
3297 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
3299         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
3300         Patch by Olivier Fourdan <ofourdan@redhat.com>.
3302 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
3304         * sunrpc/rpc/svc.h: Declare svcfd_create.
3305         Patch by Michael Solberg <msolberg@redhat.com>.
3307 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
3308             Ulrich Drepper  <drepper@redhat.com>
3310         * malloc/malloc.c (public_vALLOc): Try other arenas in case
3311         _int_valloc fails.
3312         (public_pVALLOc): Likewise.
3314 2008-09-02  Andreas Jaeger  <aj@suse.de>
3316         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
3317         commit.
3319 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
3321         [BZ #6860]
3322         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
3324 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
3326         * Makefile (check-data): Check data directory in add-ons.
3327         * elf/Makefile (check-data): Likewise.
3329 2008-08-18  Roland McGrath  <roland@redhat.com>
3331         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
3332         * configure: Regenerated.
3333         * config.make.in (cflags-cpu): New substituted variable.
3334         (with-cpu): Variable removed.
3335         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
3337 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
3339         [BZ #6845]
3340         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
3341         __signbitl definition and __LONG_DOUBLE_128__ guard from:
3342         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
3343         redundant.  Functions which call floating point assembler operations
3344         should go into a sysdeps powerpc/fpu directory.
3346 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
3348         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
3349         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
3351 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
3353         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
3355         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
3356         change related to AT_EXECFN.  We cannot use that string.
3357         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
3358         _dl_execfn member.
3359         * elf/dl-support.c: Remove _dl_execfn variable.
3360         (_dl_aux_init): Remove handling of AT_EXECFN.
3361         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
3362         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
3364 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
3366         [BZ #6544]
3367         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
3368         byte gets added to writes and seeks from the end use the length of
3369         the buffer and not the currently terminating NUL byte.
3371         [BZ #6634]
3372         * login/utmp_file.c (getutent_r_file): Take additional parameter.
3373         Set to true if locking failed.
3374         (getutid_r_file): Adjust caller.
3375         (pututline_file): Likewise.  Return NULL in this case.
3376         Patch mostly by halesh.s@gmail.com.
3378 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
3380         [BZ #6589]
3381         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
3382         Define.
3383         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
3385 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
3387         [BZ #6839]
3388         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
3389         macro since it is now available in elf/dynamic-link.h.
3391 2008-08-12  Roland McGrath  <roland@frob.com>
3393         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
3394         in case used outside of libc.
3395         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
3397 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
3399         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
3400         directly instead of going through dn_comp.
3402 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
3404         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3405         Fix asm constraints.
3407 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
3409         [BZ #6790]
3410         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
3411         (IPV6_PMTUDISC_PROBE): Likewise.
3413 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
3415         [BZ #6791]
3416         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
3418 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
3419             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3421         [BZ #6817]
3422         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
3423         Added the members 'vsx' and 'arch_2_06'.
3424         (_dl_powerpc_platforms): Add the member 'power7'.
3425         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
3426         to reflect the changes required by VSX and ISA 2.06.
3427         Modify _DL_PLATFORMS_COUNT to reflect the addition of
3428         'power7'.
3429         Defined PPC_PLATFORM_POWER7.
3430         (_dl_string_platform): Add support for POWER7.
3431         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
3432         capability and ISA 2.06.
3434 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
3436         [BZ #6824]
3437         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
3438         macro to detect use of 128 bit long double.
3439         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
3441 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
3443         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
3445         [BZ #5794]
3446         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
3447         parameters.
3448         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3449         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3451 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
3453         * nscd/connections.c (main_loop_poll): Pass a buffer which is
3454         guaranteed to be large enough to read inotify event.  Ignore
3455         EAGAIN error.  Better error message.  Add branch predicition.
3456         (main_loop_epoll): Likewise.
3458 2008-08-02  Roland McGrath  <roland@frob.com>
3460         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3461         Add memory clobbers.
3463 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
3465         * manual/arith.texi: Avoid @strong{Note:}.
3466         * manual/creature.texi: Likewise.
3467         * manual/filesys.texi: Likewise.
3468         * manual/math.texi: Likewise.
3469         * manual/memory.texi: Likewise.
3470         * manual/resource.texi: Likewise.
3471         * manual/syslog.texi: Likewise.
3472         * manual/time.texi: Likewise.
3474         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
3475         to prevent warning.
3477 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
3479         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
3480         new epoll_create1 interface.
3481         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3482         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
3483         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
3485         * include/arpa/nameser.h (NS_GET16): Use const pointer.
3486         (NS_GET32): Likewise.
3488         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
3489         syscalls, too.
3491         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
3492         use the AT_EXECFN value if it is no absolute path.
3493         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
3494         __ASSUME_AT_EXECFN.
3496         * Versions.def: Add GLIBC_2.9 to libresolv.
3497         * include/resolv.h: Remove hidden proto declarations for __ns_*
3498         functions.  Add them for __dn_count_labels and __p_secstodate.
3499         * include/arpa/nameser.h: Add a number of hidden proto declarations.
3500         Define ns_msg_getflags macro here.
3501         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
3502         and __p_secstodate.
3503         * resolv/Versions: Export functions from <arpa/nameser.h> from
3504         libresolv in version GLIBC_2.9.
3505         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
3506         hidden definitions.
3507         * resolv/ns_netint.c: Likewise.
3508         * resolv/ns_parse.c: Likewise.
3509         * resolv/ns_print.c: Likewise.
3510         * resolv/ns_samedomain.c: Likewise.
3511         * resolv/ns_ttl.c: Likewise.
3512         * resolv/arpa/nameser_compat.h: Likewise.
3513         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
3514         function calls.
3515         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
3516         instead of ns_get16.
3517         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
3518         __ns_get32 instead of ns_get16 and ns_get32 respectively.
3519         (gaih_getanswer_slice): Likewise.
3520         * resolv/Makefile (libresolv-routines): Add ns_date.
3521         * resolv/ns_date.c: New file.
3523         * elf/Makefile (check-localplt.out): Also check libresolv and
3524         libcrypt.
3526 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
3528         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3529         __ASSUME_O_CLOEXEC.
3531 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
3533         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
3534         buffer passed to NSS functions.
3536         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
3538         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
3539         Define.
3541         * misc/syslog.c (openlog_internal): Fix compile problem.
3543 2008-07-28  Roland McGrath  <roland@redhat.com>
3545         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
3547 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
3549         * io/ftw.c (add_object): Remove inline to avoid warning.
3551         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
3553         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
3554         Use it instead of locally defined resplen2 variable.
3555         (res_nsend): Adjust for __libc_res_nsend interface change.
3556         (send_vc): Initialize *resplen2 if necessary.  Read length of
3557         package into an appropriately aligned variable.  Store converted length
3558         in new variable and use it appropriately.
3559         Add branch prediction help.
3560         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
3561         and pass it on to __libc_res_nsend.  Adjust all callers.
3562         (__libc_res_nsearch): Likewise.
3563         (__libc_res_nqeurydomain): Likewise.
3564         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
3565         change.
3566         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
3567         Define resplen2 variable and pass it to __libc_res_nsearch and then
3568         to gaih_getanswer.
3569         (getanswer_r): In case of incorrect DNS data don't overread buffer.
3570         Add branch prediction.
3571         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
3572         (gaih_getanswer): Don't decode second slice if first one failed due
3573         to a too small buffer.  Don't let not found status of second
3574         decoder shadow results of the first.
3575         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
3576         and __libc_res_nquery interface changes
3577         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
3578         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
3579         __libc_res_nsearch, and __libc_res_nsend.
3580         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
3581         change.
3582         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
3583         __libc_res_nsearch interface changes.
3585 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
3587         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
3589         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
3590         file descriptors with close-on-exec set.
3591         (exec_comm_child): Fix the case where the write end of the pipe is
3592         STDOUT_FILENO already.  In case it is, clear close-on-exec.
3594         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
3595         * io/pipe2.c: Likewise.
3596         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
3597         instead of __ASSUME_PACCEPT.
3598         * include/unistd.h: Declare __have_pipe2.
3599         * libio/iopopen.c: Implement "e" flag.
3600         * libio/Makefile (tests): Add tst-popen1.
3601         * libio/tst-popen1.c: New file.
3603         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
3604         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3606 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
3608         [BZ #6771]
3609         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
3610         success call of _IO_SEEKOFF or calls which failed because the
3611         descriptor is for a pipe.
3613         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
3614         magic number.
3616         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
3618         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
3619         F_SETFD use if we know fopen set the flag.
3621         * login/utmp_file.c (setutent_file): Minor optimization in case
3622         O_CLOEXEC is available.
3624 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
3626         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
3627         * elf/Makefile: Use pie-ccflag variable.
3628         * nscd/Makefile: Likewise.
3629         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
3631 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
3633         [BZ #6724]
3634         * Versions.def: Add GLIBC_2.9 version tag for libutil.
3635         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
3636         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
3637         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
3638         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
3639         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
3640         utmp32, utmpx32 and login32.
3641         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
3642         versions of struct utmp functions to libc and libutil.
3643         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
3644         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
3645         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
3646         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
3647         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
3648         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
3649         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
3650         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
3651         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
3652         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
3653         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
3654         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
3655         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
3656         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
3657         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
3658         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
3659         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
3660         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
3661         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
3662         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
3663         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
3664         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
3666 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
3668         * scripts/gen-as-const.awk: Generate more widely usable code by
3669         using 64-bit arithmetic.
3671         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3672         the same treatment as narrow output code in last patch.
3674         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
3676         [BZ #6763]
3677         * elf/dl-load.c (local_strdup): Remove inline.
3678         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
3679         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
3680         part of the object.
3682         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
3684 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
3686         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
3687         the new syscalls, too.
3689         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
3690         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
3692         [BZ #6698]
3693         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
3694         parameter for end of buffer.  If temporary copy is too large use
3695         malloc.
3696         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
3697         interface change.
3698         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
3699         string rewrite when allocating buffer.
3701         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
3702         syscalls, too.
3704         * nscd/connections.c (nscd_init): Clean up fcntl call.
3706         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
3707         SOCK_NONBLOCK if possible.
3709         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
3710         SOCK_CLOEXEC if available.
3712         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
3713         __libc_clntudp_bufcreate_internal.
3714         * include/sys/socket.h: Declare __have_sock_cloexec.
3715         * socket/Makefile (aux): Add have_sock_cloexec.
3716         * socket/have_sock_cloexec.c: New file.
3717         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
3718         __libc_clntudp_bufcreate.
3719         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
3720         which takes an additional parameter.  Create socket with non-blocking
3721         mode and close-on-exec flag set, if wanted.
3722         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
3723         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
3724         instead of clntudp_create.  The socket has already the close-on-exec
3725         flag set if SOCK_CLOEXEC is defined.
3727 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
3729         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3730         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
3731         appropriate.
3732         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
3733         non-blocking mode by using socket, paccept, and inotify_init1.
3735         * Versions.def (glibc): Add GLIBC_2.9.
3736         * io/Makefile (routines): Add dup3 and pipe2.
3737         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
3738         * io/dup3.c: New file.
3739         * io/pipe2.c: New file.
3740         * posix/unistd.h: Declare dup3 and pipe2.
3741         * socket/Makefile (routines): Add paccept.
3742         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
3743         * socket/paccept.c: New file.
3744         * socket/sys/socket.h: Declare paccept.
3745         * sysdeps/unix/syscalls.list: Add entry for dup3.
3746         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
3747         epoll_create2 and inotify_init1.
3748         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
3749         * sysdeps/unix/sysv/linux/paccept.c: New file.
3750         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
3751         possible.
3752         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
3753         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
3754         inotify_init1, and pipe2 entries.
3755         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
3756         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
3757         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
3758         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
3759         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
3760         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
3761         SOCK_NONBLOCK.
3762         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
3763         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
3764         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
3765         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
3766         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
3767         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
3768         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
3769         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
3770         EPOLL_NONBLOCK.  Declare epoll_create2.
3771         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
3772         EFD_NONBLOCK.
3773         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
3774         IN_NONBLOCK.  Declare inotify_init1.
3775         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
3776         SFD_NONBLOCK.
3777         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
3778         TFD_NONBLOCK.
3780         * elf/elf.h: Define AT_EXECFN.
3781         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
3782         LD_ORIGIN_PATH.
3783         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
3784         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
3785         if __ASSUME_AT_EXECFN is defined.
3786         (_dl_aux_init): Handle AT_EXECFN.
3787         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
3788         for 2.6.27 and up.
3789         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
3790         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
3791         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
3792         _dl_execfn if available and avoid compatibility code if
3793         __ASSUME_AT_EXECFN is defined.
3795         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
3796         _dl_discover_osversion only for older kernels.
3798 2008-07-22  Roland McGrath  <roland@frob.com>
3800         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
3802 2008-07-21  Roland McGrath  <roland@frob.com>
3804         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
3805         returned too much data out of line.
3807 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
3809         * locale/setlocale.c (setname): Remove inline to avoid compiler
3810         warning.
3812         [BZ #6712]
3813         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
3815 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
3817         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
3818         doesn't manage to write anything, fail.
3820         * malloc/hooks.c (__malloc_check_init): Remove printf.
3822 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3824         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
3826 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
3828         * nscd/connections.c (main_loop_poll): Fix handling of read errors
3829         from inotify.
3830         (main_loop_epoll): Likewise.
3832 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
3834         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
3836         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
3837         if DEBUG is defined.
3839         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
3840         query.  Adjust buffer size computation for padding.
3842 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
3844         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
3845         * stdio-common/tst-setvbuf1.c: New file.
3846         * stdio-common/tst-setvbuf1.expect: New file.
3848         [BZ #6719]
3849         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
3850         when selecting fully-buffered stream.
3851         Patch by Wang Xin <wxinee@gmail.com>.
3853 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3855         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
3856         (__open_2): New function.
3857         (__open64_2): New alias to __open_2.
3858         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
3859         (__openat_2): New function.
3860         (__openat64_2): New alias to __openat_2.
3862 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
3864         [BZ #6723]
3865         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
3867 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3869         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
3870         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
3871         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
3872         __hurd_dfail.
3873         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
3874         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
3875         * sysdeps/mach/hurd/send.c (__send): Likewise.
3876         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
3877         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
3879 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3881         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
3882         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
3883         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
3884         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
3885         * hurd/get-host.c (_hurd_get_host_config): Likewise.
3886         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
3888 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
3890         [BZ #6657]
3891         * time/strptime_l.c: Don't clear s.era_cnt after successful match
3892         of %EY.
3893         Patch by Petr Baudis.
3895 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
3897         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
3898         Patch by Peter Jones <pjones@redhat.com>.
3900 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
3902         [BZ #6654]
3903         * stdlib/canonicalize.c (__realpath): readlink can write too much
3904         into the buffer on platforms without PATH_MAX.
3906 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
3908         [BZ #6653]
3909         * posix/tst-regex.c (main): Rename to...
3910         (do_test): ... this. Remove cmdline option processing.
3911         (TIMEOUT): Define.
3912         (TEST_FUNCTION): Define.
3913         (CMDLINE_OPTIONS): Define.
3915 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
3917         [BZ #5210]
3918         * configure.in: Add -Werror to -fstack-protector test to catch
3919         unsupported architectures.
3920         Patch by Gilles Esponasse <g.esp@free.fr>.
3922 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
3924         * stdlib/tst-setcontext.c: Set back_in_main before exit if
3925         getcontext returns ENOSYS.
3927 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
3929         * nscd/connections.c (main_loop_poll): Fix test for read error.
3930         (main_loop_epoll): Likewise.
3932 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
3934         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
3935         better place so it is not called when nscd is used.
3937         * nscd/connections.c: Also recognize and handle changes to the
3938         resolver configuration file.
3940 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
3942         * time/strftime.c: Pass reference to tzset_called around to handle
3943         recursive calls.
3945         [BZ #6612]
3946         * time/strftime.c (__strftime_internal): Call tzset() only
3947         when printing timezone-dependent values.
3948         Based on a patch by Petr Baudis <pasky@suse.cz>.
3950         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
3951         unconditionally use second gaih_getanswer_slice result.
3953         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
3954         (getaddrinfo): RES must always be non-NULL.
3956 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
3958         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
3959         cr[34] registers.
3960         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3961         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3962         Likewise.
3963         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
3964         register.
3966 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
3968         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
3969         fields.
3970         * nscd/connections.c (inotify_fd): New variable.
3971         (nscd_init): Try to open an inotify descriptor.
3972         If successful, watch files for databases using inotify instead of
3973         having prune threads stat the files.
3974         (nscd_run_prune): Recognize clear_cache flag being set and call
3975         prune_cache appropriately.
3976         (main_loop_poll): Add inotify descriptor to wait set and handle the
3977         reported changes.
3978         (main_loop_epoll): Likewise.
3979         * nscd/cache.c (prune_cache): Don't stat files for databases if
3980         inotify is used.
3981         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
3982         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
3984         * nscd/grpcache.c (cache_addgr): Correctly compute size of
3985         fixed-size portion of the record.
3986         * nscd/servicescache.c (cache_addserv): Likewise.
3987         * nscd/pwdcache.c (cache_addpw): Likewise.
3988         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3990 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
3992         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
3993         out we don't use uninitialized memory.
3995         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
3996         the client.
3998 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
4000         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
4001         ignore T_DNAME messages.
4002         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
4004 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
4006         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
4007         Avoid segfault if first GETC returns eof/'\0'/'\n'.
4009 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
4011         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
4012         instead of portstr to nscd_getserv_r.  Patch by
4013         Roman Kagan <rkagan@mail.ru>.
4015 2008-05-26  Jim Meyering  <meyering@redhat.com>
4017         Remove more useless "if" tests before "free".
4018         * include/inline-hashtab.h (htab_delete): Likewise.
4019         * libio/freopen.c (freopen): Likewise.
4020         * libio/freopen64.c (freopen64): Likewise.
4021         * locale/programs/ld-collate.c (collate_read): Likewise.
4022         * misc/fstab.c (libc_freeres_fn): Likewise.
4023         * posix/glob.c (globfree): Likewise.
4025 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
4027         * string/Makefile (strop-tests): Add memmem.
4028         * string/test-memmem.c: New file.
4029         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
4030         (test_init): Size buf1 according to BUF1PAGES.
4032 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
4034         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
4035         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
4036         (CFLAGS-scanf17.c): New.
4037         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
4038         * stdio-common/scanf15.c (main): Likewise.
4039         * stdio-common/scanf16.c: New file.
4040         * stdio-common/scanf17.c: New file.
4042 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
4044         * resolv/res_send.c (send_dg): If we already have one of two
4045         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
4046         use the one answer insted of failing.
4048 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
4050         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
4051         being executed on PowerPC as the expected result exceeds IBM
4052         long double 128 __LDBL_MAX__.
4054 2008-05-21  Roland McGrath  <roland@redhat.com>
4056         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
4058         * Makefile (check-data): Use $(abi-name) before other guesses.
4059         Look in $(add-ons) dirs before scripts/data/.
4060         * elf/Makefile (check-data): Likewise.
4062         * scripts/soversions.awk: Grok ABI line.
4063         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
4064         Emit definition for abi-name variable.
4066 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
4068         * string/endian.h: Define new fixed-size hto* and *toh macros only
4069         if [__USE_BSD].
4071         * iconvdata/Depend: Add localedata.
4073 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4075         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
4077 2008-05-08  David S. Miller  <davem@davemloft.net>
4079         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
4080         HIDDEN_JUMPTARGET.
4081         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4082         (__SYSCALL_CLOBBERS): Remove %g* registers.
4083         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4084         (__SYSCALL_CLOBBERS): Likewise.
4085         * scripts/data/localplt-sparc-linux-gnu.data: New file.
4086         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
4088 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
4090         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4091         (CALL_ERRNO_LOCATION): Define.
4092         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4093         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4094         (CALL_ERRNO_LOCATION): Define.
4095         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4096         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
4097         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
4099 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
4101         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
4102         variable.
4104 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
4106         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
4107         (FIRST_FRAME_POINTER): Define.
4109 2008-05-09  David S. Miller  <davem@davemloft.net>
4111         * sysdeps/sparc/sparc64/backtrace.c: New file.
4113 2008-05-14  David S. Miller  <davem@davemloft.net>
4115         * sysdeps/sparc/machine-gmon.h: New file.
4116         * sysdeps/sparc/sparc-mcount.S: Likewise.
4117         * sysdeps/sparc/Makefile: Add sparc-mcount target to
4118         sysdep_routines in gmon directory.
4120 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
4122         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
4124 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
4126         * resolv/res_query.c (__libc_res_nquery): In case one of two
4127         answer was too short don't try to read that answer's header.
4129         * resolv/res_send.c (send_dg): In case of timeout and there are
4130         two queries and one has been answered, return value indicating
4131         success.
4133 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
4135         * nscd/cache.c (cache_add): Take additional parameter specifying
4136         whether this is in response of a cache refill.  Check alignment
4137         of package data.  Revamp waking of pruning thread.
4138         (prune_cache): Small optimization.
4139         * nscd/nscd.h: Adjust cache_add prototypes.
4140         * nscd/aicache.c: Adjust cache_add calls.
4141         * nscd/grpcache.c: Likewise.
4142         * nscd/hstcache.c: Likewise.
4143         * nscd/initgrcache.c: Likewise.
4144         * nscd/pwdcache.c: Likewise.
4145         * nscd/servicescache.c: Likewise.
4146         * nscd/connections.c (restart): Really disable cache use before
4147         exec attempt.  If it fails, reenable cache.
4148         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
4149         time to max to be able to notice concurrent cache additions.  Unlock
4150         prune_lock while performing gc.  Afterwards compute wakeup time with
4151         current wakeup_time value in mind.
4153 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
4155         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
4157         * nscd/mem.c (gc): Correctly determine highest used array element
4158         in mark.
4160         * nscd/mem.c (markrange): Add assert to check entries are all
4161         aligned.  Small cleanup in bitmap use.
4163         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
4164         blockoff of type nscd_ssize_t.
4165         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
4166         (mempoll_alloc): Record block offset and not address.
4168         * nscd/mem.c (gc): Fix test for stack overuse.
4170         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
4171         more asserts.
4173         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
4174         entry is available, believe it.
4176         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
4177         no answers return NSS_STATUS_NOTFOUND.
4178         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
4179         buffer does not have any content.
4181 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
4183         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
4185         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
4186         lookup, don't assign canon unconditionally.
4188 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
4190         * string/Makefile (distribute): Add str-two-way.h.
4192 2008-03-29  Eric Blake  <ebb9@byu.net>
4194         Rewrite string searches to O(n) rather than O(n^2).
4195         * string/str-two-way.h: New file.  For linear fixed-allocation
4196         string searching.
4197         * string/memmem.c: New implementation.
4198         * string/strstr.c: New implementation.
4199         * string/strcasestr.c: New implementation.
4201 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
4203         * posix/regcomp.c (optimize_utf8): Add a note on why we test
4204         opr.ctx_type.
4205         (calc_first): Initialize constraint field.
4206         (duplicate_node_closure): Use it instead of special casing ANCHORS.
4207         Use search_duplicated_node to avoid loops.  Fix grammar.
4208         (duplicate_node): Merge constraint field for all node types.
4209         (calc_eclosure_iter): Look at constraint field for all node types.
4210         * posix/regex_internal.c (create_cd_newstate): Don't look at
4211         create_cd_newstate.
4213 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
4215         [BZ #6428]
4216         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
4218         [BZ #6442]
4219         * string/endian.h: Add macros for fixed-size endian conversion.
4220         * bits/byteswap.h: Allow inclusion from <endian.h>.
4221         * sysdeps/i386/bits/byteswap.h: Likewise.
4222         * sysdeps/ia64/bits/byteswap.h: Likewise.
4223         * sysdeps/s390/bits/byteswap.h: Likewise.
4224         * sysdeps/x86_64/bits/byteswap.h: Likewise.
4225         * string/Makefile (tests): Add tst-endian.
4226         * string/tst-endian.c: New file.
4228         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
4229         Patch by Reuben Thomas.
4231 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
4233         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
4235 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
4237         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
4239         [BZ #6461]
4240         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
4241         Add missing braces.
4242         (BODY for __gconv_transform_internal_ascii): Likewise.
4244         [BZ #6472]
4245         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
4246         to be treated like link-local addresses.
4247         (match_prefix): Don't treat IPv4 loopback address special when
4248         converting to v4 mapped addressed.
4250         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
4251         if necessary.
4252         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
4253         * posix/tst-rfc3484-2.c: Likewise.
4254         * posix/tst-rfc3484-3.c: Likewise.
4256         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
4257         and SCTP.
4259         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
4261         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
4263         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
4265 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
4267         * po/lt.po: New file.  From Lituanian translation team.
4269 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
4271         Introduce TLS descriptors for i386 and x86_64.
4272         * include/inline-hashtab.h: New file, copied from 2005's
4273         libiberty, with fix for memory leak imported afterwards by
4274         Glauber de Oliveira Costa.
4275         * elf/tlsdeschtab.h: New file.
4276         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
4277         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
4278         (CHECK_STATIC_TLS): Move to...
4279         * elf/dynamic-link.h: ... this file.
4280         (TRY_STATIC_TLS): New macro.
4281         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
4282         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
4283         R_386_TLS_DESC): Define.
4284         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
4285         binutils.
4286         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
4287         R_X86_64_TLSDESC): Define.
4288         (R_386_NUM, R_X86_64_NUM): Adjust.
4289         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
4290         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4291         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4292         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
4293         release tlsdesc_table.
4294         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
4295         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
4296         (elf_machine_rel): Handle R_386_TLS_DESC.
4297         (elf_machine_rela): Likewise.
4298         (elf_machine_lazy_rel): Likewise.
4299         (elf_machine_lazy_rela): Likewise.
4300         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
4301         * sysdeps/i386/dl-tlsdesc.S: New file.
4302         * sysdeps/i386/dl-tlsdesc.h: New file.
4303         * sysdeps/i386/tlsdesc.c: New file.
4304         * sysdeps/i386/tlsdesc.sym: New file.
4305         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
4306         tlsdesc_table.
4307         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
4308         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4309         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4310         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
4311         release tlsdesc_table.
4312         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
4313         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
4314         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
4315         (elf_machine_rel): Handle R_X86_64_TLSDESC.
4316         (elf_machine_rela): Likewise.
4317         (elf_machine_lazy_rel): Likewise.
4318         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
4319         (__tls_get_addr): Do not declare for non-shared compiles.
4320         * sysdeps/x86_64/dl-tlsdesc.S: New file.
4321         * sysdeps/x86_64/dl-tlsdesc.h: New file.
4322         * sysdeps/x86_64/tlsdesc.c: New file.
4323         * sysdeps/x86_64/tlsdesc.sym: New file.
4324         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
4325         tlsdesc_table for both 32- and 64-bit structs.
4327 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
4329         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
4330         its own function.  This reduces the frame setup costs and more.
4332 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
4334         [BZ #3406]
4335         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
4336         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
4338 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
4340         * io/openat.c (__openat_2): Also pass fd to __openat.
4341         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
4342         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
4344         * string/tester.c (test_memcmp): Add a few more tests.
4345         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
4347 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
4349         * nscd/cache.c (cache_add): Before returning with failure and this
4350         is the first use of the record, mark it as unusable.
4351         * nscd/aicache.c: Don't touch the dataset after cache_add returns
4352         reporting a failure.
4353         * nscd/grpcache.c: Likewise
4354         * nscd/hstcache.c: Likewise.
4355         * nscd/initgrcache.c: Likewise.
4356         * nscd/pwdcache.c: Likewise.
4357         * nscd/servicescache.c: Likewise.
4359 2008-05-10  Roland McGrath  <roland@redhat.com>
4361         [BZ #6505]
4362         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
4364 2008-05-08  David S. Miller  <davem@davemloft.net>
4366         * misc/truncate64.c (truncate64): Use __truncate not truncate.
4368         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
4369         (__ieee754_y0l): Likewise.
4370         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
4371         (__ieee754_y1l): Likewise.
4372         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
4373         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
4374         frexpl and ldexpl.  math_private.h provides them and the latter
4375         is not even used.
4376         (__log1pl): Use __frexpl.
4378 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
4380         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
4381         prototypes.
4382         * include/arpa/nameser_compat.h: Define T_UNSPEC.
4383         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
4384         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
4385         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
4386         af==AF_UNSPEC.
4387         (_nss_nis_gethostbyname4_r): New function.
4388         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
4389         Change to also handle af==AF_UNSPEC.
4390         (get_tablename): New function.  Use it to avoid duplication.
4391         (_nss_nisplus_gethostbyname4_r): New function.
4392         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
4393         available.
4394         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
4395         * nss/nss.h: Define struct gaih_addrtuple.
4396         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
4397         af==AF_UNSPEC.
4398         (_nss_files_gethostbyname4_r): New function.
4399         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
4400         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
4401         calls.
4402         * resolv/res_query.c (__libc_res_nquery): Take two additional
4403         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
4404         look up IPv4 and IPv6.
4405         Change all callers.
4406         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
4407         for an additional query and answer buffer.  Pass to send_vc and
4408         send_dg.
4409         (send_vc): Send possibly two requests and receive two answers.
4410         (send_dg): Likewise.
4411         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
4412         __libc_res_nquery.
4413         (_nss_dns_gethostbyname4_r): New function.
4414         (gaih_getanswer_slice): Likewise.
4415         (gaih_getanswer): Likewise.
4416         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
4417         __libc_res_nquery call.
4418         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
4419         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
4420         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
4421         available.
4423 2008-05-05  David S. Miller  <davem@davemloft.net>
4425         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
4426         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
4428 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4430         Fix termios bit macros.
4431         Move *DLY definitions where they belong, in termios.h.
4432         Add *[0-3] definitions.
4433         Fixes confusion between VT and FF.
4434         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
4435         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
4436         are already defined to avoid collision with termios.h.
4437         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
4438         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
4439         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
4440         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
4441         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
4442         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
4443         VTDLY, VT0, VT1): New macros.
4444         [__USE_GNU] (OLCUC): Change value of macro.
4445         [__USE_XOPEN] (OFILL): New macro.
4446         [__USE_BSD] (CRTSCTS): Change value.
4447         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
4448         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
4449         (B7200, B14400, B28800, B76800): New macros.
4451 2008-05-01  David S. Miller  <davem@davemloft.net>
4453         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
4454         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
4455         (gen-as-const-headers): Add it.
4456         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
4457         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
4458         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
4459         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
4461         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
4462         six system call parameters.
4463         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
4465 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
4467         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
4468         RUSAGE_LWP.
4469         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
4470         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
4472 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
4474         * stdlib/tst-setcontext.c: Include unistd.h.
4476 2008-04-25  David S. Miller  <davem@davemloft.net>
4478         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
4479         Pass "union semun" properly in to sys_ipc, it must be passed
4480         by value, not by reference.
4482 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
4484         * nscd/Makefile (nscd-cflags): Set back to -fpie.
4485         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
4486         * nscd/connections.c (mem_in_flight): Likewise.
4488         * nscd/nscd.h (dbs): Make hidden.
4490         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
4491         Avoid returning -1, return 0 instead.
4493 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
4495         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
4497 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
4499         [BZ #5209]
4500         * sysdeps/unix/sysv/linux/times.c: New file.
4502         [BZ #5381]
4503         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
4504         mem_in_flight_list variables.  Add new parameter to mempool_alloc
4505         prototype.
4506         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
4507         appropriate mem_in_flight element.
4508         (gc): Take allocations which have not yet been committed to the
4509         database into account.
4510         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
4511         Reset mem_in_flight before returning.
4512         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
4513         cue it up in mem_in_flight_list.
4514         * nscd/aicache.c: Adjust mempool_alloc call.
4515         * nscd/grpcache.c: Likewise.
4516         * nscd/hstcache.c: Likewise.
4517         * nscd/initgrcache.c: Likewise.
4518         * nscd/pwdcache.c: Likewise.
4519         * nscd/servicescache.c: Likewise.
4520         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
4521         of -fpie.
4523         * nscd/connections.c (handle_request): Provide better error message
4524         in case SELinux forbids the service.
4526         * version.h (VERSION): Bump to 2.8.90.
4528 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
4530         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
4532 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
4534         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
4535         Also use for 32-bit.
4536         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
4537         __nextafter instead of nextafter to avoid local PLT.
4538         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
4539         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
4541         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
4543         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
4544         __fe_nomask_env.
4545         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
4546         <fenv_libc.h> instead of <fenv.h>.
4547         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
4548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
4550         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
4552         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
4553         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
4554         function from fegetexcept and make old name weak alias.
4555         * include/fenv.h: Declare __fegetexcept.
4556         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
4557         fegetexcept.
4558         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
4559         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
4560         to fetestexcept.
4561         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
4562         instead of frexpl to avoid local PLT.
4563         * math/s_significandl.c (__significandl): Use __ilogbl instead of
4564         ilogbl to avoid local PLT.
4565         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
4566         instead of ldexpl to avoid local PLT.
4567         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
4568         __roundl not roundl to avoid local PLT.
4569         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
4570         local PLTs.  Use __sincosl instead of separate sinl and cosl
4571         calls.
4572         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4574         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
4575         version for ppc64 to 2.4.21 since without it makecontext will fail.
4577         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
4578         to the ABI in use.
4579         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
4580         .__tls_get_addr.
4581         [__powerpc64__] (TLS_GD): Likewise.
4583 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
4585         [BZ #4997]
4586         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
4587         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
4588         mantissa.
4589         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4590         Likewise.  Also account for when x is an odd number between 2^52
4591         and 2^53-1.
4592         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
4593         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4594         * math/libm-test.inc (lround_test, llround_test): Added test cases to
4595         detect aforementioned erroneous conditions.
4597 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
4599         * configure.in: Check for -fno-section-anchors in addition to
4600         -fno-toplevel-reorder.
4602 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
4604         * include/features.h (__GLIBC_MINOR__): Bump to 8.
4606         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
4607         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
4608         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
4609         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
4610         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
4611         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
4613 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
4615         [BZ #5443]
4616         * time/era.c: Transform __libc_setlocale_lock into rwlock.
4617         * time/alt_digit.c: Likewise.
4618         * wcsmbs/wcsmbsload.c: Likewise.
4620 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
4622         * version.h (VERSION): Bump to 2.8.
4624         * timzeone/asia: Update from tzdata2008b.
4625         * timezone/backward: Likewise.
4626         * timezone/europe: Likewise.
4627         * timezone/northamerica: Likewise.
4628         * timezone/southamerica: Likewise.
4629         * timezone/iso3166.tab: Likewise.
4630         * timezone/leapseconds: Likewise.
4631         * timezone/zone.tab: Likewise.
4632         * timezone/private.h: Update from tzcode2008a.
4633         * timezone/zdump.c: Likewise.
4634         * timezone/zic.c: Likewise.
4636 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
4638         [BZ #5741]
4639         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
4640         Define additonal Data Cache Block instruction macros.
4641         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
4642         Replace dcbst with dcbf and sync with sync/isync.
4644 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
4646         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
4647         Always set ELF_RTYPE_CLASS_PLT.
4648         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
4650 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
4652         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
4653         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
4654         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
4655         For ISA 2.01 and later replace mftb with mfspr 268.
4657 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
4659         [BZ #5768]
4660         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
4661         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
4663 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
4665         [BZ #5768]
4666         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
4667         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
4668         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
4669         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
4671 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
4673         * stdlib/tst-makecontext.c (othervar): New variable.
4674         (cf): Test sign extending the argument to long.
4676 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
4678         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
4679         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
4680         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
4681         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
4682         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
4683         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
4684         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
4686 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
4688         * elf/Makefile (tests): Substitute tests-vis-yes here.
4689         (tests-vis-yes): Delete.
4690         (modules-name, modules-vis-yes): Similarly.
4692 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
4694         [BZ #4407]
4695         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
4696         Preserve sign in signgamp when x is zero.
4698 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
4700         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
4701         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
4702         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
4703         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
4704         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
4705         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
4707 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
4709         [BZ #4314]
4710         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
4711         buffers.
4713         [BZ #5209]
4714         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
4715         a reserved error value.
4717         * stdlib/tst-makecontext.c: Change parameter to cf to negative
4718         value to check for correct sign extension.
4720         [BZ #5436]
4721         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
4722         Copy 64-bit parameter values even though this is not required in
4723         the standard.
4725         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
4726         PC save.
4728 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
4730         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
4731         PC save.
4733 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
4735         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
4737 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
4739         [BZ #5998]
4740         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
4741         in line-buffered stream failed.
4742         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
4744 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
4746         [BZ #6024]
4747         * scripts/abi-versions.awk: If the version specified by
4748         --enable-oldest-abi is older than the first version for this
4749         architecture, use the default version.
4751         * locale/programs/ld-collate.c (collate_read): Ignore script lines
4752         as well when ignoring the whole category.
4754 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
4756         [BZ #6042]
4757         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
4758         ETHERTYPE_* definitions.
4759         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
4761 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
4763         * stdlib/mbtowc.c (__no_r_state): Remove.
4764         (mbtowc): New static state variable.  Use it instead of
4765         __no_r_state.
4766         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
4767         (__wctomb_state): New hidden variable.
4768         (wctomb): Use __wctomb_state instead of __no_r_state.
4769         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
4770         (__wctomb_state): New extern decl.
4771         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
4773 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
4775         [BZ #5475]
4776         * resolv/res_init.c: Handle scope IDs in resolv.conf.
4778 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
4780         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
4782 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
4784         * po/nl.po: Update from translation team.
4786 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
4788         [BZ #6007]
4789         * string/strfry.c: Handle empty strings again.
4791 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
4793         [BZ #5443]
4794         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
4795         before looking for translation.
4796         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
4797         * locale/freelocale.c: Likewise.
4798         * locale/newlocale.c: Likewise.
4799         * locale/setlocale.c: Likewise.
4800         Based partially on a patch by ryo@np.css.fujitsu.com.
4802 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
4804         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
4805         acquiring wrlock.  Do conv_tab allocation while holding lock.
4806         * intl/Makefile: Add rules to build and run tst-gettext6.
4807         * intl/tst-gettext6.c: New test.
4808         * intl/tst-gettext6.sh: New file.
4810 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
4812         * po/nl.po: Update from translation team.
4814         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
4815         provided through st_blksize, try the default size before giving up.
4817 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
4819         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
4821         [BZ #5939]
4822         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
4824         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
4825         error message.  POSIX today does not require the messages to be in
4826         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
4828         [BZ #5979]
4829         * sunrpc/auth_unix.c: Unify printed strings.
4830         * sunrpc/clnt_tcp.c: Likewise.
4831         * sunrpc/clnt_udp.c: Likewise.
4832         * sunrpc/clnt_unix.c: Likewise.
4833         * sunrpc/svc_tcp.c: Likewise.
4834         * sunrpc/svc_udp.c: Likewise.
4835         * sunrpc/svc_unix.c: Likewise.
4836         * sunrpc/xdr.c: Likewise.
4837         * sunrpc/xdr_array.c: Likewise.
4838         * sunrpc/xdr_rec.c: Likewise.
4839         * sunrpc/xdr_ref.c: Likewise.
4840         * locale/programs/ld-time.c (time_finish): Unify messages.
4841         * locale/programs/locfile.c (handle_copy): Fix typo.
4842         * nscd/nscd.c (options): Fix typo.
4844         [BZ #5995]
4845         * stdlib/strtod_l.c: Use correct sign for result in one more
4846         underflow case.
4847         Patch by Eric Blake <ebb9@byu.net>.
4849 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
4851         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
4852         and creat system calls.
4853         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
4854         call.
4855         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
4856         system calls.
4857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
4858         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4859         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4861 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
4863         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
4864         <linux/limits.h> has defined it.
4865         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
4866         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
4867         headers.
4868         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
4869         it instead of ARG_MAX.
4871 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
4873         * posix/gai.conf: Fix comment for scope nullbits.
4874         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
4875         default to 128 bits for v4 mapped addresses.
4877 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4879         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
4880         ptrace call to get the ieee_instruction_pointer from the kernel.
4881         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
4882         ptrace call to set the ieee_instructtion_pointer.
4883         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
4884         Add comment that ieee_instruction_pointer is always 0.
4886 2008-03-09  Andreas Jaeger  <aj@suse.de>
4888         [BZ #5857]
4889         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
4890         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
4891         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
4893         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
4894         (rint_test): Likewise.
4896 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
4898         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
4899         call.
4900         (__nisfind_server): Similar for open readColdStartFile call.
4901         Patch partially by Jim Meyering.
4902         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
4903         around internal_setent call.
4905         * po/vi.po: New Vietnamese translation.
4907         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
4908         ADJ_OFFSET_SS_READ.
4910         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
4911         remove CLONE_STOPPED.
4913 2008-02-10  Jim Meyering  <meyering@redhat.com>
4915         Remove useless "if" before "free":
4916         * elf/ldconfig.c (parse_conf_include): Likewise.
4917         * gmon/gmon.c (weak_alias): Likewise.
4918         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
4919         * inet/rcmd.c (__validuser2_sa): Likewise.
4920         * intl/bindtextdom.c (set_binding_values): Likewise.
4921         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
4922         * libio/genops.c (save_for_backup): Likewise.
4923         * libio/wgenops.c (save_for_wbackup): Likewise.
4924         * locale/programs/ld-collate.c (collate_read): Likewise.
4925         * locale/programs/linereader.c (get_string): Likewise.
4926         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
4927         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
4928         * resolv/res_debug.c (do_section): Likewise.
4929         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
4930         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
4931         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
4932         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
4933         * time/tzset.c (tzset_internal): Likewise.
4935 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
4937         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
4938         of ASSEMBLER.
4940 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
4942         [BZ #5903]
4943         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
4944         not stream for output file.  Open output file here.
4945         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
4946         and output file name.
4947         (process_fd): Likewise.
4948         (process_file): Likewise.
4949         (main): Adjust callers of changed functions.
4950         * iconv/iconv_prog.h: Adjust prototype.
4952 2008-03-09  Andreas Jaeger  <aj@suse.de>
4954         [BZ #5753]
4955         * sysdeps/ia64/ieee754.h: Use protected namespace
4956         __BIG_ENDIAN/__LITTLE_ENDIAN.
4957         * sysdeps/ieee754/ieee754.h: Likewise.
4958         Patch by Aurelien Jarno <aurelien@aurel32.net>.
4960 2008-03-08  Roland McGrath  <roland@frob.com>
4962         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
4963         ignore a signal that came from a machine exception, treat it as a
4964         fatal core-dump signal instead.
4965         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4967         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
4968         Clear DF bit in thread state's eflags.
4969         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4971 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
4973         [BZ #5774]
4974         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
4975         of NAN(...) sequence.
4976         * stdlib/Makefile (tests): Add tst-strtod6.
4977         * stdlib/tst-strtod6.c: New file.
4979         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
4981         [BZ #5762]
4982         * posix/getopt.c (_getopt_internal_r): Clarify error message by
4983         putting offending option character in quotes.  Clean up error
4984         messages.
4985         * po/be.po: Adjust msgstr in translation file.
4986         * po/bg.po: Likewise.
4987         * po/ca.po: Likewise.
4988         * po/cs.po: Likewise.
4989         * po/da.po: Likewise.
4990         * po/de.po: Likewise.
4991         * po/es.po: Likewise.
4992         * po/fr.po: Likewise.
4993         * po/hr.po: Likewise.
4994         * po/ko.po: Likewise.
4995         * po/nl.po: Likewise.
4996         * po/rw.po: Likewise.
4997         * po/sk.po: Likewise.
4998         * po/sv.po: Likewise.
4999         * po/tr.po: Likewise.
5000         * po/zh_CN.po: Likewise.
5001         * po/zh_TW.po: Likewise.
5003         [BZ #5760]
5004         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
5005         Patch by Roland Bless <roland@bless.de>.
5007         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
5008         .o file.
5009         * elf/Makefile (routines): Add dl-sysdep.
5010         (elide-routines.os): Likewise.
5012 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
5014         [BZ #5786]
5015         * elf/dl-sysdep.c: Undefine ROUND after use.
5016         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
5017         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
5018         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
5019         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
5020         to ...
5021         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
5022         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
5023         if necessary.
5024         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
5026         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
5027         _dl_tls_get_addr_soft element.
5028         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
5029         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
5030         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
5031         GLRO.
5032         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5033         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
5034         of internal_function.
5036         * stdlib/Makefile (aux): Add tens_in_limb.
5037         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
5038         * stdlib/tens_in_limb.c: ...here.  New file.
5040         [BZ #5778]
5041         * sysdeps/unix/sysv/linux/pathconf.h: Declare
5042         __statfs_chown_restricted.
5043         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
5044         for _PC_CHOWN_RESTRICTED.
5045         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
5046         Implement __statfs_chown_restricted.
5047         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
5048         _POSIX_CHOWN_RESTRICTED value to zero.
5049         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
5050         defined to zero.
5052         * sysdeps/x86_64/rtld-memset.c: New file.
5054 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
5056         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
5058         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
5059         Barcelona machine.  Make default fall through branch of
5060         __x86_64_preferred_memory_instruction check as the integer code path.
5062 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
5064         * sysdeps/x86_64/cacheinfo.c
5065         (__x86_64_preferred_memory_instruction): New variable.
5066         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5068         * sysdeps/x86_64/memset.S: Rewrite.
5070 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
5072         * include/stdio.h (__asprintf_chk, __dprintf_chk,
5073         __obstack_printf_chk): New prototypes.
5074         (__vasprintf_chk, __vdprintf_chk,
5075         __obstack_vprintf_chk): Likewise.
5076         Add libc_hidden_proto.
5077         * libio/obprintf.c
5078         (_IO_obstack_jumps): No longer static, add attribute_hidden.
5079         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
5080         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5081         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
5082         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
5083         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5084         __obstack_vprintf_chk): New prototypes.
5085         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
5086         obstack_vprintf): New inlines.
5087         * debug/dprintf_chk.c: New file.
5088         * debug/vdprintf_chk.c: New file.
5089         * debug/asprintf_chk.c: New file.
5090         * debug/vasprintf_chk.c: New file.
5091         * debug/obprintf_chk.c: New file.
5092         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
5093         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
5094         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
5095         @@GLIBC_2.8.
5096         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
5097         vdprintf_chk and obprintf_chk, set CFLAGS for them.
5098         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
5099         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
5100         libc_hidden_proto.
5101         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
5102         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
5103         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
5104         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
5105         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
5106         @@GLIBC_2.8.
5107         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
5108         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
5109         obstack_vprintf_chk.
5110         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
5111         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
5112         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
5113         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
5114         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
5115         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
5117 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
5119         [BZ #5779]
5120         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
5121         Patch by Roy Marples <roy@marples.name>.
5123         [BZ #5736]
5124         * malloc/malloc.c: Fix typo in comment.
5126         [BZ #5627]
5127         * locale/iso-639.def: Add Shuswap.
5129 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
5131         [BZ #5790]
5132         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
5133         overwrite *h_errnop/*errnop values from getanswer_r in case of
5134         failure.
5136 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
5138         [BZ #5818]
5139         * nscd/connections.c (dbs): Add initializers for .suggested_module.
5140         (verify_persistent_db): Remove one unnecessary test and add a new one
5141         for bad configuration.
5142         (nscd_init): Improve error reported when persistent database cannot
5143         be reused.
5144         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
5145         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
5146         .suggested_module and .max_db_size and case config file says the
5147         values are zero.
5148         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
5150         [BZ #5854]
5151         * nis/ypclnt.c (yp_order): Fix handling of return value of
5152         do_ypcall_tr call.
5153         Patch by Jeff Moyer <jmoyer@redhat.com>.
5155         * po/fr.po: Update from translation team.
5157 2008-02-22  Andreas Jaeger  <aj@suse.de>,
5158             Carlos O'Donell <carlos@systemhalted.org>
5160         [BZ #5012]
5161         * FAQ.in: Describe why glibc needs to be compiled with
5162         optimization.
5164 2008-02-19  Roland McGrath  <roland@redhat.com>
5166         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
5168 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
5170         [BZ #5737]
5171         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
5172         __USE_MISC is defined.
5174 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
5176         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
5177         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
5178         sys/timerfd.h.
5179         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
5180         timerfd_gettime, timerfd_settime.
5181         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
5182         timerfd_gettime, timerfd_settime for GLIBC_2.8.
5184 2008-02-08  Roland McGrath  <roland@redhat.com>
5186         * elf/elf.h (NT_PPC_SPE): New macro.
5188 2008-02-06  Roland McGrath  <roland@redhat.com>
5190         * Makerules ($(common-objpfx)sysd-rules):
5191         Depend on $(sysdep-makeconfigs).
5193 2008-01-31  Roland McGrath  <roland@redhat.com>
5195         [BZ #5442]
5196         * configure.in: Use -print-file-name if it yields a directory,
5197         for each of include and include-fixed.
5198         * configure: Regenerated.
5200         * Makeconfig (sysd-rules-targets): New variable.
5201         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
5202         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
5204 2008-01-30  Roland McGrath  <roland@redhat.com>
5206         * manual/libc.texinfo: Update back-cover text.
5208         * elf/elf.h (NT_386_TLS): New macro.
5210 2008-01-29  Roland McGrath  <roland@redhat.com>
5212         * Makeconfig (sysd-rules-patterns): New variable.
5213         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
5214         (check-inhibit-asm): New canned sequence, replaces ...
5215         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
5216         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
5217         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
5218         (CFLAGS-rtld): Variable removed.
5220 2008-01-24  Roland McGrath  <roland@redhat.com>
5222         * configure.in: Let configure fragments set base_os.
5223         * configure: Regenerated.
5225 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
5227         * po/ko.po: Update from translation team.
5229 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
5231         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
5233 2008-01-12  Andreas Jaeger  <aj@suse.de>
5235         [BZ #5040]
5236         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
5237         Add EPOLLRDHUP.
5239 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5241         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
5242         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
5243         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
5245 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
5247         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
5248         * elf/dl-close.c (_dl_close): Check for it.
5249         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
5250         (_dl_allocate_static_tls): Likewise.
5251         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
5252         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
5253         to it.
5254         * elf/tst-tls16.c: New file.
5255         * elf/tst-tlsmod16a.c: New file.
5256         * elf/tst-tlsmod16b.c: New file.
5257         * elf/Makefile: Add rules to build and run tst-tls16.
5259 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
5261         [BZ #5628]
5262         * bits/shm.h: Fix comment describing shmid_ds.
5263         * sysdeps/gnu/bits/shm.h: Likewise.
5264         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
5265         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
5266         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5267         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5268         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5269         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5270         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5271         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
5272         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
5274         [BZ #5607]
5275         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
5276         prototypes.
5277         * conform/data/limits.h-data: Adjust limits changed in v6 and add
5278         additional suffixes.
5279         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
5280         Add optional functions mq_timedreceive and mq_timedsend.
5281         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
5282         * conform/data/pthread.h-data: Fix prototype of
5283         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
5284         * conform/data/semaphore.h-data: Allow time.h definitions.
5285         * conform/data/signal.h-data: Likewise.
5286         * conform/data/stdio.h-data: getw and putw are not required in v6.
5287         * conform/data/stdlib.h-data: Change setstate prototype.
5288         * conform/data/string.h-data: Fix strerror_r prototype.
5289         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
5290         * conform/data/unistd.h-data: pthread_atfork not required in v6.
5291         Fix readlink prototype.
5292         * conform/data/netinet/in.h-data: Add const to in6addr_any and
5293         in6addr_loopback.
5294         * inet/netinet/in.h: Cleanup namespace.
5295         * posix/regex.h: Likewise.
5296         * resolv/netdb.h: Likewise.
5297         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
5298         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
5299         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
5300         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
5301         of names of in in6_addr.
5302         (default_precedence): Likewise.
5303         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
5304         NULL definition.
5306 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
5308         * conform/data/fmtmsg.h-data: Add missing allows.
5309         * conform/data/ftw.h-data: Likewise.
5310         * conform/data/inttypes.h-data: Likewise.
5311         * conform/data/math.h-data: Likewise.
5312         * conform/data/signal.h-data: Likewise.
5313         * conform/data/net/if.h-data: Likewise.
5314         * conform/data/netinet/in.h-data: Likewise.
5315         * conform/data/sys/socket.h-data: Likewise.
5317         [BZ #5614]
5318         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
5319         (__strtok_r): Simplify.
5320         * string/tester.c (test_strtok_r): Add test case for futile search
5321         with single-character seach string.
5323 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
5325         * po/ko.po: Update from translation team.
5327 2008-01-11  Andreas Jaeger  <aj@suse.de>
5329         [BZ #5600]
5330         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
5331         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
5332         kernel header.
5334 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
5336         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
5337         native interface lookup in all the relevant places.
5339 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
5340             Ulrich Drepper  <drepper@redhat.com>
5342         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
5343         field.  Use sockaddr_in6 for source_addr.
5344         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
5345         (match_prefix): Likewise.
5346         (get_label): Likewise.
5347         (get_precedence): Likewise.
5348         (rfc3484_sort): Change to use indirect access to results array.
5349         Adjust to use of sockaddr_in6.  Replace service_order test with
5350         simple index comparison.
5351         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
5352         service_order field.  Adjust qsort_t calls.  Access sorted result
5353         array indirectly through order array.
5354         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
5355         * posix/tst-rfc3484-2.c: Likewise.
5356         * posix/tst-rfc3484-3.c: Likewise.
5358 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
5360         [BZ #5541]
5361         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
5362         pollfd structures.
5363         Patch by André Cruz.
5365         [BZ #5545]
5366         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
5367         (clnt_spcreateerror): Likewise.
5369         [BZ #5553]
5370         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
5371         (public_mEMALIGn): Likewise.
5372         Patch mostly by Daniel Jacobowitz.
5374 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
5376         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
5377         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
5378         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
5379         * stdlib/tst-makecontext2.c: New test.
5381 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
5383         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
5384         defined.
5385         (REINIT_PARAMS): Likewise.  Undefine before end of file.
5386         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
5387         transliteration hooks and REINIT_PARAMS afterwards.
5388         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
5389         status.
5390         (REINIT_PARAMS): Define.
5391         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
5392         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
5393         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
5394         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
5395         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
5396         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
5397         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
5398         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
5399         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
5400         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
5401         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
5402         * iconvdata/tst-iconv7.c: New test.
5404 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
5406         * libio/stdio.h (vscanf): Fix definition for loser compilers.
5408 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
5410         [BZ #5112]
5411         * nscd/connections.c (restart): Fix condition.
5413 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
5415         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
5416         __ctype_toupper_loc): Add __THROW.
5418 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
5420         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
5421         recognition of interface family.
5423         * posix/getconf.c: Update copyright year.
5424         * nss/getent.c: Likewise.
5425         * iconv/iconvconfig.c: Likewise.
5426         * iconv/iconv_prog.c: Likewise.
5427         * elf/ldconfig.c: Likewise.
5428         * catgets/gencat.c: Likewise.
5429         * csu/version.c: Likewise.
5430         * elf/ldd.bash.in: Likewise.
5431         * elf/sprof.c (print_version): Likewise.
5432         * locale/programs/locale.c: Likewise.
5433         * locale/programs/localedef.c: Likewise.
5434         * nscd/nscd.c (print_version): Likewise.
5435         * debug/xtrace.sh: Likewise.
5436         * malloc/memusage.sh: Likewise.
5437         * malloc/mtrace.pl: Likewise.
5438         * debug/catchsegv.sh: Likewise.
5440 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
5442         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
5443         second lookup.
5445 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
5447         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
5448         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5450 2007-12-17  Roland McGrath  <roland@redhat.com>
5452         * inet/ether_line.c (ether_line): Remove unused variable.
5454 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5456         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
5457         and winp.
5458         * login/openpty.c (openpty): Likewise.
5459         * login/pty.h (openpty, forkpty): Likewise.
5460         * manual/terminal.texi (openpty, forkpty): Likewise.
5462 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
5464         * malloc/malloc.c (public_cALLOc): For arenas other than
5465         main_arena, count all bytes inside the mprotect_size range of the
5466         heap as uninitialized.
5468 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
5470         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
5471         executable stacks.
5473         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
5474         mTRIm for all of them.
5475         (mTRIm): Additionally iterate over all free blocks and use madvise
5476         to free memory for all those blocks which contain at least one
5477         memory page.
5478         * malloc/tst-trim1.c: New file.
5479         * malloc/Makefile (tests): Add tst-trim1.
5481         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
5483 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
5485         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
5486         First cast argument to long
5487         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
5488         Return long.
5489         (__vdso_clock_gettime): Likewise.
5490         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
5491         return long.
5493 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
5495         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
5496         * locale/nl_langinfo_l.c: Real implementation, copied from
5497         nl_langinfo.c.
5498         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
5500 2007-12-01  Jim Meyering  <meyering@redhat.com>
5502         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
5503         that would inhibit utf8-optimization of a regexp containing line-
5504         or buffer-anchors, e.g., `^', `$'.
5506 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
5508         * time/bug-getdate1.c (do_test): Don't use century values which
5509         aren't valid on 32-bit systems.
5511 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
5513         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
5514         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
5515         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
5516         __strcat_g, __strncat_g): Add __asm__.
5518 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
5520         [BZ #5477]
5521         * io/fchmodat.c: Fix typo in stub_warning use.
5522         Patch by Petr Salinger.
5524 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
5526         * iconvdata/hp-thai8.c: New file.
5527         * iconvdata/Makefile: Add rules for hp-thai8.c.
5528         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
5529         * iconvdata/gconv-modules: Likewise.
5531         [BZ #5464]
5532         * iconvdata/hp-greek8.c: New file.
5533         * iconvdata/Makefile: Add rules for hp-greek8.c.
5534         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
5535         * iconvdata/gconv-modules: Likewise.
5537         [BZ #5463]
5538         * iconvdata/hp-turkish8.c: New file.
5539         * iconvdata/Makefile: Add rules for hp-turkish8.c.
5540         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
5541         * iconvdata/gconv-modules: Likewise.
5543         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
5544         (shrink_heap): ... this new function.
5545         (heap_trim): Call shrink_heap instead of grow_heap.
5547         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
5548         case don't call alloc_perturb.
5550 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
5552         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
5553         possible.
5554         * sysdeps/unix/sysv/linux/kernel-features.h
5555         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
5556         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
5558 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
5560         [BZ #5424]
5561         * stdio-common/vfprintf.c: Do not overflow when adding to done.
5562         * stdio-common/Makefile (tests): Add bug22.
5563         * stdio-common/bug22.c: New file.
5565         [BZ #5451]
5566         * time/getdate.c: Fix filling in default values.
5567         * time/bug-getdate1.c: New file.
5568         * time/Makefile: Add rules to build and run bug-getdate1.
5570         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
5571         * iconvdata/ebcdic-es.c: Likewise.
5572         * iconvdata/ebcdic-es-a.c: Likewise.
5573         * iconvdata/ebcdic-uk.c: Likewise.
5574         * iconvdata/iso8859-16.c: Likewise.
5575         * iconvdata/viscii.c: Likewise.
5576         * iconvdata/iso8859-9e.c: Likewise.
5577         * iconvdata/Makefile: Adjust appropriately.
5579         [BZ #5428]
5580         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
5581         __need_wint_t.
5583 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
5585         [BZ #5427]
5586         * iconvdata/hp-roman9.c: New file.
5587         * iconvdata/Makefile: Add rules for hp-roman9.c.
5588         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
5589         * iconvdata/gconv-modules: Likewise.
5591         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
5592         * iconvdata/Makefile: Adjust appropriately.
5594         [BZ #5441]
5595         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
5596         structure, it's allocated with alloca.
5597         * stdio-common/Makefile (tests): Add bug21.
5598         * stdio-common/bug21.c: New file.
5600 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
5602         [BZ #5452]
5603         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
5604         keyword for gcc's braced-groups.
5606 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
5608         [BZ #5454]
5609         * inet/ether_line.c: Strip hostname of whitespaces.
5610         * inet/Makefile (tests): Add tst-ether_line.
5611         * inet/tst-ether_line.c: New file.
5613 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
5615         [BZ #5439]
5616         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
5618         [BZ #5435]
5619         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
5621         * stdlib/tst-setcontext.c: Catch the case where the links gets
5622         messed up and we do not reach main again.
5624         * po/ca.po: Update from translation team.
5626 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
5628         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
5629         * posix/regex.h (REG_ENOSYS): Likewise.
5630         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
5632 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
5634         * nscd/nscd.h (MAX_STACK_USE): Define.
5635         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
5636         (gc): Initialize stack_used based on allocation in prune_cache.
5637         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
5638         Clear array before use.
5640         * nscd/aicache.c (addhstaiX): Update statistics counter in case
5641         memory allocation failed.
5642         * nscd/hstcache.c (cache_addhst): Likewise.
5643         * nscd/grpcache.c (cache_addgr): Likewise.
5644         * nscd/servicescache.c (cache_addserv): Likewise.
5645         * nscd/pwdcache.c (cache_addpw): Likewise.
5646         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5648 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
5650         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
5651         and creat system calls.
5653         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
5655 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5657         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
5658         Add netiucv/iucv.h.
5659         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
5660         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
5661         protocol.
5662         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
5663         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
5664         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
5666 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5668         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
5669         strncat): Define as macros to avoid compile errors.
5671         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
5672         creat entries.
5674 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
5676         [BZ #5382]
5677         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
5678         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
5679         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
5680         overflow it.
5681         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
5683         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
5684         Return zero in case the thread library is not NPTL.
5686         [BZ #5375]
5687         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
5688         initializing interface list.
5690         [BZ #5378]
5691         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
5692         use result of nss_getgrgid_r if nothing was found.  For other
5693         error return with a failure.
5694         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
5696         * locale/programs/ld-collate.c (collate_read): Fix loop to match
5697         macro name.
5699 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
5701         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
5702         (get_scope): For IPv4 scope, use scopes table.
5703         (fini): Free scopes table if necessary.
5704         (free_scopelist): New function.
5705         (scopecmp): New function.
5706         (gaiconf_init): Also handle scopev4 entries.
5707         * posix/tst-rfc3484.c (do_test): Initialize scopes.
5708         * posix/tst-rfc3484-2.c (do_test): Likewise.
5709         * posix/gai.conf: Document scopev4 defaults.
5710         * posix/Makefile (tests): Add tst-rfc3484-3.
5711         * posix/tst-rfc3484-3.c: New file.
5713         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
5714         Teredo tunnels.
5715         * posix/gai.conf: Update for current default tables.
5717 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
5719         * po/tr.po: Update from translation team.
5721 2007-11-18  Roland McGrath  <roland@frob.com>
5723         * manual/arith.texi (Remainder Functions): Spelling fix.
5724         From Shaun Silk <genix@mysoul.com.au>.
5726         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
5728 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
5730         * po/zh_CN.po: Update from translation team.
5732         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
5733         Add sys/signalfd.h and sys/eventfd.h.
5735 2007-11-15  Bruno Haible  <bruno@clisp.org>
5737         [BZ #5346]
5738         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
5739         union.
5740         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
5741         (DCIGETTEXT): Change the allocation of the 'search' variable so that
5742         it needs only fixed stack space. Delay the initialization of
5743         msgid_len until it is needed.
5745 2007-11-15  Andreas Jaeger  <aj@suse.de>
5747         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
5748         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
5750 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
5752         * po/ko.po: Update from translation team.
5754 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
5756         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
5757         significantly.  The device type is also part of the ifinfomsg data.
5759         * po/sv.po: Update from translation team.
5760         * po/nl.po: Likewise.
5762         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
5763         to wake up in 24 hours.
5765         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
5767 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
5769         * po/cs.po: Update from translation team.
5770         * po/pl.po: Likewise.
5772         * include/ifaddrs.h: Remove in6ai_temporary.
5773         (struct in6addrinfo): Add index element.
5774         Declare __check_native.
5775         * inet/Makefile (aux): Add check_native.
5776         * sysdeps/unix/sysv/linux/check_native.c: New file.
5777         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
5778         IFA_F_TEMPORARY.  Pass back ifa_index.
5779         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
5780         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
5781         call __check_native if necessary.
5782         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
5783         to sort addresses.  Pass information about the results.
5784         * posix/tst-rfc3484.c: Adjust for addition of index field and change
5785         of rfc3484_sort interface.
5786         * posix/tst-rfc3484-2.c: Likewise.
5788         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
5789         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
5790         for _quicksort.
5791         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
5792         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
5793         on as third parameter to compare function and _quicksort.
5794         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
5795         to the compare function.
5796         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
5797         * Versions.def: Add GLIBC_2.8 for libc.
5799         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
5800         * posix/tst-rfc3484-2.c: Likewise.
5802         * include/kernel-features.h: Moved to...
5803         * sysdeps/mach/hurd/kernel-features.h: ...here.
5805 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
5807         * sysdeps/i386/i586/memcpy_chk.S: New file.
5808         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
5809         * sysdeps/i386/i586/memset_chk.S: Likewise.
5811 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
5813         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
5814         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
5815         list of interfaces.  Also store prefix length.
5816         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
5817         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
5818         prefix if source and destination address are in the same subnet.
5819         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
5820         Always look for matching record in in6ai list.
5821         Correct source_addr_len value for IPv6->IPv4 converted records.
5823 2007-11-11  Roland McGrath  <roland@frob.com>
5825         * include/kernel-features.h: New file.
5827 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
5829         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
5830         complications for 64-bit platforms.
5832         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
5833         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
5834         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
5835         open64_2.
5836         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
5837         entries.
5838         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5839         * sysdeps/wordsize-64/alphasort.c: New file.
5840         * sysdeps/wordsize-64/alphasort64.c: New file.
5841         * sysdeps/wordsize-64/fseeko.c: New file.
5842         * sysdeps/wordsize-64/fseeko64.c: New file.
5843         * sysdeps/wordsize-64/ftello.c: New file.
5844         * sysdeps/wordsize-64/ftello64.c: New file.
5845         * sysdeps/wordsize-64/ftw.c: New file.
5846         * sysdeps/wordsize-64/ftw64.c: New file.
5847         * sysdeps/wordsize-64/iofgetpos.c: New file.
5848         * sysdeps/wordsize-64/iofgetpos64.c: New file.
5849         * sysdeps/wordsize-64/iofopen.c: New file.
5850         * sysdeps/wordsize-64/iofopen64.c: New file.
5851         * sysdeps/wordsize-64/iofsetpos.c: New file.
5852         * sysdeps/wordsize-64/iofsetpos64.c: New file.
5853         * sysdeps/wordsize-64/lockf.c: New file.
5854         * sysdeps/wordsize-64/lockf64.c: New file.
5855         * sysdeps/wordsize-64/mkostemp.c: New file.
5856         * sysdeps/wordsize-64/mkostemp64.c: New file.
5857         * sysdeps/wordsize-64/mkstemp.c: New file.
5858         * sysdeps/wordsize-64/mkstemp64.c: New file.
5859         * sysdeps/wordsize-64/scandir.c: New file.
5860         * sysdeps/wordsize-64/scandir64.c: New file.
5861         * sysdeps/wordsize-64/tmpfile.c: New file.
5862         * sysdeps/wordsize-64/tmpfile64.c: New file.
5863         * sysdeps/wordsize-64/versionsort.c: New file.
5864         * sysdeps/wordsize-64/versionsort64.c: New file.
5865         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
5866         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
5867         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
5868         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
5869         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
5870         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
5871         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
5872         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
5873         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
5874         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
5875         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
5876         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
5878         * crypt/sha256-crypt.c: Fix a comment.
5879         * crypt/sha512-crypt.c: Likewise.
5881 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
5883         * sysdeps/x86_64/memset.S: Add sfence after movnti.
5885 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
5887         [BZ #5277]
5888         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
5889         because output buffer is too small break, don't loop.
5890         * iconvdata/Makefile (tests): Add bug-iconv6.
5891         * iconvdata/bug-iconv6.c: New file.
5893 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
5895         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
5896         with size_t type.
5897         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
5898         size_t.  Add casts where needed.
5900         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
5901         old headers, don't call avc_has_perm if we don't have the
5902         permission information.
5904 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
5906         * elf/rtld.c (dl_main): Use the page size to find the map start.
5908 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
5910         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
5911         Patch by Szymon Siwek <sls@poczta.wp.pl>.
5913         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
5914         when the lookup call failed.
5916         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
5917         Add prune_cond and wakeup_time.
5918         (CACHE_PRUNE_INTERNAL): Define.
5919         Update declarations of prune_cache and setup_thread.
5920         * nscd/connections.c (dbs): Update initializers.
5921         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
5922         (nscd_init): Default number of threads is now 4.
5923         (invalidate_cache): Take lock before calling prune_cache.
5924         (handle_request): If SELinux forbids the request, say so.
5925         (readylist_cond): Use static initializer.
5926         (nscd_run_prune): New function.  Used only by pruning threads.
5927         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
5928         here.
5929         (fd_ready): Update nscd_run reference.
5930         (start_threads): No need to initialize readylist_cond.
5931         Start pruning threads separately.
5932         * nscd/nscd_setup_thread.c: Change return value type to int and always
5933         return 0.
5934         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
5935         to int and return nonzero value if we can use the TID address hack.
5936         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
5937         the database is later than the new entry's timeout, update the
5938         wakeup time and wake the cleanup thread.
5939         (prune_cache): Return seconds the next entry in the database is still
5940         valid.  Remove locking for pruning here.
5941         * nscd/nscd.conf: Document default number of threads.
5943 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
5945         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
5946         stack is properly aligned for the target function.
5947         Correct unwind info.
5949         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
5950         when using auditing libraries.
5952 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
5954         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
5955         _nss_dns_getnetbyaddr2_r.
5956         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
5957         extra parameter to getanswer_r.
5958         (_nss_dns_getnetbyaddr_r): Now a wrapper around
5959         _nss_dns_getnetbyaddr2_r.
5961         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
5962         gethstbynm3_r.
5963         * nscd/gethstbynm2_r.c: Remove.
5964         * nscd/gethstbynm3_r.c: New file.
5965         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
5966         __gethostbyaddr_r.
5967         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
5968         __gethostbyaddr_r compatibility wrapper.
5969         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
5970         determining timeout of entry.
5971         (lookup): Take new parameter and pass it to __gethostbyname3_r and
5972         __gethostbyaddr2_r.
5973         (addhstbyX): Pass reference to variable for TTL to lookup and
5974         cache_addhst.
5975         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
5976         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
5977         and __nss_next2.  Remove __nss_services_lookup.
5978         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
5979         Add compat wrapper.
5980         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
5981         __nss_next2.
5982         * nss/getXXent_r.c: Likewise.
5983         * nss/getnssent_r.c: Likewise.
5984         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
5985         does not exist in module, try the optional second name.
5986         (__nss_next2): New function.
5987         (__nss_next): Now wrapper around __nss_next2.
5988         * nss/nsswitch.h: Adjust __nss_lookup prototype.
5989         Declare __nss_next2.
5990         Adjust definition of db_lookup_function type.
5991         * nss/service-lookup.c: Define NO_COMPAT.
5992         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
5993         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
5994         * inet/ether_ntoh.c: Likewise.
5995         * sunrpc/netname.c: Likewise.
5996         * sunrpc/publickey.c: Likewise.
5997         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
5998         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
5999         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
6000         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
6001         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
6003         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
6005         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
6007 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
6009         [BZ #5204]
6010         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
6011         * crypt/sha512c-test.c: Likewise.
6013         [BZ #5225]
6014         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
6015         to keep track of end of %[ format string element.
6016         * stdio-common/Makefile (tests): Add bug20.
6017         * stdio-common/bug20.c: New file.
6019         [BZ #5222]
6020         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
6021         path elements in counting mode.
6023 2007-10-27  Andreas Jaeger  <aj@suse.de>
6025         [BZ #5040]
6026         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
6028         [BZ #3112]
6029         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
6030         (__cleanup): Free shared library when exiting.
6031         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
6032         (__cleanup): Free shared library when exiting.
6034 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
6036         [BZ #2549]
6037         * math/libm-test.inc (check_float_internal): Support
6038         denormalized return.
6040 2007-10-23  Andreas Jaeger  <aj@suse.de>
6042         [BZ #5208]
6043         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
6044         __LONG_LONG_PAIR to handle little endian byte order.
6045         Suggested by abhishekrai@google.com
6047 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
6049         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
6051 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
6053         * nscd/cache.c (prune_cache): Move test for modified file outside
6054         of locking.
6056 2007-10-21  Andreas Jaeger  <aj@suse.de>
6058         * manual/texinfo.tex: Update to latest version.
6060         * manual/sysinfo.texi (System Parameters): Fix Formatting.
6062         * manual/arith.texi (Status bit operations): Fix formatting.
6064         * manual/errno.texi (Error Messages): Fix formatting.
6066         * manual/sysinfo.texi (System Parameters): Fix formatting.
6068         * manual/libc.texinfo: Update VERSION and UPDATED.
6070 2007-10-19  Roland McGrath  <roland@redhat.com>
6072         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
6074 2007-10-06  David S. Miller  <davem@davemloft.net>
6076         * configure.in: Add sparcv9v2 and sparc64v2.
6077         * scripts/config.sub: Likewise.
6078         * configure: Regenerate.
6079         * elf/elf.h (HWCAP_SPARC_N2): New.
6080         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
6081         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
6082         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
6083         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
6084         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
6085         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
6086         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
6088 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
6090         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
6091         even if the poll result indicates there is data to read.
6092         Patch by Jeff Moyer <jmoyer@redhat.com>.
6094 2007-10-18  Roland McGrath  <roland@redhat.com>
6096         * elf/elf.h (NT_PPC_VMX): New macro.
6098 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6100         * version.h (VERSION): Set to 2.7.90.
6102 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
6104         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
6105         weak_alias.
6107 2007-10-17  Roland McGrath  <roland@frob.com>
6109         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
6110         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
6112 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6114         * version.h (VERSION): Bump to 2.7.
6115         * include/features.h (__GLIBC_MINOR__): Bump to 7.
6117         [BZ #5186]
6118         * time/tzset.c (__tz_convert): Don't force testing for a change of
6119         TZ if not called from localtime.  But then also see whether the
6120         file changed, in case __use_tzfile is set.
6122         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
6123         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6124         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6125         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6126         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6127         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6128         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
6129         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6131 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
6133         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
6134         and admin selects to be able to replace the gai.conf file, lock
6135         data structures around the qsort call.
6137 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6139         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
6140         new memset.
6141         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
6142         too high for the improvements.  Implement bzero unconditionally for
6143         use in libc.
6145 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6146             Jakub Jelinek  <jakub@redhat.com>
6148         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
6149         even when time_t is 32-bit.
6150         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
6151         timezone data read by __tzfile_default.  Ensure __tzname[0] is
6152         always set after the search.
6154 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
6156         * time/tzfile.c (__tzfile_read): Help the compiler recognize
6157         unreachable code on 32-bit machines.
6159 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
6161         [BZ #5184]
6162         * time/strftime_l.c: Include stdbool.h.
6163         (my_strftime): New wrapper, old function renamed to...
6164         (__strftime_internal): ... new function.  Add tzset_called
6165         argument, pass it down to recursive calls, don't call tzset ()
6166         if already true, set to true after call to tzset ().
6168 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
6170         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
6171         into account when copying TZ string.
6173 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
6175         * time/tzfile.c (__tzfile_compute): For use_last case set i to
6176         num_transition rather than num_transitions - 1.
6178 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
6180         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
6181         PIC indirect jump.
6183         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
6184         a local label rather than HIDDEN_JUMPTARGET.
6186 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
6188         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
6189         (init_cacheinfo): Initialize it.
6190         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
6191         Always define bzero.
6192         Remove non-glibc code.
6193         * sysdeps/x86_64/bzero.S: Make an empty file.
6195 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
6197         * sysdeps/x86_64/cacheinfo.c
6198         (__x86_64_preferred_memory_instruction): New.
6199         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6201         * sysdeps/x86_64/memset.S: Rewrite.
6203 2007-10-15  Roland McGrath  <roland@redhat.com>
6205         * po/libc.pot: Regenerated.
6207 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
6209         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
6210         pointers.
6212         [BZ #3425]
6213         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
6214         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
6215         address record to T_A/T_AAAA requests.
6217 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
6219         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
6221         * posix/glob.c: Add some branch prediction throughout.
6223         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
6224         read from nscd.
6226         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
6227         service_order.
6228         (rfc3484_sort): Make sure that even if qsort doesn't support
6229         stable sorting out sorting here is stable by comparing service_order.
6230         (getaddrinfo): Initialize service_order.
6231         * posix/tst-rfc3484.c (do_test): Adjust for addition of
6232         service_order field to sorting structure.
6233         * posix/tst-rfc3484-2.c (do_test): Likewise.
6235         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
6236         * time/tzset.c (tzset_internal): Break TZ string parsing out into
6237         __tzset_parse_tz and updating of daylight, timezone, tzname into
6238         update_vars.
6239         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
6240         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
6241         happens in __tz_compute.
6242         * time/tzfile.c (__tzfile_read): Also read TZ string.
6243         (find_transition): Fold into __tzfile_compute.
6244         (__tzfile_compute): For times beyond the last transition try to
6245         use the TZ string.
6246         * timezone/tst-timezone.c: Information in daylight and tzname does
6247         change for Asia/Tokyo timezone with more concrete information.
6248         Remove the test.
6250         * include/stdio.h: Add libc_hidden_proto for ftello.
6251         * libio/ftello.c: Add libc_hidden_def.
6253         [BZ #1140]
6254         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
6255         on the specified time and not the last entries in the file.  Move
6256         code to determine tzname[] to...
6257         (find_transition): ...here.  Add ugly guess for times before the
6258         first transition.
6260 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
6262         [BZ #3195]
6263         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
6264         no entry.
6265         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
6266         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6267         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6268         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6270         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
6271         read mechanism when there are no group members and avoid no-op
6272         read syscall in this case.
6274         [BZ #3242]
6275         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
6276         (__readall): If reading failed due to EAGAIN error wait a bit
6277         and possibly try again.
6278         (__readvall): Likewise.
6280 2007-10-13  Bruno Haible  <bruno@clisp.org>
6282         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
6283         when we cannot recode the message.
6285 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
6287         [BZ #4359]
6288         * libio/__freading.c (__freading): Don't return true for
6289         write-only streams.  For read/write streams, check whether we
6290         performed a read operation already.
6291         * libio/Makefile (tests): Add tst-ext2.
6292         * libio/tst-ext2.c: New file.
6294 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
6296         * locale/programs/repertoire.c (repertoire_read): Always free
6297         memory for repertoire file name [Coverity CID 270].
6299         * elf/cache.c (save_aux_cache): Free memory allocated for
6300         temporary file name [Coverity CID 267].
6302 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
6304         * misc/Makefile (headers): Add bits/error.h.
6306 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
6308         * posix/fnmatch_loop.c: Take rule index returned as part of
6309         findidx return value into account when accessing weights.
6310         * posix/regcomp.c: Likewise.
6311         * posix/regexec.c: Likewise.
6313         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
6314         (skip_to): Fix problems with parameter of elifdef/elifndef.
6316 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
6318         * iconv/gconv_simple.c: Add some branch prediction.
6320 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
6322         * locale/programs/ld-collate.c (collate_read): If ignore_content
6323         and nowtok is tok_define, eat any tok_eol tokens.
6325 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
6327         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
6328         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
6330         * inet/netinet/in.h: Don't include bits/socket.h.
6331         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
6332         macro.
6333         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6335 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
6337         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
6338         and tok_elifndef.
6339         * locale/programs/locfile-kw.gperf: Likewise.
6340         * locale/programs/ld-collate.c: Implement primitive preprocessor.
6342 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
6344         * stdio-common/printf-parse.h: Include string.h and wchar.h.
6345         (__find_specwc): Change into __extern_always_inline function.
6346         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
6347         (__parse_one_specmb): Remove ps argument.
6348         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
6349         Adjust __find_specmb and __parse_one_specmb callers.
6350         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
6351         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
6352         Removed.
6353         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
6354         caller.
6356 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
6358         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
6359         with some Pentium Ds.
6361 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
6363         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
6364         __read not read.
6365         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
6366         __write not write.
6368 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
6370         [BZ #181]
6371         * locale/C-time.c: Set week_1stday data to 19971201.
6372         * locale/programs/ld-time.c (time_finish): Default for
6373         first_workday is Monday.
6375         [BZ #2633]
6376         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
6378         [BZ #5103]
6379         * posix/glob.c (glob): Recognize patterns starting \/.
6380         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
6381         (main): Add test for pattern starting \/.
6383         * misc/error.h: Use __const instead of const.
6384         * misc/bits/error.h: Likewise.
6386 2007-10-07  Andreas Jaeger  <aj@suse.de>
6388         * include/bits/error.h: New file.
6390         * misc/bits/error.h (error_at_line): Fix prototype.
6392 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
6394         [BZ #3924]
6395         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
6396         more little bugs in creating the stack frame when pltexit has to
6397         be called.
6399         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
6400         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
6402         [BZ #4407]
6403         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
6404         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6405         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
6406         * math/libm-test.inc: Add test for this case.
6408         [BZ #5010]
6409         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
6410         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
6411         map service succeeded.
6412         (svc_is_mapped): New function.
6413         (svc_unregister): Use it before trying to unmap service.
6415 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
6417         * timezone/zic.c: Update from tzcode2007h.
6419         [BZ #5063]
6420         * timezone/africa: Update from tzdata2007h.
6421         * timezone/antarctica: Likewise.
6422         * timezone/asia: Likewise.
6423         * timezone/australasia: Likewise.
6424         * timezone/europe: Likewise.
6425         * timezone/leapseconds: Likewise.
6426         * timezone/northamerica: Likewise.
6427         * timezone/southamerica: Likewise.
6428         * timzeone/zone.tab: Likewise.
6430         [BZ #5104]
6431         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
6433         [BZ #5113]
6434         * string/bits/string2.h (__strdup): Cast parameters to calloc to
6435         avoid warning with -Wconversion.
6436         (__strndup): Likewise.
6437         Half the patch by Christian Iseli <christian.iseli@licr.org>.
6439         [BZ #5112]
6440         * nscd/connections.c (restart): Don't resync if database is
6441         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
6443         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
6444         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
6446         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
6447         evetnfd_read, eventfd_write.
6448         * sysdeps/unix/sysv/linux/eventfd.c: New file.
6449         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
6450         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
6451         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
6452         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
6453         eventfd_write for GLIBC_2.7.
6455         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
6456         * sysdeps/unix/sysv/linux/signalfd.c: New file.
6457         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
6458         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
6460 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
6462         * stdlib/msort.c: Include stdint.h.
6463         (struct msort_param): New type.
6464         (msort_with_tmp): Use struct msort_param pointer for unchanging
6465         parameters.  Add optimized handling for several common sizes
6466         and indirect sorting mode.
6467         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
6468         sorting.
6469         Suggested by Belazougui Djamel .
6471         * stdlib/Makefile (tests): Add tst-qsort2.
6472         * stdlib/tst-qsort2.c: New test.
6474 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
6476         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
6477         for dup2 in case another thread races with the current one.  Retry
6478         in this case.
6480         * misc/error.h: Remove support for use outside of libc.  We have to
6481         include <features.h> now.  Include <bits/error.h> if possible.
6482         * misc/bits/error.h: New file.
6484 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
6486         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
6487         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
6488         __extern_always_inline functions unconditionally, drop macros.
6490         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
6491         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
6492         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
6494         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
6495         add __artificial__ attribute.
6497 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
6499         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
6500         backward to forward direction.
6502         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
6504         [BZ #645]
6505         * locale/programs/ld-collate.c (collate_finish): Compare against last
6506         used section which is known to have rules defined.
6507         (collate_read): After order_start, correctly record order of sections
6508         and queue sections up.
6510 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
6512         [BZ #5071]
6513         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
6514         the same number of pages.
6515         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
6517         * locale/programs/ld-collate.c (collate_read): After initial copy
6518         statement, continue in state 0.
6520         * include/stdio_ext.h (__fsetlocking): Define as macro.
6522 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
6524         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
6525         of section order.
6527         * po/pt_BR.po: Fix typo.
6529 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
6531         * iconvdata/Makefile (modules): Add ISO8859-9E.
6532         (distribute): Add iso8859-9e.c.
6533         (gen-8bit-gap-modules): Add iso8859-9e.
6534         * iconvdata/iso8859-9e.c: New file.
6535         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
6536         * iconvdata/TESTS: Likewise.
6537         * iconvdata/tst-tables.sh: Likewise.
6539         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6541         * locale/iso-639.def: Add several new entries.
6543 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
6545         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
6546         void * pointers instead of struct link_map **.
6547         (_dl_scope_free): Change argument type to void *.
6548         * include/link.h (struct link_map): Change type of l_reldeps
6549         to struct link_map_reldeps, move l_reldepsact into that
6550         struct too.
6551         * elf/dl-deps.c: Include atomic.h.
6552         (_dl_map_object_deps): Only change l->l_initfini when it is
6553         fully populated, use _dl_scope_free for freeing it.  Optimize
6554         removal of libs from reldeps by using l_reserved flag, when
6555         some removal is needed, allocate a new list instead of
6556         reallocating and free the old with _dl_scope_free.  Adjust
6557         for l_reldeps and l_reldepsact changes.
6558         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
6559         searching in l_initfini and l_reldeps without holding dl_load_lock.
6560         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
6561         l_reldepsact changes.
6562         * elf/dl-close.c (_dl_close_worker): Likewise.
6563         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
6565 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
6567         * iconvdata/Makefile (modules): Add KOI8-RU.
6568         (distribute): Add koi8-ru.c.
6569         (gen-8bit-gap-modules): Add koi8-ru.
6570         * iconvdata/koi8-ru.c: New file.
6571         * iconvdata/gconv-modules: Add entries for KOI8-RU.
6572         * iconvdata/TESTS: Likewise.
6573         * iconvdata/tst-tables.sh: Likewise.
6575         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6577 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
6579         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
6580         with __warning__/__error__ attributes.
6581         (__warnattr): Define.
6582         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
6583         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
6584         __warnattr.
6585         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
6586         of __*_chk if compile time detectable overflow is found.
6587         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
6588         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
6589         with __warnattr.
6590         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
6591         instead of __*_chk if compile time detectable overflow is found.
6592         (__gets_alias): Rename to...
6593         (__gets_warn): ... this.  Add __warnattr.
6594         (gets): Call __gets_warn instead of __gets_alias.
6595         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
6596         aliases with __warnattr.
6597         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
6598         time detectable overflow is found.
6599         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
6600         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
6601         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
6602         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
6603         __getdomainname_chk_warn): New aliases with __warnattr.
6604         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
6605         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
6606         __*_chk_warn instead of __*_chk if compile time detectable overflow
6607         is found.
6608         (__getgroups_chk): Rename argument to __listlen from listlen.
6609         (__getwd_alias): Rename to...
6610         (__getwd_warn): ... this.  Add __warnattr.
6611         (getwd): Call __getwd_warn instead of __getwd_alias.
6612         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
6613         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
6614         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
6615         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
6616         __wcsnrtombs_chk_warn): New aliases with __warnattr.
6617         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
6618         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
6619         compile time detectable overflow is found.
6620         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
6621         to use __*_chk or not.
6622         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
6623         in comparisons which function should be called and in __*_chk*
6624         arguments.  Call __*_chk_warn instead of __*_chk if compile time
6625         detectable overflow is found.
6626         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
6627         __*_chk argument.
6628         * debug/tst-chk1.c (do_test): Add a few more tests.
6630 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
6632         [BZ #5058]
6633         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
6634         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
6635         (_nl_unload_domain): Finalize conversions_lock.
6636         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
6637         handling table of known conversions.
6639 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
6641         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
6642         close_not_cancel_no_status instead of close.
6644 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
6646         [BZ #5028]
6647         * posix/regcomp.c (lookup_collation_sequence_value): Check that
6648         nrules != 0 for multibyte chars.
6650 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
6652         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
6653         Provide better error message in case the type is unknown.
6655         [BZ #4963]
6656         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
6657         * string/stratcliff.c: Make usable to test wide char functions.
6658         * wcsmbs/wcsatcliff.c: New file.
6659         * wcsmbs/Makefiel (tests): Add wcsatcliff.
6661         [BZ #4972]
6662         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
6663         (distribute): Add mac-centraleurope.c.
6664         (gen-8bit-gap-modules): Add mac-centraleurope.
6665         * iconvdata/mac-centraleurope.c: New file.
6666         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
6667         * iconvdata/TESTS: Likewise.
6668         * iconvdata/tst-tables.sh: Likewise.
6670         [BZ #5043]
6671         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
6673 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
6675         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
6676         from __x86_64_core_cache_size_half.
6677         (init_cacheinfo): Compute shared cache size for AMD processors with
6678         shared L3 correctly.
6679         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
6680         name change.
6681         Patch in large parts by Evandro Menezes.
6683 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
6685         * elf/dl-lookup.c (add_dependency): Handle failing memory
6686         allocation for dependency list.  Remove unnecessary check.
6688         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
6689         open/close when determining source addresses.
6691         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
6692         sha512-crypt, and sha512.
6693         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
6694         (distribute): Add sha256.h and sha512.h.
6695         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
6696         and call the appropriate code.
6697         * crypt/sha256-crypt.c: New file.
6698         * crypt/sha256.c: New file.
6699         * crypt/sha256.h: New file.
6700         * crypt/sha256c-test.c: New file.
6701         * crypt/sha256test.c: New file.
6702         * crypt/sha512-crypt.c: New file.
6703         * crypt/sha512.c: New file.
6704         * crypt/sha512.h: New file.
6705         * crypt/sha512c-test.c: New file.
6706         * crypt/sha512test.c: New file.
6708 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
6710         * misc/bits/syslog.h (syslog): Remove extraneous argument from
6711         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
6712         __syslog_chk.
6714 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
6716         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
6717         %as in fscanf format strings.
6719         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
6720         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6721         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
6722         Likewise.
6723         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
6724         Likewise.
6726         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
6727         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
6728         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
6729         * elf/dl-sym.c (do_sym): Likewise.
6730         * include/link.h (struct link_map): Add l_serial field.
6731         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
6732         * elf/dl-lookup.c (add_dependency): Add flags argument.
6733         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
6734         flags, use THREAD_GSCOPE_RESET_FLAG before and
6735         THREAD_GSCOPE_SET_FLAG after
6736         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
6737         Don't dereference map until it has been found on some list.
6738         If map->l_serial changed, return -1.
6740 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
6742         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
6743         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
6744         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
6745         libc_hidden_proto.
6746         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
6747         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
6748         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
6749         add libc_hidden_proto.
6750         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
6751         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
6752         conformance requested.
6753         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
6754         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
6755         conformance requested.
6756         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
6757         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
6758         conformance requested.
6759         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
6760         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
6761         ISO C99 or POSIX conformance requested.
6762         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
6763         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
6764         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
6765         and __isoc99_vsscanf@@GLIBC_2.7.
6766         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
6767         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
6768         (tests): Add scanf14.
6769         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
6770         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
6771         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
6772         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
6773         CFLAGS-isoc99_scanf.c): Add $(exceptions).
6774         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
6775         from using internal headers.
6776         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
6777         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
6778         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
6779         and __isoc99_vswscanf@@GLIBC_2.7.
6780         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
6781         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
6782         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
6783         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
6784         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
6785         * stdio-common/isoc99_scanf.c: New file.
6786         * stdio-common/isoc99_vsscanf.c: New file.
6787         * stdio-common/isoc99_vscanf.c: New file.
6788         * stdio-common/isoc99_vfscanf.c: New file.
6789         * stdio-common/isoc99_fscanf.c: New file.
6790         * stdio-common/isoc99_sscanf.c: New file.
6791         * wcsmbs/isoc99_fwscanf.c: New file.
6792         * wcsmbs/isoc99_vswscanf.c: New file.
6793         * wcsmbs/isoc99_swscanf.c: New file.
6794         * wcsmbs/isoc99_wscanf.c: New file.
6795         * wcsmbs/isoc99_vwscanf.c: New file.
6796         * wcsmbs/isoc99_vfwscanf.c: New file.
6797         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
6798         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
6799         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
6800         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
6801         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
6802         * stdio-common/scanf14.c: New test.
6803         * stdio-common/scanf15.c: New test.
6804         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
6805         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
6806         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
6807         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
6808         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
6809         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
6810         __nldbl___isoc99_scanf@@GLIBC_2.7,
6811         __nldbl___isoc99_fscanf@@GLIBC_2.7,
6812         __nldbl___isoc99_sscanf@@GLIBC_2.7,
6813         __nldbl___isoc99_vscanf@@GLIBC_2.7,
6814         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
6815         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
6816         __nldbl___isoc99_wscanf@@GLIBC_2.7,
6817         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
6818         __nldbl___isoc99_swscanf@@GLIBC_2.7,
6819         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
6820         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
6821         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
6822         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
6823         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
6824         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
6825         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
6826         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
6827         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6828         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
6829         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
6830         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
6831         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
6832         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
6833         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
6834         functions.
6835         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
6836         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
6837         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
6838         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
6839         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
6840         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
6841         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
6842         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
6843         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
6844         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
6845         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
6846         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
6848         * stdio-common/Makefile (tests): Add scanf13.
6849         (scanf13-ENV): New.
6850         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
6851         m modifier followed by l.
6852         (STRING_ARG): Add width argument.
6853         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
6854         <case L_('C')>: Handle %mlc and %mC.
6855         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
6856         arguments.
6857         * stdio-common/scanf13.c: New test.
6859         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
6860         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
6862 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
6864         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
6865         type and __THROW marker of splice, vmsplice, and tee.
6866         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6867         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6868         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6869         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6870         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6871         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6872         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6873         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
6874         as cancellation points.
6876 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
6878         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
6879         parse more than three parts of the version number.
6881 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
6883         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
6884         modifier.  Patch by Jakub Jelinek.
6886 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
6888         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
6889         call_fallocate in misc subdir.
6890         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
6891         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
6892         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
6893         instead of __fallocate64.
6894         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
6896 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
6898         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
6899         * rt/Makefile (headers): Add bits/mqueue2.h.
6900         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
6901         optimizing with GCC and __va_arg_pack_len is defined.
6902         * rt/bits/mqueue2.h: New file.
6903         * rt/mq_open.c (__mq_open): Renamed from mq_open.
6904         (mq_open): New strong_alias.
6905         (__mq_open_2): New function.
6906         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
6907         (mq_open): New strong_alias.
6908         (__mq_open_2): New function.
6909         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
6910         * Versions.def (librt): Add GLIBC_2.7 version.
6911         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
6912         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
6914         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
6915         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
6916         is defined rather than when not C++.
6917         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
6918         __openat64_alias): New redirects.
6919         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
6920         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
6921         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
6922         (open, open64, openat, openat64): Rewrite as __extern_always_inline
6923         functions instead of function-like macros.
6925 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
6927         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
6928         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
6929         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
6931 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
6933         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
6934         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
6936 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
6938         * inet/tst-network.c: Increment ERRORS for failing tests.
6940 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
6942         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
6943         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
6944         implement as __extern_always_inline function.
6945         (vsyslog): Define as __extern_always_inline function unconditionally.
6946         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
6947         When __va_arg_pack is defined, implement as __extern_always_inline
6948         functions.
6949         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
6950         __extern_always_inline functions unconditionally.
6951         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
6952         bits/stdio2.h will be included.
6953         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
6954         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
6955         implement as __extern_always_inline functions.
6956         (vswprintf, vwprintf, vfwprintf): Define as
6957         __extern_always_inline functions unconditionally.
6958         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
6960 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
6962         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
6963         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
6964         attribute.
6965         * include/features.h (__USE_EXTERN_INLINES): Define only when
6966         __extern_inline is defined.
6967         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
6968         is defined instead of when not __cplusplus.
6969         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
6970         is defined instead of when not __cplusplus.
6971         * socket/sys/socket.h: Include bits/socket2.h when
6972         __extern_always_inline is defined instead of when not __cplusplus.
6973         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
6974         is defined instead of when not __cplusplus.
6975         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
6976         is defined instead of when not __cplusplus.
6977         * string/string.h: Include bits/string3.h when __extern_always_inline
6978         is defined instead of when not __cplusplus.
6979         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
6980         is defined instead of when not __cplusplus.
6981         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
6982         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
6983         is not defined.
6984         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
6985         defined __extern_always_inline instead of !defined __cplusplus.
6986         * libio/bits/stdio-ldbl.h: Likewise.
6987         * wcsmbs/bits/wchar-ldbl.h: Likewise.
6988         * misc/bits/syslog.h (syslog): Don't define for C++.
6989         (vsyslog): Use __extern_always_inline function for C++ instead of
6990         a macro.
6991         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
6992         whenever that macro is defined.
6993         (vprintf): Don't provide the inline for C++.
6994         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
6995         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
6996         define the macros for C++.
6997         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
6998         __extern_always_inline functions for C++.
6999         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
7000         stat64, lstat64, fstat64, fstatat64): Don't define if not
7001         __USE_EXTERN_INLINES.
7002         * wcsmbs/bits/wchar2.h: Fix #error message.
7003         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
7004         (vswprintf, vwprintf, vfwprintf): Define using
7005         __extern_always_inline functions for C++.
7006         * string/bits/string3.h: Don't #undef macros if __cplusplus.
7007         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
7008         strncpy, strcat, strncat): Define as __extern_always_inline
7009         functions instead of macros for C++.
7010         * math/bits/cmathcalls.h: Guard __extern_inline routines with
7011         defined __extern_inline.
7012         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
7013         to __extern_inline whenever that macro is defined.
7014         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7015         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7016         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
7017         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
7018         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7019         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7020         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7021         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7022         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
7023         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
7024         prototypes.  Only provide __extern_inline routines if
7025         __USE_EXTERN_INLINES.
7026         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
7027         tests.
7028         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
7029         For now avoid some *printf tests in C++.  Skip all testing
7030         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
7031         is not.
7032         * debug/tst-chk4.cc: New file.
7033         * debug/tst-chk5.cc: New file.
7034         * debug/tst-chk6.cc: New file.
7035         * debug/tst-lfschk4.cc: New file.
7036         * debug/tst-lfschk5.cc: New file.
7037         * debug/tst-lfschk6.cc: New file.
7038         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
7039         prototypes in C++.
7040         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
7041         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
7042         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
7044 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
7046         * po/cs.po: Update from translation team.
7048 2007-09-11  Roland McGrath  <roland@redhat.com>
7050         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
7051         compiling.
7053 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7055         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
7057 2007-09-05  Roland McGrath  <roland@redhat.com>
7059         * manual/signal.texi (Signaling Another Process): Typo fix.
7060         From Karl Berry <karl@freefriends.org>.
7062 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
7064         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
7065         zero if not defined.
7066         (make_request): Recognize optimistic addresses and treat them like
7067         deprecated addresses.
7068         Reported by Neil Horman <nhorman@redhat.com>.
7070 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
7072         * nscd/connections.c (send_ro_fd): Also transfer file size.
7073         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
7074         file size don't call fstat.
7076         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
7077         ahead and map the file.  This should always be correct and we can
7078         catch problems later.
7080 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
7082         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
7083         prototypes.
7084         (__fread_alias, __fread_unlocked_alias): New aliases.
7085         (fread): New extern inline.
7086         (fread_unlocked): Likewise.  Undef macro before definition of
7087         the inline function.
7088         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
7089         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
7090         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
7091         and __fread_unlocked_chk@@GLIBC_2.7.
7092         * debug/fread_chk.c: New file.
7093         * debug/fread_u_chk.c: New file.
7094         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
7096 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
7098         * sysdeps/unix/sysv/linux/syscalls.list
7099         (personality): Change caller to EXTRA.
7101 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
7103         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
7104         to keep gcc quiet.
7105         * iconvdata/iso-2022-cn.c (BODY): Likewise.
7107         * locale/programs/ld-collate.c (collate_output): Avoid warning if
7108         NDEBUG is defined.
7110         * Makerules: Use -p option with mkdir.
7112         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
7113         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
7114         (_xdr_directory_obj): Likewise.
7115         (xdr_entry_obj): Likewise.
7116         (xdr_group_obj): Likewise.
7117         (xdr_link_obj): Likewise.
7118         (xdr_table_obj): Likewise.
7119         (_xdr_nis_result): Likewise.
7120         (_xdr_ns_request): Likewise.
7121         (_xdr_ib_request): Likewise.
7122         (_xdr_nis_taglist): Likewise.
7123         (xdr_cback_data): Likewise.
7124         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
7125         (xdr_ypresp_maplist): Likewise.
7127         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
7129         * posix/regex_internal.h: Prevent some declarations and definitions
7130         to be seen when used in tests.
7132         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
7133         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
7135         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
7137         * config.make.in (datarootdir): Add to shut up configure.
7139         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
7140         associativity for fully-associative caches.
7142         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
7143         requests.  Fill on more associativity values for L2.
7144         Patch mostly by Evandro Menezes.
7146 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
7148         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7149         (_libc_vdso_platform_setup): Avoid using exported variable by using
7150         alias.
7152         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
7154         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
7155         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
7156         defined.
7158 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
7160         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
7161         align stack for call if pltexit is to be used.
7163         [BZ #3924]
7164         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
7165         align for function call in case pltexit has to be called later.
7167         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
7168         implicit atomic operation when storing function pointer.
7169         (_dl_runtime_profile): Likewise.
7171 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
7173         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
7174         NIS_NOTFOUND.
7176 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
7178         [BZ #4566]
7179         * string/strtok.c: Fix typo in comment.
7181         [BZ #4582]
7182         * debug/segfault.c: Fix typos in comments.
7184         [BZ #4588]
7185         * stdio-common/tempnam.c: Fix comment, it is not checked that
7186         TMPDIR points to a writable directory.
7188         [BZ #4726]
7189         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
7190         memory allocated for the name server address.
7192         [BZ #4946]
7193         * nscd/connections.c (handle_request): Using sendfile always
7194         requires that mmap is used for the database.
7195         Patch by Petr Baudis <pasky@suse.cz>.
7197         [BZ #4905]
7198         * nscd/hstcache.c (cache_addhst): When reloading an entry which
7199         suddenly has two or more addresses, ignore it and remove the old
7200         entry.
7202         [BZ #4814]
7203         * resolv/res_hconf.c: Prepare for compiling outside libc.
7204         * nscd/res_hconf.c: New file.
7205         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
7206         the new file.
7207         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
7208         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
7210         * nscd/hstcache.c (cache_addhst): Minimal optimization.
7212         [BZ #4925]
7213         * debug/pcprofiledump.c: Turn on internationalization by calling
7214         setlocale.  Patch mostly by Benno Schulenberg.
7216         [BZ #4936]
7217         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
7218         the state.
7219         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
7220         * iconvdata/bug-iconv5.c: New file.
7222 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
7224         [BZ #4896]
7225         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
7226         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
7227         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
7228         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
7229         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
7230         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
7231         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
7232         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
7234 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
7236         [BZ #4937]
7237         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
7238         lookup loop.  Suggested by John Reiser.
7240 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
7242         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
7244 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
7246         * csu/libc-start.c: Don't handle VDSO_SETUP here.
7247         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
7248         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
7249         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
7250         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
7251         to...
7252         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
7254 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
7256         * po/nl.po: Update from translation team.
7258 2007-08-16  Andreas Jaeger  <aj@suse.de>
7260         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
7261         Reported by Peter Festner <peter.festner@ewetel.net>.
7263 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
7265         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
7267 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
7269         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
7270         to check for undefined symbols.
7272         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
7273         If the syscall fails, set errno to the actual returned error number
7274         rather than EINVAL.
7275         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
7276         arguments are incorrect, set errno to EINVAL, if the syscall
7277         fails, set errno to the actual returned error number.
7279         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
7280         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
7282         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
7283         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
7284         file.
7285         (ASI_PNF, ASI_BLK_P): Don't define.
7286         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
7287         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
7288         file.
7289         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
7290         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
7291         file.
7293 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
7295         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
7296         FE_UNDERFLOW on Niagara CPUs.
7298         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
7299         exceptions.
7301 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
7303         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
7304         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
7305         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
7306         flush should be used or not inside of the function.
7307         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
7309         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
7310         __thread_start): Use HIDDEN_JUMPTARGET.
7311         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
7312         __thread_start): Likewise.
7313         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
7315         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
7316         Add libc_hidden_proto.
7317         (STRTOF): Add libc_hidden_proto.
7318         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
7319         (strtold_l, wcstold_l): Use them as second argument for
7320         long_double_symbol.
7322 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
7324         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
7326 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7328         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
7330 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
7332         * po/bg.po: New file.  From the translation team.
7334 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
7336         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
7337         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
7338         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
7339         when each feature was introduced.
7341         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
7342         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
7343         (CHECK_HASH): New macro.
7344         (PREPARE_VERSION): Use it.
7346         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
7347         prototype if not __ASSUME_PSELECT.
7348         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
7349         prototype if not __ASSUME_PPOLL.
7351         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
7353         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
7354         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
7355         is defined.
7357 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
7359         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7360         (_libc_vdso_platform_setup): If vDSO is not available point
7361         __vdso_gettimeofday to the vsyscall.
7362         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
7363         __vdso_gettimeofday instead of vsyscall.
7365 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
7367         * nscd/servicescache.c: Include kernel-features.h.
7368         * nscd/gai.c: Likewise.
7369         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
7370         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
7371         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
7372         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
7373         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
7374         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
7375         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
7376         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
7377         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
7379 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
7381         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
7382         and _dl_get_origin defines anymore.
7384         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
7385         Build fix for systems which might lack POSIX timer support.
7387         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7388         (_libc_vdso_platform_setup): Mangle function pointers before storing
7389         them.
7390         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
7391         Demangle vdso pointer before use.
7392         (INTERNAL_VSYSCALL): Likewise.
7394         * elf/cache.c (primes): Mark as const.
7395         Noted by Roland McGrath.
7397 2007-08-01  Andreas Jaeger  <aj@suse.de>
7398             Jakub Jelinek  <jakub@redhat.com>
7400         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
7401         (options): Add option.
7402         (parse_opt): Handle option.
7403         (manual_link): Adjust process_file caller.  Call implicit_soname.
7404         (search_dir): Formatting.  Use and populate auxiliary cache.
7405         (main): Load and save auxiliary cache.
7406         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
7407         stat64 from fstat64 to caller.
7408         (implicit_soname): New function.
7409         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
7410         leave *soname as NULL.
7411         * elf/cache.c: Include libgen.h.
7412         (print_entry, print_cache, compare, save_cache, add_to_cache):
7413         Formatting and cleanups.
7414         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
7415         aux_cache_file): New structures.
7416         (AUX_CACHEMAGIC): Define.
7417         (primes): New array.
7418         (aux_hash_size, aux_hash): New variables.
7419         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
7420         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
7421         load_aux_cache, save_aux_cache): New functions.
7422         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
7423         (init_aux_cache, search_aux_cache, add_to_aux_cache,
7424         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
7425         (process_file): Adjust prototype.
7427 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
7429         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
7430         with __need_size_t.
7432 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
7434         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
7435         r_found_version structure as second parameter.
7436         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
7437         (_dl_vdso_vsym): Change type of second parameter accordingly.
7438         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
7439         (_libc_vdso_platform_setup): Adjust.
7440         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7441         (_libc_vdso_platform_setup): Likewise.
7443         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
7444         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
7445         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
7446         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
7447         * csu/libc-start.c: Pretty printing.
7448         Use VDSO_SETUP if defined.
7449         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
7450         and let generic code call into _libc_vdso_platform_setup.
7451         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
7452         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
7453         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
7454         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
7455         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
7456         for GLIBC_PRIVATE.
7457         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
7458         (sysdep_rountines): Add dl-vdso.
7460         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
7461         of routines.
7463         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
7464         attribute_hidden to __vdso_gettimeofday prototype.
7466 2007-08-12  Roland McGrath  <roland@redhat.com>
7468         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
7469         From: Karl Berry <karl@freefriends.org>.
7471 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
7473         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
7474         an atime update for the files we read.
7476 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
7478         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
7480         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
7481         instead of mkstemp.
7483         * misc/Makefile (routines): Add mkostemp and mkostemp64.
7484         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
7485         * misc/mkostemp.c: New file.
7486         * misc/mkostemp64.c: New file.
7487         * stdlib/stdlib.h: Declare the new functions.
7488         * sysdeps/posix/tempname.c: Add new parameter which is added to
7489         the flags for open.  Remove __GT_BIGFILE handling.
7490         * stdio-common/tempname.c: Likewise.
7491         * include/stdio.h: Adjust __gen_tempname prototype.
7492         Renumber __GT_* constants.
7493         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
7494         * misc/mkdtemp.c: Likewise.
7495         * misc/mkstemp.c: Likewise.
7496         * misc/mkstemp64.c: Likewise.
7497         * misc/mktemp.c: Likewise.
7498         * stdio-common/tempnam.c: Likewise.
7499         * stdio-common/tmpfile.c: Likewise.
7500         * stdio-common/tmpfile64.c: Likewise.
7501         * stdio-common/tmpnam.c: Likewise.
7502         * stdio-common/tmpnam_r.c: Likewise.
7504 2007-08-10  Roland McGrath  <roland@frob.com>
7506         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
7507         New macros.
7508         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
7509         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7511 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
7513         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
7514         possible.
7515         * nss/nss_files/files-alias.c (internal_setent): Likewise.
7516         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
7517         * nss/nss_files/files-have_o_cloexec.c: New file.
7519         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
7520         available.
7522 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
7524         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
7525         ___new_wcstold_l): New weak aliases.
7526         (strtold_l, wcstold_l): Use them as second argument for
7527         long_double_symbol.
7529 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
7531         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
7532         register in test for error.
7534         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
7535         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
7537         * po/sv.po: Update from translation team.
7539 2007-08-06  Roland McGrath  <roland@redhat.com>
7541         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
7542         Remove __strto*_l inlines.
7543         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
7544         * stdlib/strtod.c: Add libc_hidden_def.
7545         * stdlib/strtod_l.c: Likewise.
7546         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
7547         for __new_strtold and __new_wcstold.
7548         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
7549         __STRTOF, STRTOF.
7550         * stdlib/strtol.c: Add libc_hidden_def.
7551         * stdlib/strtol_l.c: Likewise.
7552         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
7553         strtoq.
7555         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
7557         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
7558         * scripts/data/localplt-generic.data: ... here.
7559         * elf/Makefile (check-data): Get generic file if no other.
7560         ($(objpfx)check-localplt.out): Make target unconditional.
7562         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
7563         Use ElfW(Nhdr).
7565 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
7567         * po/zh_CN.po: Updated translation from translation team.
7569 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
7571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
7572         Don't use CGOTSETUP and CGOTRESTORE macros.
7574 2007-08-04  Roland McGrath  <roland@redhat.com>
7576         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
7578 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
7580         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
7581         __extension__ around the whole statement expression.
7583 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
7585         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
7586         elements during initialization.
7588         * po/pl.po: Updated translation from translation team.
7589         * po/tr.po: Likewise.
7590         * po/nl.po: Likewise.
7592 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
7594         * rt/aio.h: Add __nonnull attributes.
7596 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
7598         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
7599         * stdlib/Makefile (tests): Add tst-strtod5.
7600         (tst-strtod5-ENV): New.
7601         * stdlib/tst-strtod5.c: New file.
7603         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
7604         failed.
7605         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
7606         on failure.
7608         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
7609         allocated.
7611 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
7613         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
7614         numbers.
7616 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
7618         * io/Makefile (aux): Add have_o_cloexec.
7619         * include/fcntl.h: Declare __have_o_cloexec.
7620         * io/have_o_cloexec.c: New file.
7621         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
7622         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
7623         fcntl call if not necessary.
7624         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
7625         of local variable.
7627         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
7628         Avoid memset, add explicit initialization.
7629         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
7630         to the end and change into zero-sized array.
7631         Move lock member to fill a hole on 64-bit platforms.
7633         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
7634         inline functions.
7635         * include/stdlib.h: Add __strto*_internal prototypes here.
7636         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
7637         inline functions.
7638         * include/wchar.h: Add __wcsto*_internal prototypes.
7639         * sysdeps/generic/inttypes.h: No need to protect the declaration
7640         of the __strto*_internal and __wcsto*_internal members here.
7642         * rt/mqueue.h: Change const to __const and add nonnull attributes.
7644 2007-08-02  Roland McGrath  <roland@redhat.com>
7646         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
7647         $(inst_bindir)/getconf if possible.
7649         * posix/Makefile ($(objpfx)getconf.speclist): New target.
7650         (generated): Add it.
7651         ($(inst_libexecdir)/getconf): Use it.
7653 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
7655         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
7656         /proc is faster and sufficient.  /sys is still needed for
7657         __get_nprocs_conf.
7659 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
7661         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
7662         syscall as __fallocate64.
7663         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
7664         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
7666 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
7668         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
7669         value.
7671         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
7672         if off_t is different rank from size_t.
7674         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
7675         uw_frame_state_for): Avoid type punning warnings.
7676         * sysdeps/generic/unwind-dw2-fde-glibc.c
7677         (_Unwind_IteratePhdrCallback): Likewise.
7678         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
7679         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
7680         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
7681         pointers.
7683 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
7685         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
7686         total processors using sysfs.
7687         (__get_nprocs): Use sysfs to determine which processors are online.
7689 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
7691         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
7692         syscall arguments count.
7694         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
7696 2007-07-30  Roland McGrath  <roland@redhat.com>
7698         * manual/libc.texinfo: Update copyrights, formatting magic, and
7699         @dircategory.  From Karl Berry <karl@freefriends.org>.
7701 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
7703         [BZ #4860]
7704         * io/Makefile (headers): Add bits/fcntl2.h.
7706         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
7707         using gcc builtin.
7708         (__CPU_EQUAL_S): Likewise.
7710         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
7711         (tests): Add tst-cpuset.
7712         * posix/sched_cpualloc.c: New file.
7713         * posix/sched_cpufree.c: New file.
7714         * posix/tst-cpuset.c: New file.
7715         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
7716         GLIBC_2.7.
7717         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
7718         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
7719         macros.  Define CPU_*_S macros.
7721 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
7723         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
7724         entry.
7726         [BZ #4858]
7727         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
7728         #.0g and value rounded to 1.0.
7729         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
7731 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
7733         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
7734         for int_frac_digits and frac_digits.
7736         * login/logout.c (logout): Avoid aliasing violation.
7737         * login/logwtmp.c (logwtmp): Likewise.
7739         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
7741         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
7742         to avoid warning.
7743         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
7744         warning.
7745         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
7746         warning.
7747         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
7748         to avoid warnings.
7750         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
7751         void **.
7752         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
7754         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
7755         char * to avoid warning.
7756         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
7758         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
7760         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
7761         allocate_arrays): Cast second argument to charmap_find_symbol
7762         to char * to avoid warnings.
7764         * locale/programs/repertoire.c (repertoire_new_char): Change
7765         from_nr, to_nr and cnt to unsigned long, adjust printf format
7766         string.
7768         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
7769         Cast second argument to new_element to char * to avoid warnings.
7771         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
7773         * intl/gettextP.h (struct loaded_domain): Change plural to const
7774         struct expression *.
7775         * intl/plural-eval.c (plural_eval): Change first argument to
7776         const struct expression *.
7777         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
7778         argument to const struct expression **.
7779         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
7780         prototypes.
7781         * intl/loadmsgcat (_nl_unload_domain): Cast away const
7782         in call to __gettext_free_exp.
7784         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
7785         unitialized wstring/wpattern var warnings.
7787         * posix/runtests.c (struct a_test): Make data field const char *.
7789         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
7790         vars if not LDBL_MANT_DIG >= 106.
7792         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
7794         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
7795         __find_specmb to avoid warning.
7797         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
7799         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
7800         to avoid warnings.
7802         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
7803         initializer.
7805         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
7806         tv var when it will be actually used.
7808         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
7809         to avoid warnings.
7811         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
7812         char array resp. pointer.
7813         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
7814         char array.
7815         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
7816         to const unsigned char **.
7817         (ucs4_to_cns11643): Change second argument to unsigned char *.
7818         * iconvdata/euc-tw.c (BODY): Change endp type to
7819         const unsigned char *.
7820         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
7821         to unsigned char *.
7822         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
7823         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
7824         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
7825         types to unsigned char pointers/arrays instead of char.
7826         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
7827         to unsigned char *.
7828         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
7829         * iconvdata/jis0212.h: Include assert.h.
7830         (ucs4_to_jisx0212): Change second argument to unsigned char *.
7831         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
7832         of trying to handle that.
7833         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
7834         shut up a warning.
7835         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
7836         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
7837         two dimensional const unsigned char arrays.
7838         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
7839         Initialize endp to inptr to shut up a warning.
7841 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
7843         [BZ #4772]
7844         * time/strptime_l.c (__strptime_internal): Silently ignore
7845         strftime modifiers and field width in recursive calls.
7847         * include/time.h (enum ptime_locale_status): Remove.
7848         (__strptime_internal): Remove decided and era_cnt arguments,
7849         add statep argument.
7850         * time/strptime_l.c (__strptime_internal): Remove decided
7851         and era_cnt arguments, add statep argument.  Don't recompute
7852         any fields in recursive calls, only update caller's tm
7853         and state, if recursive call fails, don't change tm nor
7854         any state.
7855         (get_alt_number): Adjust.
7856         (recursive): Adjust caller.
7857         (strptime): Likewise.
7858         * time/strptime.c (strptime): Likewise.
7860 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
7862         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
7863         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
7864         if from and to charsets are the same.
7865         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
7866         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
7867         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
7869 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
7871         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
7872         Don't define wint_t when __need_mbstate_t unless it
7873         is necessary.
7874         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
7875         in the typedef if possible.
7876         * wctype/wctype.h (wint_t): Define by including
7877         wchar.h with __need_wint_t instead of including stddef.h
7878         with __need_wint_t and as fallback definining it ourselves.
7879         * iconv/gconv.h (__need_wint_t): Define before including
7880         wchar.h.
7881         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
7882         or _GLIBCPP_USE_WCHAR_T.
7883         (__need_wchar_t): Don't define
7884         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
7885         (__need_wint_t): Don't define before including stddef.h,
7886         define before including wchar.h only if _LIBC or
7887         _GLIBCPP_USE_WCHAR_T.
7888         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
7889         * sysdeps/mach/hurd/_G_config.h: Likewise.
7890         * sysdeps/generic/_G_config.h: Likewise.
7891         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
7892         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
7893         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
7894         if _LIBC or _GLIBCPP_USE_WCHAR_T.
7896 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
7898         * sysdeps/posix/posix_fallocate64.c: Undefine
7899         __posix_fallocate64_l64 before alias handling.
7900         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
7901         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
7902         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
7903         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
7905         * io/tst-posix_fallocate.c: Include <fcntl.h>.
7907 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
7909         * locale/programs/ld-collate.c (atwc): New variable.
7910         (add_to_tablewc): New toplevel function, moved from collate_output.
7911         (collate_output): Remove add_to_tablewc nested function.
7913         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
7914         (name_insert): New function.
7915         (write_output): Remove hash_table and hash_size vars and name_insert
7916         nested function.
7918 2007-07-24  Roland McGrath  <roland@redhat.com>
7920         * Makerules (install-others-programs-nosubdir): New target.
7921         (install-no-libc.a-nosubdir): Depend on it.
7923         * iconv/Makefile (install-others-programs): Set this instead of
7924         install-others.
7925         * login/Makefile (install-others-programs): Likewise.
7926         * posix/Makefile (install-others-programs): Likewise.
7928         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
7929         dependencies.
7931 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
7933         * io/Makefile (tests): Add tst-posix_fallocate.
7934         * io/tst-posix_fallocate.c: New file.
7936         * sysdeps/unix/sysv/linux/kernel-features.h: Define
7937         __ASSUME_FALLOCATE.
7939 2007-07-22  Roland McGrath  <roland@frob.com>
7941         * hurd/getdport.c: Add missing copyright year update.
7943         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
7944         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
7946 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
7948         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
7950         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
7951         O_CLOEXEC is needed.
7952         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
7953         Avoid additional fcntl to set O_CLOEXEC if not needed.
7954         * nis/nss_compat/compat-initgroups.c: Likewise.
7955         * nis/nss_compat/compat-pwd.c: Likewise.
7956         * nis/nss_compat/compat-spwd.c: Likewise.
7958 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7960         [BZ #3665]
7961         * manual/errno.texi: Change ECANCELED value to 119.
7963         [BZ #4610]
7964         * mach/lock-intern.h: Include <sys/cdefs.h>.
7966         [BZ #4178]
7967         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
7968         reading A.
7970         [BZ #4126]
7971         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
7972         to __sigsuspend.
7974         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
7976 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
7978         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
7979         `__ASSEMBLER__'.
7980         * sysdeps/mach/hurd/i386/tls.h: Likewise.
7982 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
7984         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
7985         descriptor received from nscd.
7987         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
7989         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
7990         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7991         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7992         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7993         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7994         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7996 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
7998         [BZ #4816]
7999         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
8001         [BZ #4813]
8002         * login/forkpty.c (forkpty): Close master and slave fds on
8003         fork failure.  Patch by
8004         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
8006 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
8008         * include/features.h (__USE_ISOC95): New define.
8009         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
8010         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
8011         for -std=iso9899:199409.
8012         * CONFORMANCE: Remove comments about unsupported AMD1.
8014 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
8016         * sysdeps/ia64/sched_cpucount.c: New file.
8017         * sysdeps/powerpc/sched_cpucount.c: New file.
8019         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
8020         __BEGIN_DECLS/__END_DECLS around the prototype.
8021         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
8022         pointer to const cpu_set_t.
8024         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
8025         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
8026         __need_size_t and include stddef.h.
8027         * sysvipc/sys/msg.h: Likewise.
8028         * posix/sched.h: Likewise.
8029         * hurd/hurd/signal.h (__need_size_t): Define.
8031         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
8032         neither does signal.h in pedantic ISO C namespaces.  stdio.h
8033         no longer defines wint_t or wchar_t.
8035         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
8036         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
8037         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
8038         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
8039         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
8040         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
8041         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
8042         * debug/printf_chk.c (__printf_chk): Likewise.
8043         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
8044         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
8046         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
8047         Define.
8049         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
8050         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
8052 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
8054         [BZ #4792]
8055         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
8056         * malloc/malloc.h (realloc): Likewise.
8058         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
8059         if one of proc_file_chain streams has that fileno.
8060         * stdio-common/Makefile (tests): Add tst-popen2.
8061         * stdio-common/tst-popen2.c: New test.
8063 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
8065         * elf/ldconfig.c: Allow GPLv2 or any later version.
8066         * elf/readlib.c: Likewise.
8067         * elf/chroot_canon.c: Likewise.
8068         * elf/cache.c: Likewise.
8069         * nscd/mem.c: Likewise.
8070         * nscd/getpwuid_r.c: Likewise.
8071         * nscd/grpcache.c: Likewise.
8072         * nscd/aicache.c: Likewise.
8073         * nscd/getsrvbynm_r.c: Likewise.
8074         * nscd/nscd.c: Likewise.
8075         * nscd/servicescache.c: Likewise.
8076         * nscd/getsrvbypt_r.c: Likewise.
8077         * nscd/initgrcache.c: Likewise.
8078         * nscd/gethstbyad_r.c: Likewise.
8079         * nscd/gethstbynm2_r.c: Likewise.
8080         * nscd/getgrnam_r.c: Likewise.
8081         * nscd/nscd_setup_thread.c: Likewise.
8082         * nscd/getpwnam_r.c: Likewise.
8083         * nscd/gai.c: Likewise.
8084         * nscd/connections.c: Likewise.
8085         * nscd/dbg_log.c: Likewise.
8086         * nscd/cache.c: Likewise.
8087         * nscd/hstcache.c: Likewise.
8088         * nscd/nscd_conf.c: Likewise.
8089         * nscd/getgrgid_r.c: Likewise.
8090         * nscd/pwdcache.c: Likewise.
8091         * catgets/gencat.c: Likewise.
8092         * locale/programs/linereader.h: Likewise.
8093         * locale/programs/locarchive.c: Likewise.
8094         * locale/programs/ld-paper.c: Likewise.
8095         * locale/programs/locfile-kw.h: Likewise.
8096         * locale/programs/ld-address.c: Likewise.
8097         * locale/programs/xmalloc.c: Likewise.
8098         * locale/programs/ld-time.c: Likewise.
8099         * locale/programs/localedef.c: Likewise.
8100         * locale/programs/simple-hash.c: Likewise.
8101         * locale/programs/xstrdup.c: Likewise.
8102         * locale/programs/ld-numeric.c: Likewise.
8103         * locale/programs/locfile-kw.gperf: Likewise.
8104         * locale/programs/ld-collate.c: Likewise.
8105         * locale/programs/charmap-kw.gperf: Likewise.
8106         * locale/programs/charmap.h: Likewise.
8107         * locale/programs/charmap-kw.h: Likewise.
8108         * locale/programs/config.h: Likewise.
8109         * locale/programs/locfile.c: Likewise.
8110         * locale/programs/ld-ctype.c: Likewise.
8111         * locale/programs/charmap.c: Likewise.
8112         * locale/programs/ld-messages.c: Likewise.
8113         * locale/programs/repertoire.h: Likewise.
8114         * locale/programs/locale.c: Likewise.
8115         * locale/programs/ld-name.c: Likewise.
8116         * locale/programs/linereader.c: Likewise.
8117         * locale/programs/locfile.h: Likewise.
8118         * locale/programs/3level.h: Likewise.
8119         * locale/programs/ld-monetary.c: Likewise.
8120         * locale/programs/ld-measurement.c: Likewise.
8121         * locale/programs/charmap-dir.c: Likewise.
8122         * locale/programs/ld-identification.c: Likewise.
8123         * locale/programs/localedef.h: Likewise.
8124         * locale/programs/charmap-dir.h: Likewise.
8125         * locale/programs/repertoire.c: Likewise.
8126         * locale/programs/simple-hash.h: Likewise.
8127         * locale/programs/ld-telephone.c: Likewise.
8128         * locale/programs/locale-spec.c: Likewise.
8129         * locale/programs/locfile-token.h: Likewise.
8130         * posix/getconf.c: Likewise.
8131         * iconv/dummy-repertoire.c: Likewise.
8132         * iconv/iconv_charmap.c: Likewise.
8133         * iconv/iconvconfig.c: Likewise.
8134         * iconv/iconv_prog.c: Likewise.
8135         * malloc/memusagestat.c: Likewise.
8136         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
8138 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8140         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
8141         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
8142         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
8143         check for the first argument.
8145 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
8147         [BZ #4775]
8148         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
8149         (__tgmath_real_type): Fix if expr is const int or other const
8150         qualified integral type.
8151         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
8152         expressions and handle const qualified arguments.
8153         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
8154         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
8155         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
8156         statement expressions.
8157         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
8158         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
8159         (__TGMATH_UNARY_IMAG): Define.
8160         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
8161         * math/Makefile (tests): Add test-tgmath2.
8162         (CFLAGS-test-tgmath2.c): Add.
8163         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
8164         count_cfloat, count_cldouble): New variables.
8165         (NCCALLS): Define.
8166         (main): Check number of complex calls as well.
8167         (F(compile_test)): Add complex tests and tests with const qualified
8168         arguments.
8169         (y, z, ccount): Define.
8170         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
8171         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
8172         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
8173         F(cproj)): New functions.
8174         * math/test-tgmath2.c: New test.
8176 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
8178         [BZ #4776]
8179         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
8180         RPATH etc. as "/" rather than "", don't segfault on empty paths,
8181         instead output ".".
8182         * dlfcn/Makefile (distribute): Add glreflib3.c.
8183         (module-names): Add glreflib3.
8184         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
8185         glreflib1.so.
8186         (LDFLAGS_glreflib3.so): New.
8187         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
8188         glreflib1.so.
8189         * dlfcn/glreflib3.c: New file.
8191         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
8192         returned -1, return NULL.
8193         * intl/explodename.c (_nl_explode_name): Return -1 if
8194         _nl_normalize_codeset failed.
8196 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
8198         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
8199         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
8200         and avoid branch misspredicts for > 31 bytes memset case.
8201         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
8202         Remove toc ref to __cache_line_size.
8204         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
8205         to get ISA-V2.0 branch hints.
8206         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
8207         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
8208         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
8209         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
8210         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
8211         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
8212         Remove toc ref to __cache_line_size.
8214         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
8215         Include math_ldbl_opt.h.
8217 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
8219         [BZ #4773]
8220         * time/strptime_l.c (__strptime_internal): Implement greedy
8221         matching of weekday and month names.
8223 2007-07-09  Roland McGrath  <roland@redhat.com>
8225         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
8226         (ELF_NOTE_ABI): Use it.
8227         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
8229 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
8231         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
8232         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
8234 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
8236         [BZ #4745]
8237         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
8238         in loop to look for conversion specifier to avoid testing of
8239         wrong errno value.
8240         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
8241         * stdio-common/bug18.c: New file.
8242         * stdio-common/bug18a.c: New file.
8243         * stdio-common/bug19.c: New file.
8244         * stdio-common/bug19a.c: New file.
8246 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
8248         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
8249         running awk script.
8251 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
8253         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
8254         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
8255         Return NULL if mmap failed instead of asserting it does not.
8256         (calloc): Check for integer overflow.
8258         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
8259         than LONG_MAX / 10.
8261 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
8263         [BZ #4702]
8264         * nis/nss-default.c: Include errno.h.
8265         (init): Preserve errno.
8267 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
8269         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
8271 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
8273         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
8275 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8277         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
8279 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8281         * sysdeps/s390/dl-procinfo.c: New file.
8282         * sysdeps/s390/dl-procinfo.h: New file.
8283         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
8285 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
8287         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
8288         in PT_NOTE segments with multiple notes.
8289         * elf/readelflib.c (process_elf_file): Likewise.
8291 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
8293         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
8294         ISO C compliant.
8296 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
8298         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
8300 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
8302         * include/link.h: Don't include rtld-lowlevel.h.
8303         (struct link_map): Remove l_scope_lock.
8304         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
8305         (_dl_scope_free_list): New field (variable) in _rtld_global.
8306         (DL_LOOKUP_SCOPE_LOCK): Remove.
8307         (_dl_scope_free): New prototype.
8308         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
8309         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
8310         (_dl_profile_fixup): Likewise.
8311         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
8312         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
8313         THREAD_GSCOPE_RESET_FLAG around it.
8314         * elf/dl-close.c (_dl_close_worker): Don't use
8315         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
8316         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
8317         scopes were queued or if l_scope_mem has been abandoned.
8318         * elf/dl-open.c (_dl_scope_free): New function.
8319         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
8320         * elf/dl-support.c (_dl_scope_free_list): New variable.
8321         * elf/dl-lookup.c (add_dependency): Remove flags argument.
8322         Remove DL_LOOKUP_SCOPE_LOCK handling.
8323         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
8324         handling.
8325         * elf/dl-object.c (_dl_new_object): Don't use
8326         __rtld_mrlock_initialize.
8328 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
8330         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
8331         to fill in holes
8332         (rtld_global_ro): Likewise.
8334 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
8336         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
8337         Move PT_LOAD checking to...
8338         (_dl_addr_inside_object): ... here, new function.
8339         * elf/dl-sym.c (do_sym): If not l_contiguous,
8340         call _dl_addr_inside_object.
8341         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
8342         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
8343         * elf/dl-open.c (dl_open_worker): Likewise.
8344         (_dl_addr_inside_object): New function if IS_IN_rtld.
8345         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
8346         holes are present or are PROT_NONE protected.
8347         * include/link.h (struct link_map): Add l_contiguous field.
8348         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
8350 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
8351             Tomas Janousek  <tjanouse@redhat.com>
8352             Ulrich Drepper  <drepper@redhat.com>
8354         [BZ #4647]
8355         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
8356         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
8357         socket.
8358         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
8359         unused member a bitmap.
8360         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
8361         servers are configured.
8363 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
8365         * elf/rtld.c (dl_main): Don't call init_tls more than once.
8367 2007-06-17  Andreas Schwab  <schwab@suse.de>
8369         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
8371 2007-06-16  Andreas Jaeger  <aj@suse.de>
8373         [BZ #4125]
8374         * sysdeps/unix/sysv/linux/sys/ptrace.h
8375         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
8376         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
8377         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
8378         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
8379         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
8380         Define.
8381         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8382         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8383         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8384         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8386 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
8388         [BZ #4599]
8389         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
8390         determining whether there are IPv4/IPv6 addresses, ignore loopback
8391         addresses.
8393 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
8395         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
8396         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
8397         as the return type.  Change type of "r" variable to CMPtype.
8398         * soft-fp/eqsf2.c (__eqsf2): Likewise.
8399         * soft-fp/eqtf2.c (__eqtf2): Likewise.
8400         * soft-fp/gedf2.c (__gedf2): Likewise.
8401         * soft-fp/gesf2.c (__gesf2): Likewise.
8402         * soft-fp/getf2.c (__getf2): Likewise.
8403         * soft-fp/ledf2.c (__ledf2): Likewise.
8404         * soft-fp/lesf2.c (__lesf2): Likewise.
8405         * soft-fp/letf2.c (__letf2): Likewise.
8406         * soft-fp/unorddf2 (__unorddf2): Likewise.
8407         * soft-fp/unordsf2 (__unordsf2): Likewise.
8408         * soft-fp/unordtf2 (__unordtf2): Likewise.
8410 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
8412         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
8413         make sure gcc doesn't mess around with this.
8415 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
8417         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
8419 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
8421         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
8422         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
8423         at most once per _dl_close_worker.
8425 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
8427         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
8428         __sched_cpucount as const.
8429         * posix/sched_cpucount.c: Adjust.
8431         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
8432         instruction for counting bits.
8433         * sysdeps/x86_64/sched_cpucount.c: New file.
8435 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
8437         * configure.in: Avoid variable named BASH.
8438         * config.make.in: Likewise.
8439         Patch in part by Mike Frysinger.
8441 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
8443         [BZ #4586]
8444         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
8445         pseudo-zeros as zero.
8446         * sysdeps/x86_64/ldbl2mpn.c: New file.
8447         * sysdeps/ia64/ldbl2mpn.c: New file.
8449 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
8451         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
8452         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
8453         Remove unreachable code at the end.
8455 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
8457         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
8458         ldbl-128ibm in comment.
8459         (fpclassifyl): Correct classification of denormals.
8460         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
8461         return value for MIN denormal. Rewrite using long double math too
8462         correctly handle denormals and canonicalize the results.
8464 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
8466         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
8467         (__mpn_construct_long_double): Fix conversion where result ought
8468         to be smaller than __LDBL_MIN__, or the low double should be
8469         denormal.  Fix decision where to negate low double - honor round
8470         to even rules.
8471         * stdio-common/tst-sprintf2.c: Include string.h.
8472         (COMPARE_LDBL): Define.
8473         (TEST): Also test whether a string hexadecimal float representation
8474         can be parsed back to the number.
8475         (main): Add a couple of further tests.
8477 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
8479         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
8480         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
8481         is non-zero, but smaller than 2 * __DBL_MIN__.
8482         * stdio-common/tst-sprintf2.c: New test.
8483         * stdio-common/Makefile (tests): Add tst-sprintf2.
8485         * math/test-misc.c (main): Don't run last batch of tests with
8486         IBM long double format.
8488 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
8490         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
8491         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
8492         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
8493         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
8494         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8495         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
8496         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
8497         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
8498         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
8499         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
8501         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
8502         New file.
8503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
8504         New file.
8505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
8506         New file.
8507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
8508         New file.
8509         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
8510         New file.
8511         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
8512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
8513         New file.
8514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
8515         New file.
8516         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
8517         New file.
8518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
8519         New file.
8520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
8521         New file.
8523 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
8525         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
8526         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
8527         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
8528         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
8529         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
8530         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
8531         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
8532         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
8534 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
8536         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
8537         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8538         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
8539         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8540         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
8541         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8542         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
8543         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8545 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
8547         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
8548         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
8549         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
8550         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
8552 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
8554         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
8555         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
8557 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
8559         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
8560         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
8561         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
8562         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
8564 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
8566         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
8567         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
8569 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
8571         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
8572         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
8574         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
8575         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
8576         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
8577         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
8579 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
8581         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
8582         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
8583         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
8584         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
8586 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
8588         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
8589         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
8590         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
8591         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8592         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
8593         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8595 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
8597         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
8598         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
8599         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
8600         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
8602 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
8604         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
8605         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
8606         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
8607         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
8608         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
8609         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
8610         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
8611         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
8612         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
8613         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
8614         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
8615         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
8616         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
8617         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
8618         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
8619         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
8621 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
8623         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
8624         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
8626 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
8628         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
8629         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
8631 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
8633         * sysdeps/powerpc/powerpc32/970/Implies: New file.
8634         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
8635         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
8636         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
8637         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
8638         * sysdeps/powerpc/powerpc64/970/Implies: New file.
8639         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
8640         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
8641         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
8642         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
8644 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
8646         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
8648 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
8650         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
8651         branch miss-predicts. Ensure that cache line crossing does not impact
8652         dispatch grouping.
8654 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
8656         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
8657         "../../powerpc32/power4/memcopy.h".
8658         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
8659         "../../powerpc32/power4/wordcopy.c".
8661 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
8663         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
8664         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
8665         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
8666         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
8667         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
8668         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
8670 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
8672         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
8674 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
8676         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
8677         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
8678         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
8679         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
8680         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
8681         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
8682         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
8683         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
8685 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
8687         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
8689 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
8691         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
8692         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
8693         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
8694         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
8695         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
8696         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
8697         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
8699 2007-05-29  Roland McGrath  <roland@redhat.com>
8701         * po/Makefile (po-sed-cmd): New variable.
8702         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
8704 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
8706         * crypt/md5-crypt.c: Fix comment.
8708         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
8709         of crashing.  When this is the case or if the reply is malformed,
8710         don't try to close the new file descriptor since it does not
8711         exist.
8712         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
8714 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
8716         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
8717         if __NR_utimensat is not defined.
8719 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
8721         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
8723 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
8725         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
8726         (open): Fix comment typos.  Don't call __open_2 if flags
8727         is a compile time constant without O_CREAT.
8728         (__open64_2): Add nonnull attribute.
8729         (open64): Fix comment typos.  Don't call __open64_2 if flags
8730         is a compile time constant without O_CREAT.
8731         (__openat_2): Add nonnull attribute, fix nonnull attribute
8732         on redirect.
8733         (openat): Fix comment typos.  Don't call __openat_2 if flags
8734         is a compile time constant without O_CREAT.
8735         (__openat64_2): Add nonnull attribute, fix nonnull attribute
8736         on redirect.
8737         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
8738         is a compile time constant without O_CREAT.
8740 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
8742         * Makerules (sysd-rules): Define PTW for ptw-* files.
8743         * Versions: Define GLIBC_2.7 for libc.
8744         * include/stdio.h: Declare __fortify_fail.
8745         * debug/fortify_fail.c: New file.
8746         * debug/Makefile (routines): Add fortify_fail.
8747         * debug/chk_fail.c: Use __fortify_fail.
8748         * debug/stack_chk_fail.c: Likewise.
8749         * io/Versions: Export __open_2, __open64_2, __openat_2, and
8750         __openat64_2 for GLIBC_2.7.
8751         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
8752         * io/open.c: Define *_2 variant of function which checks for O_CREAT
8753         and fails if necessary.
8754         * io/open64.c: Likewise.
8755         * io/openat.c: Likewise.
8756         * io/openat64.c: Likewise.
8757         * sysdeps/unix/sysv/linux/open64.c: Likewise.
8758         * sysdeps/unix/sysv/linux/openat.c: Likewise.
8759         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
8760         * io/bits/fcntl2.h: New file.
8761         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
8762         __openat64_2.
8763         * include/bits/fcntl2.h: New file.
8764         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8765         Add open_2.
8766         * sysdeps/unix/sysv/linux/open_2.c: New file.
8768 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
8770         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
8771         as second parameter to handle_intel.
8773         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
8774         the entry.
8776         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
8777         handling to ...
8778         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
8779         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
8780         cacheinfo.
8781         * sysdeps/x86_64/memcpy.S: Complete rewrite.
8782         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
8783         Patch by Evandro Menezes <evandro.menezes@amd.com>.
8785         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
8787 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
8789         [BZ #4525]
8790         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
8791         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
8792         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
8794         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
8796         [BZ #4514]
8797         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
8798         reinitialize workend at the start of each do_positional format spec
8799         loop, free workstart before do_positional loops.
8800         (printf_unknown): Fix size of work_buffer.
8801         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
8803         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
8804         (public_sET_STATe): If ms->version < 3, put all chunks into
8805         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
8806         chunks.
8808         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
8809         * malloc/hooks.c: Likewise.
8810         * malloc/arena.c: Likewise.
8811         * malloc/malloc.c (do_check_malloc_state): Don't assert
8812         n_mmaps is not greater than n_mmaps_max.  This removes the need
8813         for the previous change.
8815         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
8816         2007-05-07 commit.
8818 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
8820         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
8821         Define for kernel >= 2.6.22.
8823 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
8825         * elf/dl-close.c (_dl_close_worker): When removing object from
8826         global scope, wait for all lookups to finish afterwards.
8827         * elf/dl-open.c (add_to_global): When global scope array must
8828         grow, allocate a new one and free old array only after all
8829         lookups finish.
8830         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
8831         (_dl_lookup_symbol_x): Likewise.
8832         * elf/dl-support.c: Define _dl_wait_lookup_done.
8833         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
8834         _dl_wait_lookup_done.
8836         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
8837         not overlapping with arena.
8839         * malloc/mcheck.c (reallochook): If size==0, free the block.
8841         * rt/tst-shm.c: Use fstat64 instead of fstat.
8843         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
8844         __NR_sync_file_range is not defined.
8846 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
8848         Dummy files to prevent stub versions from being used.
8849         * sysdeps/x86_64/fpu/k_cosl.c: New file.
8850         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
8851         * sysdeps/x86_64/fpu/k_sinl.c: New file.
8852         * sysdeps/x86_64/fpu/k_tanl.c: New file.
8854         * version.h (VERSION): Set to 2.6.90.
8856 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
8858         * version.h (VERSION): Define to 2.6.
8859         * include/features.h (__GLIBC_MINOR__): Define to 6.
8861         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
8863         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
8864         sizes.
8866 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
8868         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
8869         number of mmaps.  n_mmaps_max is the target.
8870         * malloc/hooks.c: Likewise.
8871         * malloc/arena.c: Likewise.
8873 2007-05-12  Andreas Jaeger  <aj@suse.de>
8875         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
8876         getpid.
8878 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
8880         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
8881         adding new variables.
8883         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
8884         optimize.  Completely extend global scope array before making the
8885         new entries visible.
8887 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
8889         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
8890         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
8891         tst-getcpu.
8893         * include/link.h: Move l_version and l_nversion members around to
8894         fill gaps.
8896         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
8898         * sysdeps/unix/sysv/linux/sched_setaffinity.c
8899         (__sched_setaffinity_new): If syscall was successful and
8900         RESET_VGETCPU_CACHE is defined, use it before returning.
8901         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
8903         * io/sys/stat.h: Make sure struct timespec is defined for
8904         __USE_ATFILE.
8906         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
8907         UTIME_OMIT.
8908         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
8909         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
8910         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
8911         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
8912         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
8913         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
8914         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
8915         * io/sys/stat.h: Declare utimensat, futimens.
8916         * io/utimensat.c: New file.
8917         * io/futimens.c: New file.
8918         * sysdeps/unix/sysv/linux/utimensat.c: New file.
8919         * sysdeps/unix/sysv/linux/futimens.c: New file.
8920         * io/Makefile (routines): Add utimensat, futimens.
8921         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
8922         * sysdeps/unix/sysv/linux/lutimes.c: New file.
8923         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
8924         available.
8926         * include/sys/cdefs.h: Redefine __nonnull so that test for
8927         incorrect parameters in the libc code itself are not omitted.
8929 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
8931         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
8932         exception in addition to inexact when asked to raise only FE_INEXACT.
8934         [BZ #3427]
8935         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
8936         in *envp.
8938 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
8940         [BZ #4403]
8941         * string/strfry.c (strfry): Make result more random.
8943 2007-05-07  Richard Henderson  <rth@redhat.com>
8945         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
8946         if __NO_LONG_DOUBLE_MATH.
8947         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
8948         available in the compiler, add .arch directive to the assembly.
8950 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
8952         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
8953         compat_symbol to GLIBC_2_1.
8954         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
8955         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
8956         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
8957         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
8958         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
8959         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
8960         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
8961         libc, not libm.
8962         (__isnanl): New compat_symbol.
8964 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
8965             Jakub Jelinek  <jakub@redhat.com>
8967         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
8968         (new_heap): Initialize mprotect_size.
8969         (grow_heap): When growing, only mprotect from mprotect_size till
8970         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
8971         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
8973 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
8974             Peter Bergner  <bergner@us.ibm.com>
8976         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
8977         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
8978         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
8979         * sysdeps/powerpc/fpu/fe_mask.c: New file.
8980         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
8981         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
8982         Call __fe_mask_env() if all FP exceptions disabled.
8983         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
8984         from old FPSCR to new fenv to propagate DFP rounding modes.
8985         Call __fe_mask_env() if FP exceptions previously enabled.
8986         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
8987         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
8988         transitioning from all exceptions disabled to any exception enabled
8989         or visa versa.
8990         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
8991         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
8992         when transitioning from all exceptions disabled to any exception
8993         enabled or visa versa.
8994         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
8995         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
8996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
8997         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
8998         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
8999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
9001 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
9003         [BZ #4465]
9004         * posix/unistd.h: Remove __THROW from fdatasync.
9006 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
9008         [BZ #4465]
9009         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
9011 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
9013         * stdio-common/vfprintf.c (process_string_arg): Optimize
9014         ridiculous precision in wide char code printing multi-byte string.
9015         Reported by Jim Meyering <jim@meyering.net>.
9017         [BZ #4131]
9018         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
9019         boundaries to work around systems with overlapping binary loading.
9020         Based on a patch by Suzuki <suzuki@in.ibm.com>.
9022 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
9024         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
9025         __mbsnrtowcs after last change.
9027         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
9028         (get_ident): Likewise.
9030 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
9032         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
9033         with setting the sticky bit.
9034         * math/test-misc.c (main): Add more truncation tests.
9036 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
9038         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
9039         double in the function declaration.
9040         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
9041         double in the function declaration.
9042         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9043         float in the function declaration.
9044         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9045         float in the function declaration.
9047         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
9048         denormal operands.  Do not generate FP_EX_DENORM exception.
9049         (FP_UNPACK_RAW_EP): Ditto.
9050         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
9051         undefined _FP_UNPACK_RAW_E.
9052         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
9053         undefined _FP_UNPACK_RAW_EP.
9054         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
9055         undefined _FP_PACK_RAW_E.
9056         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
9057         undefined _FP_PACK_RAW_EP.
9059         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
9060         _FP_FRAC_COPY_2.
9061         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
9062         _FP_FRAC_COPY_4.
9064 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
9065             Jakub Jelinek  <jakub@redhat.com>
9067         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
9068         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
9069         this case.
9070         * soft-fp/op-common.h (FP_TRUNC): Ditto.
9072 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
9074         * math/test-misc.c (main): Add tests for rounding long double
9075         values close to smallest double denormalized value to double.
9077 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
9079         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
9080         condition for truncating to 0.  Set sticky bit for such
9081         truncation.
9083 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
9085         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
9086         fixed length array for ignore.
9088 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
9090         [BZ #4438]
9091         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
9092         stack for large precisions.
9093         * stdio-common/test-vfprintf.c (main): Add test for large
9094         precision.
9096 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
9098         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
9099         for exponent 0.
9100         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
9102         [BZ #4439]
9103         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
9104         account in the size check.
9105         * resolv/tst-inet_ntop.c: New test.
9106         * resolv/Makefile (tests): Add tst-inet_ntop.
9108 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
9109             Jakub Jelinek  <jakub@redhat.com>
9111         [BZ #4349]
9112         * malloc/malloc.c: Keep separate list for first blocks on the bin
9113         lists with a given size.  This helps skipping over list elements
9114         we know won't fit in two places.
9115         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
9117 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
9119         [BZ #4102]
9120         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
9121         label to Teredo tunnel addresses 2001://32.
9123 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
9125         * locale/programs/ld-collate.c (collate_read): Allow order_start
9126         after copy.
9128         * locale/programs/ld-collate.c (collate_read): Fix printing of
9129         error message.
9131         [BZ #3213]
9132         * locale/C-translit.h.in: Add entry for U2044.
9134         [BZ #4342]
9135         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
9136         hexa-decimal floats without exponent.
9137         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
9139 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
9141         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
9142         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
9143         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
9144         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
9145         GLIBC_2.6.
9146         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
9147         Add sched_getcpu.
9149 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
9151         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
9152         of 0 after the out_fail label.
9154 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
9156         [BZ #4406]
9157         * iconv/gconv_charset.h (strip): Allow ':'.
9158         * iconv/iconv_open.c (iconv_open): Adjust comment.
9160 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
9162         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
9163         version.
9165 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
9167         [BZ #4381]
9168         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
9169         alignment of buffer and tmp_buffer.
9170         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
9171         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
9172         alignment of buffer.
9173         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
9174         bigger than INT_MAX.
9175         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
9176         h_errnop arguments.  Fail if buflen is too small.
9177         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
9179 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
9181         [BZ #4405]
9182         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
9183         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
9185 2007-04-22  Roland McGrath  <roland@redhat.com>
9187         * elf/elf.h (NT_PRXFPREG): New macro.
9189 2007-04-19  Andreas Jaeger  <aj@suse.de>
9191         [BZ #3905]
9192         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
9193         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
9194         Added.
9196 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
9198         * include/sys/mman.h: Mark madvise hidden.
9199         * misc/madvise.c: Add libc_hidden_def.
9201 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
9203         * nis/nis_domain_of.c (__nis_domain_of): New function.
9204         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
9205         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
9206         * nis/nis_call.c (rec_dirsearch): Likewise.
9207         (first_shoot): Likewise.  Remove search_parent_first argument.
9208         (struct nis_server_cache): Rename search_parent_first field
9209         to search_parent.
9210         (nis_server_cache_search, nis_server_cache_add): Rename
9211         search_parent_first argument to search_parent.
9212         (__nisfind_server): Likewise.  If search_parent, call
9213         __nis_domain_of.
9215 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
9217         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
9219 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
9221         [BZ #4368]
9222         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
9224 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
9226         [BZ #4364]
9227         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
9229 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
9231         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
9232         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
9233         current number of locales in SUPPORTED.
9234         (create_archive): Initialize serial.
9235         (enlarge_archive): Preserve aliases rather than duplicating
9236         their locrecs.
9238 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
9240         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
9241         after _IO_un_link, not before it.
9243         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
9244         special case handling when wcp == wstartp + 1.  Fix a comment typo.
9245         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
9247 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
9249         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
9250         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
9251         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
9252         Remove __THROW.
9253         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
9254         _IO_file_xsgetn_maybe_mmap): Likewise.
9255         * libio/oldfileops.c (old_do_write): Likewise.
9256         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
9257         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
9258         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
9259         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
9260         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
9261         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
9262         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
9263         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
9264         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
9265         _IO_file_underflow, _IO_file_underflow_mmap,
9266         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
9267         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
9268         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
9269         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
9270         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
9271         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
9272         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
9273         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
9274         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
9275         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
9276         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
9277         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
9278         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
9279         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
9280         _IO_adjust_column_internal, _IO_default_uflow_internal,
9281         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
9282         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
9283         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
9284         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
9285         _IO_file_close_it_internal, _IO_file_underflow_internal,
9286         _IO_file_overflow_internal, _IO_file_attach_internal,
9287         _IO_file_fopen_internal, _IO_file_sync_internal,
9288         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
9289         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
9290         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
9291         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
9292         _IO_seekpos_unlocked): Likewise.
9293         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
9294         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
9296 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
9298         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
9299         argument in xmalloc size computation.
9301 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
9303         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
9304         math_opt_barrier and math_force_eval macros.
9306 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
9308         [BZ #3306]
9309         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
9310         * sysdeps/i386/fpu/math_private.h: New file.
9311         * sysdeps/x86_64/fpu/math_private.h: New file.
9312         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
9313         math_force_eval macros.  Use "+m" constraint on asm rather than
9314         "=m" and "m".
9315         * math/s_nextafter.c (__nextafter): Likewise.
9316         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
9317         Likewise.
9318         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
9319         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
9320         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9321         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
9322         math_opt_barrier and math_force_eval macros.
9323         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
9324         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
9325         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
9326         (__nexttoward): Use math_opt_barrier and
9327         math_force_eval macros.  Use "+m" constraint on asm rather than
9328         "=m" and "m".  Only use asm to force double result if
9329         FLT_EVAL_METHOD is 2.
9330         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
9331         (__nexttowardf): Use math_opt_barrier and
9332         math_force_eval macros.  Use "+m" constraint on asm rather than
9333         "=m" and "m".  Only use asm to force double result if
9334         FLT_EVAL_METHOD is not 0.
9335         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
9336         (__nexttowardf): Use math_opt_barrier and
9337         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
9338         x to float using asm.
9339         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
9340         (__nldbl_nexttowardf): Use math_opt_barrier and
9341         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
9342         x to float using asm.
9343         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
9344         (__nexttowardf): Use math_opt_barrier and math_force_eval
9345         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
9346         * math/bug-nextafter.c (zero, inf): New variables.
9347         (main): Add new tests.
9348         * math/bug-nexttoward.c (zero, inf): New variables.
9349         (main): Add new tests.
9351 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
9353         [BZ #3427]
9354         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
9355         exceptions both in SW and MXCSR.
9356         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
9357         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
9358         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
9359         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9360         in MXCSR if SSE is available.
9361         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
9362         and ldsodefs.h.
9363         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
9364         Fix comment typo.
9365         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
9366         Return 0 rather than 1.
9367         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
9368         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
9369         * math/test-fenv.c (feholdexcept_tests): New function.
9370         (main): Call it.
9372 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
9374         [BZ #3427]
9375         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9376         in SW.
9378 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
9380         [BZ #4344]
9381         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
9382         Reported by David Anderson <davea42@earthlink.net>.
9384 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
9386         * posix/sys/wait.h: Remove unnecessary forward declaration.
9388 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
9390         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
9391         with obj->do_servers after first_shoot.
9393 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
9395         * posix/Makefile (routines): Add sched_cpucount.
9396         (tests): Add tst-cpucount.
9397         * posix/sched_cpucount.c: New file.
9398         * posix/tst-cpucount.c: New file.
9399         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
9400         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
9401         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
9402         * posix/sched.h: Define CPU_COUNT.
9404 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
9406         * posix/fnmatch.c (STRUCT): Define.
9407         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
9408         * posix/fnmatch_loop.c (struct STRUCT): New type.
9409         (FCT): Add ends argument.  If ends != NULL and normal * is
9410         seen in the pattern, store current pattern and string pointers
9411         and return.  Adjust recursive calls.
9412         (EXT): Adjust FCT callers.
9413         (STRUCT): Undef at the end of the file.
9414         * posix/Makefile (tests): Add tst-fnmatch2.
9415         * posix/tst-fnmatch2.c: New test.
9417 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
9419         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
9420         and 1 on failure.
9422         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
9423         Change last argument to unsigned int.
9425 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
9427         * scripts/check-local-headers.sh: Filter out sys/capability.h.
9429 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
9431         * config.h.in (HAVE_LIBCAP): Add.
9432         * nscd/selinux.h: Include sys/capability.h rather than non-existent
9433         sys/capabilities.h.
9434         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
9435         free_caps.  Cast away const from 4th cap_set_flag argument.
9437 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
9439         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
9440         GLIBC_2.6.
9441         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9442         Add sync_file_range.
9443         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
9445 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
9447         * sysdeps/powerpc/bits/atomic.h
9448         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
9449         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
9450         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9451         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
9452         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9453         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
9454         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
9455         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9456         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9457         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9458         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
9459         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9460         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9461         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9462         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9463         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
9464         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9465         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
9466         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9467         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
9469 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
9471         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9472         (__cache_line_size): Define the variable here.  Add
9473         attribute_hidden, remove weak_extern.
9474         (__libc_start_main): Set __cache_line_size
9475         unconditionally.
9476         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
9477         (__cache_line_size): Define the variable here.  Add
9478         attribute_hidden, remove weak_extern.
9479         (DL_PLATFORM_AUXV): Set __cache_line_size
9480         unconditionally.
9481         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
9482         weak_extern, add attribute_hidden.
9483         (__elf_machine_runtime_setup): Assume __cache_line_size is always
9484         defined in ld.so.
9485         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
9486         definition.
9487         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
9489 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
9491         [BZ #4276]
9492         * timezone/africa: Update from tzdata2007d.
9493         * timezone/asia: Likewise.
9494         * timezone/australasia: Likewise.
9495         * timezone/backward: Likewise.
9496         * timezone/europe: Likewise.
9497         * timezone/iso3166.tab: Likewise.
9498         * timezone/leapseconds: Likewise.
9499         * timezone/northamerica: Likewise.
9500         * timezone/southamerica: Likewise.
9501         * timezone/zone.tab: Likewise.
9503         * timezone/private.h: Update from tzcode2007d.
9504         * timezone/zdump.c: Likewise.
9505         * timezone/zic.c: Likewise.
9507 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
9509         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
9510         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
9511         variables.
9512         (nis_server_cache_search, nis_server_cache_add): New functions.
9513         (__nisfind_server): Use them.  Add dbp and flags argument, if
9514         call __nisbind_create.
9515         (__nisbind_create): Add server_used and current_ep arguments,
9516         only call __nis_findfastest if server_used is ~0.
9517         (__do_niscall2, __prepare_niscall): Adjust callers.
9518         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
9519         ckey_cache_euid, ckey_cache_lock): New variables.
9520         (get_ckey): New function.
9521         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
9522         __pmap_getnisport.  Save __pmap_getnisport result in
9523         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
9524         key.
9525         * nis/nis_lookup.c (nis_lookup): Likewise.
9526         * nis/nis_table.c (nis_list): Likewise.
9527         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
9528         prototypes.
9530         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
9531         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
9532         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
9533         _nss_nisplus_getservbyport_r): Likewise.
9534         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
9535         _nss_nisplus_getnetbyaddr_r): Likewise.
9536         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
9537         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
9538         _nss_nisplus_getntohost_r): Likewise.
9539         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
9540         _nss_nisplus_getrpcbynumber_r): Likewise.
9542 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
9544         * configure.in (libc_cv_gnu89_inline): Only do compile test.
9545         * configure: Rebuilt.
9547         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
9548         bit-fields.
9549         * soft-fp/extended.h (_FP_UNION_E): Likewise.
9551 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
9553         [BZ #2831]
9554         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
9555         bit-fields.
9557 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
9559         * nscd/gai.c: Include alloca.h.
9560         (__libc_use_alloca): Define.
9562 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
9564         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
9565         smaller scopes.
9566         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
9567         (DL_DST_REQUIRED): Adjust user.
9569         * include/dlfcn.h (struct link_map): New forward decl.
9571         * inet/getnameinfo.c: Include stddef.h.
9572         (getnameinfo): Use offsetof.
9574         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
9576         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
9578         * string/strerror_l.c: Include stdlib.h.
9580         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
9581         * config.make.in (gnu89-inline-CFLAGS): New variable.
9582         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
9583         -std=gnu99.
9584         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
9585         * argp/argp.h: Use it.
9586         * bits/mathinline.h: Likewise.
9587         * bits/sigset.h: Likewise.
9588         * bits/string.h: Likewise.
9589         * ctype/ctype.h: Likewise.
9590         * hurd/hurd.h: Likewise.
9591         * hurd/hurd/fd.h: Likewise.
9592         * hurd/hurd/port.h: Likewise.
9593         * hurd/hurd/signal.h: Likewise.
9594         * hurd/hurd/threadvar.h: Likewise.
9595         * hurd/hurd/userlink.h: Likewise.
9596         * io/sys/stat.h: Likewise.
9597         * libio/bits/stdio.h: Likewise.
9598         * libio/bits/stdio2.h: Likewise.
9599         * mach/lock-intern.h: Likewise.
9600         * mach/mach/mig_support.h: Likewise.
9601         * math/bits/cmathcalls.h: Likewise.
9602         * posix/bits/unistd.h: Likewise.
9603         * socket/bits/socket2.h: Likewise.
9604         * stdlib/bits/stdlib.h: Likewise.
9605         * stdlib/stdlib.h: Likewise.
9606         * string/argz.h: Likewise.
9607         * string/bits/string2.h: Likewise.
9608         * string/bits/string3.h: Likewise.
9609         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
9610         * sysdeps/generic/inttypes.h: Likewise.
9611         * sysdeps/generic/machine-lock.h: Likewise.
9612         * sysdeps/generic/machine-sp.h: Likewise.
9613         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
9614         * sysdeps/i386/i486/bits/string.h: Likewise.
9615         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
9616         * sysdeps/mach/alpha/machine-lock.h: Likewise.
9617         * sysdeps/mach/alpha/machine-sp.h: Likewise.
9618         * sysdeps/mach/i386/machine-lock.h: Likewise.
9619         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9620         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
9621         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
9622         * sysdeps/s390/bits/string.h: Likewise.
9623         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
9624         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
9625         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
9626         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
9627         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9628         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
9629         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
9630         * wcsmbs/bits/wchar2.h: Likewise.
9631         * wcsmbs/wchar.h: Likewise.
9632         * stdlib/gmp.h: Likewise.  Include <features.h> to get
9633         __extern_inline definition.
9635 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
9637         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
9638         NULL.
9640         [BZ #3919]
9641         * math/libm-test.inc (log_test): Test -Inf and NaN.
9642         (log10_test, log1p_test, log2_test): Test -Inf.
9643         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
9644         FE_INVALID when argument is qNaN.
9645         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
9646         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
9647         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
9648         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
9649         andb $1, %ah with testb $1, %ah, don't test for parity, instead
9650         testb $4, %ah and jump if non-zero.
9651         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
9652         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
9654         [BZ #4101]
9655         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
9656         ancestors with the same depths.
9657         Patch by Niels Moeller <nisse@lysator.liu.se>.
9658         (filter_doc): Don't crash if argp is NULL.
9659         * argp/Makefile (tests): Add tst-argp2.
9660         * argp/tst-argp2.c: New test.
9662         [BZ #4130]
9663         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
9664         open_not_cancel_2.
9665         (updwtmp_file): Likewise.
9667         [BZ #4181]
9668         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
9669         (inet6_opt_append): Don't check extlen is big enough if extbuf
9670         is NULL.
9671         (inet6_opt_finish): Likewise.
9672         * inet/Makefile (tests): Add test-inet6_opt.
9673         * inet/test-inet6_opt.c: New test.
9675         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
9676         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
9677         NLMSG_ERR.  Instead use a page sized buffer.
9678         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
9679         buffer.
9681 2007-03-14  Richard Henderson  <rth@redhat.com>
9683         * sysdeps/alpha/fpu/s_llround.c: New file.
9684         * sysdeps/alpha/fpu/s_llroundf.c: New file.
9685         * sysdeps/alpha/fpu/s_lround.c: New file.
9686         * sysdeps/alpha/fpu/s_lroundf.c: New file.
9687         * sysdeps/alpha/fpu/s_round.c: New file.
9688         * sysdeps/alpha/fpu/s_roundf.c: New file.
9689         * sysdeps/alpha/fpu/s_trunc.c: New file.
9690         * sysdeps/alpha/fpu/s_truncf.c: New file.
9692         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
9693         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
9694         * sysdeps/alpha/fpu/s_floor.c: Likewise.
9695         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
9696         * sysdeps/alpha/fpu/s_rint.c: Likewise.
9697         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
9699         * sysdeps/alpha/fpu/s_fmax.S: New file.
9700         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
9701         * sysdeps/alpha/fpu/s_fmin.S: New file.
9702         * sysdeps/alpha/fpu/s_fminf.S: New file.
9703         * sysdeps/alpha/fpu/s_isnan.c: New file.
9704         * sysdeps/alpha/fpu/s_isnanf.c: New file.
9705         * sysdeps/alpha/fpu/s_llrint.c: New file.
9706         * sysdeps/alpha/fpu/s_llrintf.c: New file.
9707         * sysdeps/alpha/fpu/s_lrint.c: New file.
9708         * sysdeps/alpha/fpu/s_lrintf.c: New file.
9709         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
9710         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
9712         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
9713         (__fdimf, fdimf, __fdim, fdim): Remove.
9714         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
9715         (__isnanf, __isnan, __isnanl): New.
9717 2007-03-13  Richard Henderson  <rth@redhat.com>
9719         * sysdeps/ieee754/ldbl-128/Makefile: New file.
9721 2007-03-13  Richard Henderson  <rth@redhat.com>
9723         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
9724         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
9725         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
9726         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
9727         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
9728         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
9730 2007-03-13  Richard Henderson  <rth@redhat.com>
9732         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
9733         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
9734         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
9735         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
9736         Move to dl-auxv.h; initialize instead of extern weak.
9737         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
9738         weak symbol.
9739         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
9740         Extern instead of initialized.
9742 2007-03-13  Richard Henderson  <rth@redhat.com>
9744         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
9745         __sigsuspend_nocancel.
9747 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
9749         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
9750         172.16/12 address range.
9752 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
9754         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
9755         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
9756         message.
9758 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
9760         [BZ #4069]
9761         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
9762         earlier.
9763         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
9765         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
9766         for x qNaN and y either +-inf or non-integer value.
9767         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
9768         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
9769         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9771 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
9773         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
9774         from sysdep_headers.
9776 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
9778         * time/tzfile.c (find_transition): Instead of a linear search try to
9779         guess the transition index, use a linear search if the result is at
9780         most 10 transitions away from the guess or binary search otherwise.
9782 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
9784         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
9785         memory reallocation.
9787 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
9789         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
9790         and fix some typos.
9791         Optimize use of TOLOWER.
9793         [BZ #3325]
9794         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
9795         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9796         * sysdeps/i386/fpu/e_fmod.S: Likewise.
9798         [BZ #3458]
9799         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
9800         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
9802         [BZ #4076]
9803         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
9804         (open_dir_stream): Likewise.
9805         * io/Makefile (tests): Add bug-ftw5.
9806         * io/bug-ftw5.c: New file.
9808         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
9809         * nscd/servicescache.c (cache_addserv): Likewise.
9811         * nscd/grpcache.c (cache_addgr): In case a record changed on
9812         refresh, adjust key_copy.
9814         [BZ #4074]
9815         * nscd/pwdcache.c (cache_addpw): In case a record changed on
9816         refresh, adjust key_copy.
9818         [BZ #4070]
9819         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
9820         special cases.
9821         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
9823 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
9825         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
9826         optimization.
9828         * stdio-common/vfscanf.c: Small cleanups throughout.
9830 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
9832         [BZ #3325]
9833         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
9834         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9835         * sysdeps/i386/fpu/e_fmod.S: Likewise.
9836         Patch by Jared Casper <jaredcasper@gmail.com>.
9838         * sysdeps/unix/closedir.c: Outside libc don't use locking.
9839         * sysdeps/unix/opendir.c: Likewise.
9840         * sysdeps/unix/readdir.c: Likewise.
9842         [BZ #2211]
9843         * stdio-common/vfscanf.c: Handle localized digits etc for floating
9844         point numbers.
9845         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
9847         * stdio-common/vfscanf.c: Fix problems in width accounting.
9848         * stdio-common/tst-sscanf.c (double_tests): New tests.
9849         (main): Hook them up.
9851         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
9852         More simplifications of floating-point reader.
9854         * stdio-common/Makefile (tests): Add tst-swscanf.
9855         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
9856         testing.
9857         * stdio-common/tst-swscanf.c: New file.
9859 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
9861         [BZ #2633]
9862         * libio/stdio.h: Define struct _IO_FILE in global namespace.
9863         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
9864         Remove using for __jmp_buf_tag.
9865         * locale/locale.h (struct lconv): Also define in std namespace.
9866         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
9868         [BZ #3842]
9869         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
9870         using __libc_enable_secure.
9872         [BZ #3818]
9873         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
9875         [BZ #3745]
9876         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
9877         of names for ellipsises.
9879         [BZ #3348]
9880         * malloc/memusage.sh: Cleanups.
9881         * debug/xtrace.sh: Quoting and trap changes.
9883 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
9885         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
9887         * locale/iso-3166.def: Update entry for Serbia.
9888         * locale/iso-4217.def: Define RSD, remove CSD.
9890         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
9891         and 64-bit operations.
9893         [BZ #4040]
9894         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
9895         16-bit operations.
9897         * nscd/nscd.c (parse_opt): One more conversion to use send instead
9898         of writev.
9900 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
9902         [BZ #3991]
9903         * assert/assert.h (assert): Simplify.
9904         (assert_perror): Likewise.
9905         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
9907         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
9908         reqdata.
9910         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
9911         change: don't pass NULL in place of an integer.
9913 2007-02-02  Bruno Haible  <bruno@clisp.org>
9915         [BZ #3954]
9916         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
9917         Add mapping for U+327E.
9918         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
9919         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
9920         mapping of 0xD9 0xE8.
9921         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
9922         mapping of U+327E.
9923         Reported by Jungshik Shin <jungshik@google.com>.
9925         [BZ #3955]
9926         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
9927         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
9928         Reported by Jungshik Shin <jungshik@google.com>.
9930 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
9932         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
9933         byte variants.
9935         [BZ #4040]
9936         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
9937         byte variants.  Patch mostly be tom@tommay.net.
9939 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
9941         [BZ #3996]
9942         * posix/glob.c (attribute_hidden): Define if not defined.
9943         (glob): Unescape dirname, filename or username when needed and not
9944         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
9945         is NULL.  Handle unescaped [ in pattern without closing ].
9946         Don't pass GLOB_CHECK down to recursive glob for directories.
9947         (__glob_pattern_type): New function.
9948         (__glob_pattern_p): Implement using __glob_pattern_type.
9949         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
9950         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
9951         Remove unreachable code.
9952         * posix/globtest.sh: Add a couple of new tests.
9954 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
9956         * po/ru.po: Update from translation team.
9958 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
9960         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
9961         to the list of i486+ CPUs.
9962         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
9964 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
9966         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
9967         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
9968         references.
9970 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
9972         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
9974         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
9975         * resolv/res_mkquery.c: Define __res_nopt.
9976         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
9977         try adding EDNS0 record.
9978         * resolv/res_send.c (send_dg): If request failed with FORMERR and
9979         EDNS0 record was send make sure we don't try it again.
9980         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
9981         * include/resolv.h: Declare __res_nopt.
9983 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
9985         [BZ #3944]
9986         * time/strptime_l.c (__strptime_internal): Set have_mon for
9987         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
9988         have been computed from tm_yday and tm_year.  Don't crash
9989         in day_of_the_week or day_of_the_year if not have_mon
9990         and tm_mon contains bogus value.
9991         * time/Makefile (tests): Add tst-strptime3.
9992         * time/tst-strptime3.c: New test.
9994 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
9996         [BZ #3957]
9997         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
9998         bit for RE_HAT_LISTS_NOT_NEWLINE.
9999         (build_charclass_op): Remove bogus comment.
10000         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
10001         * posix/bug-regex27.c: New test.
10002         * posix/bug-regex28.c: New test.
10004 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
10006         * po/sv.po: Update from translation team.
10008 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
10010         * nscd/nscd_helper.c (open_socket): Minor size optimization.
10012 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
10014         * include/locale.h (__uselocale): Add libc_hidden_proto.
10015         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
10017         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
10018         gettimeofday.
10020 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
10022         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
10023         returning.
10024         (PTR_DEMANGLE): Real definition now that it's not the same as
10025         PRT_MANGLE anymore.
10026         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10028         * string/strerror_l.c: New file.
10029         * string/Makefile (routines): Add strerror_l.
10030         * string/string.h: Declare strerror_l.
10031         * string/Versions: Export strerror_l for GLIBC_2.6.
10033 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
10035         * nscd/nscd_helper.c (open_socket): Now takes request type and key
10036         as parameter.  Construct request record.  Try sending request
10037         before the first poll use, it usually succeeds.  Adjust all
10038         callers.
10039         * nscd/nscd-client.h: Define MAXKEYLEN.
10040         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
10042 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
10044         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
10045         from return value.
10046         * nscd/nscd_helper.c: Include string.h.
10047         (__nscd_cache_search): Remove const qualifier from return value.
10048         On strict alignment architectures check hash entry and data head
10049         alignment.
10050         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
10051         mmapped data during GC cycle contains garbage.  If
10052         __nscd_drop_map_ref fails, decrement mapped->counter when returning
10053         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
10054         dropped to 0.
10055         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
10056         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
10057         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
10058         * nscd/nscd_getai.c (__nscd_getai): Likewise.
10059         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
10061 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
10063         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
10065 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
10067         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
10068         names not numbers in cfi_*.
10070 2007-01-26  Andreas Jaeger  <aj@suse.de>
10072         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
10073         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
10074         Correct values of PER_HPUX and PER_OSF4.
10076 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
10078         * elf/dl-minimal.c: Undefine _itoa first.
10079         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
10080         * malloc/mtrace.c: Revert last change.
10081         * posix/wordexp.c: Likewise.
10083 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
10085         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
10086         and __geode__ to the list of i486+ CPUs.
10087         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10089 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
10091         * stdio-common/_itoa.c: Include <limits.h>.
10092         * stdio-common/_itowa.c: Likewise.
10094 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
10096         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
10097         platforms.
10098         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
10099         64-bit platforms.
10100         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
10101         possible.
10102         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
10103         if possible.
10105         [BZ #3902]
10106         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
10107         * stdio-common/Makefile (tests): Add bug17.
10108         * stdio-common/bug17.c: New file.
10110 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
10112         * iconvdata/brf.c: New file.
10113         * iconvdata/testdata/BRF: New file.
10114         * iconvdata/testdata/BRF..UTF8: New file.
10115         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
10116         * iconvdata/Makefile: Add rules to build BRF.
10117         * iconvdata/TESTS: Add BRF entry.
10118         * iconvdata/gconv-modules: Likewise.
10119         * iconvdata/tst-tables.sh: Likewise.
10121 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
10123         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
10124         type `long long int', not `long int'.
10125         (wcstoq): Likewise.
10127 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
10129         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
10130         of values on 64-bit platforms which are too large.
10132 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
10133             Joe Kerian  <jkerian@us.us.ibm.com>
10135         [BZ #2749]
10136         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
10137         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
10138         (__copysignl): Use signbit() for comparison.
10139         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
10140         SET_LDOUBLE_WORDS64.
10142         [BZ #2423, #2749]
10143         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
10144         (__ceill): Remove calls to fegetround(), fesetround().
10145         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
10146         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
10147         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
10149 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
10151         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
10153         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
10155 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
10157         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
10158         demangle pointer.
10159         * csu/libc-start.c: Likewise.
10161 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
10163         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
10164         really work anyway.
10166 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
10168         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
10169         users.
10170         (handle_request): Remove unnecessary tests.
10172         * nscd/cache.c (cache_add): Record the failure to add to the cache.
10174 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
10176         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
10177         workbits in semi-raw fraction.
10179         * math/test-misc.c: Add new tests.
10181 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
10183         * math/basic-test.c: Include test-skeleton.c.
10184         (TEST_TRUNC): Define.
10185         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
10186         (main): Rename to ...
10187         (do_test): ...this.  Run new tests.
10188         (TEST_FUNCTION): Define.
10190 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
10191             Joe Kerian  <jkerian@us.us.ibm.com>
10193         [BZ #2749]
10194         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
10195         handling for high words.
10196         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
10197         and overflow for infinity.
10199 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
10201         * nscd/connections.c (handle_request): Add a __builtin_expect.
10203         * nscd/connections.c (serv2db): Change type into structure which
10204         also says whether this is a request for data.  Renamed to
10205         servinfo.  All users changed.
10206         (handle_request): Much simpler test whether we should search the cache.
10208         * nscd/connections.c (handle_request): Fix thinko in selinux test
10209         invocation.
10211         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
10212         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
10213         it before getting dl_load_lock and then relock.
10214         (_dl_lookup_symbol_x): Pass flags to add_dependency.
10215         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
10216         case we unlocked the scope.
10217         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
10218         _dl_lookup_symbol_x in case we locked the scope.
10219         (_dl_profile_fixup): Likewise.
10220         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
10221         set DL_LOOKUP_SCOPE_LOCK.
10223 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
10225         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
10226         CFLAGS-getsrvbynpt_r.c.
10227         * nscd/getsrvbynm_r.c: New file.
10228         * nscd/getsrvbypt_r.c: New file.
10229         * nscd/nscd_getserv_r.c: New file.
10230         * nscd/servicescache.c: New file.
10231         * nscd/Makefile (routines): Add nscd_getserv_r.
10232         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
10233         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
10234         CFLAGS-getsrvbypt_r.c.
10235         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
10236         table.  Add entries for services database.
10237         * nscd/connections.c (serv2str): Mark as const.  Add entries for
10238         services database.
10239         (dbs): Add .reset_res and servdb initialization.
10240         (serv2db): Add entries for services database.
10241         (verify_persistent_db): Accept dbnr == servdb.
10242         (invalidate_cache): Rewrite database name recognition to use a table.
10243         Call res_init() if .reset_res is set for database.
10244         (handle_request): Add code to handle services database.
10245         * nscd/gai.c: Don't define __getservbyname_r.
10246         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
10247         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
10248         (serv_response_header): Define.
10249         (struct datahead): Add serv_response_header member.
10250         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
10251         using table.
10252         * nscd/nscd.conf: Add entries for services database.
10253         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
10254         Declare serv_iov_disabled.
10255         Declare addservbyname, readdservbyname, addservbyport, and
10256         readdservbyport.
10257         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
10258         (find_db): Fix error message.
10259         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
10260         __nscd_getservbyname_r, and __nscd_getservbyport_r.
10261         * nscd/selinux.c (perms): Add entries for services database.
10262         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
10263         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
10265         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
10266         * nscd/hstcache.c: Likewise.
10267         * nscd/pwdcache.c: Likewise.
10269         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
10270         computation of keylen.
10272         * include/string.h: Only redefine strndupa if this is really for
10273         libc code.
10275 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
10277         * nscd/nscd_gethst_r.c: Minor cleanups.
10279         * nscd/connections.c (handle_request): Check selinux permissions
10280         for all non-admin commands.
10282         * sysdeps/i386/i486/bits/atomic.h: Define
10283         atomic_compare_and_exchange_val_acq,
10284         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
10285         using __sync_* built-ins for gcc >= 4.1.
10286         * sysdeps/x86_64/bits/atomic.h: Likewise.
10288         [BZ #3840]
10289         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
10290         and .oS.d files.
10292 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
10294         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
10295         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
10296         (do_test): Check errno and exit(0) if ENOSYS.
10298 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
10300         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
10301         thousands separators.
10302         * stdlib/Makefile: Add rules to build and run tst-strtod4.
10303         * stdlib/tst-strtod4.c: New test.
10305         [BZ #3855]
10306         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
10307         hexadecimal digit should accept just the initial 0.
10308         * stdlib/tst-strtod2.c (tests): New variable.
10309         (do_test): Run several tests rather than just one.
10311 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
10313         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
10314         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
10316 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
10318         * io/fts.c: Make sure fts_cur is always valid after return from
10319         fts_read.
10320         Patch by Miloslav Trmac <mitr@redhat.com>.
10322 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
10324         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
10325         (R_MIPS_NUM): Bump by 1.
10327 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
10329         * posix/execvp.c: Include alloca.h.
10330         (allocate_scripts_argv): Renamed to...
10331         (scripts_argv): ... this.  Don't allocate buffer here nor count
10332         arguments.
10333         (execvp): Use alloca if possible.
10334         * posix/Makefile: Add rules to build and run tst-vfork3 test.
10335         * posix/tst-vfork3.c: New test.
10337 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
10339         * string/Makefile (tst-strxfrm2-ENV): Define.
10340         * stdlib/Makefile (tst-strtod3-ENV): Define.
10342 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
10344         * posix/getconf.c: Update copyright year.
10345         * nss/getent.c: Likewise.
10346         * iconv/iconvconfig.c: Likewise.
10347         * iconv/iconv_prog.c: Likewise.
10348         * elf/ldconfig.c: Likewise.
10349         * catgets/gencat.c: Likewise.
10350         * csu/version.c: Likewise.
10351         * elf/ldd.bash.in: Likewise.
10352         * elf/sprof.c (print_version): Likewise.
10353         * locale/programs/locale.c: Likewise.
10354         * locale/programs/localedef.c: Likewise.
10355         * nscd/nscd.c (print_version): Likewise.
10356         * debug/xtrace.sh: Likewise.
10357         * malloc/memusage.sh: Likewise.
10358         * malloc/mtrace.pl: Likewise.
10359         * debug/catchsegv.sh: Likewise.
10361 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
10363         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
10364         attempts.
10366 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
10368         * posix/wordexp.c: Remove some unnecessary tests.
10370 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
10372         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
10373         blacklist the group till after we look it up.
10375 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
10377         * include/atomic.h (atomic_forced_read): New macro.
10379 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
10381         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
10383 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
10385         * nss/getXXbyYY_r.c: Include atomic.h.
10386         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
10387         add atomic_write_barrier () in between.
10389         * stdlib/Makefile (tests): Add tst-makecontext.
10390         * stdlib/tst-makecontext.c: New test.
10392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
10393         (__makecontext): Don't realign uc_mcontext.uc_regs.
10395 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
10397         * elf/dl-support.c: Include dl-procinfo.h.
10398         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
10399         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
10400         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
10401         Define.
10402         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
10403         hardcoded constants.
10404         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
10405         PPC_PLATFORM_* macros for array designators.
10407 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
10409         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
10410         names to the beginning.
10411         (_dl_powerpc_platforms): Add "power6x".
10412         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10413         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
10414         (_DL_PLATFORMS_COUNT): Increase.
10415         (_dl_string_platform): Handle power6x case.
10416         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
10417         PPC_FEATURE_POWER6_EXT): Define.
10418         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
10420 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
10422         [BZ #3747]
10423         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
10424         [-2^31 .. 2^31) range.
10425         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
10426         targets.
10427         * stdlib/tst-rand48-2.c: New test.
10428         * stdlib/Makefile (tests): Add tst-rand48-2.
10430 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
10432         * misc/tst-pselect.c (do_test): Fix sigblock argument.
10434 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
10436         * misc/tst-pselect.c (do_test): Make sure the helper process is
10437         terminating when the test is aborted.
10439 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
10441         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
10442         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
10443         Handle relatime mount option.
10445         [BZ #2337]
10446         * libio/Makefile (tests): Add tst-setvbuf1.
10447         * libio/tst-setvbuf1.c: New file.
10449 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
10451         [BZ #2337]
10452         * libio/genops.c (__uflow): Fix a typo.
10453         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
10454         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
10455         the narrow buffer size.
10457 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
10459         [BZ #2337]
10460         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
10461         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
10462         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
10463         in _flags.
10464         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
10465         _IO_wstr_finish): Likewise.
10466         * libio/wmemstream.c (open_wmemstream): Likewise.
10467         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
10468         even for wide streams.
10470 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
10472         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
10473         kernel-features.h.
10475 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
10477         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
10478         separators also if no non-zero digits found.
10479         * stdlib/Makefile (tests): Add tst-strtod3.
10481 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
10483         [BZ #3632]
10484         * include/features.h: Fix comment about default value for
10485         _POSIX_C_SOURCE.
10487         [BZ #3664]
10488         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
10489         empty parsed strings.
10490         * stdlib/Makefile (tests): Add tst-strtod2.
10491         * stdlib/tst-strtod2.c: New file.
10493         [BZ #3673]
10494         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
10495         computation.
10496         * stdlib/Makefile (tests): Add tst-atof2.
10497         * stdlib/tst-atof2.c: New file.
10499         [BZ #3674]
10500         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
10501         correctly if removing trailing zero of hex-float.
10502         * stdlib/Makefile (tests): Add tst-atof1.
10503         * stdlib/tst-atof1.c: New file.
10505 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
10507         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
10508         Start searching for next comma at p rather than rest.
10509         * misc/Makefile (tests): Add tst-mntent2.
10510         * misc/tst-mntent2.c: New test.
10512         * misc/getusershell.c (initshells): Check for integer overflows.
10513         Make strings buffer one bigger as fgets always succeeds when second
10514         argument is 1.  Don't use calloc for shells array.  Disallow
10515         / as shell.
10517 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
10519         * malloc/memusage.c: Handle realloc with new size of zero and
10520         non-NULL pointer correctly.
10521         (me): Really write first record twice.
10522         (struct entry): Make format bi-arch safe.
10523         (dest): Write out more realloc statistics.
10524         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
10526 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
10528         * nis/nis_subr.c (nis_getnames): Revert last change.
10530 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
10532         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
10533         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
10534         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
10535         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
10536         ENOTTY.
10537         * io/Makefile: Add rules to build and run tst-ttyname_r test.
10538         * io/tst-ttyname_r.c: New test.
10540 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10542         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
10544 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
10546         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
10547         jump table entries.
10549 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
10551         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
10552         `clone' function to ensure proper unwinding stop of gdb.
10553         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
10555 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
10557         * nscd/nscd.init: Remove obsolete and commented-out -S option
10558         handling.
10560 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
10562         [BZ #3514]
10563         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
10565         [BZ #3515]
10566         * manual/string.texi (strtok): Remove duplicate paragraph.
10568 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10570         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
10571         libgcc not supporting `rflags' unwinding (register # >= 17).
10573 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
10575         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
10576         succeeded.
10578 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
10579             Jakub Jelinek  <jakub@redhat.com>
10580             Jan Kratochvil  <jan.kratochvil@redhat.com>
10582         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
10583         unwind information.
10584         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
10585         'restore_rt' even in the 'signal' directory.
10586         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
10588 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
10590         [BZ #3559]
10591         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
10592         malloc crashed.  Don't allocate memory unnecessarily in each
10593         loop.
10595 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
10597         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
10599 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
10601         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
10603 2006-11-18  Bruno Haible  <bruno@clisp.org>
10605         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
10606         __sysconf only after having tried to call getgroups32.
10608 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
10610         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
10611         addresses for IPv4 queries if they can be mapped.
10613 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
10615         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
10616         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
10617         (signmask): Add .size directive.
10618         (othermask): Add .type directive.
10620 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
10622         * po/nl.po: Update from translation team.
10624         * timezone/zdump.c: Redo fix for BZ #3137.
10626 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
10628         * nss/nss_files/files-alias.c (get_next_alias): Set line back
10629         to first_unused after parsing :include: file.
10631 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
10633         * timezone/africa: Update from tzdata2006o.
10634         * timezone/antarctica: Likewise.
10635         * timezone/asia: Likewise.
10636         * timezone/australasia: Likewise.
10637         * timezone/backward: Likewise.
10638         * timezone/europe: Likewise.
10639         * timezone/iso3166.tab: Likewise.
10640         * timezone/northamerica: Likewise.
10641         * timezone/southamerica: Likewise.
10642         * timezone/zone.tab: Likewise.
10644         * time/tzfile.c (__tzfile_read): Extend to handle new file format
10645         on machines with 64-bit time_t.
10647         * timezone/checktab.awk: Update from tzcode2006o.
10648         * timezone/ialloc.c: Likewise.
10649         * timezone/private.h: Likewise.
10650         * timezone/scheck.c: Likewise.
10651         * timezone/tzfile.h: Likewise.
10652         * timezone/tzselect.ksh: Likewise.
10653         * timezone/zdump.c: Likewise.
10654         * timezone/zic.c: Likewise.
10656         [BZ #3483]
10657         * elf/ldconfig.c (main): Call setlocale and textdomain.
10658         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
10660         [BZ #3480]
10661         * manual/argp.texi: Fix typos.
10662         * manual/charset.texi: Likewise.
10663         * manual/errno.texi: Likewise.
10664         * manual/filesys.texi: Likewise.
10665         * manual/lang.texi: Likewise.
10666         * manual/maint.texi: Likewise.
10667         * manual/memory.texi: Likewise.
10668         * manual/message.texi: Likewise.
10669         * manual/resource.texi: Likewise.
10670         * manual/search.texi: Likewise.
10671         * manual/signal.texi: Likewise.
10672         * manual/startup.texi: Likewise.
10673         * manual/stdio.texi: Likewise.
10674         * manual/sysinfo.texi: Likewise.
10675         * manual/syslog.texi: Likewise.
10676         * manual/time.texi: Likewise.
10677         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10679         [BZ #3465]
10680         * sunrpc/clnt_raw.c: Minimal message improvements.
10681         * sunrpc/pm_getmaps.c: Likewise.
10682         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
10683         * nis/nis_print_group_entry.c: Likewise.
10684         * locale/programs/repertoire.c: Likewise.
10685         * locale/programs/charmap.c: Likewise.
10686         * malloc/memusage.sh: Likewise.
10687         * elf/dl-deps.c: Likewise.
10688         * locale/programs/ld-collate.c: Likewise.
10689         * libio/vswprintf.c: Likewise.
10690         * malloc/memusagestat.c: Likewise.
10691         * sunrpc/auth_unix.c: Likewise.
10692         * sunrpc/rpc_main.c: Likewise.
10693         * nscd/cache.c: Likewise.
10694         * locale/programs/repertoire.c: Unify output messages.
10695         * locale/programs/charmap.c: Likewise.
10696         * locale/programs/ld-ctype.c: Likewise.
10697         * locale/programs/ld-monetary.c: Likewise.
10698         * locale/programs/ld-numeric.c: Likewise.
10699         * locale/programs/ld-time.c: Likewise.
10700         * elf/ldconfig.c: Likewise.
10701         * nscd/selinux.c: Likewise.
10702         * elf/cache.c: Likewise.
10703         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
10705         [BZ #3451]
10706         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
10707         change atomic.
10708         (ceil): Likewise.
10710 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
10712         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
10713         if N is one bigger than return value.
10714         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
10715         and l1 last arguments, if buf is defined, verify the return value
10716         equals to strlen (buf) and verify no byte beyond passed length
10717         is modified.
10719 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
10721         * po/sv.po: Update from translation team.
10723 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
10725         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
10726         noinline attribute.
10728 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
10730         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
10731         noinline attribute.
10733         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
10734         Use __new_sys_siglist instead of _sys_siglist_internal as
10735         second macro argument.
10736         (_old_sys_siglist): Use declare_symbol_alias macro instead of
10737         strong_alias.
10739 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
10741         [BZ #3493]
10742         * posix/unistd.h (sysconf): Remove const attribute.
10744         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
10745         temporary or deprecated addresses.
10746         Patch by Sridhar Samudrala <sri@us.ibm.com>.
10748         * string/Makefile (tests): Add tst-strxfrm2.
10749         * string/tst-strxfrm2.c: New file.
10751 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
10753         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
10754         rather than r->r_brk.
10756 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
10758         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
10759         optimization even if needed > n.
10761         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
10762         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
10763         return false, otherwise return true.
10764         (cache_rpath): Return decompose_rpath return value.
10766 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
10768         * include/libc-symbols.h (declare_symbol): Rename to...
10769         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
10770         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
10771         .size directive.
10772         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
10773         changes.
10774         * sysdeps/gnu/siglist.c: Likewise.
10776 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
10778         * sysdeps/powerpc/fpu/bits/mathinline.h
10779         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
10780         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
10782 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
10784         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
10785         Update handling of cache descriptor 0x49 for new models.
10786         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
10787         Likewise.
10789 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
10791         * malloc/memusage.c (dest): Reset not_me back to false after
10792         printing statistics.
10794 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
10796         * configure.in: Work around ld --help change and avoid -z relro
10797         test completely if the architecture doesn't care about security.
10799 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
10801         * po/sv.po: Update from translation team.
10803 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
10805         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
10806         generate compatibility version.
10808 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
10810         * configure.in: Relax -z relro requirement a bit.
10812         * po/sv.po: Update from translation team.
10814 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
10816         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
10817         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
10818         * elf/dl-close.c (_dl_close_worker): Likewise.
10819         * elf/dl-open.c (_dl_open_worker): Likewise.
10820         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
10822 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
10824         * configure.in: Require assembler support for visibility, compiler
10825         support for visibility and aliases, linker support for various -z
10826         options.
10827         * Makeconfig: Remove conditional code which now is unnecessary.
10828         * config.h.in: Likewise.
10829         * config.make.in: Likewise.
10830         * dlfcn/Makefile: Likewise.
10831         * elf/Makefile: Likewise.
10832         * elf/dl-load.c: Likewise.
10833         * elf/rtld.c: Likewise.
10834         * include/libc-symbols.h: Likewise.
10835         * include/stdio.h: Likewise.
10836         * io/Makefile: Likewise.
10837         * io/fstat.c: Likewise.
10838         * io/fstat64.c: Likewise.
10839         * io/fstatat.c: Likewise.
10840         * io/fstatat64.c: Likewise.
10841         * io/lstat.c: Likewise.
10842         * io/lstat64.c: Likewise.
10843         * io/mknod.c: Likewise.
10844         * io/mknodat.c: Likewise.
10845         * io/stat.c: Likewise.
10846         * io/stat64.c: Likewise.
10847         * libio/stdio.c: Likewise.
10848         * nscd/Makefile: Likewise.
10849         * stdlib/Makefile: Likewise.
10850         * stdlib/atexit.c: Likewise.
10851         * sysdeps/generic/ldsodefs.h: Likewise.
10852         * sysdeps/i386/dl-machine.h: Likewise.
10853         * sysdeps/i386/sysdep.h: Likewise.
10854         * sysdeps/i386/i686/memcmp.S: Likewise.
10855         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
10856         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10857         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
10859         * Makerules: USE_TLS support is now default.
10860         * tls.make.c: Likewise.
10861         * csu/Versions: Likewise.
10862         * csu/libc-start.c: Likewise.
10863         * csu/libc-tls.c: Likewise.
10864         * csu/version.c: Likewise.
10865         * dlfcn/dlinfo.c: Likewise.
10866         * elf/dl-addr.c: Likewise.
10867         * elf/dl-cache.c: Likewise.
10868         * elf/dl-close.c: Likewise.
10869         * elf/dl-iteratephdr.c: Likewise.
10870         * elf/dl-load.c: Likewise.
10871         * elf/dl-lookup.c: Likewise.
10872         * elf/dl-object.c: Likewise.
10873         * elf/dl-open.c: Likewise.
10874         * elf/dl-reloc.c: Likewise.
10875         * elf/dl-support.c: Likewise.
10876         * elf/dl-sym.c: Likewise.
10877         * elf/dl-sysdep.c: Likewise.
10878         * elf/dl-tls.c: Likewise.
10879         * elf/ldconfig.c: Likewise.
10880         * elf/rtld.c: Likewise.
10881         * elf/tst-tls-dlinfo.c: Likewise.
10882         * elf/tst-tls1.c: Likewise.
10883         * elf/tst-tls10.h: Likewise.
10884         * elf/tst-tls14.c: Likewise.
10885         * elf/tst-tls2.c: Likewise.
10886         * elf/tst-tls3.c: Likewise.
10887         * elf/tst-tls4.c: Likewise.
10888         * elf/tst-tls5.c: Likewise.
10889         * elf/tst-tls6.c: Likewise.
10890         * elf/tst-tls7.c: Likewise.
10891         * elf/tst-tls8.c: Likewise.
10892         * elf/tst-tls9.c: Likewise.
10893         * elf/tst-tlsmod1.c: Likewise.
10894         * elf/tst-tlsmod13.c: Likewise.
10895         * elf/tst-tlsmod13a.c: Likewise.
10896         * elf/tst-tlsmod14a.c: Likewise.
10897         * elf/tst-tlsmod2.c: Likewise.
10898         * elf/tst-tlsmod3.c: Likewise.
10899         * elf/tst-tlsmod4.c: Likewise.
10900         * elf/tst-tlsmod5.c: Likewise.
10901         * elf/tst-tlsmod6.c: Likewise.
10902         * include/errno.h: Likewise.
10903         * include/link.h: Likewise.
10904         * include/tls.h: Likewise.
10905         * locale/global-locale.c: Likewise.
10906         * locale/localeinfo.h: Likewise.
10907         * malloc/arena.c: Likewise.
10908         * malloc/hooks.c: Likewise.
10909         * malloc/malloc.c: Likewise.
10910         * resolv/Versions: Likewise.
10911         * sysdeps/alpha/dl-machine.h: Likewise.
10912         * sysdeps/alpha/libc-tls.c: Likewise.
10913         * sysdeps/generic/ldsodefs.h: Likewise.
10914         * sysdeps/generic/tls.h: Likewise.
10915         * sysdeps/i386/dl-machine.h: Likewise.
10916         * sysdeps/ia64/dl-machine.h: Likewise.
10917         * sysdeps/ia64/libc-tls.c: Likewise.
10918         * sysdeps/mach/hurd/fork.c: Likewise.
10919         * sysdeps/mach/hurd/i386/tls.h: Likewise.
10920         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
10921         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
10922         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
10923         * sysdeps/s390/libc-tls.c: Likewise.
10924         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10925         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10926         * sysdeps/sh/dl-machine.h: Likewise.
10927         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10928         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10929         * sysdeps/x86_64/dl-machine.h: Likewise.
10931         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
10932         split out locking and parameter checking.
10933         (_dl_close): Call _dl_close_worker after locking and checking.
10934         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
10935         _dl_close.
10936         * elf/Makefile: Add rules to build and run tst-thrlock.
10937         * elf/tst-thrlock.c:  New file.
10939         [BZ #3426]
10940         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
10941         reality.
10943         [BZ #3429]
10944         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
10945         we are sure we do not need it anymore for _dl_close.  Also move
10946         the asserts inside the lock region.
10947         Patch mostly by Suzuki <suzuki@in.ibm.com>.
10949 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
10951         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
10952         argument.
10953         (_dl_lookup_symbol_x): Adjust caller.
10955         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
10956         _ns_global_scope.
10957         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
10959         * elf/dl-libc.c: Revert l_scope name changes.
10960         * elf/dl-load.c: Likewise.
10961         * elf/dl-object.c: Likewise.
10962         * elf/rtld.c: Likewise.
10963         * elf/dl-close.c (_dl_close): Likewise.
10964         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
10965         always use __rtld_mrlock_{change,done}.  Always free old scope list
10966         here if not l_scope_mem.
10967         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
10968         change.  Never free scope list here.  Just __rtld_mrlock_lock before
10969         the lookup and __rtld_mrlock_unlock it after the lookup.
10970         * elf/dl-sym.c: Likewise.
10971         * include/link.h (struct r_scoperec): Remove.
10972         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
10973         with l_scope_mem and l_scoperec_lock with l_scope_lock.
10975 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
10977         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
10979 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
10981         * configure.in: Disable building profile libraries by default.
10983 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
10985         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
10986         as signed longs, check for x_base + pos overflow.
10987         * sunrpc/Makefile (tests): Add tst-xdrmem2.
10988         * sunrpc/tst-xdrmem2.c: New test.
10990 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
10992         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
10993         _dl_lookup_symbol_x code.
10995 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
10997         * elf/dl-runtime.c: Include sysdep-cancel.h.
10998         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
10999         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
11000         instead of catomic_* macros.
11001         * elf/dl-sym.c: Include sysdep-cancel.h.
11002         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
11003         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11004         * elf/dl-close.c: Include sysdep-cancel.h.
11005         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
11006         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11007         * elf/dl-open.c: Include sysdep-cancel.h.
11008         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
11009         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11011 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11013         [BZ #3313]
11014         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
11015         fastbin rather than end of fastbin array.
11017 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11019         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
11020         body macro.
11021         * sysdeps/x86_64/bits/atomic.h
11022         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
11023         (catomic_decrement): Use correct body macro.
11025 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11027         * include/atomic.h: Add a unique prefix to all local variables
11028         in macros.
11029         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
11031 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
11033         [BZ #3369]
11034         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
11035         and 7.
11037 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
11039         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
11041 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
11043         [BZ #3313]
11044         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
11045         determine highest fast bin to consolidate, always look into all of
11046         them.
11047         (do_check_malloc_state): Only require for empty bins for large
11048         sizes in main arena.
11050         * libio/stdio.h: Add more __wur attributes.
11052         * elf/dl-minimal.c (realloc): Optimize last patch.
11054 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
11056         [BZ #3352]
11057         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
11058         and use memcpy() if it does.
11060 2006-11-12  Andreas Jaeger  <aj@suse.de>
11062         [BZ #2510]
11063         * manual/search.texi (Hash Search Function): Clarify.
11064         (Array Search Function): Clarify.
11066 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
11068         [BZ #2830]
11069         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
11070         shifting.
11071         * math/atest-exp2.c (read_mpn_hex): Likewise.
11072         * math/atest-sincos.c (main): Likewise.
11074 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
11076         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
11077         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
11078         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
11079         version GLIBC_2.6.
11080         * Versions.def: Add GLIBC_2.6 for libc.
11082         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
11084         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
11086 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
11088         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
11090         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
11092         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
11093         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
11095 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
11097         * include/atomic.c: Define catomic_* operations.
11098         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
11099         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
11100         * malloc/memusage.c: Likewise.
11101         * gmon/mcount.c: Likewise.
11102         * elf/dl-close.c: Likewise.
11103         * elf/dl-open.c: Likewise.
11104         * elf/dl-profile.c: Likewise.
11105         * elf/dl-sym.c: Likewise.
11106         * elf/dl-runtime.c: Likewise.
11107         * elf/dl-fptr.c: Likewise.
11108         * resolv/res_libc.c: Likewise.
11110 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
11112         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
11113         components which lack them.
11115         * nis/nis_subr.c (nis_getnames): Make sure that we always return
11116         at least one entry consisting of the parameter concatenated with
11117         the domain.
11119 2006-10-10  Roland McGrath  <roland@frob.com>
11121         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
11122         * sysdeps/mach/hurd/futimes.c: Likewise.
11123         * sysdeps/mach/hurd/lutimes.c: Likewise.
11125 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
11126             Jakub Jelinek  <jakub@redhat.com>
11128         Implement reference counting of scope records.
11129         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
11130         from the list in objects which remain.  Always allocate new scope
11131         record.
11132         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
11133         don't resize, allocate a new one.
11134         * elf/dl-runtime.c: Update reference counters before using a scope
11135         array.
11136         * elf/dl-sym.c: Likewise.
11137         * elf/dl-libc.c: Adjust for l_scope name change.
11138         * elf/dl-load.c: Likewise.
11139         * elf/dl-object.c: Likewise.
11140         * elf/rtld.c: Likewise.
11141         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
11142         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
11143         Add l_scoperec_lock.
11144         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
11145         * sysdeps/generic/rtld-lowlevel.h: New file.
11147         * include/atomic.h: Rename atomic_and to atomic_and_val and
11148         atomic_or to atomic_or_val.  Define new macros atomic_and and
11149         atomic_or which do not return values.
11150         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
11151         Various cleanups.
11152         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11154         * po/sv.po: Update from translation team.
11156 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
11158         * Versions.def: Add GLIBC_2.6 to libpthread.
11160         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
11161         (versioned_symbol): Likewise.
11162         (compat_symbol): Likewise.
11164         * po/tr.po: Update from translation team.
11166 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
11168         * nis/Banner: Removed.  It's been integral part forever and the
11169         author info is incomplete anyway.
11170         * libio/Banner: Likewise.
11172         * nis/nis_table.c (nis_list): If __follow_path fails in the new
11173         code, make sure the nis_freeresult call doesn't crash and that the
11174         result is reported correctly.
11176 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
11178         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
11179         when callback is NULL.
11181         * nis/Versions (libnss_nisplus): Add
11182         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
11183         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
11184         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
11185         _nss_create_tablename): Rename to...
11186         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
11187         ... these.  No longer static.
11188         (internal_setgrent): Adjust users.
11189         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
11190         Don't use locking around _nss_grp_create_tablename call.
11191         * nis/nss_nisplus/nisplus-initgroups.c: New file.
11193 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
11195         * version.h (VERSION): Bump to 2.5.90 for new development tree.
11197 2006-10-06  Andreas Jaeger  <aj@suse.de>
11199         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
11201 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
11203         * po/pl.po: Update from translation team.
11205         * nscd/nscd.c (main): Fix typo in message.
11206         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
11208 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
11210         [BZ #3291]
11211         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
11212         errno.h, signal.h, unistd.h and sysdep-cancel.h.
11213         (__sigprocmask): Define.
11215 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
11217         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
11218         used.
11220 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
11222         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
11223         in oldtotal and newtotal calculation.
11224         * nscd/nscd-client.h (struct mapped_database): Add datasize
11225         field.
11226         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
11227         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
11228         increased.
11229         (__nscd_cache_search): Add checks to make sure we never reference
11230         data beyond the current mapping.
11232 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
11234         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
11235         variables const to avoid compiler warnings.
11237         * io/fts.c (fts_close): Remove redundant checks.
11238         (fts_build): Likewise.
11239         (fts_palloc): Likewise.
11241         * manual/message.texi (Advanced gettext functions,
11242         Using gettextized software): Fix typos.
11244 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
11246         * posix/glob.c (glob_in_dir): Add some comments and asserts to
11247         explain why there are no leaks.
11249 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
11251         * libio/wmemstream.c: Include <wchar.h>.
11252         * libio/bug-wmemstream1.c: Likewise.
11253         * libio/tst-wmemstream1.c: Likewise.
11254         * libio/tst-wmemstream2.c: Likewise.
11256         * version.h (RELEASE): Bump to 2.5.
11257         * README: Regenerated.
11259         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
11261         [BZ #3273]
11262         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
11263         found no group members.
11264         Patch by Petr Baudis.
11266 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
11268         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
11269         assert bootstrap_map.l_tls_modid is zero.
11270         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
11271         if USE___THREAD.
11273 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
11275         * libio/stdio.h: Move open_wmemstream prototype to ...
11276         * wcsmbs/wchar.h: ... here.
11278 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
11280         [BZ #3252]
11281         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
11282         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
11283         __{,l}chown to handle the rest.
11284         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
11285         fchownat syscall and __ASSUME_32BITUIDS case inline, call
11286         __{,l}chown to handle the rest.
11287         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
11288         i386/fchownat.c.
11289         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
11290         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
11292         [BZ #3253]
11293         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
11294         time, rather allocate increasingly bigger arrays of pointers, if
11295         possible with alloca, if too large with malloc.
11297 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
11299         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
11301         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
11303 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
11305         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
11306         home addresses.
11307         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
11308         IFA_F_HOMEADDRESS flag for interfaces.
11309         * include/ifaddrs.h (struct in6addrinfo): Define
11310         in6ai_homeaddress.
11312 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
11314         [BZ #3225]
11315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
11316         PTR_DEMANGLE3): Define.
11317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
11318         PTR_DEMANGLE3): Likewise.
11319         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
11320         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
11321         Likewise.
11322         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
11324 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
11326         * po/libc.pot: Regenerated.
11327         * po/be.po: Updated.
11328         * po/ca.po: Likewise.
11329         * po/cs.po: Likewise.
11330         * po/da.po: Likewise.
11331         * po/de.po: Likewise.
11332         * po/el.po: Likewise.
11333         * po/en_GB.po: Likewise.
11334         * po/es.po: Likewise.
11335         * po/fi.po: Likewise.
11336         * po/fr.po: Likewise.
11337         * po/gl.po: Likewise.
11338         * po/hr.po: Likewise.
11339         * po/hu.po: Likewise.
11340         * po/ja.po: Likewise.
11341         * po/ko.po: Likewise.
11342         * po/nb.po: Likewise.
11343         * po/nl.po: Likewise.
11344         * po/pl.po: Likewise.
11345         * po/pt_BR.po: Likewise.
11346         * po/ru.po: Likewise.
11347         * po/rw.po: Likewise.
11348         * po/sk.po: Likewise.
11349         * po/sv.po: Likewise.
11350         * po/tr.po: Likewise.
11351         * po/zh_CN.po: Likewise.
11352         * po/zh_TW.po: Likewise.
11354         [BZ #3137]
11355         * iconv/iconv_prog.c (main): Fix spelling in error message.
11356         * iconv/iconvconfig.c (main): Likewise.
11357         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
11358         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
11359         * locale/programs/localedef.c (main): Likewise.
11360         * locale/programs/repertoire.c (repertoire_read): Likewise.
11361         * timezone/zdump.c (main): Likewise.
11362         * nscd/connections.c (handle_request): Fix spelling in log message.
11363         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
11365 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
11367         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
11368         interfaces.
11370 2006-09-20  Andreas Jaeger  <aj@suse.de>
11372         * math/libm-test.inc (lrint_test_upward): Fix typo.
11374 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
11376         [BZ #2592]
11377         * math/libm-test.inc (lrint_test_tonearest): New function.
11378         (lrint_test_towardzero): New function.
11379         (lrint_test_downward): New function.
11380         (lrint_test_upward): New function.
11381         (main): Run these new tests.
11382         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
11383         of values near to 0.
11384         (two52): Use double not long double.
11385         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11386         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11387         (two23): Use float not double.
11388         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11389         (two23): Use float not double.
11390         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
11391         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11392         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
11393         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11395 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11397         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
11398         Cast sp to unsigned long to avoid compiler warning.
11399         Use __makecontext_ret function instead of a trampoline on the stack.
11400         (__makecontext_ret): New function.
11401         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
11403 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
11405         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
11406         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
11407         bits.
11409 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
11411         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
11412         sure no reference to the unloaded map's search list remains in the
11413         dependency's scope.
11415 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
11417         * elf/Makefile: Add rules to build and run unload7 test.
11418         * elf/unload7.c: New test.
11419         * elf/unload7mod1.c: New file.
11420         * elf/unload7mod2.c: New file.
11422 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
11424         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
11425         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
11426         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11427         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
11428         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11429         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
11430         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11431         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
11432         PTRACE_GETEVENTMSG): Likewise.
11433         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
11434         values.
11436 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
11438         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
11439         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11440         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
11441         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
11443 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
11445         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
11446         write '\0' to the fd.
11447         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
11448         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
11449         Change regs to unsigned long pointer from unsigned int, fix fscr
11450         offset.
11452 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
11454         * io/Makefile (CFLAGS-fstatat.c): Set.
11455         (CFLAGS-fstatat64.c): Likewise.
11456         (CFLAGS-mknodat.c): Likewise.
11458         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
11459         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11460         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
11461         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
11463 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
11464             Steven Munroe  <sjmunroe@us.ibm.com>
11466         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
11467         names to the beginning.  Rename "cell" to "cellbe".
11468         (_dl_powerpc_platforms): New.
11469         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11470         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
11471         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
11472         (_DL_HWCAP_PLATFORM): Define to new mask.
11473         (_dl_platform_string, _dl_string_platform): New functions.
11474         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
11475         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
11477 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
11479         [BZ #2526]
11480         * README.libm: Fix a thinko in sqrt algorithm description.
11482         [BZ #3143]
11483         * manual/string.texi (argz_delete): Fix prototype.
11484         Patch by <alpt@freaknet.org>.
11486 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
11488         [BZ #3138]
11489         * io/test-lfs.c (do_prepare): Give name_len type size_t.
11490         * io/tst-fcntl.c (do_prepare): Likewise.
11491         * posix/tst-exec.c (do_prepare): Likewise.
11492         * posix/tst-preadwrite.c (do_prepare): Likewise.
11493         * posix/tst-spawn.c (do_prepare): Likewise.
11494         * posix/tst-truncate.c (do_prepare): Likewise.
11495         * rt/tst-aio.c (do_prepare): Likewise.
11496         * rt/tst-aio64.c (do_prepare): Likewise.
11497         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
11498         size_t.
11500 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
11502         [BZ #2821]
11503         * time/mktime.c (guess_time_tm): Fix overflow detection.
11504         * time/Makefile (tests): Add bug-mktime1.
11505         * time/bug-mktime1.c: New file.
11507         [BZ #3189, #3188]
11508         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
11509         (mremap): Likewise.
11511 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
11513         [BZ #1006]
11514         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
11515         Ensure relocation doesn't clobber any bits outside of the
11516         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
11517         R_SPARC_HI22 and R_SPARC_H44.
11519         [BZ #2775]
11520         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
11521         (long) (MINSIZE + nb - old_size) is positive.
11523         * malloc/arena.c (grow_heap): When growing bail even if new_size
11524         is negative.
11526         [BZ #3155]
11527         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
11528         stack below r1.
11530 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
11532         * posix/regex_internal.c (re_string_reconstruct): Handle
11533         offset < pstr->valid_raw_len && pstr->offsets_needed case.
11534         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
11535         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
11536         re_string_context_at.
11537         * posix/Makefile: Add rules to build and run bug-regex26 test.
11538         * posix/bug-regex26.c: New test.
11540         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
11541         rather than col_sym_free.  Move seqp declaration earlier.
11543         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
11545 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
11547         * nscd/initgrcache.c (addinitgroupsX): Move any_success
11548         decl before first goto out.
11550 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
11552         * Makerules (shlib.lds): If have-hash-style, put .hash section
11553         at the end of the RO segment.
11555 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
11557         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
11558         style hash table format is used.
11560 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
11562         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
11563         randomization rather than before.
11564         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
11566 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
11568         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
11570         * malloc/malloc.c (_int_malloc): Use full list insert and not
11571         shortcut which assumes the list is empty for large requests
11572         too.
11574         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
11576 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
11578         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
11579         and offout arguments to the prototype.
11580         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
11581         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
11582         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
11583         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
11584         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
11585         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
11586         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
11587         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
11589 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
11591         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
11593         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
11594         dlopen parameters.
11596 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
11598         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
11599         only if herrno is NETDB_INTERNAL.  Handle errors other than
11600         ERANGE outside of the loops, handle TRY_AGAIN.
11602         * locale/programs/ld-ctype.c (translit_flatten): Issue error
11603         if other's ctype category was missing.
11604         * locale/programs/ld-collate.c (collate_read): Return if
11605         copy_locale's collate category is missing.
11607 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
11609         [BZ #2684]
11610         * malloc/malloc.c (public_rEALLOc): Try harder by using other
11611         arenas if allocation failed.
11612         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
11614 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
11616         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
11617         waste bins[0..1].
11618         (malloc_state): Reduce bins size by 2.
11619         (_int_malloc): Fix test for large enough buffer for early termination.
11620         When no unsorted block matches perfectly and an exiting block has
11621         to be split, use full list insert and not shortcut which assumes
11622         the list is empty.
11624         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
11625         failure.
11627 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
11629         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
11630         do anything.
11632         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
11633         symbol require exact match (these are PLTs).
11634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
11635         (_dl_ppc64_addr_sym_match): Likewise.
11637         [BZ #2683]
11638         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
11639         If symbol has a value use it.
11640         * elf/tst-dladdr1.c: New file.
11641         * elf/Makefile: Add rules to build and run tst-addr1.
11643 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
11645         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
11646         keeps failing and heap growth or new heap creation isn't
11647         successful either.
11648         * malloc/tst-malloc.c (main): Add new tests.
11650 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
11652         [BZ #2734]
11653         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
11654         as in the x86-64 code to use bswap.
11656 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
11658         [BZ #2680]
11659         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
11660         __USE_UNIX98.
11661         * posix/bits/unistd.h: Likewise.
11663 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
11665         [BZ #2751]
11666         * string/strchr.c: Add cast to avoid warning.
11668 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
11670         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
11671         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
11672         limit is needed to avoid the exploding of the address space
11673         requirement for secondary heaps.
11674         * malloc/arena.c (HEAP_MAX_SIZE): Define using
11675         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
11677 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
11679         [BZ #3018]
11680         * Makerules (depfiles): Handle extra-test-objs the same as
11681         extra-objs.
11682         (common-mostlyclean): Likewise.
11683         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
11684         instead.
11685         * elf/Makefile (extra-objs): Likewise.
11686         * stdlib/Makefile (extra-objs): Likewise.
11688 2006-08-14  Eric Blake  <ebb9@byu.net>
11690         [BZ #3044]
11691         * misc/error.h: Assume C89 or better.
11692         * misc/error.c: Likewise.
11694 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
11696         [BZ #3040]
11697         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
11698         __ASSUME_ATFCTS is defined.
11700 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
11702         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
11703         to sort in each call.
11705         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
11706         is empty simply return and use next service.
11707         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
11709         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
11710         tells us when not finding a charmap file is an error.
11711         * locale/programs/charmap.h: Adjust charmap_read prototype.
11712         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
11713         cannot find a charmap.
11714         * locale/programs/localedef.c (main): Adjust charmap_read call.
11716 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
11718         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
11719         sysdeps/posix/pause.c implementation instead.
11721 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
11723         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
11724         to EPERM.
11726 2006-08-13  Andreas Schwab  <schwab@suse.de>
11728         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
11729         Don't clobber caller's LRSAVE.
11730         (_dl_prof_resolve): Likewise.
11732 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
11734         [BZ #1996]
11735         * libio/memstream.c (open_memstream): Allocate initial buffer with
11736         calloc.
11737         * libio/wmemstream.c (open_wmemstream): Likewise.
11738         * libio/strops.c: Pretty printing.
11739         (_IO_str_overflow): Clear uninitialized part of the new buffer.
11740         (enlarge_userbuf): New function.
11741         (_IO_str_seekoff): Call it if seek position is larger than current
11742         buffer.
11743         * libio/wstrops.c: Likewise.
11744         * libio/vasprintf.c: Add comment as to why we do not have to use
11745         calloc instead of malloc to allocate initial buffer.
11746         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
11747         * libio/bug-memstream1.c: New file.
11748         * libio/bug-wmemstream1.c: New file.
11750 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
11752         * libio/wstrops.c: Remove dead macro definitions and comments.
11753         * libio/strops.c: Likewise.
11755         [BZ #2764]
11756         * login/utmpname.c (__utmpname): Remove unnecessary test.
11758 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
11760         [BZ #2832]
11761         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
11762         0s from integers.
11764 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
11766         [BZ #2987]
11767         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
11768         for CPU clocks.
11769         * sysdeps/unix/clock_settime.c: Add support for platform-specific
11770         setting of CPU clocks.
11772 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11774         [BZ #2841]
11775         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
11776         since C99 requires the result to promote to 'int' when uint_least8_t
11777         and uint_least16_t promote to 'int'.
11779 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
11781         [BZ #3013]
11782         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
11783         lenght of one output field, correct bitmask creation.
11784         * locale/programs/ld-time.c: Add alignment.
11786         [BZ #2997]
11787         * misc/error.c: Add space between program name and message if file
11788         name is missing.
11790 2006-08-03  Eric Blake  <ebb9@byu.net>
11792         [BZ #2998]
11793         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
11795 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
11797         * malloc/memusagestat.c: Silence warnings.
11799         * malloc/malloc.c: Dynamically size mmap treshold if the program
11800         frees mmaped blocks.
11801         Patch by Valerie Henson and Arjan van de Ven.
11803 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
11805         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
11806         __USE_GNU.
11808         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
11809         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
11810         (DEF): Don't put the var into .gnu.linkonce.r.* section.
11811         Only provide var definitions in strtol_l (or for *ull*
11812         in strtoll_l).
11814         * stdio-common/bug16.c (tests): New array.
11815         (do_tests): Allow the first hexadecimal digit
11816         to be 1, 2, 4 or 8.  Do 3 additional tests.
11818         * sysdeps/s390/fpu/libm-test-ulps: Update.
11820         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
11821         fchownat syscall if available.
11822         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
11823         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
11824         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
11826 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
11828         * nis/nis_xdr.c: Avoid some function calls.
11830 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
11831             Ulrich Drepper  <drepper@redhat.com>
11833         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
11834         short cut if only one name component is stripped away.
11836 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
11838         * nis/nis_call.c: Minor cleanups throughout.
11839         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
11840         (first_shoot): Add search_parent_first parameter.  Only if it is set
11841         search parent server first.
11842         If directory for table found through cold start cache is not the same
11843         as referenced in the cache, don't use it.
11844         (__nisfind_server): Take additional parameter.  Pass it on to
11845         first_shoot.
11846         (__prepare_niscall): Adjust __nisfind_server call.
11847         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
11848         * nis/nis_table.c: Adjust __nisfind_server call.
11849         * nis/nis_lookup.c: Likewise.
11850         (nis_lookup): Don't loop endlessly if name is reduced to ".".
11852 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
11854         [BZ #2182]
11855         * math/s_cacosh.c: Return values from positive branch.
11856         * math/s_cacoshf.c: Likewise.
11857         * math/s_cacoshl.c: Likewise.
11859         [BZ #2883]
11860         * sysvipc/sys/msg.h: Change return value to ssize_t.
11861         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
11862         * sysvipc/msgrcv.c: Likewise.
11863         * include/sys/msg.h: Likewise.
11865         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
11866         test introduced in patch for bz #661.
11867         (getgrouplist): Simplify code a bit.  Don't allocate one additional
11868         element for NEWGROUPS.
11870         [BZ #2908]
11871         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
11872         'f', use '1' as leading digit not '\1'.
11873         * stdio-common/Makefile (tests): Add bug16.
11874         * stdio-common/bug16.c: New file.
11876         [BZ #2914]
11877         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
11878         and don't try to open it.  The patch introducing the macro
11879         contained a bug and used the same file name as the new file
11880         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
11881         this out completely.
11883         [BZ #2926]
11884         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
11885         Patch by Jerry James <Jerry.James@usu.edu>.
11887         * rt/Makefile (tests): Add tst-clock2.
11888         * rt/tst-clock2.c: New file.
11890         [BZ #2978]
11891         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
11892         function and its parameters and pass it to new thread.
11893         (__gai_notify): Add support for alternative waiting for completion.
11894         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
11895         waiting for completion.
11896         * resolv/getaddrinfo_a.c: Likewise.
11897         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
11898         waiting for completion is used.
11899         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
11900         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
11901         * resolv/gai_error.c: Likewise.
11902         * resolv/gai_sigqueue.c: Likewise.
11904 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
11906         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
11907         errno to EBADF and return MACH_PORT_NULL.
11909 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
11911         [BZ #2980]
11912         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
11914 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
11916         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
11917         walk them instead of the symbol table.
11919 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
11921         [BZ #2098]
11922         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
11923         status of NSS calls, not the number of returned entries.
11925         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
11926         request_key, keyctl.
11928 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
11930         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
11932 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
11934         * elf/tst-auditmod1.c: Fix typo in #error.
11936 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
11938         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
11940         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
11942 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
11944         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
11945         that the directory is empty even on non-POSIX filesystems.
11947 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
11949         * elf/dl-open.c (dl_open_worker): Add branch prediction.
11951         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
11952         the backend NSS module.  If backend setgrent call failed, don't have
11953         internal_setgrent fail.  Just remember this until it is needed.
11954         * nis/nss_compat/compat-pwd.c: Likewise.
11955         * nis/nss_compat/compat-spwd.c: Likewise.
11957 2006-07-30  Roland McGrath  <roland@redhat.com>
11959         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
11960         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
11961         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
11962         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
11964         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
11965         (nanosleep_not_cancel): New macro.
11966         (sigsuspend_not_cancel): new macro.
11967         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
11968         (do_sigsuspend): Define as inline.
11969         (__sigsuspend): Always use do_sigsuspend.
11970         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
11971         * include/signal.h: Declare __sigsuspend_nocancel.
11972         * sysdeps/posix/pause.c
11973         [! NO_CANCELLATION] (__pause_nocancel): New function.
11975         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
11976         * include/time.h (__nanosleep_nocancel): Likewise.
11978 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
11980         * locale/programs/localedef.c (add_to_readlist): Rename local
11981         variables to avoid confusion.
11983         * locale/programs/charmap.c (charmap_read): Emit error message if
11984         charmap couldn't be found or read.
11986 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
11988         * sysdeps/unix/sysv/linux/kernel-features.h: Define
11989         __ASSUME_FUTEX_LOCK_PI.
11990         * include/time.h: Declare __nanosleep_nocancel.
11991         * include/unistd.h: Declare __pause_nocancel.
11993         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
11994         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
11995         get the __stack_chk_fail_local definition when it's needed.
11997 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
11999         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
12000         * dlfcn/bug-atexit3.c: New file.
12001         * dlfcn/bug-atexit3-lib.cc: New file.
12003         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
12004         used when the namespace is not the base namespace.
12006 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
12008         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
12009         (__new_exitfn): Bump it in every successful call.
12010         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
12011         more exit handlers, call them right away.
12012         * stdlib/exit.h: Declare __new_exitfn_called.
12014 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
12016         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
12017         calling registered handler.
12019         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
12020         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12021         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12022         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12023         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12024         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12025         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12026         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12028 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
12030         * elf/dl-lookup.c (dl_new_hash): New functions.
12031         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
12032         value here.  Compute new-style hash value.  Pass new hash value
12033         and reference to variable with the old value to do_lookup_x.
12034         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
12035         old-style hash table.
12036         (_dl_debug_bindings): Pass new hash value and reference to variable
12037         with the old value to do_lookup_x.
12038         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
12039         new-style hash value and change old-style hash value parameter to
12040         be a reference.  Reoganize functions to determine whether
12041         new-style hash table is available.  Only fall back on old-style
12042         table.  If old-style hash value is needed, compute it here.
12043         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
12044         entry.
12045         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
12046         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
12047         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
12048         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
12049         * Makeconfig: If linker supports --hash-style option add it to all
12050         linker command lines to build DSOs.
12051         * config.make.in: Define have-hash-style.
12052         * configure.in: Test whether linker supports --hash-style option.
12054         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
12055         * sysdeps/generic/ldsodefs.h: Adjust prototype.
12057 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
12059         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
12060         auditing.
12062         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
12063         RPATH of main map twice.
12065 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
12067         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
12068         look further, return original strings.
12069         (_nl_find_msg): Do not return found translation if the conversion
12070         failed.  Either signal the string is unusable or that something went
12071         wrong and the original should be used.
12073 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
12075         * string/_strerror.c (__strerror_r): Add __builtin_expect.
12077 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
12079         [BZ #2766]
12080         * misc/insremque.c (insque): Handle prev == NULL.
12081         * misc/Makefile (tests): Add tst-insremque.
12082         * misc/tst-insremque.c: New test.
12084 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
12086         [BZ #2792]
12087         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
12088         conflict with DL_DST_REQUIRED.
12090 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
12092         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
12093         match what Solaris does.
12095 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
12097         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
12098         local_setegid instead of seteuid and setegid.
12099         * sysdeps/generic/local-setxid.h: New file.
12100         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
12102         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
12104         * string/Makefile (tests): Add bug-envz1.
12105         * string/bug-envz1.c: New file.
12107 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
12109         * posix/regex_internal.c (re_string_skip_chars): If no character has
12110         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
12111         to the byte which couldn't be converted.
12112         (re_string_reconstruct): Don't clear valid_raw_len before calling
12113         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
12114         tip_context using re_string_context_at.
12115         * posix/Makefile: Add rules to build and run bug-regex25 test.
12116         * posix/bug-regex25.c: New test.
12118 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
12120         [BZ #2703]
12121         * string/envz.c (envz_strip): Correct erroneously reversed src
12122         and dest parameters to memmove() invocation.
12124 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
12126         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
12127         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
12128         to make sure the database has been already invalidated.
12129         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
12130         after the cache has been invalidated.  Use pthread_mutex_lock rather
12131         than pthread_mutex_trylock if fd != -1.
12132         * nscd/connections.c (invalidate_cache): Add fd argument, write
12133         response to fd if not calling prune_cache, pass fd to prune_cache.
12134         (handle_request): Adjust invalidate_cache caller.
12135         (nscd_run): Pass -1 as fd to prune_cache.
12137 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
12139         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
12140         the correct place.
12142 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
12144         * nscd/nscd.h (struct database_dyn): Add prunelock field.
12145         * nscd/cache.c (prune_cache): Take prunelock before starting the
12146         work.  Just return in case it is already taken.
12147         * nscd/connections.c (dbs): Initialize .prunelock.
12149 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
12151         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
12152         copying.  No need to allocate new array for group members.  Just
12153         move the pointers and update the size.
12155         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
12156         Avoid memory leak in case realloc fails.  Simplification for
12157         better code generation.
12159         Avoid deprecation warning because of libc_hidden_proto for
12160         inet6_option_alloc.
12161         * inet/inet6_option.c (option_alloc): Renamed from
12162         inet6_option_alloc.  Made static.
12163         (inet6_option_alloc): Now a simple wrapper around option_alloc.
12164         (inet6_option_append): Call option_alloc.
12165         * include/netinet/in.h: Remove libc_hidden_proto for
12166         inet6_option_alloc.
12168         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
12169         for cleanup when cb!=NULL [Coverity CID 233].
12171 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
12173         [BZ #2693]
12174         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
12175         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
12176         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
12177         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
12178         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
12179         and inet6_rth_getaddr.
12180         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
12181         array.
12182         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
12183         Mark inet6_option_* interfaces as deprecated.
12184         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
12185         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
12186         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
12187         inet6_rth_segments, and inet6_rth_getaddr.
12188         * inet/inet6_opt.c: New file.
12189         * inet/inet6_rth.c: New file.
12191         * inet/netinet/icmp6.h: Pretty printing.
12193         [BZ #2683]
12194         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
12196 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
12198         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
12199         doing it all here.  When server does not know the answer do not
12200         fail immediate, try parent first.
12202         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
12203         overflow test.
12205 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
12207         * nis/nis_call.c (__prepare_niscall): New function.  Split out
12208         from __do_niscall.
12209         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
12210         and exported.
12211         (__follow_path): New function.  Split out from nis_list.
12212         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
12213         _xdr_nis_result.
12214         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
12215         _xdr_nis_result.
12216         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
12217         and __follow_path.
12218         * nis/Versions: Export __prepare_niscall, __create_ib_request,
12219         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
12220         from libnsl for version GLIBC_PRIVATE.
12221         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
12222         Remove entry parameter from _nss_nisplus_parse_pwent and
12223         _nss_nisplus_parse_grent.
12224         * nis/nss_nisplus/nisplus-parser.c: Likewise.
12225         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
12226         again.  Rewrite getpwent handling to not use nis_first_entry and
12227         nis_next_entry.  Roll out own niscall handling.
12228         * nis/nss_nisplus/nisplus-grp.c: Likewise.
12230         * sunrpc/xdr_rec.c: Fix typo in comment.
12232 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
12234         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
12235         handling.
12237         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
12238         to allocate memory for my_pollfd.  Better initialization of
12239         cb_is_running.  Use TEMP_FAILURE_RETRY.
12241         * malloc/memusage.sh (memusageso): Add quotes.
12242         (memusagestat): Likewise.
12243         * debug/xtrace.sh (pcprofileso): Likewise.
12244         (pcprofiledump): Likewise.
12245         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
12246         replacement.
12247         * malloc/Makefile ($(objpfx)memusage): Likewise.
12249         * nis/nis_callback.c (__nis_create_callback): Calls to
12250         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
12251         asprintf call fails.
12253         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
12254         no uninitialized memory is passed to sendto.
12256 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
12258         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
12259         of snprintf+strdup.  Handle OOM.
12260         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
12261         cb->serv together.  Remove now obsolete free calls.
12262         (__nis_destroy_callback): Remove now obsolete free call.
12264 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
12266         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
12267         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
12268         and ULA respectively). Set precedence for IPv4 address to 10 as
12269         defined in RFC3484 for preferring IPv6.
12270         * posix/gai.conf: Update to match the new default tables.
12272 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
12274         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
12275         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
12276         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
12277         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
12279         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
12280         Removed.
12281         (init_nss_interface): Remove initialization of these variables.
12283 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
12285         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
12286         nis_free_directory forward to avoid duplication.
12288 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
12290         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
12291         rec_dirsearch returning NULL.
12292         (first_shoot): Handle __nis_finddirectory returning NULL.
12293         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
12295         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
12296         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
12298 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
12300         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
12301         pid changed.
12303 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
12305         * include/rpc/pmap_prot.h: Mark all functions as hidden.
12307         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
12308         * nscd/nscd_getgr_r.c: Likewise.
12310         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
12312         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
12313         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
12315         * stdlib/longlong.h (__clz_tab): Mark as hidden.
12317         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
12319         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
12321         * include/rpc/auth.h: Mark xdr_des_block_internal and
12322         xdr_opaque_auth_internal as hidden.
12324         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
12325         hidden.
12327         * include/rpc/xdr.h: Mark all _internal functions as hidden.
12329         * misc/getusershell.c (okshells): Don't use static initializers,
12330         do it dynamically.
12332         * stdlib/fmtmsg.c (keywords): Change type of len element to
12333         uint32_t to not waste space on 64bit machines.
12335         * locale/setlocale.c: Change _nl_category_names into a string.
12336         Add new _nl_category_name_idxs.  Change all users.
12337         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
12338         Declare _nl_category_name_idxs.
12339         * locale/findlocale.c: Adjust for _nl_category_names change.
12340         * locale/loadlocale.c: Likewise.
12341         * locale/newlocale.c: Likewise.
12342         * intl/dcigettext.c: Likewise.
12344         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
12345         (add_alias2): ...here.  New function.
12346         (__gconv_read_conf): Simplify builtin alias handling.
12347         (builtin_aliases): Convert to string to avoid relocations.
12348         * iconv/gconv_builtin.h: Add comment about correct formatting.
12350 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
12352         * resolv/res_debug.c (loc_ntoa): Make error const.
12354 2006-05-14  Andreas Schwab  <schwab@suse.de>
12356         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
12358 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
12360         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
12361         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
12362         sizeof (cpu_set_t).
12364 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
12366         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
12368         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
12370         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
12371         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
12373         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
12374         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
12376         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
12377         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
12378         xdr_cback_data.
12380         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
12381         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12382         xdr_ypupdate_args.
12384         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
12385         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
12387         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
12388         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
12390         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
12391         * include/rpcsvc/nis_callback.h: New file.
12393         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
12394         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
12396         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12397         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12399         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
12400         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
12402         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12403         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12405         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
12406         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12407         xdr_ypdelete_args.
12409         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
12410         __BEGIN_DECLS and __END_DECLS, the header is not installed.
12412         * nis/nis_error.c: Remove table of strings.  Use position
12413         independent mechanism.
12414         * nis/nis_error.h: New file.
12416 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
12418         * locale/programs/ld-time.c (time_finish): If wide era name or
12419         format aren't provided, set both wname and wformat to L"".
12421 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
12423         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
12424         results if the call was succesful.
12426         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
12428         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
12429         as hidden.
12431 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
12433         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
12435 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
12437         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
12438         caller makes sure this is not the case.
12439         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
12441 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
12443         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
12444         calls.
12446         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
12447         [Coverity CID 229, 230]
12449         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
12450         DGETTEXT calls.
12451         (hol_help): Likewise.  [Coverity CID 226, 227]
12453         * string/argz-replace.c (__argz_replace): Unconditionally call
12454         free on SRC.  [Coverity CID 225]
12456         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
12457         the return value of __nis_default_owner and __nis_default_group,
12458         it has been especially allocated.  [Coverity CID 224]
12460         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
12461         searchgroup and searchowner.  Significantly simplified.
12462         (__nis_default_owner): Remove duplication.  Do not locally copy the
12463         string before duplicating it.
12464         (__nis_default_group): Likewise.
12466         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
12467         we must clear the variable before calling __nisfind_server.
12469         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
12470         nis_getnames.  [Coverity CID 223]
12472         * locale/programs/locfile.c (locfile_read): Use alloca instead of
12473         xmalloc to allocate local repertoire name.  [Coverity CID 222]
12475         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
12476         allocate memory for the input to add_bytes.  [Coverity CID 221]
12478         * posix/wordexp.c (w_addword): Free word if realloc fails and it
12479         was allocated here.  [Coverity CID 219, 220]
12481         * posix/getconf.c (print_all): Free confstr data after printing.
12482         [Coverity CID 218]
12484         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
12485         list allocation fails.  [Coverity CID 215]
12487         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
12488         [Coverity CID 213]
12490         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
12491         string is NULL.  [Coverity CID 212]
12492         * argp/Makefile: Add rules to build and run bug-argp1.
12493         * argp/bug-argp1.c: New file.
12495         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
12496         end of string.
12497         * stdlib/canonicalize.c (__realpath): Likewise.
12499         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
12500         pointer.  [Coverity CID 206]
12502         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
12503         in statically linked code.
12504         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
12505         statically built code, be prepared to have no link map.
12506         [Coverity CID 205]
12508         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
12509         dgettext calls. [Coverity CID 204]
12511         * argp/argp-help.c (struct uparams): Remove valid member.  Change
12512         the one user.
12513         (uparam_names): Reduce size.  Avoid relative relocations.
12514         Moved to read-only segment.
12515         (fill_in_uparams): Update for new layout.
12517         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
12518         assumed to always be != NULL. [Coverity CID 202]
12520         * argp/argp-help.c (hol_entry_help): Remove some dead code
12521         [Coverity CID 200].
12523         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
12524         away a few more unconditional yperr2nss calls.
12525         (_nss_nis_getservbyname_r): Likewise.
12527 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
12529         * sysdeps/generic/ldsodefs.h: Remove support for non-core
12530         architectures.
12532         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
12533         that unused memory passed to sendto is nevertheless initialized.
12535         [BZ #2499]
12536         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
12537         possibly unaligned memory accesses.
12539         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
12540         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
12541         and __putlong respectively.  Correct buffer overflow check for
12542         NS_NOTIFY_OP.
12544         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
12546         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
12547         (send_dg): Rewrite error handling to be more compact and avoid
12548         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
12550         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
12552         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
12553         instead of ns_get16.
12554         (res_queriesmatch): Likewise.  Minor optimization.
12556         [BZ #2499]
12557         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
12558         __libc_res_nsend might reallocate the buffer for the answer.  In
12559         this case we have to reload the HP pointer.
12561 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
12563         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
12564         some branch prediction hints.
12566         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
12567         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12568         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12569         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12570         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12571         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12572         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12573         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12575 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12577         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
12578         by a GOT relocation to make Scrt1.o position independent.
12579         * sysdeps/s390/s390-64/elf/start.S: Likewise.
12581         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
12582         six system call parameters.
12583         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
12585 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
12587         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
12588         malloc&bzero.
12590         * sunrpc/svc_udp.c (BZERO): Remove definition.
12591         (CALLOC): Define.
12592         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
12594         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
12595         (des_SPtrans): Use uint32_t type.
12596         (des_skb): Likewise.
12598         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
12600 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
12602         [BZ #2509]
12603         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
12604         on 32-bit arches.
12606 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
12608         * locale/programs/ld-address.c (address_finish): Fix one more
12609         place where the iso639 array might be accessed beyond the limits.
12611 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
12613         * nis/nis_table.c (nis_list): Avoid clearing res twice before
12614         filling it for the first time.
12616         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
12617         Adjust all callers.
12618         Free res object content before returning.
12620         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
12622         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
12623         client->cl_auth.
12625         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
12626         cleanup for initial thread, just the free call on TVP.
12628         * nscd/gai.c (__getline): Define.
12631 See ChangeLog.16 for earlier changes.