Add x86 32-bit SSE4.2 string functions.
[glibc.git] / ChangeLog
blob149f66f1ffbe898aa2741fbf1cbf5d5cbc9d5356
1 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
3         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
4         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
5         strcasestr-c.
6         (CFLAGS-strcspn-c.c): Define.
7         (CFLAGS-strpbrk-c.c): Define.
8         (CFLAGS-strspn-c.c): Define.
9         (CFLAGS-strstr.c): Define.
10         (CFLAGS-strcasestr.c): Define.
11         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
12         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
13         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
14         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
15         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
16         * sysdeps/i386/i686/multiarch/strspn.S: New file.
17         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
18         * sysdeps/i386/i686/multiarch/strstr.c: New file.
19         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
20         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
21         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
22         -16L instead of 0xfffffffffffffff0L.
23         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
25 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
27         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
29 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
31         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
32         another rewrite.  Much smaller and faster.
33         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
35         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
36         ss_flags from the correct location.
38 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
40         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
41         * sysdeps/i386/i686/cacheinfo.c: New file.
42         * sysdeps/i386/i686/multiarch/Makefile: New file.
43         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
44         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
45         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
46         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
47         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
48         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
49         (__cpuid_count): New. Provide the default.
50         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
51         (__x86_64_preferred_memory_instruction): Define only if
52         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
53         (intel_check_word): Use __cpuid.
54         (handle_intel): Likewise.
55         (handle_amd): Likewise.
56         (__cache_sysconf): Likewise.
57         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
58         (__cache_sysconf): Likewise.
59         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
60         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
61         (get_common_indeces): Use __cpuid.
62         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
63         if ENABLE_SSSE3_ON_ATOM is not defined.
64         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
65         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
66         popcnt instead of popcntq.
68 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
70         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
72 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
74         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
75         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
76         which always causes a compile error.
78         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
80         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
81         comes from...
82         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
83         which always causes a compile error.
85         * debug/Makefile (tests): Add tst-longjmp_chk2.
86         * debug/tst-longjmp_chk2.c: New file.
88         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
89         Remove incorrect use of BP_SYM.
90         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
91         here now since it is more complex than just a simple check.
93         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
94         we make no more progress.
96 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
98         * math/s_fma.c: Don't define alias if __fma is a macro.
99         * math/s_fmaf.c: Likewise.
100         * sysdeps/x86_64/multiarch/s_fma.c: New file.
101         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
102         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
104         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
105         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
106         New macro HAS_FMA.
107         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
108         function.
109         * include/libc-symbols.h (libm_ifunc): Define.
110         * sysdeps/x86_64/multiarch/Versions: New file.
112         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
114 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
116         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
118 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
120         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
121         call that registers used in calling conventions need to be preserved.
122         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
123         to preserve register content if necessary.
124         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
125         (_dl_x86_64_restore_sse): New function.
126         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
127         is allowed to modify xmm/ymm registers.
129         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
130         application's perspective.
131         * stdio-common/scanf17.c: Likewise.
133 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
135         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
136         size to memsz.
137         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
138         here.
139         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
140         two steps to catch bugs.
142 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
144         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
145         determines which files are used in runtime lookups and only checks
146         those for SSE use.
147         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
148         testing.
149         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
150         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
151         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
152         take a while.
154         * elf/dl-open.c: Move _dl_scope_free to...
155         * elf/dl-scope.c: ...here.  New file.
156         * elf/Makefile (dl-routines): Add scope.
158         * resolv/resolv.h (RES_USE_DNSSEC): Define.
159         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
160         RES_USE_DNSSEC.
161         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
162         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
163         all the places we handled RES_USE_EDNS0 only before.
164         Patch by Adam Tkac <atkac@redhat.com>.
166 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
168         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
169         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
170         Update size when reallocating.
172 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
174         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
175         functions used in ld.so modify xmm/ymm registers.
176         * sysdeps/x86_64/Makefile:  Hook new test up.
177         * sysdeps/x86_64/rtld-memchr.c: New file.
178         * sysdeps/x86_64/rtld-memcmp.c: New file.
179         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
180         * sysdeps/x86_64/rtld-strchr.S: New file.
181         * sysdeps/x86_64/rtld-strlen.S: New file.
182         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
183         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
185 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
187         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
188         strncmp-c.
189         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
190         (exit): Likewise.
191         (Byte1): Likewise.
192         (Byte2): Likewise.
193         (Byte3): Likewise.
194         (Byte4): Likewise.
195         (Byte5): Likewise.
196         (Byte6): Likewise.
197         (next_8_bytes): Likewise.
198         (Byte0): Remove commented out codes.
199         (unaligned_table): Align jump table at 8 bytes.
200         Add _sse4_2 to all labels.  Always include "../strcmp.S".
201         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
202         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
203         * sysdeps/x86_64/strncmp.S: New file.
205 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
207         [BZ #10422]
208         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
209         kernels, dropped when eventfd2 support was added.
210         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
211         kernels, dropped when signalfd4 support was added.
212         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
213         added, name them.
215         [BZ #10452]
216         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
217         replies up.
219         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
221 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
223         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
224         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
226         [BZ #10448]
227         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
228         callback we must touch the status to avoid using stale value.
230         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
231         compiled in.
233 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
235         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
236         /lib/modules/* headers anymore.  We have sane headers in the standard
237         place now.
239 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
241         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
242         "etf3enh" and "highgprs" added.
243         (_dl_s390_platforms): "z10" added.
244         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
245         Increased for the new entries.
246         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
247         HWCAP_S390_HIGH_GPRS added.
249         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
250         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
251         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
252         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
253         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
255 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
257         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
258         avoid additional cpuid instructions.  Most of the information is
259         stored somewhere.
261         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
262         cache descriptors.
263         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
265         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
266         SSSE3 bit for Atoms.
267         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
268         here anymore.
270         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
271         structure before copying it to avoid warning.
272         * posix/tst-rfc3484-2.c (do_test): Likewise.
273         * posix/tst-rfc3484-3.c (do_test): Likewise.
275         [BZ #10416]
276         * include/unistd.h: Make header file suitable for C++ test cases.
277         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
279         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
280         stack alignment in the exit code.
282         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
283         potentially be zero.
285         * elf/tst-unique1.c: Extend test to check for unloading DSO with
286         unique symbol definition.
287         Patch by Jakub Jelinek.
288         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
289         make sure the object with the definition cannot be unloaded.  Adjust
290         a few types.
291         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
292         the unique symbol hash table should not be const.
294 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
296         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
297         unnecesary variables.  Comment fixes.
299 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
301         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
302         Use NONASCII_CASE information provided by the locale to determine
303         whether optimized string load function can be used.  Minor cleanups.
305 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
307         * string/strcasestr.c (STRCASESTR): New macro.
308         (__strcasestr): Renamed to ..
309         (STRCASESTR): ...this.
310         * string/strstr.c (STRSTR): New macro.
311         (strstr): Renamed to ..
312         (STRSTR): ...this.
313         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
314         strstr-c strcasestr-c
315         (CFLAGS-strstr.c): New.
316         (CFLAGS-strcasestr.c): Likewise.
317         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
318         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
319         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
320         * sysdeps/x86_64/multiarch/strstr.c: New file.
322 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
324         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
325         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
326         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
327         _NL_CTYPE_NONASCII_CASE.
328         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
329         field.
330         (ctype_finish): Check whether there are any 8-bit characters outside
331         the range ASCII has or whether the mapping isn't the same as for
332         ASCII (±0x20).  Set nonascii_case appropriately.
333         (ctype_output): Add output handler for nonascii_case.
335 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
337         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
338         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
340 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
342         [BZ #10360]
343         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
344         0xffff in the EDNS0 record.
346 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
348         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
349         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
350         is written before the list head update.
351         Patch by Andreas Schwab <aschwab@redhat.com>.
353 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
354             Jakub Jelinek  <jakub@redhat.com>
356         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
357         corruption thread-safe.
359 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
361         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
362         overrides atomic_compare_and_exchange_val_rel, define to
363         atomic_compare_and_exchange_val_rel by default, otherwise default
364         to catomic_compare_and_exchange_val_acq.
365         (catomic_compare_and_exchange_bool_rel): If arch overrides
366         atomic_compare_and_exchange_bool_rel, define to
367         atomic_compare_and_exchange_bool_rel by default.
368         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
369         Use catomic_compare_and_exchange_val_rel instead of
370         catomic_compare_and_exchange_val_acq.
372 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
374         * sysdeps/generic/ldsodefs.h: Add prototype for
375         _dl_higher_prime_number.
376         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
378         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
379         restoring of ymm registers a bit.
381 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
383         * sysdeps/x86_64/memcmp.S: New file.
385 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
387         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
388         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
389         pointers in writable memory.
391 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
393         * config.h.in: Add HAVE_AVX_SUPPORT entry.
394         * config.make.in: Add config-cflags-avx entry.
395         * configure.in: Substitute libc_cv_cc_avx.
396         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
397         * elf/tst-audit4.c: New file.
398         * elf/tst-audit5.c: New file.
399         * elf/tst-auditmod4a.c: New file.
400         * elf/tst-auditmod4b.c: New file.
401         * elf/tst-auditmod5a.c: New file.
402         * elf/tst-auditmod5b.c: New file.
403         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
404         link-defines.sym.
405         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
406         (La_x86_64_vector): Likewise.
407         (La_x86_64_regs): Append lr_vector.
408         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
409         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
410         saving and restoring SSE registers to ...
411         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
412         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
413         <link-defines.h>.
414         (_dl_runtime_profile): Use LR_SIZE to allocate space for
415         La_x86_64_regs.  Allocate extra space and jump to memory at
416         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
417         (save_and_restore_vector_sse): New.
418         (save_and_restore_vector_avx): Likewise.
419         (check_avx): Likewise.
420         (save_and_restore_vector): Likewise.
421         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
422         HAVE_AVX_SUPPORT.
423         * sysdeps/x86_64/link-defines.sym: New file.
425 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
427         * elf/do-lookup.h: Removed after folding content into...
428         * elf/dl-lookup.c: ...here.
430         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
432 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
434         * configure.in: Check for gnu_unique_symbol symbol type.
435         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
436         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
437         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
438         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
439         change.
440         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
441         unique symbol table.
442         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
443         for first namespace.
444         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
445         unique symbol hash table.
446         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
447         * elf/tst-unique1.c: New file.
448         * elf/tst-unique1mod1.c: New file.
449         * elf/tst-unique1mod2.c: New file.
450         * elf/tst-unique2.c: New file.
451         * elf/tst-unique2mod1.c: New file.
452         * elf/tst-unique2mod2.c: New file.
454 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
456         * elf/elf.h (STB_GNU_UNIQUE): Define.
458         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
459         from...
460         * include/inline-hashtab.h: ...here.
461         (htab_expand): Adjust for renamed function.  Correct memory handling.
463 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
465         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
467 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
469         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
470         (PPC_FEATURE_HAS_VSX): Likewise.
472 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
474         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
475         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
477         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
478         aligned to 16 byte boundaries.
479         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
480         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
481         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
483 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
485         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
486         * config.make.in (config-cflags-sse4): New variable.
487         * configure.in: Substitute libc_cv_cc_sse4.
488         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
489         HAVE_SSE4_SUPPORT.
490         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
491         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
492         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
493         * sysdeps/x86_64/multiarch/strcspn.S: New file.
494         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
495         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
496         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
497         * sysdeps/x86_64/multiarch/strspn.S: New file.
499 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
501         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
502         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
503         (tests): Add tst-audit3 for x86_64.
504         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
505         ($(objpfx)tst-audit3): Define.
506         ($(objpfx)tst-audit3.out): Define.
507         (tst-audit3-ENV): Define.
508         * elf/tst-audit3.c: New file.
509         * elf/tst-auditmod3a.c: New file.
510         * elf/tst-auditmod3b.c: New file.
511         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
512         and restore xmm6.
514         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
515         (__stpncpy): Renamed to ...
516         (STPNCPY): This.
517         (stpncpy): Create alias only if STPNCPY is not defined.
518         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
519         defined.
520         (strncpy): Renamed to ...
521         (STRNCPY): This.
522         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
523          stpncpy-c strncpy-c for string.
524         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
525         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
526         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
527         * sysdeps/x86_64/multiarch/strcpy.S: New file.
528         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
529         * sysdeps/x86_64/multiarch/strncpy.S: New file.
531 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
533         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
534         adding to fast bin list.
536 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
538         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
539         inet_makeaddr.  This worked only with class-based networks.
540         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
541         Likewise.
543         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
544         recognize all types.
545         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
546         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
547         be in host byte order.
549 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
551         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
552         (MODEL_OFFSET): Define.
553         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
554         family and model.
555         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
556         out common code into new function get_common_indeces. Determine
557         extended family and model for Intel processors.
559 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
561         * resolv/resolv.h: Define RES_SNGLKUPREOP.
562         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
563         option.
564         * resolv/res_send.c (reopen): New function.  Broken out of...
565         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
566         fallback mechanism.  If single-request fails switch to
567         single-request-reopen mode which opens a new socket for the second
568         request.
570 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
572         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
573         (CHECK_SP): Use it.
575 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
577         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
578         for saved registers.
579         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
580         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
581         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
583 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
585         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
587 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
589         * po/id.po: Update from translation team.
591         * po/bg.po: Update from translation team.
593 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
595         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
596         defined.
597         (strncmp): Renamed to STRNCMP.
598         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
599         strncmp-c for string.
600         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
601         * sysdeps/x86_64/multiarch/strcmp.S: New file.
602         * sysdeps/x86_64/multiarch/strncmp.S: New file.
603         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
605 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
607         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
608         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
609         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
610         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
611         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
612         ifuncmain7static.c.
613         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
614         ifuncmain7static, and ifuncmain7picstatic.
615         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
616         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
617         $(objpfx)ifuncmain7pie.out.
618         (modules-names): Add ifuncmod5 ifuncmod6
619         (ifuncmod5.so-no-z-defs): Define.
620         (ifuncmod6.so-no-z-defs): Define.
621         (CFLAGS-ifuncmain5pic.c): Define.
622         (CFLAGS-ifuncmain5picstatic.c): Define.
623         (CFLAGS-ifuncmain5staticpic.c): Define.
624         (CFLAGS-ifuncdep5pic.c): Define.
625         (CFLAGS-ifuncmain7pic.c): Define.
626         (CFLAGS-ifuncmain7picstatic.c): Define.
627         (CFLAGS-ifuncmain1staticpie.c): Define.
628         (CFLAGS-ifuncmain5pie.c): Define.
629         (CFLAGS-ifuncmain6pie.c): Define.
630         (CFLAGS-ifuncmain7pie.c): Define.
631         ($(objpfx)ifuncmain1staticpie.out): Define.
632         ($(objpfx)ifuncmain1staticpie): Define.
633         ($(objpfx)ifuncmain5pie.out): Define.
634         ($(objpfx)ifuncmain5pie): Define.
635         ($(objpfx)ifuncmain6pie.out): Define.
636         ($(objpfx)ifuncmain6pie): Define.
637         ($(objpfx)ifuncmain5): Define.
638         ($(objpfx)ifuncmain5pic): Define.
639         ($(objpfx)ifuncmain5static): Define.
640         ($(objpfx)ifuncmain5staticpic): Define.
641         ($(objpfx)ifuncmain5picstatic): Define.
642         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
643         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
644         ifuncmain6pie.out.
645         * elf/b/elf/ifuncmain1staticpie.c: New file.
646         * elf/ifuncdep5.c: New file.
647         * elf/ifuncdep5pic.c: New file.
648         * elf/ifuncmain5.c: New file.
649         * elf/ifuncmain5pic.c: New file.
650         * elf/ifuncmain5picstatic.c: New file.
651         * elf/ifuncmain5pie.c: New file.
652         * elf/ifuncmain5static.c: New file.
653         * elf/ifuncmain5staticpic.c: New file.
654         * elf/ifuncmain6pie.c: New file.
655         * elf/ifuncmain7.c: New file.
656         * elf/ifuncmain7pic.c: New file.
657         * elf/ifuncmain7picstatic.c: New file.
658         * elf/ifuncmain7pie.c: New file.
659         * elf/ifuncmain7static.c: New file.
660         * elf/ifuncmod5.c: New file.
661         * elf/ifuncmod6.c: New file.
663 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
665         [BZ #10085]
666         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
667         (nss_endgrent): New variable.
668         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
669         fields. Change type of files to bool and adjust all users.
670         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
671         (internal_endgrent): Call nss_endgrent if necessary.
672         (add_group): New function.  Broken out of...
673         (check_and_add_group): ...here.
674         (getgrent_next_nss): Remove test that any callback is available.
675         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
676         callback.  If there is no blacklist we can trust the results returned
677         by the initgroups_dyn callback.  In case there is a callback and we
678         find a group entry for the group ID but it doesn't contain the
679         correct member, switch to the slow mode and use getgrent_r.
680         (internal_getgrent_r): When we see a +: entry, determine whether
681         there is any callback and which we can use the initgroups_dyn
682         callback.
684 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
686         * malloc/malloc.c (_int_malloc): Add some consistency checks.
687         (_int_free): Likewise.
689         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
690         AF_IEEE802154.
691         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
692         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
693         and ARPHRD_IEEE802154_PHY.
695         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
696         relative to generic Linux version.
698 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
700         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
701         ($(objpfx)ifuncmain1vispie): Likewise.
703 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
705         * login/Makefile: Build pt_chown as PIE.
707 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
709         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
710         a format string.
711         * elf/sln.c (usage): Likewise.
712         * malloc/memusage.sh (do_help): Likewise.
713         * nss/getent.c (more_help): Likewise.
714         * posix/getconf.c (main): Likewise.
715         * sunrpc/rpcinfo.c (usage): Likewise.
716         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
718 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
720         * login/programs/pt_chown.c: Use libcap to drop privileges other than
721         those needed.
722         * login/Makefile: If necessary link pt_chown with -lcap.
723         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
724         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
726 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
728         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
729         comparisons.
730         * string/test-memchr.c (do_random_tests): Test very large lengths
731         as well.
733 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
735         * Makeconfig (+link-pie): Define.
736         (+prectorS): Define.
737         (+postctorS): Define.
738         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
739         * nscd/Makefile ($(objpfx)nscd): Likewise.
741 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
743         [BZ #10107]
744         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
745         with cmplwi.
746         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
748 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
750         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
751         into ...
752         * sysdeps/unix/grantpt.c: ...here.
754 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
756         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
757         chmod if it is necessary.
759         [BZ #10166]
760         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
761         when the slave device is in devpts or devfs.
763         [BZ #10183]
764         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
766         [BZ #10195]
767         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
768         of nd_opt_home_agent_info_preference to uint16_t.
769         Patch by Arnaud Ebalard <arno@natisbad.org>.
771         [BZ #10207]
772         * nss/getent.c: Add support for printing gshadow data.
774         [BZ #10203]
775         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
776         not just the currently used one and those which follow.
777         Patch by Joe Landers <jlanders@vmware.com>.
779         [BZ #10196]
780         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
781         * libio/Makefile: Run tst-fgetwc with necessary envvar.
782         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
784         [BZ #10217]
785         * stdlib/abort.c: Define variable __abort_msg.
786         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
787         * include/stdlib.h: Declare __abort_msg.
788         * assert/assert-perr.c: Don't free buffer for message immediately.
789         Store atomically in __abort_msg and free old buffer if necessary.
790         * assert/assert.c: Likewise.
791         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
792         store pointer in __abort_msg, and possibly free old string.
793         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
795         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
797         [BZ #10211]
798         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
799         handle leap seconds if they are available.
800         Patch by Akinori Hattori <hattya@gentoo.org>.
802         * timezone/tzselect.ksh: Update from tzcode2009i.
803         * timezone/zdump.c: Likewise.
804         * timezone/zic.c: Likewise.
806         * timezone/africa: Update from tzdata2009i.
807         * timezone/antarctica: Likewise.
808         * timezone/asia: Likewise.
809         * timezone/australasia: Likewise.
810         * timezone/backward: Likewise.
811         * timezone/etcetera: Likewise.
812         * timezone/europe: Likewise.
813         * timezone/factory: Likewise.
814         * timezone/iso3166.tab: Likewise.
815         * timezone/leapseconds: Likewise.
816         * timezone/northamerica: Likewise.
817         * timezone/pacificnew: Likewise.
818         * timezone/solar87: Likewise.
819         * timezone/solar88: Likewise.
820         * timezone/solar89: Likewise.
821         * timezone/southamerica: Likewise.
822         * timezone/systemv: Likewise.
823         * timezone/yearistype: Likewise.
824         * timezone/zone.tab: Likewise.
826 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
828         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
829         STT_GNU_IFUNC symbol or in 8 into type_class.
831         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
832         instead of Elf64_Addr.
834 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
836         * po/sv.po: Update from translation team.
838         [BZ #10229]
839         * misc/sys/select.h (__NFDBITS): Expression should have type int.
840         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
841         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
842         the C version.
844 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
846         * Versions.def: Add GLIBC_2.11 for libpthread.
848 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
850         * resolv/res_send.c (send_dg): Remember we switched to
851         single-request mode.
853 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
855         * dlfcn/dlfcn.h: Remove comma at end of enum.
856         Patch by J.H.M. Dassen <rdassen@redhat.com>.
858         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
859         parsing mode string.
861 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
863         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
865         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
867         * sysdeps/x86_64/multiarch/strlen.S: New file.
868         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
869         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
870         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
871         content.
873         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
874         is defined.
876 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
878         * sysdeps/x86_64/strlen.S: Minor optimizations.
880 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
882         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
883         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
884         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
885         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
886         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
887         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
888         ifuncmain3.c, ifuncmod3.c,.
889         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
890         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
891         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
892         ifuncmain4picstatic.
893         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
894         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
895         ifuncmain3, ifuncmain4.
896         (tests): Depend on $(objpfx)ifuncmain1pie.out and
897         $(objpfx)ifuncmain1vispie.out.
898         (modules-names): Add ifuncmod1 ifuncmod3.
899         (generated): Add ifuncmain1pie ifuncmain1pie.out
900         ifuncmain1vispie ifuncmain1vispie.out.
901         Define rules to build and run the tests.
902         * elf/ifuncdep1.c: New file.
903         * elf/ifuncdep1pic.c: New file.
904         * elf/ifuncdep2.c: New file.
905         * elf/ifuncdep2pic.c: New file.
906         * elf/ifuncmain1.c: New file.
907         * elf/ifuncmain1pic.c: New file.
908         * elf/ifuncmain1picstatic.c: New file.
909         * elf/ifuncmain1pie.c: New file.
910         * elf/ifuncmain1static.c: New file.
911         * elf/ifuncmain1staticpic.c: New file.
912         * elf/ifuncmain1vis.c: New file..
913         * elf/ifuncmain1vispic.c: New file..
914         * elf/ifuncmain1vispie.c: New file.
915         * elf/ifuncmain2.c: New file.
916         * elf/ifuncmain2pic.c: New file.
917         * elf/ifuncmain2picstatic.c: New file.
918         * elf/ifuncmain2static.c: New file.
919         * elf/ifuncmain3.c: New file.
920         * elf/ifuncmain4.c: New file.
921         * elf/ifuncmain4picstatic.c: New file.
922         * elf/ifuncmain4static.c: New file.
923         * elf/ifuncmod1.c: New file.
924         * elf/ifuncmod3.c: New file.
926 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
928         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
930 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
932         [BZ #10221]
933         * posix/Makefile (routines): Add execvpe.
934         * posix/Versions: Export execvpe for GLIBC_2.11.
935         * posix/execvp.c: Now only a wrapper.  Move code to...
936         * posix/execvpe.c: ...here.  New file.
937         * posix/unistd.h: Declare execvpe.
939 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
941         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
942         for STT_GNU_IFUNC handling for efficiency.
943         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
945         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
946         _exit.
947         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
949 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
951         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
952         for !SHARED.
954 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
956         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
957         is not defined.
958         (__rela_iplt_start): New declaration.
959         (__rela_iplt_end): Likewise.
960         (__rel_iplt_start): Likewise.
961         (__rel_iplt_end): Likewise.
962         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
963         * elf/elf.h (R_386_IRELATIVE): New macro.
964         (R_X86_64_IRELATIVE): New macro.
965         (R_386_NUM): Updated.
966         (R_X86_64_NUM): Likewise.
967         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
968         (libc_ifunc_hidden_def): New macro.
969         * sysdeps/generic/dl-irel.h: New file.
970         * sysdeps/i386/dl-irel.h: New file.
971         * sysdeps/x86_64/dl-irel.h: New file.
972         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
973         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
974         Handle R_386_IRELATIVE.
975         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
976         (elf_machine_lazy_rela): Likewise.
977         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
978         R_X86_64_IRELATIVE.
979         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
981 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
983         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
984         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
985         are no differences.  If an architecture has bits in CPUID index 1
986         meaning different things the values for the COMMON_CPUID_INDEX_1
987         index must not be set.
988         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
989         (HAS_POPCOUNT): ...this.  New macro.
990         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
991         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
992         to set the value for Intel and AMD architectures.
993         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
994         INTEL_CPUID_INDEX_1.
995         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
996         change.
998 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
1000         * configure.in: Move AC_CANONICAL_HOST before first use of $host
1001         and $build.
1003 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
1005         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
1006         (__expm1l): Set errno to ERANGE on overflow.
1007         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
1008         (__tanl): Set errno to EDOM for Â±Inf.
1009         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
1010         (__cosl): Set errno to EDOM for Â±Inf.
1011         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
1012         (__sinl): Set errno to EDOM for Â±Inf.
1014         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
1015         defined, use it.
1016         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
1017         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
1018         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
1020 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
1022         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
1023         code accessing it.
1024         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
1026 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
1028         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
1029         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
1030         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
1031         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
1033         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
1034         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
1035         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
1036         defined.
1037         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1038         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
1040 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
1042         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
1043         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
1044         is, either do nothing at all if __ASSUME_ACCEPT4, or
1045         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
1046         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
1047         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
1048         define.
1049         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
1050         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
1051         internal_accept4 in socket directory.
1053 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
1055         * sysdeps/ia64/configure.in: New file.
1057 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1059         [BZ #10162]
1060         * sysdeps/ia64/memchr.S: Use speculative load.
1062         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
1063         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
1064         use it.
1066         * sysdeps/i386/__longjmp.S: Add .text.
1067         * sysdeps/x86_64/__longjmp.S: Likewise.
1069 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
1071         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
1072         __ASSUME_ACCEPT4 for IA-64.
1074 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
1076         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
1078         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
1079         (SOCKOP_accept4): Define.
1081 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
1083         Sun approved the change of the license.
1084         * sunrpc/auth_des.c: Replace license text.
1085         * sunrpc/auth_none.c: Likewise.
1086         * sunrpc/auth_unix.c: Likewise.
1087         * sunrpc/authdes_prot.c: Likewise.
1088         * sunrpc/authuxprot.c: Likewise.
1089         * sunrpc/bindrsvprt.c: Likewise.
1090         * sunrpc/clnt_gen.c: Likewise.
1091         * sunrpc/clnt_perr.c: Likewise.
1092         * sunrpc/clnt_raw.c: Likewise.
1093         * sunrpc/clnt_simp.c: Likewise.
1094         * sunrpc/clnt_tcp.c: Likewise.
1095         * sunrpc/clnt_udp.c: Likewise.
1096         * sunrpc/clnt_unix.c: Likewise.
1097         * sunrpc/des_crypt.c: Likewise.
1098         * sunrpc/des_soft.c: Likewise.
1099         * sunrpc/get_myaddr.c: Likewise.
1100         * sunrpc/getrpcport.c: Likewise.
1101         * sunrpc/key_call.c: Likewise.
1102         * sunrpc/key_prot.c: Likewise.
1103         * sunrpc/openchild.c: Likewise.
1104         * sunrpc/pm_getmaps.c: Likewise.
1105         * sunrpc/pm_getport.c: Likewise.
1106         * sunrpc/pmap_clnt.c: Likewise.
1107         * sunrpc/pmap_prot.c: Likewise.
1108         * sunrpc/pmap_prot2.c: Likewise.
1109         * sunrpc/pmap_rmt.c: Likewise.
1110         * sunrpc/rpc/auth.h: Likewise.
1111         * sunrpc/rpc/auth_unix.h: Likewise.
1112         * sunrpc/rpc/clnt.h: Likewise.
1113         * sunrpc/rpc/des_crypt.h: Likewise.
1114         * sunrpc/rpc/key_prot.h: Likewise.
1115         * sunrpc/rpc/netdb.h: Likewise.
1116         * sunrpc/rpc/pmap_clnt.h: Likewise.
1117         * sunrpc/rpc/pmap_prot.h: Likewise.
1118         * sunrpc/rpc/pmap_rmt.h: Likewise.
1119         * sunrpc/rpc/rpc.h: Likewise.
1120         * sunrpc/rpc/rpc_des.h: Likewise.
1121         * sunrpc/rpc/rpc_msg.h: Likewise.
1122         * sunrpc/rpc/svc.h: Likewise.
1123         * sunrpc/rpc/svc_auth.h: Likewise.
1124         * sunrpc/rpc/types.h: Likewise.
1125         * sunrpc/rpc/xdr.h: Likewise.
1126         * sunrpc/rpc_clntout.c: Likewise.
1127         * sunrpc/rpc_cmsg.c: Likewise.
1128         * sunrpc/rpc_common.c: Likewise.
1129         * sunrpc/rpc_cout.c: Likewise.
1130         * sunrpc/rpc_dtable.c: Likewise.
1131         * sunrpc/rpc_hout.c: Likewise.
1132         * sunrpc/rpc_main.c: Likewise.
1133         * sunrpc/rpc_parse.c: Likewise.
1134         * sunrpc/rpc_parse.h: Likewise.
1135         * sunrpc/rpc_prot.c: Likewise.
1136         * sunrpc/rpc_sample.c: Likewise.
1137         * sunrpc/rpc_scan.c: Likewise.
1138         * sunrpc/rpc_scan.h: Likewise.
1139         * sunrpc/rpc_svcout.c: Likewise.
1140         * sunrpc/rpc_tblout.c: Likewise.
1141         * sunrpc/rpc_util.c: Likewise.
1142         * sunrpc/rpc_util.h: Likewise.
1143         * sunrpc/rpcinfo.c: Likewise.
1144         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
1145         * sunrpc/rpcsvc/key_prot.x: Likewise.
1146         * sunrpc/rpcsvc/klm_prot.x: Likewise.
1147         * sunrpc/rpcsvc/mount.x: Likewise.
1148         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
1149         * sunrpc/rpcsvc/rex.x: Likewise.
1150         * sunrpc/rpcsvc/rstat.x: Likewise.
1151         * sunrpc/rpcsvc/rusers.x: Likewise.
1152         * sunrpc/rpcsvc/sm_inter.x: Likewise.
1153         * sunrpc/rpcsvc/spray.x: Likewise.
1154         * sunrpc/rpcsvc/yppasswd.x: Likewise.
1155         * sunrpc/rtime.c: Likewise.
1156         * sunrpc/svc.c: Likewise.
1157         * sunrpc/svc_auth.c: Likewise.
1158         * sunrpc/svc_authux.c: Likewise.
1159         * sunrpc/svc_raw.c: Likewise.
1160         * sunrpc/svc_run.c: Likewise.
1161         * sunrpc/svc_simple.c: Likewise.
1162         * sunrpc/svc_tcp.c: Likewise.
1163         * sunrpc/svc_udp.c: Likewise.
1164         * sunrpc/svc_unix.c: Likewise.
1165         * sunrpc/svcauth_des.c: Likewise.
1166         * sunrpc/xcrypt.c: Likewise.
1167         * sunrpc/xdr.c: Likewise.
1168         * sunrpc/xdr_array.c: Likewise.
1169         * sunrpc/xdr_float.c: Likewise.
1170         * sunrpc/xdr_mem.c: Likewise.
1171         * sunrpc/xdr_rec.c: Likewise.
1172         * sunrpc/xdr_ref.c: Likewise.
1173         * sunrpc/xdr_sizeof.c: Likewise.
1174         * sunrpc/xdr_stdio.c: Likewise.
1176         * po/da.po: Update from translation team.
1178 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1180         * sysdeps/sh/____longjmp_chk.S: New file.
1181         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
1182         * sysdeps/sh/sh4/__longjmp.S: Likewise.
1184 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
1185             Ulrich Drepper  <drepper@redhat.com>
1187         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
1188         (__nscd_cache_search): Assume each entry in the
1189         hash chain needs one hashentry and half of datahead.  Use
1190         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
1192 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
1194         * posix/sys/wait.h: Fix typos.  Pretty printing.
1195         * stdlib/stdlib.h: Likewise.  Correct comments.
1197         [BZ #10159]
1198         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
1200         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
1201         patch.
1203 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
1205         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
1206         Use it if we absolutely cannot reach any more correct list elements
1207         because that many do not fit into the currently mapped database.
1209 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
1211         * nscd/nscd_helper.c: Include stddef.h.
1212         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
1213         in a couple of places.  Return NULL if trail is not less than
1214         datasize, don't consider dataheads with length smaller than
1215         offsetof (struct datahead, data) + datalen.
1216         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
1217         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
1218         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
1219         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1220         * nscd/nscd_getai.c (__nscd_getai): Likewise.
1221         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
1222         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
1224         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
1225         Rename ...
1226         (fallocate64): ... to this.
1227         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
1228         Rename ...
1229         (fallocate64): ... to this.
1230         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
1231         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
1232         fallocate64@@GLIBC_2.10.
1233         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
1234         fallocate64@@GLIBC_2.11.
1235         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
1236         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
1237         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
1238         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
1240         * nscd/selinux.c (nscd_avc_destroy): Removed.
1241         * nscd/selinux.h (nscd_avc_destroy): Likewise.
1242         * nscd/nscd.c (termination_handler): Don't call
1243         nscd_avc_destroy.
1245 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
1247         * include/atomic.h: Formatting.
1248         (catomic_compare_and_exchange_val_acq): Don't define if already
1249         defined by bits/atomic.h.
1251 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
1253         * math/libm-test.inc (expm1_test): Add test for range error.
1255         * Versions.def: Add GLIBC_2.11 for libc.
1256         * debug/Makefile (routines): Add longjmp_chk.
1257         Add rules to build and run tst-longjmp_chk.
1258         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
1259         * debug/longjmp_chk.c: New file.
1260         * debug/tst-longjmp_chk.c: New file.
1261         * include/bits/setjmp2.: New file.
1262         * include/stdio.h: Mark __fortify_fail as internal_function.
1263         * setjmp/Makefile (headers): Add bits/setjmp2.h.
1264         * setjmp/bits/setjmp2.h: New file.
1265         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
1266         of the aliases.
1267         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
1268         defined.
1269         * sysdeps/i386/____longjmp_chk.S: New file.
1270         * sysdeps/x86_64/____longjmp_chk.S: New file.
1271         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
1272         * sysdeps/x86_64/__longjmp.S: Likewise.
1274         * version.h: Bump for 2.11 development.
1276         * elf/check-execstack.c: New file.
1277         * elf/Makefile: Add rules to build and run check-execstack.
1279 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
1281         * version.h (VERSION): Bump to 2.10.1.
1283         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
1284         compatibility functions.
1285         * nss/getXXent_r.c: Likewise.
1286         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
1287         * gshadow/getsgnam_r.c: Likewise.
1288         * gshadow/Version: Remove duplicate entries.
1290         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
1291         for recent processor.
1292         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
1293         Likewise.
1295 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
1297         * version.h (VERSION): Bump for 2.10 release.
1298         * include/features.h (__GLIBC_MINOR__): Bump to 10.
1300         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
1301         same place we add ASFLAGS-config.
1303 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
1305         [BZ #10128]
1306         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
1307         or FORMERR and the other NOERROR, don't raise an error.
1309 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
1311         [BZ #10118]
1312         * Makeconfig (+asflags): New variable based upon ASFLAG or
1313         asflags-cpu.
1314         (ASFLAGS): Add override to set ASFLAGS to +asflags.
1315         * config.make.in (asflags-cpu): Add variable based upon
1316         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
1317         the assembler.
1318         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1319         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
1320         recognizes power6 instruction set due to passing -mcpu=power6 from
1321         --with-cpu=power6 when compiling .S files.
1322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1323         Likewise.
1324         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1325         Likewise.
1326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1327         Likewise.
1329 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
1331         * string/stratcliff.c (do_test): Test for zero length
1332         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
1333         at the end of the page.
1335 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
1337         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
1339         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
1340         count is zero.
1342         * po/da.po: Update from translation team.
1344 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
1346         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
1347         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
1349 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
1351         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
1352         and READ_IMPLIES_EXEC.
1354 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
1356         * po/da.po: Update from translation team.
1358 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
1360         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
1361         comment change.
1363 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
1365         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
1366         to MAP_ANON in PROT_NONE mmap64 call.
1367         (open_archive): Likewise.
1368         (file_data_available_p): Use mmap64 instead of mremap.
1369         (enlarge_archive): Likewise.  Update head if ah->addr changed.
1370         Attempt to reserve address space after mmap64 region.
1372 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
1374         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
1375         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
1376         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1378         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
1379         atanh should set ERANGE.
1381         [BZ #10087]
1382         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
1383         result of lookup to make call to implement STT_GNU_IFUNC.
1384         (_dl_profile_fixup): Likewise.
1385         Patch by H.J. Lu <hjl.tools@gmail.com>.
1387         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
1388         warning.
1390         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
1391         from definition.
1393         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
1394         label if it is not used.
1396         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
1397         of gmon_hist_hdr and gmon_hdr structures and use them.
1398         * elf/sprof.c: Likewise.
1400         * elf/dl-load.c (open_verify): Add temporary variable to avoid
1401         warning.
1403         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
1405         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
1406         to avoid cast.
1408         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
1409         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
1410         to avoid warnings.
1411         (iruserok_af): Use ss_family instead of casts.
1413         * gmon/gmon.c (write_hist): Define real-type variant of
1414         gmon_hist_hdr structure and use it.
1415         (write_gmon): Likewise for gmon_hdr.
1417         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
1418         function if we are not going to define it.
1419         * sysdeps/unix/sysv/linux/writev.c: Likewise.
1421         * inet/inet6_option.c (option_alloc): Add temporary variable to
1422         avoid warning.
1424         * libio/strfile.h (struct _IO_streambuf): Use correct type and
1425         name of VTable element.
1426         * libio/iovsprintf.c: Avoid casts to avoid warnings.
1427         * libio/iovsscanf.c: Likewise.
1428         * libio/vasprintf.c: Likewise.
1429         * libio/vsnprintf.c: Likewise.
1430         * stdio-common/isoc99_vsscanf.c: Likewise.
1431         * stdlib/strfmon_l.c: Likewise.
1432         * debug/vasprintf_chk.c: Likewise.
1433         * debug/vsnprintf_chk.c: Likewise.
1434         * debug/vsprintf_chk.c: Likewise.
1436         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
1437         function pointers.
1439 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
1441         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
1443 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
1445         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
1447         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
1448         * sysdeps/i386/fpu/s_tanf.S: Likewise.
1449         * sysdeps/i386/fpu/s_tanl.S: Likewise.
1450         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1451         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
1452         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
1453         * math/libm-test.inc: Add tests for errno after tan calls with
1454         Â±Inf.
1456         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
1457         errno value vor pow(+-0,neg).
1458         * math/libm-test.inc (pow_test): Add tests for errno value for
1459         pole errors.
1461         * math/w_fmod.c: Also handle x=±Inf as error.
1462         * math/w_fmodf.c: Likewise.
1463         * math/w_fmodl.c: Likewise.
1464         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
1465         x=±Inf or y=0.
1467         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
1468         * sysdeps/i386/fpu/s_cosf.S: Likewise.
1469         * sysdeps/i386/fpu/s_cosl.S: Likewise.
1470         * sysdeps/i386/fpu/s_sin.S: Likewise.
1471         * sysdeps/i386/fpu/s_sinf.S: Likewise.
1472         * sysdeps/i386/fpu/s_sinl.S: Likewise.
1473         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1474         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
1475         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
1476         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
1477         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
1478         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
1479         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
1480         * math/libm-test.inc: Add tests for errno after sin/cos calls with
1481         Â±Inf.
1483         * stdlib/strtod_l.c (round_and_return): We have to set errno to
1484         ERANGE for underflows.
1485         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
1487         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
1488         the 2001 revision.
1490         * libio/tst-widetext.input: Remove surrogates.
1492         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
1494         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
1495         for lgamma should set errno to ERANGE, not EDOM.
1496         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
1498 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
1500         [BZ #10093]
1501         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
1502         UTF-16 surrogates.
1504         * locale/programs/locarchive.c (enlarge_archive): Conserve address
1505         space when temporarily mapping the whole content of the old file.
1507         [BZ #10100]
1508         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
1509         not zero.
1511 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
1513         * iconvdata/sjis.c (BODY): Don't advance inptr before
1514         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
1515         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
1516         two byte chars.
1518 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
1520         * locale/locarchive.h (struct locarhandle): Rename len field to
1521         mmaped and add new reserved field.
1522         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
1523         (create_archive): Reserve address space and then map file into it.
1524         (open_archive): Likewise.
1525         (file_data_available_p): New function.
1526         (compare_from_file): New function.
1527         (close_archive): Adjust to member name changes.
1528         (add_locale): Before comparing locale data, check it is mapped.
1529         Otherwise fall back to reading from the file.
1531 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
1533         * stdio-common/psiginfo.c: Include <errno.h>.
1535 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
1537         [BZ #9920]
1538         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
1539         to get consistency between 32 and 64 bit architectures.
1541         [BZ #10052]
1542         * sysdeps/unix/make-syscalls.sh: Add rule to create target
1543         directory for dummy syscall rules.
1544         Patch by Chris Steinbroner <hesh@pobox.com>.
1546 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
1548         [BZ #10092]
1549         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
1550         MNT_EXPIRE.
1552 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
1554         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
1555         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1557 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
1559         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
1560         data from vector to temporary buffer and call PWRITEV after it
1561         instead of vice versa.
1562         * sysdeps/posix/preadv.c: Fix up comment.
1563         * misc/preadv.c: Likewise.
1564         * misc/preadv64.c: Likewise.
1565         * misc/pwritev.c: Likewise.
1566         * misc/pwritev64.c: Likewise.
1567         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
1569 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
1571         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
1573         * shadow/Makefile (tests): Add tst-shadow.
1574         * shadow/tst-shadow.c: New file.
1576         [BZ #9955]
1577         * gshadow/Makefile: New file.
1578         * gshadow/Versions: New file.
1579         * gshadow/fgetsgent.c: New file.
1580         * gshadow/fgetsgent_r.c: New file.
1581         * gshadow/getsgent.c: New file.
1582         * gshadow/getsgent_r.c: New file.
1583         * gshadow/getsgnam.c: New file.
1584         * gshadow/getsgnam_r.c: New file.
1585         * gshadow/gshadow.h: New file.
1586         * gshadow/putsgent.c: New file.
1587         * gshadow/sgetsgent.c: New file.
1588         * gshadow/sgetsgent_r.c: New file.
1589         * gshadow/tst-gshadow.c: New file.
1590         * include/gshadow.h: New file.
1591         * Makeconfig (all-subdirs): Add gshadow.
1592         * Makefile (installed-headers): Add gshadow/gshadow.h.
1593         * nss/Makefile (databases): Add sgrp.
1594         * nss/Versions: Add gshadow functions as private exports.
1595         * nss/nsswitch.conf: Add gshadow entry.
1596         * nss/sgrp-lookup.c: New file.
1597         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
1598         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
1599         * nss/nss_files/files-sgrp.c: New file.
1600         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
1601         * sysdeps/unix/sysv/linux/paths.h: Likewise.
1603 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
1605         * stdio-common/printf.h: Add missing const to register_printf_modifier.
1606         * stdio-common/reg-modifier.c: Likewise.
1608 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
1610         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
1611         is no FPU.
1613 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
1615         [BZ #10086]
1616         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
1617         headers up to 2.6.30.
1619         * po/ca.po: Update from translation team.
1621 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
1623         [BZ #10069]
1624         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
1625         an object that uses static TLS if the TLS modid is higher than the
1626         reserve we always allocate.  At least for multi-threaded code.
1628 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
1630         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
1631         Numerically stable check for valid width.
1633         * locale/programs/locarchive.c (open_archive): Map the entire file
1634         and not just the administrative data.
1635         (add_locale): When we find a hash sum match compare the content
1636         to be sure.
1638         * malloc/malloc.c (malloc_info): Output address space information.
1640 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
1642         * malloc/malloc.c (malloc_info): Also output system memory information.
1644         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
1645         architectures have preadv/pwritev in 2.6.30.
1647         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
1648         * sysdeps/posix/readv.c: Likewise.
1649         Reported by Markus Armbruster <armbru@redhat.com>.
1651         * malloc/hooks.c (top_check): Force hook value into register.
1653 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1655         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
1656         calls to _dl_relocate_object.
1658 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
1660         [BZ #9957]
1661         * malloc/malloc.c (force_reg): Define.
1662         (sYSMALLOc): Load hook variable into variable
1663         before test and force into register.
1664         (sYSTRIm): Likewise.
1665         (public_mALLOc): Force hook value into register.
1666         (public_fREe): Likewise.
1667         (public_rEALLOc): Likewise.
1668         (public_mEMALIGn): Likewise.
1669         (public_vALLOc): Likewise.
1670         (public_pVALLOc): Likewise.
1671         (public_cALLOc): Likewise.
1672         (__posix_memalign): Likewise.
1673         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
1674         before test and force into register.
1675         * malloc/hooks.c (top_check): Likewise.
1676         (public_sET_STATe): Pretty printing.
1678         * resolv/res_send.c (send_dg): Don't just ignore the result we got
1679         in case we only receive one reply in single-request mode.
1681 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
1683         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
1684         are dlopened in statically linked program even for __LM_ID_CALLER.
1686 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
1688         * resolv/res_send.c (send_dg): Don't switch into single-request
1689         mode if we already are in it.
1691 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
1693         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
1694         are always at least 4 bytes in the returned line.
1696 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
1698         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
1699         __libc_use_alloca (8192), if the stack is too small use 512 bytes
1700         instead of 8K.  Stop searching in /proc/stat after hitting first
1701         line not starting with cpu.
1702         (next_line): Truncate too long
1703         lines at buffer size * 3/4 instead of pretending there were line
1704         breaks inside of large lines.
1706 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
1708         * sysdeps/x86_64/mp_clz_tab.c: New file.
1710 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
1711             Ulrich Drepper  <drepper@redhat.com>
1713         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
1714         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
1715         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
1717 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
1719         * sysdeps/sh/libc-tls.c: New file.
1721         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
1723 2009-04-14  Roland McGrath  <roland@redhat.com>
1725         * elf/elf.h: Add various missing ARM constants, to match binutils.
1727 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
1729         Optimizations from GMP.
1730         * sysdeps/x86_64/add_n.S: New file.
1731         * sysdeps/x86_64/addmul_1.S: New file.
1732         * sysdeps/x86_64/lshift.S: New file.
1733         * sysdeps/x86_64/mul_1.S: New file.
1734         * sysdeps/x86_64/rshift.S: New file.
1735         * sysdeps/x86_64/sub_n.S: New file.
1736         * sysdeps/x86_64/submul_1.S: New file.
1738 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
1740         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
1741         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
1742         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
1743         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
1745 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
1747         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
1748         preadv/pwritev.
1750 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
1752         * sysdeps/x86-64/strrchr.S: New file.
1754 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
1756         * stdio-common/printf.h (struct printf_info): Add user element.
1757         New types printf_arginfo_size_function, printf_va_arg_function.
1758         Declare register_printf_specifier, register_printf_modifier,
1759         register_printf_type.
1760         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
1761         (union printf_arg): Add pa_user element.
1762         Adjust __printf_arginfo_table type.
1763         Add __printf_va_arg_table, __printf_modifier_table,
1764         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
1765         declarations.
1766         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
1767         If registered arginfo call failed try normal specifier.
1768         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
1769         function.
1770         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
1771         * stdio-common/Versions: Export register_printf_modifier,
1772         register_printf_type, and register_printf_specifier for GLIBC_2.10.
1773         * stdio-common/reg-modifier.c: New file.
1774         * stdio-common/reg-type.c: New file.
1775         * stdio-common/reg-printf.c (__register_printf_specifier): New
1776         function.  Mostly the old __register_printf_function function but
1777         uses locking and type of third parameter changed.
1778         (__register_printf_function): Implement using
1779         __register_printf_specifier.
1780         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
1781         calls to arginfo functions.  Allocate enough memory for user-defined
1782         types.  Call new va_arg functions to get user-defined types.
1783         Try installed handlers even for existing format specifiers first.
1785 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
1787         * sysdeps/x86_64/rawmemchr.S: New file.
1789         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
1790         Simplified code and possible copy problem fixed.
1792         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
1793         function if it is not defined.  Add some necessary casts.
1794         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1796         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
1797         have preadv/pwritev in 2.6.30.
1799 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
1801         * malloc/malloc.c (malloc_info): New function.
1802         * malloc/malloc.h: Declare it.
1803         * malloc/Versions: Export malloc_info for GLIBC_2.10.
1805         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
1806         to avoid PLT slot.
1808         * malloc/malloc.c (_int_realloc): Add parameter with old block
1809         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
1810         Adjust all callers.
1811         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
1813 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
1815         * sysdeps/x86_64/strchrnul.S: New file.
1817         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
1818         depending libcrypt on -lfreebl3.
1820         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
1821         preadv/pwritev in 2.6.30.
1823         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
1824         instead of __strcasecmp.
1826         * string/stratcliff.c (do_test): Add memchr tests..
1827         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
1828         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
1829         first read quad word.
1831 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
1833         * string/strverscmp.c (__strverscmp): Fix last cleanups.
1834         * string/tst-svc.input: Add new test case.
1835         * string/tst-svc.expect: Adjust.
1836         * string/Makefile: Don't ignore tst-svc error.
1838         * sysdeps/x86_64/memchr.S: New file.
1840         * resolv/resolv.h (RES_SNGLKUP): Define.
1841         * resolv/res_init.c (res_setoptions): Recognize single-request option.
1842         * resolv/res_send.c (send_dg): If we sent two requests at once and
1843         only get one reply before timeout switch to mode where we send the
1844         second request only after the first answer has been received.
1846 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
1848         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
1849         * sysdeps/x86_64/strchr.S: Likewise.
1851 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
1853         * configure.in: We need to test for the compiler earlier.
1855         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
1856         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
1857         GLIBC_2.10.
1858         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
1859         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
1860         and pwritev.
1861         * misc/preadv.c: New file.
1862         * misc/preadv64.c: New file.
1863         * misc/pwritev.c: New file.
1864         * misc/pwritev64.c: New file.
1865         * sysdeps/posx/preadv.c: New file.
1866         * sysdeps/posx/preadv64.c: New file.
1867         * sysdeps/posx/pwritev.c: New file.
1868         * sysdeps/posx/pwritev64.c: New file.
1869         * sysdeps/unix/sysv/linux/preadv.c: New file.
1870         * sysdeps/unix/sysv/linux/preadv64.c: New file.
1871         * sysdeps/unix/sysv/linux/pwritev.c: New file.
1872         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
1873         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
1874         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
1876         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
1877         compatibility code.
1878         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
1880         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1881         __ASSUME_COMPLETE_READV_WRITEV.
1882         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
1883         with modern kernels.
1884         * sysdeps/unix/sysv/linux/writev.c: Likewise.
1886         * sysdeps/posix/readv.c: Since read is a cancellation point we have
1887         to free a possible malloced buffer in case of cancellation.
1888         * sysdeps/posix/writev.c: Likewise for write.
1890 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
1892         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
1894         * configure.in: Recognize --enable-nss-crypt.
1895         * config.make.in: Add nss-crypt entry.
1896         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
1897         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
1898         and include path for NSS directory to compiler for md5-crypt,
1899         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
1900         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
1901         function implementation, use NSS.  Introduce wrappers around the
1902         hash function calls.  Little code size optimization.
1903         * crypt/sha256-crypt.c: Likewise.
1904         * crypt/sha512-crypt.c: Likewise.
1905         * scripts/check-local-headers.sh: Ignore nss3 directory.
1907         * configure.in: Rename pic_default to libc_cv_pic_default.
1908         * config.make.in: Likewise.
1910 2009-04-01  Roland McGrath  <roland@redhat.com>
1912         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
1913         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
1914         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
1915         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
1916         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
1917         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
1918         (R_SPARC_NUM): Update.
1919         From Dave Miller <davem@davemloft.net>.
1921 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
1923         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
1925 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
1927         * elf/dl-open.c: Keep track of used name spaces and only iterate over
1928         those which are used.
1929         * elf/dl-addr.c: Likewise.
1930         * elf/dl-caller.c: Likewise.
1931         * elf/dl-fini.c: Likewise.
1932         * elf/dl-iteratephdr.c: Likewise.
1933         * elf/dl-libc.c: Likewise.
1934         * elf/dl-load.c: Likewise.
1935         * elf/dl-support.c: Likewise.
1936         * elf/dl-sym.c: Likewise.
1937         * elf/rtld.c: Likewise.
1938         * sysdeps/generic/ldsodefs.h: Likewise.
1940         * elf/dl-load.c: Remove support for systems without MAP_ANON.
1941         * elf/dl-minimal.c: Likewise.
1942         * elf/dl-misc.c: Likewise.
1943         * elf/rtld.c: Likewise.
1944         * sysdeps/generic/ldsodefs.h: Likewise.
1946 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
1948         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
1949         Avoid reuse of complex expression.
1951         * po/fr.po: Update from translation team.
1953 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
1955         * include/dirent.h: Yet more changes to match sort function type
1956         change.
1957         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
1958         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
1959         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
1961 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
1963         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
1965 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
1967         * nscd/connections.c (restart): Try to preserve the process name
1968         by reading the /proc/self/exe symlink and using the return name.
1969         Patch by Jeff Bastian <jbastian@redhat.com>.
1971 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
1973         [BZ #9733]
1974         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
1975         if we are not loading a new audit library.
1976         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
1977         Only use profiling trampoline for auditing if we are not relocating
1978         an audit library.
1979         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
1980         * elf/rtld.c: Likewise.
1981         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
1983         * elf/rtld.c (dl_main): Extend help message for --audit option.
1985         [BZ #9759]
1986         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
1987         alphasort64, versionsort, and versionsort64 to POSIX 2008.
1988         * dirent/alphasort.c: Adjust implementation to type change.
1989         * dirent/alphasort64.c: Likewise.
1990         * dirent/scandir.c: Likewise.
1991         * dirent/versionsort.c: Likewise.
1992         * dirent/versionsort64.c: Likewise.
1993         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
1994         declaration.
1995         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
1996         declaration.
1998         [BZ #9880]
1999         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
2000         correctly.  Set segleft member in output as required.
2001         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2002         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
2004         [BZ #9881]
2005         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
2006         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2007         * inet/Makefile (tests): Add tst-inet6_rth.
2008         * inet/tst-inet6_rth.c: New file.
2010         [BZ #5807]
2011         * string/strlen.c (strlen): Fix omission in the expression to test
2012         for NUL bytes.
2014 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
2016         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
2018         * elf/dl-runtime.c (reloc_offset): Define.
2019         (reloc_index): Define.
2020         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
2021         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
2022         computing index from reloc_offset.
2023         (_dl_call_pltexit): Likewise.
2024         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
2025         the relocation index to _dl_fixup.
2026         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
2027         _dl_call_pltexit.
2028         * sysdeps/x86_64/dl-runtime.c: New file.
2030         [BZ #9893]
2031         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
2032         alignment of La_x86_64_regs.  Store xmm parameters.
2033         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
2035         [BZ #9913]
2036         * string/strverscmp.c (__strverscmp): Fix case of different digits
2037         in fractional part of string.
2038         Patch by Jingyu Liu <jyliu@fortinet.com>.
2039         * string/Makefile (tests): Add tst-svc2.
2040         * string/tst-svc2.c: New file.
2042         * string/strverscmp.c (__strverscmp): Optimize size of tables.
2044         * locale/iso-639.def: Add Min Nan.
2046 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2048         [BZ #9948]
2049         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
2051 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
2053         * elf/dl-sysdep.c (auxvars): Compress data structure.
2055         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
2056         STT_GNU_IFUNC handling.
2057         (elf_machine_rela): Likewise.
2059 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
2061         * config.h.in (USE_MULTIARCH): Define.
2062         * configure.in: Handle --enable-multi-arch.
2063         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
2064         (_dl_fixup_profile): Likewise.
2065         * elf/do-lookup.c (dl_lookup_x): Likewise.
2066         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
2067         * elf/elf.h (STT_GNU_IFUNC): Define.
2068         * include/libc-symbols.h (libc_ifunc): Define.
2069         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
2070         framework in init-arch.h to get CPUID values.
2071         * sysdeps/x86_64/multiarch/Makefile: New file.
2072         * sysdeps/x86_64/multiarch/init-arch.c: New file.
2073         * sysdeps/x86_64/multiarch/init-arch.h: New file.
2074         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
2076         * config.make.in (experimental-malloc): Define.
2077         * configure.in: Handle --enable-experimental-malloc.
2078         * malloc/Makefile: Handle experimental-malloc flag.
2079         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
2080         * malloc/arena.c: Likewise.
2081         * malloc/hooks.c: Likewise.
2082         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
2084 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
2086         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
2087         prediction.  A few size optimizations.
2089 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2091         * time/tzset.c: Optimize a bit for size.
2093 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
2095         * include/stdio.h (fmemopen): Add libc_hidden_proto.
2096         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
2098         * elf/sprof.c: Avoid warning about multi-line comment.
2100 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2102         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
2103         DST name.
2104         * time/tst-posixtz.c: Add tests for quoted timezone names.
2106 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
2108         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
2109         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
2110         200809L instead of 200112L.
2111         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
2112         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
2114         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
2115         instead of __quick_exit_funcs to __run_exit_handlers.
2116         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
2117         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
2118         (__cxa_at_quick_exit): Remove attribute_hidden.
2119         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
2120         to __run_exit_handlers.
2121         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
2122         attribute_hidden.
2124 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2126         * po/id.po: Update from translation team.
2128 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
2130         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
2131         .machine push; .machine "power6" and .machine pop around mtfsf
2132         insns outside of _ARCH_PWR6 define.
2133         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2134         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
2135         Likewise.
2136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
2137         Likewise.
2138         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
2139         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
2140         relax_fenv_state): Likewise.
2142 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
2144         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
2145         cxa_at_quick_exit.
2146         (static-only-routines): Add at_quick_exit.
2147         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
2148         GLIBC_2.10.
2149         * stdlib/quick_exit.c: New file.
2150         * stdlib/at_quick_exit.c: New file.
2151         * stdlib/cxa_at_quick_exit.c: New file.
2152         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
2153         it appropriately.
2154         (__internal_atexit): New function.
2155         (__new_exitfn): Now takes parameter to point to the list to use.
2156         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
2157         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
2158         (exit): ...here.  Just call __run_exit_handlers appropriately.
2159         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
2160         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
2161         * stdlib/on_exit.c: Adjust call to __new_exitfn.
2162         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
2164         * po/id.po: Update from translation team.
2166 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
2168         * po/ru.po: Update from translation team.
2170 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
2172         * po/nl.po: Update from translation team.
2174 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
2176         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
2177         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2178         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2179         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2180         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2181         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2182         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2184         * po/pl.po: Update from translation team.
2186 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
2188         [BZ #7083]
2189         * sysdeps/unix/sysv/linux/fallocate.c: New file.
2190         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
2191         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
2192         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
2193         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
2194         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
2195         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
2196         for GLIBC_2.10.
2197         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2198         Add fallocate and fallocate64.
2200         * io/fcntl.h: Pretty printing.
2202 2009-03-02  Richard Guenther  <rguenther@suse.de>
2204         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
2205         attribute also for non-C99 inline semantics variant.
2207 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2209         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
2210         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
2211         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
2212         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
2213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
2214         Likewise.
2215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
2216         Likewise.
2218 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
2220         * po/cs.po: Update from translation team.
2222 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
2224         * po/bg.po: Update from translation team.
2225         * po/sv.po: Likewise.
2226         * po/fi.po: Likewise.
2227         * po/vi.po: Likewise.
2229 2009-02-27  Roland McGrath  <roland@redhat.com>
2231         * Makeconfig (%.v.i): Depend on Makeconfig.
2232         Exclude % lines from initial #-comment removal.
2234 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
2236         * po/ko.po: Update from translation team.
2238 2009-02-26  Roland McGrath  <roland@redhat.com>
2240         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
2241         avoids unused warning.
2243 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
2244             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
2246         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
2247         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
2248         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
2249         and asm/user.h.  Include asm/ptrace.h.
2250         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
2251         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2252         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
2253         Undefine.
2254         (start_thread): Don't undefine.
2255         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
2256         Define.
2258 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
2260         * wctype/wctype.h: The *_l functions are in POSIX 2008.
2261         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
2262         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
2263         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
2264         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
2265         200112L to 200809L.
2266         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
2267         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2268         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
2269         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2270         _SC_THREAD_ROBUST_PRIO_PROTECT.
2271         * posix/unistd.h: fexecve is in POSIX 2008.
2272         * time/time.h: strftime_l is in POSIX 2008.
2273         * io/sys/stat.h: futimens is in POSIX 2008.
2274         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
2275         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
2276         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
2277         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
2278         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
2279         open_memstream, and vdprintf are in POSIX 2008.
2281 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
2283         * include/features.h: Define macros for XPG7/POSIX 2008.
2284         * ctype/ctype.h: The *_l functions are in POSIX 2008.
2285         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
2286         POSIX 2008.
2287         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
2288         * locale/xlocale.h: Define locale_t type.
2289         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
2290         in POSIX 2008.  Don't define locale_t here.
2291         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
2292         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
2293         UTIME_OMIT only with __USE_ATFILE.
2294         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
2295         * stdio-common/psiginfo.c: New file.
2296         * stdio-common/psiginfo-data.h: New file.
2297         * stdio-common/psiginfo-define.h: New file.
2298         * stdio-common/Makefile (routines): Add psiginfo.
2299         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
2300         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2301         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2302         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2303         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2304         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2305         * io/sys/stat.h: Move mknodat definition into same conditional as
2306         mknod.
2307         * time/sys/time.h: futimesat is not among the functions accepted
2308         into the POSIX standard.
2310         * include/features.h: If no feature selection given and we select
2311         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
2312         * posix/Versions: Export __posix_getopt.
2313         * posix/getopt.c (_getopt_initialize): Take additional parameter.
2314         Use it to alternatively initialize __posixly_correct.
2315         (_getopt_internal_r): Take addition parameter.  Pass on to
2316         _getopt_initialize.
2317         (_getopt_internal): Take addition parameter.  Pass on to
2318         _getopt_internal_r.
2319         (getopt): Pass additional zero to _getopt_internal.
2320         (__posix_getopt): New function.
2321         * posix/getopt.h: Add redirection for getopt.
2322         * posix/getopt1.c (getopt_long): Pass additional zero to
2323         _getopt_internal.
2324         (getopt_long_only): Likewise.
2325         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
2326         (_getopt_long_only_r): Likewise.
2327         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
2328         _getopt_internal_r.
2330 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
2332         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
2333         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2334         * sysdeps/posix/sysconf.c (__sysconf): Handle
2335         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
2336         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2338 2009-02-24  Roland McGrath  <roland@redhat.com>
2340         [BZ #9895]
2341         * README.template: Reworded not to use substituted version number.
2342         Renamed to ...
2343         * README: ... here (no longer generated).
2344         * Makefile (README): Target removed.
2346 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
2348         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
2349         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
2350         instead.
2352         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
2354         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
2356 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
2358         * po/bg.po: Update from translation team.
2360 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
2362         * stdlib/monetary.h: Uglify function parameter names.
2363         * sunrpc/rpc/pmap_clnt.h: Likewise.
2364         * sunrpc/rpc/svc.h: Likewise.
2365         * sunrpc/rpc/xdr.h: Likewise.
2366         * sunrpc/rpc/clnt.h: Likewise.
2367         * resolv/netdb.h: Likewise.
2368         * resolv/arpa/nameser.h: Likewise.
2369         * resolv/resolv.h: Likewise.
2370         * argp/argp.h: Likewise.
2371         * locale/langinfo.h: Likewise.
2372         * io/sys/stat.h: Likewise.
2373         * posix/spawn.h: Likewise.
2374         * nis/rpcsvc/nislib.h: Likewise.
2375         * malloc/obstack.h: Likewise.
2376         * sysdeps/ia64/bits/link.h: Likewise.
2377         * sysdeps/i386/bits/link.h: Likewise.
2378         * sysdeps/s390/bits/link.h: Likewise.
2379         * sysdeps/powerpc/bits/link.h: Likewise.
2380         * sysdeps/x86_64/bits/link.h: Likewise.
2381         * sysdeps/sparc/bits/link.h: Likewise.
2382         * sysdeps/sh/bits/link.h: Likewise.
2383         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
2384         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
2385         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
2386         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
2388 2008-12-01  Fredrik Unger  <fred@tree.se>
2390         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
2391         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
2392         _FP_UNPACK_RAW_2, fix up first argument.
2394 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
2396         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
2397         (GET_NPROCS_PARSER): Change parameters and use next_line.
2398         (__get_nprocs): Rewrite to not use stdio routines.
2399         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
2400         Change parameters and use next_line.
2402 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
2404         [BZ #5381]
2405         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
2406         Change mempool_alloc prototype.
2407         * nscd/mem.c (gc): Don't handle mem_in_flight.
2408         (mempool_alloc): Third parameter now only indicates whether this is the
2409         first call (to allocate data) or not.  If it is, get db rdlock.
2410         Release it on error.  Don't handle mem_in_flight.
2411         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
2412         Adjust third parameter of mempool_alloc calls.
2413         Nothing to do here in case mempool_alloc fails.
2414         Avoid local variable shadowing parameter.  No need to get db rdlock
2415         before calling cache_add.
2416         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
2417         no mem_in_flight array anymore.
2418         * nscd/connections.c: Remove definition and handling of mem_in_flight.
2419         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
2420         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
2421         in case mempool_alloc fails. No need to get db rdlock before calling
2422         cache_add.
2423         * nscd/hstcache.c (cache_addhst): Likewise.
2424         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2425         * nscd/servicescache.c (cache_addserv): Likewise.
2426         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
2428 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
2430         * po/lt.po: Update from translation team.
2432 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
2434         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
2435         defined, allow additional data to be added using the optional
2436         MORE_ELF_HEADER_DATA macro.
2437         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
2438         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
2440 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
2442         * include/atomic.h: Define catomic_and if not already defined.
2443         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
2444         * sysdeps/i386/i486/bits/atomic.h: Likewise.
2446 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
2448         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
2449         Change all callers.
2450         (_int_realloc): Likewise.  Third argument is now padded size
2451         All _int_* functions are now static.
2453         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
2454         * malloc/arena.c: Likewise.
2455         * include/malloc.h: Remove now unnecessary declarations of the _int_*
2456         functions.
2458         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
2459         easily.
2461         * malloc/malloc.c: Add branch prediction for use of the hooks.
2463         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
2465 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
2467         [BZ #7095]
2468         * bits/confname.h: Add SUSv7 macros for getconf environments.
2469         * bits/environments.h: Likewise.
2470         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
2471         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
2472         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
2473         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
2474         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
2475         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
2476         * posix/getconf.c: Likewise.
2477         * posix/sysconf.c: Likewise.
2478         * sysdeps/posix/sysconf.c: Likewise.
2479         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
2480         environments.
2482 2009-01-16  Petr Baudis  <pasky@suse.cz>
2484         [BZ #9753]
2485         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
2486         even if we currently have zero nscount.
2488 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
2490         [BZ #9781]
2491         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
2492         the input line is too long.
2494         * po/Makefile (libc.pot): Add f_print as function taking c-format
2495         parameter.
2497         * debug/xtrace.sh: Unify translatable messages.
2498         * elf/ldd.bash.in: Likewise.
2499         * elf/sprof.c: Likewise.
2500         * locale/programs/locale.c: Likewise.
2501         * malloc/memusage.sh: Likewise.
2502         * nss/getent.c: Likewise.
2504 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
2506         * debug/pcprofiledump.c (print_version,
2507         argp_program_version_hook): New function.
2508         * elf/ldconfig.c (more_help): New function.
2509         (argp): Use it.
2510         * elf/sln.c (usage): New function.
2511         (main): Support --help and --version.
2512         * malloc/memusagestat.c (print_version): New function.
2513         (argp_program_version_hook): New variable.
2514         * nscd/nscd.c (more_help): New function.
2515         (argp): Use it.
2516         * posix/getconf.c (main): Send --version output to stdout.
2517         Support --help.
2518         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
2519         arguments.  All callers changed.
2520         (print_version): New function.
2521         (parseargs): Support --help and --version.
2522         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
2523         changed.
2524         (print_version): New function.
2525         (main): Use getopt_long.  Support --help and --version.
2526         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
2527         --version.
2529 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
2531         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
2532         (update_data): Fix handling of wrapping back
2533         to the beginning of the buffer.
2535         [BZ #9823]
2536         * stdio-common/psignal.c (psignal): Fix test for empty string.
2538 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
2540         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
2541         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
2542         move _null_auth to .rodata.
2544         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
2545         value of 24.
2547         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
2549         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
2550         today than when the original code was written.  Use larger
2551         buffers.  This also makes it unnecessary to have stat information,
2552         if this causes extra efforts.
2553         (__opendir): In case O_DIRECTORY works, don't call fstat just for
2554         __alloc_dir.
2556 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
2558         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
2559         is set.
2560         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
2561         * sysdeps/sh/sh4/__longjmp.S: Likewise.
2562         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
2563         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
2564         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
2565         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
2567 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
2569         * po/ru.po: Update from translation team.
2571 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
2573         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
2574         Add _tid slot to maintain consistency with kernel.
2576 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
2578         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
2579         incomplete characters at end of input buffer.
2580         * libio/Makefile (tests): Add tst-fgetwc.
2581         * libio/tst-fgetwc.c: New file.
2582         * libio/tst-fgetwc.input: New file.
2584 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
2586         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
2588 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
2590         [BZ #9793]
2591         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
2592         *OUTBUFSTART unless the whole output fit into the buffer.
2593         * iconv/Makefile (tests): Add tst-iconv4.
2594         * iconv/tst-iconv4.c: New file.
2596 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
2598         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
2599         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2601 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
2603         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
2604         newer linker scripts.
2606 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
2608         [BZ #7040]
2609         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
2610         inotify_rm_watch should have type int.
2612 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
2614         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
2615         Make aligned_restore_vmx a local symbol.
2616         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
2617         Likewise.
2619 2009-01-30  Andreas Jaeger  <aj@suse.de>
2621         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
2622         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
2623         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
2624         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
2625         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
2626         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
2627         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
2629 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
2631         [BZ #9726]
2632         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
2633         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
2635 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
2637         [BZ #9726]
2638         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2639         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
2640         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2641         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
2643 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
2645         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
2646         memcpy instead of memcmp.
2647         (_dl_setup_pointer_guard): Likewise.
2649 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
2651         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
2652         manipulated brk, use malloc_printerr.
2653         * misc/sbrk.c (__sbrk): Better error handling for nonsense
2654         requests.
2656 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
2658         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
2659         rindex): For C++ add inlines so that they can be recognized as
2660         builtins.
2661         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
2663 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
2664             Jakub Jelinek  <jakub@redhat.com>
2666         * string/string.h: Define correct C++ prototypes for gcc 4.4.
2667         * wcsmbs/wchar.h: Likewise.
2669 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
2671         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
2672         (stackinfo_sub_sp): Define.
2674 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
2676         [BZ #9750]
2677         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
2678         * include/alloca.h (alloca_account): Define.
2679         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
2680         (stackinfo_sub_sp): Define.
2682         * nscd/connections.c (nscd_init): If database file access fails
2683         check whether this is due to permission problems and bail in that
2684         case.
2686         [BZ #9741]
2687         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
2688         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
2690 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2692         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
2693         Add "t" to clobber list.
2694         (INTERNAL_SYSCALL_NCS): Likewise.
2696 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
2698         * nss/getent.c (print_networks): Don't print comma between aliases.
2700 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
2702         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
2704         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
2705         the hash table.
2706         * misc/Makefile (tests): Add bug-hsearch1.
2707         * misc/bug-hsearch1.c: New file.
2709 2009-01-22  Roland McGrath  <roland@redhat.com>
2711         * Makeconfig (%.v.i): Strip trailing # comments,
2712         not only whole-line comments.
2714 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
2716         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
2717         one parameter.  If non-NULL use it to initialize return value.
2718         (_dl_setup_pointer_guard): New function.
2719         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
2720         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
2721         * elf/rtld.c (security_init): Pass _dl_random to
2722         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
2723         pointer_chk_guard.
2724         * elf/dl-sysdep.c (_dl_random): New variable.
2725         (_dl_sysdep_start): Handle AT_RANDOM.
2726         (_dl_show_auxv): Likewise.
2727         * elf/dl-support.c (_dl_random): New variable.
2728         (_dl_aux_init): Handle AT_RANDOM.
2729         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
2730         to _dl_setup_stack_chk_guard.
2732         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
2734 2009-01-10  Roland McGrath  <roland@redhat.com>
2736         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
2738 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
2740         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
2742         [BZ #9706]
2743         * nss/nss_files/files-parse.c (strtou32): New function.
2744         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
2745         across 32-bit and 64-bit platforms.
2746         (INT_FIELD_MAYBE_NULL): Likewise.
2748 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
2750         [BZ #9720]
2751         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
2752         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
2753         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
2754         Likewise.
2756 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
2758         [BZ #697]
2759         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
2760         being NULL also if there are no backreferences.
2761         * posix/rxspencer/tests: Add testcases.
2763 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
2765         [BZ #9697]
2766         * posix/bug-regex17.c: Add testcases.
2767         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
2768         handling.
2770 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2772         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
2773         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
2774         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
2775         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
2776         for elf subdir.
2777         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
2778         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
2779         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
2780         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
2781         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2782         * sysdeps/unix/sysv/linux/s390/Versions: New file.
2784 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
2786         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
2787         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
2788         re_string_skip_chars, re_string_reconstruct): Likewise.
2789         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
2791 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
2793         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
2794         adjust the buffer alignment.
2796 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2798         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
2799         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
2800         net/route.h.
2802         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
2803         flavor to description only when flavor is not NULL.
2805         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
2806         mutex after SIGIO/SIGURG lookup loop.
2808 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2810         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
2812 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
2814         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
2815         handling.
2817 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
2819         * sysdeps/unix/sysv/linux/kernel-features.h
2820         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
2822         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
2823         if no output is written.
2825         * version.h: Bump to 2.10 development.
2827         * posix/getconf.c: Update copyright year.
2828         * nss/getent.c: Likewise.
2829         * iconv/iconvconfig.c: Likewise.
2830         * iconv/iconv_prog.c: Likewise.
2831         * elf/ldconfig.c: Likewise.
2832         * catgets/gencat.c: Likewise.
2833         * csu/version.c: Likewise.
2834         * elf/ldd.bash.in: Likewise.
2835         * elf/sprof.c (print_version): Likewise.
2836         * locale/programs/locale.c: Likewise.
2837         * locale/programs/localedef.c: Likewise.
2838         * nscd/nscd.c (print_version): Likewise.
2839         * debug/xtrace.sh: Likewise.
2840         * malloc/memusage.sh: Likewise.
2841         * malloc/mtrace.pl: Likewise.
2842         * debug/catchsegv.sh: Likewise.
2844 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
2846         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
2847         script.
2849 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
2851         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
2852         gethostbyname4_r function call succeeded, just leave the loop.
2854         [BZ #9694]
2855         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
2856         very end.
2857         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
2858         * wctype/Makefile (tests): Add bug-wctypeh.
2859         * wctype/bug-wctypeh.c: New file.
2861         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
2862         LOCALDOMAIN is defined.
2863         * nscd/nscd_getai.c (__nscd_getai): Likewise.
2865         * sysdeps/x86_64/bits/select.h: New file.
2867         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
2869 2008-12-21  Bruno Haible  <bruno@clisp.org>
2871         [BZ #9677]
2872         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
2873         if no output is written.
2875 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
2877         * login/utmp_file.c (pututline_file): Replace call to dup2 with
2878         libc internal symbol __dup2 to avoid access through the PLT.
2880 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
2882         [BZ #6545]
2883         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
2884         available only for __USE_GNU.
2886         * inet/Makefile (tests): Add tst-getni2.
2887         * inet/tst-getni2.c: New file.
2889         [BZ #7080]
2890         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
2891         NULL when NI_NAMEREQD is set.
2892         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2893         * inet/Makefile (tests): Add tst-getni1.
2894         * inet/tst-getni1.c: New file.
2896 2008-12-03  Petr Baudis  <pasky@suse.cz>
2898         [BZ #7067]
2899         * nscd/connections.c (invalidate_cache): Use prune_run_lock
2900         instead of prune_lock.
2901         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
2902         * nscd/nscd.h (database_dyn): Add prune_run_cache.
2904 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
2906         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
2907         use.
2909         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
2910         handling.
2912         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
2913         after reading name server list.
2915         [BZ #7058]
2916         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
2917         handling for host name aliases.
2919 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
2921         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
2922         instead of doing things manually.
2924 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
2926         * posix/regex_internal.h (build_wcs_upper_buffer):
2927         Return type is reg_error_t.
2929 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
2931         * posix/globtest.sh: Use mktemp to create temporary file and
2932         directory.
2934         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
2935         sets correctly.
2936         (__CPU_CLR_S): Likewise.
2937         (__CPU_ISSET_S): Likewise.
2939 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
2940             Ulrich Drepper  <drepper@redhat.com>
2942         * scripts/firstversion.awk: Use custom comparison function to compare
2943         version numbers.
2944         * scripts/versions.awk: Use sort invocation which can handle
2945         multi-digit sub-version numbers.
2947 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
2949         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
2950         * locale/iso-639.def: Add Chhattisgarhi entry.
2952 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
2954         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
2955         ESRCH return value.
2956         (_nss_dns_gethostbyname4_r): Likewise.
2957         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
2958         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
2959         gethostbyname4_r, we don't have a separate IPv6 status, so copy
2960         the no_data variable.
2962         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
2963         information at the correct index.
2965         * socket/sys/socket.h: Declare accept4.
2966         * socket/accept4.c: New file.
2967         * sysdeps/unix/sysv/linux/accept4.c: New file.
2968         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
2969         * socket/Makefile (routines): Add accept4.
2970         * socket/Versions: Export accept4 with version GLIBC_2.10.
2971         * socket/paccept.c: Removed.
2972         * sysdeps/unix/sysv/linux/paccept.c: Removed.
2973         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
2974         * Versions.def: Define GLIBC_2.10 for libc.
2975         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
2977         * nscd/connections.c: Use accept4.
2979         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
2981 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
2983         * resolv/res_send.c (send_dg): Create sockets with non-blocking
2984         flag already set.
2986         * stdlib/setenv.c (unsetenv): Don't search environment if it does
2987         not exist.
2988         * stdlib/Makefile (tests): Add tst-unsetenv1.
2989         * stdlib/tst-unsetenv1.c: New file.
2991 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
2993         * login/utmp_file.c (file_writable): New variable.
2994         (setutent_file): Don't try to open file for writing.
2995         (pututline_file): Before writing, make descriptor writable if
2996         necessary.
2998 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
3000         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
3001         to IPv4 or IPv6 if an interface has been found.
3003 2008-11-26  Roland McGrath  <roland@redhat.com>
3005         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
3006         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
3008         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
3009         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
3010         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
3012         * elf/elf.h (NT_386_IOPERM): New macro.
3013         (NT_PPC_VSX): New macro.
3015 2008-11-25  Roland McGrath  <roland@redhat.com>
3017         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
3018         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
3019         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
3020         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
3021         Subdirectories moved to ports repository.
3022         * configure.in (base_machine): Remove alpha case.
3024 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
3026         * sysdeps/mach/strerror_l.c: New file.
3028 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
3030         [BZ #6411]
3031         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
3032         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
3033         magic numbers.
3034         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
3035         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
3036         (relax_fenv_state): Same as above.
3037         (FPSCR_29): Reserve bit in ISA 2.05.
3038         (FPSCR_NI): Provide define for compat.
3039         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
3040         magic numbers.
3041         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
3042         magic numbers.
3043         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
3044         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
3045         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
3046         access to hwcap to account for hwcap size increase to uint64_t.
3047         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
3048         Likewise.
3049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3050         (*setcontext): Likewise.
3051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3052         New file.
3053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3054         New file.
3055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3056         (*setcontext): dynamically select mtfsf insn based on
3057         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
3058         increase to uint64_t.
3059         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3060         (*swapcontext): dynamically select mtfsf insn based on
3061         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
3062         increase to uint64_t.
3063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3064         New file.
3065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3066         New file.
3067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3068         (*setcontext): dynamically select mtfsf insn based on
3069         PPC_FEATURE_HAS_DFP.
3070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3071         (*swapcontext): dynamically select mtfsf insn based on
3072         PPC_FEATURE_HAS_DFP.
3074 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
3076         * version.h: Bump for 2.9 release.
3077         * include/features.h (__GLIBC_MINOR__): Bump to 9.
3079         [BZ #7029]
3080         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
3081         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
3082         all the rounding.
3084 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
3086         [BZ #7009]
3087         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
3088         unknown request types for now.
3090 2008-11-11  Roland McGrath  <roland@redhat.com>
3092         * sysdeps/x86_64/configure: New file.
3094         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
3095         * configure: Regenerated.
3097 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3099         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
3100         correct instruction to remove the stack frame.
3102 2008-11-03  Michael Matz  <matz@suse.de>
3104         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
3105         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
3107 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
3109         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
3110         Remove.
3112         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
3113         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
3114         of the thread variable instead of void *.
3115         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
3116         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
3117         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3118         __libc_tsd_define arguments.
3119         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
3120         __libc_tsd_address arguments.  Remove union hack.
3121         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
3122         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
3123         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
3124         Adjust __libc_tsd_{set,get} arguments.
3125         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3126         __libc_tsd_define arguments.
3127         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
3128         arguments.
3129         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3130         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
3131         (LOCALE): Adjust __libc_tsd_define arguments.
3132         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
3133         arguments.
3134         (LOCALE): Adjust __libc_tsd_define arguments.
3135         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
3136         arguments.
3137         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
3138         arguments.
3140 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
3142         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
3143         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3145 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
3147         [BZ #6966]
3148         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
3150 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
3151             Ulrich Drepper  <drepper@redhat.com>
3153         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
3154         definition for GCC 3.1 and later.
3156 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
3158         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
3159         refetch dtv, as it might have changed.
3160         * elf/Makefile: Add rules to build and run tst-tls18.
3161         * elf/tst-tls18.c: New test.
3162         * elf/tst-tlsmod18a.c: New file.
3164 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
3166         [BZ #6875]
3167         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
3169 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
3171         [BZ #6867]
3172         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
3174         [BZ #6919]
3175         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
3176         Fix length of copy operation.
3178 2008-10-02  Pierre Habouzit <madcoder@debian.org>
3180         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
3181         and fix its calling convention.
3183 2008-10-07  Andreas Schwab  <schwab@suse.de>
3185         [BZ #6942]
3186         * resolv/res_send.c (send_vc): Fix last change.
3187         (send_dg): Align here as well.
3189 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
3191         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
3192         return value in case rlimit is RLIM_INFINITY.
3194         [BZ #6947]
3195         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
3196         for UL_SETFSIZE.
3197         * resource/Makefile (tests): Add bug-ulimit1.
3198         * resource/bug-ulimit1.c: New file.
3200         [BZ #6974]
3201         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
3202         without dot.  Properly terminate the string with a null byte.
3203         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
3205         [BZ #6980]
3206         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
3207         negative sizees.
3208         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
3209         negative __size.
3211         [BZ #6995]
3212         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
3214 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
3216         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
3217         abort if there is no initgroups_dyn function.
3219         * resolv/res_send.c (send_dg): On timeout, only return nonzero
3220         result if any of the queries really provided an answer.
3222 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
3224         * po/lt.po: Update from translation team.
3226 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
3228         * po/id.po: Update from translation team.
3230 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
3232         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
3233         Fix tests for existence of second reply.
3235 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
3237         * po/id.po: New file.
3238         Contributed by the Indonesian translation team.
3240 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
3242         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
3243         initialization.
3245 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
3247         * elf/Makefile: Add rules to build and run tst-tls17.
3248         * elf/tst-tls17.c: New test.
3249         * elf/tst-tlsmod17a.c: New file.
3250         * elf/tst-tlsmod17b.c: Likewise.
3252 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
3254         * stdlib/divmod_1.c: Use correct type for dummy variable.
3255         * stdlib/mod_1.c: Likewise.
3257 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
3259         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
3261 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
3263         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
3264         __nonnull order for C++.
3265         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
3266         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
3268 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
3270         * stdlib/longlong.h: Update from GCC.
3272 2008-10-09  Jakub Jelinek <jakub@redhat.com>
3273             David S. Miller  <davem@davemloft.net>
3275         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
3276         make sure any registers used with 64-bit 'branch-on-register'
3277         instructions have their top 32-bits clear.
3278         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
3279         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
3281 2008-09-18  Andreas Schwab  <schwab@suse.de>
3283         [BZ #6942]
3284         * resolv/res_send.c (send_vc): Fix use of unaligned address.
3285         Properly handle partial reads.
3287 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
3289         * elf/elf.h (STO_MIPS_PLT): New.
3290         (R_MIPS_COPY): New.
3291         (R_MIPS_JUMP_SLOT): New.
3292         (R_MIPS_NUM): Redefine to 128.
3293         (DT_MIPS_PLTGOT): New.
3294         (DT_MIPS_RWPLT): New.
3295         (DT_MIPS_NUM): Redefine to 0x35.
3297 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
3299         * timezone/africa: Update from tzdata2008f.
3300         * timezone/asia: Likewise.
3301         * timezone/australasia: Likewise.
3302         * timezone/europe: Likewise.
3303         * timezone/leapseconds: Likewise.
3304         * timezone/northamerica: Likewise.
3305         * timezone/southamerica: Likewise.
3306         * timezone/zone.tab: Likewise.
3308 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
3310         * nscd/connections.c: Disable use of paccept for now.
3312 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
3314         * socket/Versions: Remove paccept export for GLIBC_2.9.
3315         * socket/Makefile (routines): Remove paccept.
3316         * socket/sys/socket.h: Remove paccept declaration.
3318         * po/sv.po: Update from translation team.
3320 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
3322         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
3323         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
3325 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
3327         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
3328         Patch by Olivier Fourdan <ofourdan@redhat.com>.
3330 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
3332         * sunrpc/rpc/svc.h: Declare svcfd_create.
3333         Patch by Michael Solberg <msolberg@redhat.com>.
3335 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
3336             Ulrich Drepper  <drepper@redhat.com>
3338         * malloc/malloc.c (public_vALLOc): Try other arenas in case
3339         _int_valloc fails.
3340         (public_pVALLOc): Likewise.
3342 2008-09-02  Andreas Jaeger  <aj@suse.de>
3344         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
3345         commit.
3347 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
3349         [BZ #6860]
3350         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
3352 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
3354         * Makefile (check-data): Check data directory in add-ons.
3355         * elf/Makefile (check-data): Likewise.
3357 2008-08-18  Roland McGrath  <roland@redhat.com>
3359         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
3360         * configure: Regenerated.
3361         * config.make.in (cflags-cpu): New substituted variable.
3362         (with-cpu): Variable removed.
3363         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
3365 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
3367         [BZ #6845]
3368         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
3369         __signbitl definition and __LONG_DOUBLE_128__ guard from:
3370         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
3371         redundant.  Functions which call floating point assembler operations
3372         should go into a sysdeps powerpc/fpu directory.
3374 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
3376         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
3377         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
3379 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
3381         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
3383         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
3384         change related to AT_EXECFN.  We cannot use that string.
3385         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
3386         _dl_execfn member.
3387         * elf/dl-support.c: Remove _dl_execfn variable.
3388         (_dl_aux_init): Remove handling of AT_EXECFN.
3389         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
3390         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
3392 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
3394         [BZ #6544]
3395         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
3396         byte gets added to writes and seeks from the end use the length of
3397         the buffer and not the currently terminating NUL byte.
3399         [BZ #6634]
3400         * login/utmp_file.c (getutent_r_file): Take additional parameter.
3401         Set to true if locking failed.
3402         (getutid_r_file): Adjust caller.
3403         (pututline_file): Likewise.  Return NULL in this case.
3404         Patch mostly by halesh.s@gmail.com.
3406 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
3408         [BZ #6589]
3409         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
3410         Define.
3411         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
3413 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
3415         [BZ #6839]
3416         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
3417         macro since it is now available in elf/dynamic-link.h.
3419 2008-08-12  Roland McGrath  <roland@frob.com>
3421         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
3422         in case used outside of libc.
3423         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
3425 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
3427         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
3428         directly instead of going through dn_comp.
3430 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
3432         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3433         Fix asm constraints.
3435 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
3437         [BZ #6790]
3438         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
3439         (IPV6_PMTUDISC_PROBE): Likewise.
3441 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
3443         [BZ #6791]
3444         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
3446 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
3447             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3449         [BZ #6817]
3450         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
3451         Added the members 'vsx' and 'arch_2_06'.
3452         (_dl_powerpc_platforms): Add the member 'power7'.
3453         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
3454         to reflect the changes required by VSX and ISA 2.06.
3455         Modify _DL_PLATFORMS_COUNT to reflect the addition of
3456         'power7'.
3457         Defined PPC_PLATFORM_POWER7.
3458         (_dl_string_platform): Add support for POWER7.
3459         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
3460         capability and ISA 2.06.
3462 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
3464         [BZ #6824]
3465         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
3466         macro to detect use of 128 bit long double.
3467         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
3469 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
3471         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
3473         [BZ #5794]
3474         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
3475         parameters.
3476         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3477         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3479 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
3481         * nscd/connections.c (main_loop_poll): Pass a buffer which is
3482         guaranteed to be large enough to read inotify event.  Ignore
3483         EAGAIN error.  Better error message.  Add branch predicition.
3484         (main_loop_epoll): Likewise.
3486 2008-08-02  Roland McGrath  <roland@frob.com>
3488         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3489         Add memory clobbers.
3491 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
3493         * manual/arith.texi: Avoid @strong{Note:}.
3494         * manual/creature.texi: Likewise.
3495         * manual/filesys.texi: Likewise.
3496         * manual/math.texi: Likewise.
3497         * manual/memory.texi: Likewise.
3498         * manual/resource.texi: Likewise.
3499         * manual/syslog.texi: Likewise.
3500         * manual/time.texi: Likewise.
3502         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
3503         to prevent warning.
3505 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
3507         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
3508         new epoll_create1 interface.
3509         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3510         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
3511         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
3513         * include/arpa/nameser.h (NS_GET16): Use const pointer.
3514         (NS_GET32): Likewise.
3516         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
3517         syscalls, too.
3519         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
3520         use the AT_EXECFN value if it is no absolute path.
3521         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
3522         __ASSUME_AT_EXECFN.
3524         * Versions.def: Add GLIBC_2.9 to libresolv.
3525         * include/resolv.h: Remove hidden proto declarations for __ns_*
3526         functions.  Add them for __dn_count_labels and __p_secstodate.
3527         * include/arpa/nameser.h: Add a number of hidden proto declarations.
3528         Define ns_msg_getflags macro here.
3529         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
3530         and __p_secstodate.
3531         * resolv/Versions: Export functions from <arpa/nameser.h> from
3532         libresolv in version GLIBC_2.9.
3533         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
3534         hidden definitions.
3535         * resolv/ns_netint.c: Likewise.
3536         * resolv/ns_parse.c: Likewise.
3537         * resolv/ns_print.c: Likewise.
3538         * resolv/ns_samedomain.c: Likewise.
3539         * resolv/ns_ttl.c: Likewise.
3540         * resolv/arpa/nameser_compat.h: Likewise.
3541         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
3542         function calls.
3543         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
3544         instead of ns_get16.
3545         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
3546         __ns_get32 instead of ns_get16 and ns_get32 respectively.
3547         (gaih_getanswer_slice): Likewise.
3548         * resolv/Makefile (libresolv-routines): Add ns_date.
3549         * resolv/ns_date.c: New file.
3551         * elf/Makefile (check-localplt.out): Also check libresolv and
3552         libcrypt.
3554 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
3556         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3557         __ASSUME_O_CLOEXEC.
3559 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
3561         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
3562         buffer passed to NSS functions.
3564         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
3566         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
3567         Define.
3569         * misc/syslog.c (openlog_internal): Fix compile problem.
3571 2008-07-28  Roland McGrath  <roland@redhat.com>
3573         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
3575 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
3577         * io/ftw.c (add_object): Remove inline to avoid warning.
3579         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
3581         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
3582         Use it instead of locally defined resplen2 variable.
3583         (res_nsend): Adjust for __libc_res_nsend interface change.
3584         (send_vc): Initialize *resplen2 if necessary.  Read length of
3585         package into an appropriately aligned variable.  Store converted length
3586         in new variable and use it appropriately.
3587         Add branch prediction help.
3588         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
3589         and pass it on to __libc_res_nsend.  Adjust all callers.
3590         (__libc_res_nsearch): Likewise.
3591         (__libc_res_nqeurydomain): Likewise.
3592         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
3593         change.
3594         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
3595         Define resplen2 variable and pass it to __libc_res_nsearch and then
3596         to gaih_getanswer.
3597         (getanswer_r): In case of incorrect DNS data don't overread buffer.
3598         Add branch prediction.
3599         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
3600         (gaih_getanswer): Don't decode second slice if first one failed due
3601         to a too small buffer.  Don't let not found status of second
3602         decoder shadow results of the first.
3603         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
3604         and __libc_res_nquery interface changes
3605         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
3606         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
3607         __libc_res_nsearch, and __libc_res_nsend.
3608         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
3609         change.
3610         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
3611         __libc_res_nsearch interface changes.
3613 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
3615         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
3617         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
3618         file descriptors with close-on-exec set.
3619         (exec_comm_child): Fix the case where the write end of the pipe is
3620         STDOUT_FILENO already.  In case it is, clear close-on-exec.
3622         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
3623         * io/pipe2.c: Likewise.
3624         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
3625         instead of __ASSUME_PACCEPT.
3626         * include/unistd.h: Declare __have_pipe2.
3627         * libio/iopopen.c: Implement "e" flag.
3628         * libio/Makefile (tests): Add tst-popen1.
3629         * libio/tst-popen1.c: New file.
3631         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
3632         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3634 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
3636         [BZ #6771]
3637         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
3638         success call of _IO_SEEKOFF or calls which failed because the
3639         descriptor is for a pipe.
3641         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
3642         magic number.
3644         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
3646         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
3647         F_SETFD use if we know fopen set the flag.
3649         * login/utmp_file.c (setutent_file): Minor optimization in case
3650         O_CLOEXEC is available.
3652 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
3654         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
3655         * elf/Makefile: Use pie-ccflag variable.
3656         * nscd/Makefile: Likewise.
3657         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
3659 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
3661         [BZ #6724]
3662         * Versions.def: Add GLIBC_2.9 version tag for libutil.
3663         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
3664         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
3665         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
3666         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
3667         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
3668         utmp32, utmpx32 and login32.
3669         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
3670         versions of struct utmp functions to libc and libutil.
3671         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
3672         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
3673         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
3674         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
3675         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
3676         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
3677         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
3678         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
3679         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
3680         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
3681         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
3682         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
3683         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
3684         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
3685         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
3686         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
3687         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
3688         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
3689         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
3690         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
3691         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
3692         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
3694 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
3696         * scripts/gen-as-const.awk: Generate more widely usable code by
3697         using 64-bit arithmetic.
3699         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3700         the same treatment as narrow output code in last patch.
3702         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
3704         [BZ #6763]
3705         * elf/dl-load.c (local_strdup): Remove inline.
3706         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
3707         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
3708         part of the object.
3710         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
3712 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
3714         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
3715         the new syscalls, too.
3717         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
3718         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
3720         [BZ #6698]
3721         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
3722         parameter for end of buffer.  If temporary copy is too large use
3723         malloc.
3724         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
3725         interface change.
3726         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
3727         string rewrite when allocating buffer.
3729         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
3730         syscalls, too.
3732         * nscd/connections.c (nscd_init): Clean up fcntl call.
3734         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
3735         SOCK_NONBLOCK if possible.
3737         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
3738         SOCK_CLOEXEC if available.
3740         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
3741         __libc_clntudp_bufcreate_internal.
3742         * include/sys/socket.h: Declare __have_sock_cloexec.
3743         * socket/Makefile (aux): Add have_sock_cloexec.
3744         * socket/have_sock_cloexec.c: New file.
3745         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
3746         __libc_clntudp_bufcreate.
3747         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
3748         which takes an additional parameter.  Create socket with non-blocking
3749         mode and close-on-exec flag set, if wanted.
3750         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
3751         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
3752         instead of clntudp_create.  The socket has already the close-on-exec
3753         flag set if SOCK_CLOEXEC is defined.
3755 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
3757         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3758         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
3759         appropriate.
3760         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
3761         non-blocking mode by using socket, paccept, and inotify_init1.
3763         * Versions.def (glibc): Add GLIBC_2.9.
3764         * io/Makefile (routines): Add dup3 and pipe2.
3765         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
3766         * io/dup3.c: New file.
3767         * io/pipe2.c: New file.
3768         * posix/unistd.h: Declare dup3 and pipe2.
3769         * socket/Makefile (routines): Add paccept.
3770         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
3771         * socket/paccept.c: New file.
3772         * socket/sys/socket.h: Declare paccept.
3773         * sysdeps/unix/syscalls.list: Add entry for dup3.
3774         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
3775         epoll_create2 and inotify_init1.
3776         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
3777         * sysdeps/unix/sysv/linux/paccept.c: New file.
3778         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
3779         possible.
3780         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
3781         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
3782         inotify_init1, and pipe2 entries.
3783         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
3784         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
3785         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
3786         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
3787         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
3788         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
3789         SOCK_NONBLOCK.
3790         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
3791         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
3792         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
3793         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
3794         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
3795         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
3796         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
3797         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
3798         EPOLL_NONBLOCK.  Declare epoll_create2.
3799         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
3800         EFD_NONBLOCK.
3801         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
3802         IN_NONBLOCK.  Declare inotify_init1.
3803         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
3804         SFD_NONBLOCK.
3805         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
3806         TFD_NONBLOCK.
3808         * elf/elf.h: Define AT_EXECFN.
3809         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
3810         LD_ORIGIN_PATH.
3811         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
3812         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
3813         if __ASSUME_AT_EXECFN is defined.
3814         (_dl_aux_init): Handle AT_EXECFN.
3815         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
3816         for 2.6.27 and up.
3817         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
3818         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
3819         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
3820         _dl_execfn if available and avoid compatibility code if
3821         __ASSUME_AT_EXECFN is defined.
3823         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
3824         _dl_discover_osversion only for older kernels.
3826 2008-07-22  Roland McGrath  <roland@frob.com>
3828         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
3830 2008-07-21  Roland McGrath  <roland@frob.com>
3832         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
3833         returned too much data out of line.
3835 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
3837         * locale/setlocale.c (setname): Remove inline to avoid compiler
3838         warning.
3840         [BZ #6712]
3841         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
3843 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
3845         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
3846         doesn't manage to write anything, fail.
3848         * malloc/hooks.c (__malloc_check_init): Remove printf.
3850 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3852         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
3854 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
3856         * nscd/connections.c (main_loop_poll): Fix handling of read errors
3857         from inotify.
3858         (main_loop_epoll): Likewise.
3860 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
3862         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
3864         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
3865         if DEBUG is defined.
3867         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
3868         query.  Adjust buffer size computation for padding.
3870 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
3872         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
3873         * stdio-common/tst-setvbuf1.c: New file.
3874         * stdio-common/tst-setvbuf1.expect: New file.
3876         [BZ #6719]
3877         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
3878         when selecting fully-buffered stream.
3879         Patch by Wang Xin <wxinee@gmail.com>.
3881 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3883         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
3884         (__open_2): New function.
3885         (__open64_2): New alias to __open_2.
3886         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
3887         (__openat_2): New function.
3888         (__openat64_2): New alias to __openat_2.
3890 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
3892         [BZ #6723]
3893         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
3895 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3897         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
3898         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
3899         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
3900         __hurd_dfail.
3901         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
3902         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
3903         * sysdeps/mach/hurd/send.c (__send): Likewise.
3904         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
3905         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
3907 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3909         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
3910         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
3911         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
3912         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
3913         * hurd/get-host.c (_hurd_get_host_config): Likewise.
3914         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
3916 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
3918         [BZ #6657]
3919         * time/strptime_l.c: Don't clear s.era_cnt after successful match
3920         of %EY.
3921         Patch by Petr Baudis.
3923 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
3925         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
3926         Patch by Peter Jones <pjones@redhat.com>.
3928 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
3930         [BZ #6654]
3931         * stdlib/canonicalize.c (__realpath): readlink can write too much
3932         into the buffer on platforms without PATH_MAX.
3934 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
3936         [BZ #6653]
3937         * posix/tst-regex.c (main): Rename to...
3938         (do_test): ... this. Remove cmdline option processing.
3939         (TIMEOUT): Define.
3940         (TEST_FUNCTION): Define.
3941         (CMDLINE_OPTIONS): Define.
3943 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
3945         [BZ #5210]
3946         * configure.in: Add -Werror to -fstack-protector test to catch
3947         unsupported architectures.
3948         Patch by Gilles Esponasse <g.esp@free.fr>.
3950 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
3952         * stdlib/tst-setcontext.c: Set back_in_main before exit if
3953         getcontext returns ENOSYS.
3955 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
3957         * nscd/connections.c (main_loop_poll): Fix test for read error.
3958         (main_loop_epoll): Likewise.
3960 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
3962         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
3963         better place so it is not called when nscd is used.
3965         * nscd/connections.c: Also recognize and handle changes to the
3966         resolver configuration file.
3968 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
3970         * time/strftime.c: Pass reference to tzset_called around to handle
3971         recursive calls.
3973         [BZ #6612]
3974         * time/strftime.c (__strftime_internal): Call tzset() only
3975         when printing timezone-dependent values.
3976         Based on a patch by Petr Baudis <pasky@suse.cz>.
3978         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
3979         unconditionally use second gaih_getanswer_slice result.
3981         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
3982         (getaddrinfo): RES must always be non-NULL.
3984 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
3986         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
3987         cr[34] registers.
3988         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3989         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3990         Likewise.
3991         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
3992         register.
3994 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
3996         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
3997         fields.
3998         * nscd/connections.c (inotify_fd): New variable.
3999         (nscd_init): Try to open an inotify descriptor.
4000         If successful, watch files for databases using inotify instead of
4001         having prune threads stat the files.
4002         (nscd_run_prune): Recognize clear_cache flag being set and call
4003         prune_cache appropriately.
4004         (main_loop_poll): Add inotify descriptor to wait set and handle the
4005         reported changes.
4006         (main_loop_epoll): Likewise.
4007         * nscd/cache.c (prune_cache): Don't stat files for databases if
4008         inotify is used.
4009         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
4010         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
4012         * nscd/grpcache.c (cache_addgr): Correctly compute size of
4013         fixed-size portion of the record.
4014         * nscd/servicescache.c (cache_addserv): Likewise.
4015         * nscd/pwdcache.c (cache_addpw): Likewise.
4016         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4018 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
4020         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
4021         out we don't use uninitialized memory.
4023         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
4024         the client.
4026 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
4028         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
4029         ignore T_DNAME messages.
4030         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
4032 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
4034         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
4035         Avoid segfault if first GETC returns eof/'\0'/'\n'.
4037 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
4039         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
4040         instead of portstr to nscd_getserv_r.  Patch by
4041         Roman Kagan <rkagan@mail.ru>.
4043 2008-05-26  Jim Meyering  <meyering@redhat.com>
4045         Remove more useless "if" tests before "free".
4046         * include/inline-hashtab.h (htab_delete): Likewise.
4047         * libio/freopen.c (freopen): Likewise.
4048         * libio/freopen64.c (freopen64): Likewise.
4049         * locale/programs/ld-collate.c (collate_read): Likewise.
4050         * misc/fstab.c (libc_freeres_fn): Likewise.
4051         * posix/glob.c (globfree): Likewise.
4053 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
4055         * string/Makefile (strop-tests): Add memmem.
4056         * string/test-memmem.c: New file.
4057         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
4058         (test_init): Size buf1 according to BUF1PAGES.
4060 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
4062         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
4063         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
4064         (CFLAGS-scanf17.c): New.
4065         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
4066         * stdio-common/scanf15.c (main): Likewise.
4067         * stdio-common/scanf16.c: New file.
4068         * stdio-common/scanf17.c: New file.
4070 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
4072         * resolv/res_send.c (send_dg): If we already have one of two
4073         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
4074         use the one answer insted of failing.
4076 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
4078         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
4079         being executed on PowerPC as the expected result exceeds IBM
4080         long double 128 __LDBL_MAX__.
4082 2008-05-21  Roland McGrath  <roland@redhat.com>
4084         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
4086         * Makefile (check-data): Use $(abi-name) before other guesses.
4087         Look in $(add-ons) dirs before scripts/data/.
4088         * elf/Makefile (check-data): Likewise.
4090         * scripts/soversions.awk: Grok ABI line.
4091         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
4092         Emit definition for abi-name variable.
4094 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
4096         * string/endian.h: Define new fixed-size hto* and *toh macros only
4097         if [__USE_BSD].
4099         * iconvdata/Depend: Add localedata.
4101 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4103         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
4105 2008-05-08  David S. Miller  <davem@davemloft.net>
4107         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
4108         HIDDEN_JUMPTARGET.
4109         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4110         (__SYSCALL_CLOBBERS): Remove %g* registers.
4111         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4112         (__SYSCALL_CLOBBERS): Likewise.
4113         * scripts/data/localplt-sparc-linux-gnu.data: New file.
4114         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
4116 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
4118         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4119         (CALL_ERRNO_LOCATION): Define.
4120         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4121         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4122         (CALL_ERRNO_LOCATION): Define.
4123         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4124         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
4125         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
4127 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
4129         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
4130         variable.
4132 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
4134         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
4135         (FIRST_FRAME_POINTER): Define.
4137 2008-05-09  David S. Miller  <davem@davemloft.net>
4139         * sysdeps/sparc/sparc64/backtrace.c: New file.
4141 2008-05-14  David S. Miller  <davem@davemloft.net>
4143         * sysdeps/sparc/machine-gmon.h: New file.
4144         * sysdeps/sparc/sparc-mcount.S: Likewise.
4145         * sysdeps/sparc/Makefile: Add sparc-mcount target to
4146         sysdep_routines in gmon directory.
4148 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
4150         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
4152 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
4154         * resolv/res_query.c (__libc_res_nquery): In case one of two
4155         answer was too short don't try to read that answer's header.
4157         * resolv/res_send.c (send_dg): In case of timeout and there are
4158         two queries and one has been answered, return value indicating
4159         success.
4161 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
4163         * nscd/cache.c (cache_add): Take additional parameter specifying
4164         whether this is in response of a cache refill.  Check alignment
4165         of package data.  Revamp waking of pruning thread.
4166         (prune_cache): Small optimization.
4167         * nscd/nscd.h: Adjust cache_add prototypes.
4168         * nscd/aicache.c: Adjust cache_add calls.
4169         * nscd/grpcache.c: Likewise.
4170         * nscd/hstcache.c: Likewise.
4171         * nscd/initgrcache.c: Likewise.
4172         * nscd/pwdcache.c: Likewise.
4173         * nscd/servicescache.c: Likewise.
4174         * nscd/connections.c (restart): Really disable cache use before
4175         exec attempt.  If it fails, reenable cache.
4176         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
4177         time to max to be able to notice concurrent cache additions.  Unlock
4178         prune_lock while performing gc.  Afterwards compute wakeup time with
4179         current wakeup_time value in mind.
4181 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
4183         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
4185         * nscd/mem.c (gc): Correctly determine highest used array element
4186         in mark.
4188         * nscd/mem.c (markrange): Add assert to check entries are all
4189         aligned.  Small cleanup in bitmap use.
4191         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
4192         blockoff of type nscd_ssize_t.
4193         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
4194         (mempoll_alloc): Record block offset and not address.
4196         * nscd/mem.c (gc): Fix test for stack overuse.
4198         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
4199         more asserts.
4201         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
4202         entry is available, believe it.
4204         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
4205         no answers return NSS_STATUS_NOTFOUND.
4206         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
4207         buffer does not have any content.
4209 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
4211         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
4213         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
4214         lookup, don't assign canon unconditionally.
4216 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
4218         * string/Makefile (distribute): Add str-two-way.h.
4220 2008-03-29  Eric Blake  <ebb9@byu.net>
4222         Rewrite string searches to O(n) rather than O(n^2).
4223         * string/str-two-way.h: New file.  For linear fixed-allocation
4224         string searching.
4225         * string/memmem.c: New implementation.
4226         * string/strstr.c: New implementation.
4227         * string/strcasestr.c: New implementation.
4229 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
4231         * posix/regcomp.c (optimize_utf8): Add a note on why we test
4232         opr.ctx_type.
4233         (calc_first): Initialize constraint field.
4234         (duplicate_node_closure): Use it instead of special casing ANCHORS.
4235         Use search_duplicated_node to avoid loops.  Fix grammar.
4236         (duplicate_node): Merge constraint field for all node types.
4237         (calc_eclosure_iter): Look at constraint field for all node types.
4238         * posix/regex_internal.c (create_cd_newstate): Don't look at
4239         create_cd_newstate.
4241 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
4243         [BZ #6428]
4244         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
4246         [BZ #6442]
4247         * string/endian.h: Add macros for fixed-size endian conversion.
4248         * bits/byteswap.h: Allow inclusion from <endian.h>.
4249         * sysdeps/i386/bits/byteswap.h: Likewise.
4250         * sysdeps/ia64/bits/byteswap.h: Likewise.
4251         * sysdeps/s390/bits/byteswap.h: Likewise.
4252         * sysdeps/x86_64/bits/byteswap.h: Likewise.
4253         * string/Makefile (tests): Add tst-endian.
4254         * string/tst-endian.c: New file.
4256         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
4257         Patch by Reuben Thomas.
4259 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
4261         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
4263 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
4265         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
4267         [BZ #6461]
4268         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
4269         Add missing braces.
4270         (BODY for __gconv_transform_internal_ascii): Likewise.
4272         [BZ #6472]
4273         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
4274         to be treated like link-local addresses.
4275         (match_prefix): Don't treat IPv4 loopback address special when
4276         converting to v4 mapped addressed.
4278         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
4279         if necessary.
4280         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
4281         * posix/tst-rfc3484-2.c: Likewise.
4282         * posix/tst-rfc3484-3.c: Likewise.
4284         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
4285         and SCTP.
4287         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
4289         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
4291         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
4293 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
4295         * po/lt.po: New file.  From Lituanian translation team.
4297 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
4299         Introduce TLS descriptors for i386 and x86_64.
4300         * include/inline-hashtab.h: New file, copied from 2005's
4301         libiberty, with fix for memory leak imported afterwards by
4302         Glauber de Oliveira Costa.
4303         * elf/tlsdeschtab.h: New file.
4304         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
4305         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
4306         (CHECK_STATIC_TLS): Move to...
4307         * elf/dynamic-link.h: ... this file.
4308         (TRY_STATIC_TLS): New macro.
4309         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
4310         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
4311         R_386_TLS_DESC): Define.
4312         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
4313         binutils.
4314         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
4315         R_X86_64_TLSDESC): Define.
4316         (R_386_NUM, R_X86_64_NUM): Adjust.
4317         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
4318         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4319         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4320         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
4321         release tlsdesc_table.
4322         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
4323         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
4324         (elf_machine_rel): Handle R_386_TLS_DESC.
4325         (elf_machine_rela): Likewise.
4326         (elf_machine_lazy_rel): Likewise.
4327         (elf_machine_lazy_rela): Likewise.
4328         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
4329         * sysdeps/i386/dl-tlsdesc.S: New file.
4330         * sysdeps/i386/dl-tlsdesc.h: New file.
4331         * sysdeps/i386/tlsdesc.c: New file.
4332         * sysdeps/i386/tlsdesc.sym: New file.
4333         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
4334         tlsdesc_table.
4335         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
4336         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4337         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4338         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
4339         release tlsdesc_table.
4340         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
4341         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
4342         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
4343         (elf_machine_rel): Handle R_X86_64_TLSDESC.
4344         (elf_machine_rela): Likewise.
4345         (elf_machine_lazy_rel): Likewise.
4346         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
4347         (__tls_get_addr): Do not declare for non-shared compiles.
4348         * sysdeps/x86_64/dl-tlsdesc.S: New file.
4349         * sysdeps/x86_64/dl-tlsdesc.h: New file.
4350         * sysdeps/x86_64/tlsdesc.c: New file.
4351         * sysdeps/x86_64/tlsdesc.sym: New file.
4352         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
4353         tlsdesc_table for both 32- and 64-bit structs.
4355 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
4357         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
4358         its own function.  This reduces the frame setup costs and more.
4360 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
4362         [BZ #3406]
4363         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
4364         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
4366 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
4368         * io/openat.c (__openat_2): Also pass fd to __openat.
4369         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
4370         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
4372         * string/tester.c (test_memcmp): Add a few more tests.
4373         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
4375 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
4377         * nscd/cache.c (cache_add): Before returning with failure and this
4378         is the first use of the record, mark it as unusable.
4379         * nscd/aicache.c: Don't touch the dataset after cache_add returns
4380         reporting a failure.
4381         * nscd/grpcache.c: Likewise
4382         * nscd/hstcache.c: Likewise.
4383         * nscd/initgrcache.c: Likewise.
4384         * nscd/pwdcache.c: Likewise.
4385         * nscd/servicescache.c: Likewise.
4387 2008-05-10  Roland McGrath  <roland@redhat.com>
4389         [BZ #6505]
4390         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
4392 2008-05-08  David S. Miller  <davem@davemloft.net>
4394         * misc/truncate64.c (truncate64): Use __truncate not truncate.
4396         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
4397         (__ieee754_y0l): Likewise.
4398         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
4399         (__ieee754_y1l): Likewise.
4400         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
4401         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
4402         frexpl and ldexpl.  math_private.h provides them and the latter
4403         is not even used.
4404         (__log1pl): Use __frexpl.
4406 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
4408         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
4409         prototypes.
4410         * include/arpa/nameser_compat.h: Define T_UNSPEC.
4411         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
4412         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
4413         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
4414         af==AF_UNSPEC.
4415         (_nss_nis_gethostbyname4_r): New function.
4416         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
4417         Change to also handle af==AF_UNSPEC.
4418         (get_tablename): New function.  Use it to avoid duplication.
4419         (_nss_nisplus_gethostbyname4_r): New function.
4420         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
4421         available.
4422         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
4423         * nss/nss.h: Define struct gaih_addrtuple.
4424         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
4425         af==AF_UNSPEC.
4426         (_nss_files_gethostbyname4_r): New function.
4427         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
4428         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
4429         calls.
4430         * resolv/res_query.c (__libc_res_nquery): Take two additional
4431         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
4432         look up IPv4 and IPv6.
4433         Change all callers.
4434         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
4435         for an additional query and answer buffer.  Pass to send_vc and
4436         send_dg.
4437         (send_vc): Send possibly two requests and receive two answers.
4438         (send_dg): Likewise.
4439         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
4440         __libc_res_nquery.
4441         (_nss_dns_gethostbyname4_r): New function.
4442         (gaih_getanswer_slice): Likewise.
4443         (gaih_getanswer): Likewise.
4444         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
4445         __libc_res_nquery call.
4446         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
4447         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
4448         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
4449         available.
4451 2008-05-05  David S. Miller  <davem@davemloft.net>
4453         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
4454         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
4456 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4458         Fix termios bit macros.
4459         Move *DLY definitions where they belong, in termios.h.
4460         Add *[0-3] definitions.
4461         Fixes confusion between VT and FF.
4462         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
4463         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
4464         are already defined to avoid collision with termios.h.
4465         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
4466         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
4467         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
4468         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
4469         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
4470         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
4471         VTDLY, VT0, VT1): New macros.
4472         [__USE_GNU] (OLCUC): Change value of macro.
4473         [__USE_XOPEN] (OFILL): New macro.
4474         [__USE_BSD] (CRTSCTS): Change value.
4475         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
4476         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
4477         (B7200, B14400, B28800, B76800): New macros.
4479 2008-05-01  David S. Miller  <davem@davemloft.net>
4481         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
4482         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
4483         (gen-as-const-headers): Add it.
4484         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
4485         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
4486         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
4487         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
4489         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
4490         six system call parameters.
4491         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
4493 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
4495         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
4496         RUSAGE_LWP.
4497         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
4498         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
4500 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
4502         * stdlib/tst-setcontext.c: Include unistd.h.
4504 2008-04-25  David S. Miller  <davem@davemloft.net>
4506         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
4507         Pass "union semun" properly in to sys_ipc, it must be passed
4508         by value, not by reference.
4510 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
4512         * nscd/Makefile (nscd-cflags): Set back to -fpie.
4513         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
4514         * nscd/connections.c (mem_in_flight): Likewise.
4516         * nscd/nscd.h (dbs): Make hidden.
4518         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
4519         Avoid returning -1, return 0 instead.
4521 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
4523         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
4525 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
4527         [BZ #5209]
4528         * sysdeps/unix/sysv/linux/times.c: New file.
4530         [BZ #5381]
4531         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
4532         mem_in_flight_list variables.  Add new parameter to mempool_alloc
4533         prototype.
4534         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
4535         appropriate mem_in_flight element.
4536         (gc): Take allocations which have not yet been committed to the
4537         database into account.
4538         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
4539         Reset mem_in_flight before returning.
4540         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
4541         cue it up in mem_in_flight_list.
4542         * nscd/aicache.c: Adjust mempool_alloc call.
4543         * nscd/grpcache.c: Likewise.
4544         * nscd/hstcache.c: Likewise.
4545         * nscd/initgrcache.c: Likewise.
4546         * nscd/pwdcache.c: Likewise.
4547         * nscd/servicescache.c: Likewise.
4548         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
4549         of -fpie.
4551         * nscd/connections.c (handle_request): Provide better error message
4552         in case SELinux forbids the service.
4554         * version.h (VERSION): Bump to 2.8.90.
4556 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
4558         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
4560 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
4562         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
4563         Also use for 32-bit.
4564         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
4565         __nextafter instead of nextafter to avoid local PLT.
4566         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
4567         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
4569         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
4571         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
4572         __fe_nomask_env.
4573         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
4574         <fenv_libc.h> instead of <fenv.h>.
4575         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
4576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
4578         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
4580         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
4581         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
4582         function from fegetexcept and make old name weak alias.
4583         * include/fenv.h: Declare __fegetexcept.
4584         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
4585         fegetexcept.
4586         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
4587         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
4588         to fetestexcept.
4589         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
4590         instead of frexpl to avoid local PLT.
4591         * math/s_significandl.c (__significandl): Use __ilogbl instead of
4592         ilogbl to avoid local PLT.
4593         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
4594         instead of ldexpl to avoid local PLT.
4595         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
4596         __roundl not roundl to avoid local PLT.
4597         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
4598         local PLTs.  Use __sincosl instead of separate sinl and cosl
4599         calls.
4600         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4602         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
4603         version for ppc64 to 2.4.21 since without it makecontext will fail.
4605         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
4606         to the ABI in use.
4607         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
4608         .__tls_get_addr.
4609         [__powerpc64__] (TLS_GD): Likewise.
4611 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
4613         [BZ #4997]
4614         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
4615         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
4616         mantissa.
4617         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4618         Likewise.  Also account for when x is an odd number between 2^52
4619         and 2^53-1.
4620         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
4621         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4622         * math/libm-test.inc (lround_test, llround_test): Added test cases to
4623         detect aforementioned erroneous conditions.
4625 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
4627         * configure.in: Check for -fno-section-anchors in addition to
4628         -fno-toplevel-reorder.
4630 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
4632         * include/features.h (__GLIBC_MINOR__): Bump to 8.
4634         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
4635         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
4636         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
4637         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
4638         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
4639         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
4641 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
4643         [BZ #5443]
4644         * time/era.c: Transform __libc_setlocale_lock into rwlock.
4645         * time/alt_digit.c: Likewise.
4646         * wcsmbs/wcsmbsload.c: Likewise.
4648 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
4650         * version.h (VERSION): Bump to 2.8.
4652         * timzeone/asia: Update from tzdata2008b.
4653         * timezone/backward: Likewise.
4654         * timezone/europe: Likewise.
4655         * timezone/northamerica: Likewise.
4656         * timezone/southamerica: Likewise.
4657         * timezone/iso3166.tab: Likewise.
4658         * timezone/leapseconds: Likewise.
4659         * timezone/zone.tab: Likewise.
4660         * timezone/private.h: Update from tzcode2008a.
4661         * timezone/zdump.c: Likewise.
4662         * timezone/zic.c: Likewise.
4664 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
4666         [BZ #5741]
4667         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
4668         Define additonal Data Cache Block instruction macros.
4669         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
4670         Replace dcbst with dcbf and sync with sync/isync.
4672 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
4674         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
4675         Always set ELF_RTYPE_CLASS_PLT.
4676         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
4678 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
4680         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
4681         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
4682         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
4683         For ISA 2.01 and later replace mftb with mfspr 268.
4685 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
4687         [BZ #5768]
4688         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
4689         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
4691 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
4693         [BZ #5768]
4694         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
4695         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
4696         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
4697         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
4699 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
4701         * stdlib/tst-makecontext.c (othervar): New variable.
4702         (cf): Test sign extending the argument to long.
4704 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
4706         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
4707         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
4708         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
4709         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
4710         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
4711         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
4712         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
4714 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
4716         * elf/Makefile (tests): Substitute tests-vis-yes here.
4717         (tests-vis-yes): Delete.
4718         (modules-name, modules-vis-yes): Similarly.
4720 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
4722         [BZ #4407]
4723         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
4724         Preserve sign in signgamp when x is zero.
4726 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
4728         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
4729         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
4730         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
4731         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
4732         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
4733         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
4735 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
4737         [BZ #4314]
4738         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
4739         buffers.
4741         [BZ #5209]
4742         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
4743         a reserved error value.
4745         * stdlib/tst-makecontext.c: Change parameter to cf to negative
4746         value to check for correct sign extension.
4748         [BZ #5436]
4749         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
4750         Copy 64-bit parameter values even though this is not required in
4751         the standard.
4753         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
4754         PC save.
4756 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
4758         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
4759         PC save.
4761 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
4763         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
4765 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
4767         [BZ #5998]
4768         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
4769         in line-buffered stream failed.
4770         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
4772 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
4774         [BZ #6024]
4775         * scripts/abi-versions.awk: If the version specified by
4776         --enable-oldest-abi is older than the first version for this
4777         architecture, use the default version.
4779         * locale/programs/ld-collate.c (collate_read): Ignore script lines
4780         as well when ignoring the whole category.
4782 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
4784         [BZ #6042]
4785         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
4786         ETHERTYPE_* definitions.
4787         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
4789 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
4791         * stdlib/mbtowc.c (__no_r_state): Remove.
4792         (mbtowc): New static state variable.  Use it instead of
4793         __no_r_state.
4794         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
4795         (__wctomb_state): New hidden variable.
4796         (wctomb): Use __wctomb_state instead of __no_r_state.
4797         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
4798         (__wctomb_state): New extern decl.
4799         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
4801 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
4803         [BZ #5475]
4804         * resolv/res_init.c: Handle scope IDs in resolv.conf.
4806 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
4808         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
4810 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
4812         * po/nl.po: Update from translation team.
4814 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
4816         [BZ #6007]
4817         * string/strfry.c: Handle empty strings again.
4819 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
4821         [BZ #5443]
4822         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
4823         before looking for translation.
4824         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
4825         * locale/freelocale.c: Likewise.
4826         * locale/newlocale.c: Likewise.
4827         * locale/setlocale.c: Likewise.
4828         Based partially on a patch by ryo@np.css.fujitsu.com.
4830 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
4832         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
4833         acquiring wrlock.  Do conv_tab allocation while holding lock.
4834         * intl/Makefile: Add rules to build and run tst-gettext6.
4835         * intl/tst-gettext6.c: New test.
4836         * intl/tst-gettext6.sh: New file.
4838 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
4840         * po/nl.po: Update from translation team.
4842         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
4843         provided through st_blksize, try the default size before giving up.
4845 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
4847         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
4849         [BZ #5939]
4850         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
4852         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
4853         error message.  POSIX today does not require the messages to be in
4854         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
4856         [BZ #5979]
4857         * sunrpc/auth_unix.c: Unify printed strings.
4858         * sunrpc/clnt_tcp.c: Likewise.
4859         * sunrpc/clnt_udp.c: Likewise.
4860         * sunrpc/clnt_unix.c: Likewise.
4861         * sunrpc/svc_tcp.c: Likewise.
4862         * sunrpc/svc_udp.c: Likewise.
4863         * sunrpc/svc_unix.c: Likewise.
4864         * sunrpc/xdr.c: Likewise.
4865         * sunrpc/xdr_array.c: Likewise.
4866         * sunrpc/xdr_rec.c: Likewise.
4867         * sunrpc/xdr_ref.c: Likewise.
4868         * locale/programs/ld-time.c (time_finish): Unify messages.
4869         * locale/programs/locfile.c (handle_copy): Fix typo.
4870         * nscd/nscd.c (options): Fix typo.
4872         [BZ #5995]
4873         * stdlib/strtod_l.c: Use correct sign for result in one more
4874         underflow case.
4875         Patch by Eric Blake <ebb9@byu.net>.
4877 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
4879         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
4880         and creat system calls.
4881         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
4882         call.
4883         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
4884         system calls.
4885         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
4886         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4887         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4889 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
4891         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
4892         <linux/limits.h> has defined it.
4893         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
4894         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
4895         headers.
4896         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
4897         it instead of ARG_MAX.
4899 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
4901         * posix/gai.conf: Fix comment for scope nullbits.
4902         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
4903         default to 128 bits for v4 mapped addresses.
4905 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4907         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
4908         ptrace call to get the ieee_instruction_pointer from the kernel.
4909         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
4910         ptrace call to set the ieee_instructtion_pointer.
4911         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
4912         Add comment that ieee_instruction_pointer is always 0.
4914 2008-03-09  Andreas Jaeger  <aj@suse.de>
4916         [BZ #5857]
4917         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
4918         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
4919         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
4921         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
4922         (rint_test): Likewise.
4924 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
4926         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
4927         call.
4928         (__nisfind_server): Similar for open readColdStartFile call.
4929         Patch partially by Jim Meyering.
4930         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
4931         around internal_setent call.
4933         * po/vi.po: New Vietnamese translation.
4935         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
4936         ADJ_OFFSET_SS_READ.
4938         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
4939         remove CLONE_STOPPED.
4941 2008-02-10  Jim Meyering  <meyering@redhat.com>
4943         Remove useless "if" before "free":
4944         * elf/ldconfig.c (parse_conf_include): Likewise.
4945         * gmon/gmon.c (weak_alias): Likewise.
4946         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
4947         * inet/rcmd.c (__validuser2_sa): Likewise.
4948         * intl/bindtextdom.c (set_binding_values): Likewise.
4949         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
4950         * libio/genops.c (save_for_backup): Likewise.
4951         * libio/wgenops.c (save_for_wbackup): Likewise.
4952         * locale/programs/ld-collate.c (collate_read): Likewise.
4953         * locale/programs/linereader.c (get_string): Likewise.
4954         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
4955         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
4956         * resolv/res_debug.c (do_section): Likewise.
4957         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
4958         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
4959         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
4960         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
4961         * time/tzset.c (tzset_internal): Likewise.
4963 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
4965         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
4966         of ASSEMBLER.
4968 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
4970         [BZ #5903]
4971         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
4972         not stream for output file.  Open output file here.
4973         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
4974         and output file name.
4975         (process_fd): Likewise.
4976         (process_file): Likewise.
4977         (main): Adjust callers of changed functions.
4978         * iconv/iconv_prog.h: Adjust prototype.
4980 2008-03-09  Andreas Jaeger  <aj@suse.de>
4982         [BZ #5753]
4983         * sysdeps/ia64/ieee754.h: Use protected namespace
4984         __BIG_ENDIAN/__LITTLE_ENDIAN.
4985         * sysdeps/ieee754/ieee754.h: Likewise.
4986         Patch by Aurelien Jarno <aurelien@aurel32.net>.
4988 2008-03-08  Roland McGrath  <roland@frob.com>
4990         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
4991         ignore a signal that came from a machine exception, treat it as a
4992         fatal core-dump signal instead.
4993         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4995         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
4996         Clear DF bit in thread state's eflags.
4997         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4999 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
5001         [BZ #5774]
5002         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
5003         of NAN(...) sequence.
5004         * stdlib/Makefile (tests): Add tst-strtod6.
5005         * stdlib/tst-strtod6.c: New file.
5007         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
5009         [BZ #5762]
5010         * posix/getopt.c (_getopt_internal_r): Clarify error message by
5011         putting offending option character in quotes.  Clean up error
5012         messages.
5013         * po/be.po: Adjust msgstr in translation file.
5014         * po/bg.po: Likewise.
5015         * po/ca.po: Likewise.
5016         * po/cs.po: Likewise.
5017         * po/da.po: Likewise.
5018         * po/de.po: Likewise.
5019         * po/es.po: Likewise.
5020         * po/fr.po: Likewise.
5021         * po/hr.po: Likewise.
5022         * po/ko.po: Likewise.
5023         * po/nl.po: Likewise.
5024         * po/rw.po: Likewise.
5025         * po/sk.po: Likewise.
5026         * po/sv.po: Likewise.
5027         * po/tr.po: Likewise.
5028         * po/zh_CN.po: Likewise.
5029         * po/zh_TW.po: Likewise.
5031         [BZ #5760]
5032         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
5033         Patch by Roland Bless <roland@bless.de>.
5035         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
5036         .o file.
5037         * elf/Makefile (routines): Add dl-sysdep.
5038         (elide-routines.os): Likewise.
5040 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
5042         [BZ #5786]
5043         * elf/dl-sysdep.c: Undefine ROUND after use.
5044         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
5045         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
5046         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
5047         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
5048         to ...
5049         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
5050         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
5051         if necessary.
5052         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
5054         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
5055         _dl_tls_get_addr_soft element.
5056         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
5057         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
5058         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
5059         GLRO.
5060         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5061         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
5062         of internal_function.
5064         * stdlib/Makefile (aux): Add tens_in_limb.
5065         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
5066         * stdlib/tens_in_limb.c: ...here.  New file.
5068         [BZ #5778]
5069         * sysdeps/unix/sysv/linux/pathconf.h: Declare
5070         __statfs_chown_restricted.
5071         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
5072         for _PC_CHOWN_RESTRICTED.
5073         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
5074         Implement __statfs_chown_restricted.
5075         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
5076         _POSIX_CHOWN_RESTRICTED value to zero.
5077         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
5078         defined to zero.
5080         * sysdeps/x86_64/rtld-memset.c: New file.
5082 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
5084         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
5086         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
5087         Barcelona machine.  Make default fall through branch of
5088         __x86_64_preferred_memory_instruction check as the integer code path.
5090 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
5092         * sysdeps/x86_64/cacheinfo.c
5093         (__x86_64_preferred_memory_instruction): New variable.
5094         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5096         * sysdeps/x86_64/memset.S: Rewrite.
5098 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
5100         * include/stdio.h (__asprintf_chk, __dprintf_chk,
5101         __obstack_printf_chk): New prototypes.
5102         (__vasprintf_chk, __vdprintf_chk,
5103         __obstack_vprintf_chk): Likewise.
5104         Add libc_hidden_proto.
5105         * libio/obprintf.c
5106         (_IO_obstack_jumps): No longer static, add attribute_hidden.
5107         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
5108         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5109         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
5110         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
5111         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5112         __obstack_vprintf_chk): New prototypes.
5113         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
5114         obstack_vprintf): New inlines.
5115         * debug/dprintf_chk.c: New file.
5116         * debug/vdprintf_chk.c: New file.
5117         * debug/asprintf_chk.c: New file.
5118         * debug/vasprintf_chk.c: New file.
5119         * debug/obprintf_chk.c: New file.
5120         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
5121         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
5122         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
5123         @@GLIBC_2.8.
5124         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
5125         vdprintf_chk and obprintf_chk, set CFLAGS for them.
5126         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
5127         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
5128         libc_hidden_proto.
5129         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
5130         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
5131         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
5132         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
5133         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
5134         @@GLIBC_2.8.
5135         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
5136         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
5137         obstack_vprintf_chk.
5138         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
5139         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
5140         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
5141         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
5142         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
5143         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
5145 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
5147         [BZ #5779]
5148         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
5149         Patch by Roy Marples <roy@marples.name>.
5151         [BZ #5736]
5152         * malloc/malloc.c: Fix typo in comment.
5154         [BZ #5627]
5155         * locale/iso-639.def: Add Shuswap.
5157 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
5159         [BZ #5790]
5160         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
5161         overwrite *h_errnop/*errnop values from getanswer_r in case of
5162         failure.
5164 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
5166         [BZ #5818]
5167         * nscd/connections.c (dbs): Add initializers for .suggested_module.
5168         (verify_persistent_db): Remove one unnecessary test and add a new one
5169         for bad configuration.
5170         (nscd_init): Improve error reported when persistent database cannot
5171         be reused.
5172         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
5173         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
5174         .suggested_module and .max_db_size and case config file says the
5175         values are zero.
5176         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
5178         [BZ #5854]
5179         * nis/ypclnt.c (yp_order): Fix handling of return value of
5180         do_ypcall_tr call.
5181         Patch by Jeff Moyer <jmoyer@redhat.com>.
5183         * po/fr.po: Update from translation team.
5185 2008-02-22  Andreas Jaeger  <aj@suse.de>,
5186             Carlos O'Donell <carlos@systemhalted.org>
5188         [BZ #5012]
5189         * FAQ.in: Describe why glibc needs to be compiled with
5190         optimization.
5192 2008-02-19  Roland McGrath  <roland@redhat.com>
5194         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
5196 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
5198         [BZ #5737]
5199         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
5200         __USE_MISC is defined.
5202 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
5204         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
5205         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
5206         sys/timerfd.h.
5207         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
5208         timerfd_gettime, timerfd_settime.
5209         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
5210         timerfd_gettime, timerfd_settime for GLIBC_2.8.
5212 2008-02-08  Roland McGrath  <roland@redhat.com>
5214         * elf/elf.h (NT_PPC_SPE): New macro.
5216 2008-02-06  Roland McGrath  <roland@redhat.com>
5218         * Makerules ($(common-objpfx)sysd-rules):
5219         Depend on $(sysdep-makeconfigs).
5221 2008-01-31  Roland McGrath  <roland@redhat.com>
5223         [BZ #5442]
5224         * configure.in: Use -print-file-name if it yields a directory,
5225         for each of include and include-fixed.
5226         * configure: Regenerated.
5228         * Makeconfig (sysd-rules-targets): New variable.
5229         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
5230         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
5232 2008-01-30  Roland McGrath  <roland@redhat.com>
5234         * manual/libc.texinfo: Update back-cover text.
5236         * elf/elf.h (NT_386_TLS): New macro.
5238 2008-01-29  Roland McGrath  <roland@redhat.com>
5240         * Makeconfig (sysd-rules-patterns): New variable.
5241         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
5242         (check-inhibit-asm): New canned sequence, replaces ...
5243         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
5244         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
5245         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
5246         (CFLAGS-rtld): Variable removed.
5248 2008-01-24  Roland McGrath  <roland@redhat.com>
5250         * configure.in: Let configure fragments set base_os.
5251         * configure: Regenerated.
5253 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
5255         * po/ko.po: Update from translation team.
5257 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
5259         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
5261 2008-01-12  Andreas Jaeger  <aj@suse.de>
5263         [BZ #5040]
5264         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
5265         Add EPOLLRDHUP.
5267 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5269         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
5270         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
5271         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
5273 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
5275         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
5276         * elf/dl-close.c (_dl_close): Check for it.
5277         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
5278         (_dl_allocate_static_tls): Likewise.
5279         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
5280         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
5281         to it.
5282         * elf/tst-tls16.c: New file.
5283         * elf/tst-tlsmod16a.c: New file.
5284         * elf/tst-tlsmod16b.c: New file.
5285         * elf/Makefile: Add rules to build and run tst-tls16.
5287 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
5289         [BZ #5628]
5290         * bits/shm.h: Fix comment describing shmid_ds.
5291         * sysdeps/gnu/bits/shm.h: Likewise.
5292         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
5293         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
5294         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5295         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5296         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5297         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5298         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5299         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
5300         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
5302         [BZ #5607]
5303         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
5304         prototypes.
5305         * conform/data/limits.h-data: Adjust limits changed in v6 and add
5306         additional suffixes.
5307         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
5308         Add optional functions mq_timedreceive and mq_timedsend.
5309         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
5310         * conform/data/pthread.h-data: Fix prototype of
5311         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
5312         * conform/data/semaphore.h-data: Allow time.h definitions.
5313         * conform/data/signal.h-data: Likewise.
5314         * conform/data/stdio.h-data: getw and putw are not required in v6.
5315         * conform/data/stdlib.h-data: Change setstate prototype.
5316         * conform/data/string.h-data: Fix strerror_r prototype.
5317         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
5318         * conform/data/unistd.h-data: pthread_atfork not required in v6.
5319         Fix readlink prototype.
5320         * conform/data/netinet/in.h-data: Add const to in6addr_any and
5321         in6addr_loopback.
5322         * inet/netinet/in.h: Cleanup namespace.
5323         * posix/regex.h: Likewise.
5324         * resolv/netdb.h: Likewise.
5325         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
5326         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
5327         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
5328         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
5329         of names of in in6_addr.
5330         (default_precedence): Likewise.
5331         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
5332         NULL definition.
5334 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
5336         * conform/data/fmtmsg.h-data: Add missing allows.
5337         * conform/data/ftw.h-data: Likewise.
5338         * conform/data/inttypes.h-data: Likewise.
5339         * conform/data/math.h-data: Likewise.
5340         * conform/data/signal.h-data: Likewise.
5341         * conform/data/net/if.h-data: Likewise.
5342         * conform/data/netinet/in.h-data: Likewise.
5343         * conform/data/sys/socket.h-data: Likewise.
5345         [BZ #5614]
5346         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
5347         (__strtok_r): Simplify.
5348         * string/tester.c (test_strtok_r): Add test case for futile search
5349         with single-character seach string.
5351 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
5353         * po/ko.po: Update from translation team.
5355 2008-01-11  Andreas Jaeger  <aj@suse.de>
5357         [BZ #5600]
5358         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
5359         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
5360         kernel header.
5362 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
5364         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
5365         native interface lookup in all the relevant places.
5367 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
5368             Ulrich Drepper  <drepper@redhat.com>
5370         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
5371         field.  Use sockaddr_in6 for source_addr.
5372         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
5373         (match_prefix): Likewise.
5374         (get_label): Likewise.
5375         (get_precedence): Likewise.
5376         (rfc3484_sort): Change to use indirect access to results array.
5377         Adjust to use of sockaddr_in6.  Replace service_order test with
5378         simple index comparison.
5379         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
5380         service_order field.  Adjust qsort_t calls.  Access sorted result
5381         array indirectly through order array.
5382         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
5383         * posix/tst-rfc3484-2.c: Likewise.
5384         * posix/tst-rfc3484-3.c: Likewise.
5386 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
5388         [BZ #5541]
5389         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
5390         pollfd structures.
5391         Patch by André Cruz.
5393         [BZ #5545]
5394         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
5395         (clnt_spcreateerror): Likewise.
5397         [BZ #5553]
5398         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
5399         (public_mEMALIGn): Likewise.
5400         Patch mostly by Daniel Jacobowitz.
5402 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
5404         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
5405         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
5406         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
5407         * stdlib/tst-makecontext2.c: New test.
5409 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
5411         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
5412         defined.
5413         (REINIT_PARAMS): Likewise.  Undefine before end of file.
5414         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
5415         transliteration hooks and REINIT_PARAMS afterwards.
5416         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
5417         status.
5418         (REINIT_PARAMS): Define.
5419         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
5420         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
5421         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
5422         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
5423         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
5424         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
5425         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
5426         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
5427         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
5428         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
5429         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
5430         * iconvdata/tst-iconv7.c: New test.
5432 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
5434         * libio/stdio.h (vscanf): Fix definition for loser compilers.
5436 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
5438         [BZ #5112]
5439         * nscd/connections.c (restart): Fix condition.
5441 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
5443         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
5444         __ctype_toupper_loc): Add __THROW.
5446 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
5448         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
5449         recognition of interface family.
5451         * posix/getconf.c: Update copyright year.
5452         * nss/getent.c: Likewise.
5453         * iconv/iconvconfig.c: Likewise.
5454         * iconv/iconv_prog.c: Likewise.
5455         * elf/ldconfig.c: Likewise.
5456         * catgets/gencat.c: Likewise.
5457         * csu/version.c: Likewise.
5458         * elf/ldd.bash.in: Likewise.
5459         * elf/sprof.c (print_version): Likewise.
5460         * locale/programs/locale.c: Likewise.
5461         * locale/programs/localedef.c: Likewise.
5462         * nscd/nscd.c (print_version): Likewise.
5463         * debug/xtrace.sh: Likewise.
5464         * malloc/memusage.sh: Likewise.
5465         * malloc/mtrace.pl: Likewise.
5466         * debug/catchsegv.sh: Likewise.
5468 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
5470         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
5471         second lookup.
5473 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
5475         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
5476         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5478 2007-12-17  Roland McGrath  <roland@redhat.com>
5480         * inet/ether_line.c (ether_line): Remove unused variable.
5482 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5484         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
5485         and winp.
5486         * login/openpty.c (openpty): Likewise.
5487         * login/pty.h (openpty, forkpty): Likewise.
5488         * manual/terminal.texi (openpty, forkpty): Likewise.
5490 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
5492         * malloc/malloc.c (public_cALLOc): For arenas other than
5493         main_arena, count all bytes inside the mprotect_size range of the
5494         heap as uninitialized.
5496 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
5498         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
5499         executable stacks.
5501         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
5502         mTRIm for all of them.
5503         (mTRIm): Additionally iterate over all free blocks and use madvise
5504         to free memory for all those blocks which contain at least one
5505         memory page.
5506         * malloc/tst-trim1.c: New file.
5507         * malloc/Makefile (tests): Add tst-trim1.
5509         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
5511 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
5513         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
5514         First cast argument to long
5515         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
5516         Return long.
5517         (__vdso_clock_gettime): Likewise.
5518         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
5519         return long.
5521 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
5523         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
5524         * locale/nl_langinfo_l.c: Real implementation, copied from
5525         nl_langinfo.c.
5526         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
5528 2007-12-01  Jim Meyering  <meyering@redhat.com>
5530         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
5531         that would inhibit utf8-optimization of a regexp containing line-
5532         or buffer-anchors, e.g., `^', `$'.
5534 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
5536         * time/bug-getdate1.c (do_test): Don't use century values which
5537         aren't valid on 32-bit systems.
5539 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
5541         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
5542         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
5543         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
5544         __strcat_g, __strncat_g): Add __asm__.
5546 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
5548         [BZ #5477]
5549         * io/fchmodat.c: Fix typo in stub_warning use.
5550         Patch by Petr Salinger.
5552 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
5554         * iconvdata/hp-thai8.c: New file.
5555         * iconvdata/Makefile: Add rules for hp-thai8.c.
5556         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
5557         * iconvdata/gconv-modules: Likewise.
5559         [BZ #5464]
5560         * iconvdata/hp-greek8.c: New file.
5561         * iconvdata/Makefile: Add rules for hp-greek8.c.
5562         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
5563         * iconvdata/gconv-modules: Likewise.
5565         [BZ #5463]
5566         * iconvdata/hp-turkish8.c: New file.
5567         * iconvdata/Makefile: Add rules for hp-turkish8.c.
5568         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
5569         * iconvdata/gconv-modules: Likewise.
5571         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
5572         (shrink_heap): ... this new function.
5573         (heap_trim): Call shrink_heap instead of grow_heap.
5575         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
5576         case don't call alloc_perturb.
5578 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
5580         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
5581         possible.
5582         * sysdeps/unix/sysv/linux/kernel-features.h
5583         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
5584         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
5586 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
5588         [BZ #5424]
5589         * stdio-common/vfprintf.c: Do not overflow when adding to done.
5590         * stdio-common/Makefile (tests): Add bug22.
5591         * stdio-common/bug22.c: New file.
5593         [BZ #5451]
5594         * time/getdate.c: Fix filling in default values.
5595         * time/bug-getdate1.c: New file.
5596         * time/Makefile: Add rules to build and run bug-getdate1.
5598         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
5599         * iconvdata/ebcdic-es.c: Likewise.
5600         * iconvdata/ebcdic-es-a.c: Likewise.
5601         * iconvdata/ebcdic-uk.c: Likewise.
5602         * iconvdata/iso8859-16.c: Likewise.
5603         * iconvdata/viscii.c: Likewise.
5604         * iconvdata/iso8859-9e.c: Likewise.
5605         * iconvdata/Makefile: Adjust appropriately.
5607         [BZ #5428]
5608         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
5609         __need_wint_t.
5611 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
5613         [BZ #5427]
5614         * iconvdata/hp-roman9.c: New file.
5615         * iconvdata/Makefile: Add rules for hp-roman9.c.
5616         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
5617         * iconvdata/gconv-modules: Likewise.
5619         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
5620         * iconvdata/Makefile: Adjust appropriately.
5622         [BZ #5441]
5623         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
5624         structure, it's allocated with alloca.
5625         * stdio-common/Makefile (tests): Add bug21.
5626         * stdio-common/bug21.c: New file.
5628 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
5630         [BZ #5452]
5631         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
5632         keyword for gcc's braced-groups.
5634 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
5636         [BZ #5454]
5637         * inet/ether_line.c: Strip hostname of whitespaces.
5638         * inet/Makefile (tests): Add tst-ether_line.
5639         * inet/tst-ether_line.c: New file.
5641 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
5643         [BZ #5439]
5644         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
5646         [BZ #5435]
5647         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
5649         * stdlib/tst-setcontext.c: Catch the case where the links gets
5650         messed up and we do not reach main again.
5652         * po/ca.po: Update from translation team.
5654 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
5656         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
5657         * posix/regex.h (REG_ENOSYS): Likewise.
5658         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
5660 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
5662         * nscd/nscd.h (MAX_STACK_USE): Define.
5663         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
5664         (gc): Initialize stack_used based on allocation in prune_cache.
5665         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
5666         Clear array before use.
5668         * nscd/aicache.c (addhstaiX): Update statistics counter in case
5669         memory allocation failed.
5670         * nscd/hstcache.c (cache_addhst): Likewise.
5671         * nscd/grpcache.c (cache_addgr): Likewise.
5672         * nscd/servicescache.c (cache_addserv): Likewise.
5673         * nscd/pwdcache.c (cache_addpw): Likewise.
5674         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5676 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
5678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
5679         and creat system calls.
5681         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
5683 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5685         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
5686         Add netiucv/iucv.h.
5687         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
5688         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
5689         protocol.
5690         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
5691         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
5692         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
5694 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5696         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
5697         strncat): Define as macros to avoid compile errors.
5699         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
5700         creat entries.
5702 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
5704         [BZ #5382]
5705         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
5706         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
5707         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
5708         overflow it.
5709         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
5711         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
5712         Return zero in case the thread library is not NPTL.
5714         [BZ #5375]
5715         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
5716         initializing interface list.
5718         [BZ #5378]
5719         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
5720         use result of nss_getgrgid_r if nothing was found.  For other
5721         error return with a failure.
5722         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
5724         * locale/programs/ld-collate.c (collate_read): Fix loop to match
5725         macro name.
5727 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
5729         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
5730         (get_scope): For IPv4 scope, use scopes table.
5731         (fini): Free scopes table if necessary.
5732         (free_scopelist): New function.
5733         (scopecmp): New function.
5734         (gaiconf_init): Also handle scopev4 entries.
5735         * posix/tst-rfc3484.c (do_test): Initialize scopes.
5736         * posix/tst-rfc3484-2.c (do_test): Likewise.
5737         * posix/gai.conf: Document scopev4 defaults.
5738         * posix/Makefile (tests): Add tst-rfc3484-3.
5739         * posix/tst-rfc3484-3.c: New file.
5741         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
5742         Teredo tunnels.
5743         * posix/gai.conf: Update for current default tables.
5745 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
5747         * po/tr.po: Update from translation team.
5749 2007-11-18  Roland McGrath  <roland@frob.com>
5751         * manual/arith.texi (Remainder Functions): Spelling fix.
5752         From Shaun Silk <genix@mysoul.com.au>.
5754         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
5756 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
5758         * po/zh_CN.po: Update from translation team.
5760         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
5761         Add sys/signalfd.h and sys/eventfd.h.
5763 2007-11-15  Bruno Haible  <bruno@clisp.org>
5765         [BZ #5346]
5766         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
5767         union.
5768         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
5769         (DCIGETTEXT): Change the allocation of the 'search' variable so that
5770         it needs only fixed stack space. Delay the initialization of
5771         msgid_len until it is needed.
5773 2007-11-15  Andreas Jaeger  <aj@suse.de>
5775         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
5776         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
5778 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
5780         * po/ko.po: Update from translation team.
5782 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
5784         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
5785         significantly.  The device type is also part of the ifinfomsg data.
5787         * po/sv.po: Update from translation team.
5788         * po/nl.po: Likewise.
5790         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
5791         to wake up in 24 hours.
5793         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
5795 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
5797         * po/cs.po: Update from translation team.
5798         * po/pl.po: Likewise.
5800         * include/ifaddrs.h: Remove in6ai_temporary.
5801         (struct in6addrinfo): Add index element.
5802         Declare __check_native.
5803         * inet/Makefile (aux): Add check_native.
5804         * sysdeps/unix/sysv/linux/check_native.c: New file.
5805         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
5806         IFA_F_TEMPORARY.  Pass back ifa_index.
5807         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
5808         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
5809         call __check_native if necessary.
5810         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
5811         to sort addresses.  Pass information about the results.
5812         * posix/tst-rfc3484.c: Adjust for addition of index field and change
5813         of rfc3484_sort interface.
5814         * posix/tst-rfc3484-2.c: Likewise.
5816         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
5817         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
5818         for _quicksort.
5819         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
5820         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
5821         on as third parameter to compare function and _quicksort.
5822         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
5823         to the compare function.
5824         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
5825         * Versions.def: Add GLIBC_2.8 for libc.
5827         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
5828         * posix/tst-rfc3484-2.c: Likewise.
5830         * include/kernel-features.h: Moved to...
5831         * sysdeps/mach/hurd/kernel-features.h: ...here.
5833 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
5835         * sysdeps/i386/i586/memcpy_chk.S: New file.
5836         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
5837         * sysdeps/i386/i586/memset_chk.S: Likewise.
5839 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
5841         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
5842         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
5843         list of interfaces.  Also store prefix length.
5844         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
5845         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
5846         prefix if source and destination address are in the same subnet.
5847         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
5848         Always look for matching record in in6ai list.
5849         Correct source_addr_len value for IPv6->IPv4 converted records.
5851 2007-11-11  Roland McGrath  <roland@frob.com>
5853         * include/kernel-features.h: New file.
5855 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
5857         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
5858         complications for 64-bit platforms.
5860         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
5861         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
5862         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
5863         open64_2.
5864         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
5865         entries.
5866         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5867         * sysdeps/wordsize-64/alphasort.c: New file.
5868         * sysdeps/wordsize-64/alphasort64.c: New file.
5869         * sysdeps/wordsize-64/fseeko.c: New file.
5870         * sysdeps/wordsize-64/fseeko64.c: New file.
5871         * sysdeps/wordsize-64/ftello.c: New file.
5872         * sysdeps/wordsize-64/ftello64.c: New file.
5873         * sysdeps/wordsize-64/ftw.c: New file.
5874         * sysdeps/wordsize-64/ftw64.c: New file.
5875         * sysdeps/wordsize-64/iofgetpos.c: New file.
5876         * sysdeps/wordsize-64/iofgetpos64.c: New file.
5877         * sysdeps/wordsize-64/iofopen.c: New file.
5878         * sysdeps/wordsize-64/iofopen64.c: New file.
5879         * sysdeps/wordsize-64/iofsetpos.c: New file.
5880         * sysdeps/wordsize-64/iofsetpos64.c: New file.
5881         * sysdeps/wordsize-64/lockf.c: New file.
5882         * sysdeps/wordsize-64/lockf64.c: New file.
5883         * sysdeps/wordsize-64/mkostemp.c: New file.
5884         * sysdeps/wordsize-64/mkostemp64.c: New file.
5885         * sysdeps/wordsize-64/mkstemp.c: New file.
5886         * sysdeps/wordsize-64/mkstemp64.c: New file.
5887         * sysdeps/wordsize-64/scandir.c: New file.
5888         * sysdeps/wordsize-64/scandir64.c: New file.
5889         * sysdeps/wordsize-64/tmpfile.c: New file.
5890         * sysdeps/wordsize-64/tmpfile64.c: New file.
5891         * sysdeps/wordsize-64/versionsort.c: New file.
5892         * sysdeps/wordsize-64/versionsort64.c: New file.
5893         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
5894         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
5895         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
5896         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
5897         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
5898         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
5899         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
5900         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
5901         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
5902         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
5903         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
5904         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
5906         * crypt/sha256-crypt.c: Fix a comment.
5907         * crypt/sha512-crypt.c: Likewise.
5909 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
5911         * sysdeps/x86_64/memset.S: Add sfence after movnti.
5913 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
5915         [BZ #5277]
5916         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
5917         because output buffer is too small break, don't loop.
5918         * iconvdata/Makefile (tests): Add bug-iconv6.
5919         * iconvdata/bug-iconv6.c: New file.
5921 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
5923         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
5924         with size_t type.
5925         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
5926         size_t.  Add casts where needed.
5928         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
5929         old headers, don't call avc_has_perm if we don't have the
5930         permission information.
5932 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
5934         * elf/rtld.c (dl_main): Use the page size to find the map start.
5936 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
5938         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
5939         Patch by Szymon Siwek <sls@poczta.wp.pl>.
5941         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
5942         when the lookup call failed.
5944         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
5945         Add prune_cond and wakeup_time.
5946         (CACHE_PRUNE_INTERNAL): Define.
5947         Update declarations of prune_cache and setup_thread.
5948         * nscd/connections.c (dbs): Update initializers.
5949         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
5950         (nscd_init): Default number of threads is now 4.
5951         (invalidate_cache): Take lock before calling prune_cache.
5952         (handle_request): If SELinux forbids the request, say so.
5953         (readylist_cond): Use static initializer.
5954         (nscd_run_prune): New function.  Used only by pruning threads.
5955         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
5956         here.
5957         (fd_ready): Update nscd_run reference.
5958         (start_threads): No need to initialize readylist_cond.
5959         Start pruning threads separately.
5960         * nscd/nscd_setup_thread.c: Change return value type to int and always
5961         return 0.
5962         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
5963         to int and return nonzero value if we can use the TID address hack.
5964         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
5965         the database is later than the new entry's timeout, update the
5966         wakeup time and wake the cleanup thread.
5967         (prune_cache): Return seconds the next entry in the database is still
5968         valid.  Remove locking for pruning here.
5969         * nscd/nscd.conf: Document default number of threads.
5971 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
5973         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
5974         stack is properly aligned for the target function.
5975         Correct unwind info.
5977         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
5978         when using auditing libraries.
5980 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
5982         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
5983         _nss_dns_getnetbyaddr2_r.
5984         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
5985         extra parameter to getanswer_r.
5986         (_nss_dns_getnetbyaddr_r): Now a wrapper around
5987         _nss_dns_getnetbyaddr2_r.
5989         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
5990         gethstbynm3_r.
5991         * nscd/gethstbynm2_r.c: Remove.
5992         * nscd/gethstbynm3_r.c: New file.
5993         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
5994         __gethostbyaddr_r.
5995         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
5996         __gethostbyaddr_r compatibility wrapper.
5997         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
5998         determining timeout of entry.
5999         (lookup): Take new parameter and pass it to __gethostbyname3_r and
6000         __gethostbyaddr2_r.
6001         (addhstbyX): Pass reference to variable for TTL to lookup and
6002         cache_addhst.
6003         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
6004         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
6005         and __nss_next2.  Remove __nss_services_lookup.
6006         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
6007         Add compat wrapper.
6008         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
6009         __nss_next2.
6010         * nss/getXXent_r.c: Likewise.
6011         * nss/getnssent_r.c: Likewise.
6012         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
6013         does not exist in module, try the optional second name.
6014         (__nss_next2): New function.
6015         (__nss_next): Now wrapper around __nss_next2.
6016         * nss/nsswitch.h: Adjust __nss_lookup prototype.
6017         Declare __nss_next2.
6018         Adjust definition of db_lookup_function type.
6019         * nss/service-lookup.c: Define NO_COMPAT.
6020         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
6021         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
6022         * inet/ether_ntoh.c: Likewise.
6023         * sunrpc/netname.c: Likewise.
6024         * sunrpc/publickey.c: Likewise.
6025         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
6026         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
6027         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
6028         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
6029         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
6031         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
6033         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
6035 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
6037         [BZ #5204]
6038         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
6039         * crypt/sha512c-test.c: Likewise.
6041         [BZ #5225]
6042         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
6043         to keep track of end of %[ format string element.
6044         * stdio-common/Makefile (tests): Add bug20.
6045         * stdio-common/bug20.c: New file.
6047         [BZ #5222]
6048         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
6049         path elements in counting mode.
6051 2007-10-27  Andreas Jaeger  <aj@suse.de>
6053         [BZ #5040]
6054         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
6056         [BZ #3112]
6057         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
6058         (__cleanup): Free shared library when exiting.
6059         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
6060         (__cleanup): Free shared library when exiting.
6062 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
6064         [BZ #2549]
6065         * math/libm-test.inc (check_float_internal): Support
6066         denormalized return.
6068 2007-10-23  Andreas Jaeger  <aj@suse.de>
6070         [BZ #5208]
6071         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
6072         __LONG_LONG_PAIR to handle little endian byte order.
6073         Suggested by abhishekrai@google.com
6075 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
6077         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
6079 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
6081         * nscd/cache.c (prune_cache): Move test for modified file outside
6082         of locking.
6084 2007-10-21  Andreas Jaeger  <aj@suse.de>
6086         * manual/texinfo.tex: Update to latest version.
6088         * manual/sysinfo.texi (System Parameters): Fix Formatting.
6090         * manual/arith.texi (Status bit operations): Fix formatting.
6092         * manual/errno.texi (Error Messages): Fix formatting.
6094         * manual/sysinfo.texi (System Parameters): Fix formatting.
6096         * manual/libc.texinfo: Update VERSION and UPDATED.
6098 2007-10-19  Roland McGrath  <roland@redhat.com>
6100         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
6102 2007-10-06  David S. Miller  <davem@davemloft.net>
6104         * configure.in: Add sparcv9v2 and sparc64v2.
6105         * scripts/config.sub: Likewise.
6106         * configure: Regenerate.
6107         * elf/elf.h (HWCAP_SPARC_N2): New.
6108         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
6109         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
6110         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
6111         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
6112         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
6113         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
6114         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
6116 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
6118         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
6119         even if the poll result indicates there is data to read.
6120         Patch by Jeff Moyer <jmoyer@redhat.com>.
6122 2007-10-18  Roland McGrath  <roland@redhat.com>
6124         * elf/elf.h (NT_PPC_VMX): New macro.
6126 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6128         * version.h (VERSION): Set to 2.7.90.
6130 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
6132         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
6133         weak_alias.
6135 2007-10-17  Roland McGrath  <roland@frob.com>
6137         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
6138         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
6140 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6142         * version.h (VERSION): Bump to 2.7.
6143         * include/features.h (__GLIBC_MINOR__): Bump to 7.
6145         [BZ #5186]
6146         * time/tzset.c (__tz_convert): Don't force testing for a change of
6147         TZ if not called from localtime.  But then also see whether the
6148         file changed, in case __use_tzfile is set.
6150         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
6151         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6152         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6153         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6154         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6155         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6156         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
6157         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6159 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
6161         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
6162         and admin selects to be able to replace the gai.conf file, lock
6163         data structures around the qsort call.
6165 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6167         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
6168         new memset.
6169         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
6170         too high for the improvements.  Implement bzero unconditionally for
6171         use in libc.
6173 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6174             Jakub Jelinek  <jakub@redhat.com>
6176         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
6177         even when time_t is 32-bit.
6178         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
6179         timezone data read by __tzfile_default.  Ensure __tzname[0] is
6180         always set after the search.
6182 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
6184         * time/tzfile.c (__tzfile_read): Help the compiler recognize
6185         unreachable code on 32-bit machines.
6187 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
6189         [BZ #5184]
6190         * time/strftime_l.c: Include stdbool.h.
6191         (my_strftime): New wrapper, old function renamed to...
6192         (__strftime_internal): ... new function.  Add tzset_called
6193         argument, pass it down to recursive calls, don't call tzset ()
6194         if already true, set to true after call to tzset ().
6196 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
6198         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
6199         into account when copying TZ string.
6201 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
6203         * time/tzfile.c (__tzfile_compute): For use_last case set i to
6204         num_transition rather than num_transitions - 1.
6206 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
6208         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
6209         PIC indirect jump.
6211         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
6212         a local label rather than HIDDEN_JUMPTARGET.
6214 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
6216         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
6217         (init_cacheinfo): Initialize it.
6218         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
6219         Always define bzero.
6220         Remove non-glibc code.
6221         * sysdeps/x86_64/bzero.S: Make an empty file.
6223 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
6225         * sysdeps/x86_64/cacheinfo.c
6226         (__x86_64_preferred_memory_instruction): New.
6227         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6229         * sysdeps/x86_64/memset.S: Rewrite.
6231 2007-10-15  Roland McGrath  <roland@redhat.com>
6233         * po/libc.pot: Regenerated.
6235 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
6237         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
6238         pointers.
6240         [BZ #3425]
6241         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
6242         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
6243         address record to T_A/T_AAAA requests.
6245 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
6247         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
6249         * posix/glob.c: Add some branch prediction throughout.
6251         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
6252         read from nscd.
6254         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
6255         service_order.
6256         (rfc3484_sort): Make sure that even if qsort doesn't support
6257         stable sorting out sorting here is stable by comparing service_order.
6258         (getaddrinfo): Initialize service_order.
6259         * posix/tst-rfc3484.c (do_test): Adjust for addition of
6260         service_order field to sorting structure.
6261         * posix/tst-rfc3484-2.c (do_test): Likewise.
6263         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
6264         * time/tzset.c (tzset_internal): Break TZ string parsing out into
6265         __tzset_parse_tz and updating of daylight, timezone, tzname into
6266         update_vars.
6267         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
6268         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
6269         happens in __tz_compute.
6270         * time/tzfile.c (__tzfile_read): Also read TZ string.
6271         (find_transition): Fold into __tzfile_compute.
6272         (__tzfile_compute): For times beyond the last transition try to
6273         use the TZ string.
6274         * timezone/tst-timezone.c: Information in daylight and tzname does
6275         change for Asia/Tokyo timezone with more concrete information.
6276         Remove the test.
6278         * include/stdio.h: Add libc_hidden_proto for ftello.
6279         * libio/ftello.c: Add libc_hidden_def.
6281         [BZ #1140]
6282         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
6283         on the specified time and not the last entries in the file.  Move
6284         code to determine tzname[] to...
6285         (find_transition): ...here.  Add ugly guess for times before the
6286         first transition.
6288 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
6290         [BZ #3195]
6291         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
6292         no entry.
6293         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
6294         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6295         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6296         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6298         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
6299         read mechanism when there are no group members and avoid no-op
6300         read syscall in this case.
6302         [BZ #3242]
6303         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
6304         (__readall): If reading failed due to EAGAIN error wait a bit
6305         and possibly try again.
6306         (__readvall): Likewise.
6308 2007-10-13  Bruno Haible  <bruno@clisp.org>
6310         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
6311         when we cannot recode the message.
6313 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
6315         [BZ #4359]
6316         * libio/__freading.c (__freading): Don't return true for
6317         write-only streams.  For read/write streams, check whether we
6318         performed a read operation already.
6319         * libio/Makefile (tests): Add tst-ext2.
6320         * libio/tst-ext2.c: New file.
6322 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
6324         * locale/programs/repertoire.c (repertoire_read): Always free
6325         memory for repertoire file name [Coverity CID 270].
6327         * elf/cache.c (save_aux_cache): Free memory allocated for
6328         temporary file name [Coverity CID 267].
6330 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
6332         * misc/Makefile (headers): Add bits/error.h.
6334 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
6336         * posix/fnmatch_loop.c: Take rule index returned as part of
6337         findidx return value into account when accessing weights.
6338         * posix/regcomp.c: Likewise.
6339         * posix/regexec.c: Likewise.
6341         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
6342         (skip_to): Fix problems with parameter of elifdef/elifndef.
6344 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
6346         * iconv/gconv_simple.c: Add some branch prediction.
6348 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
6350         * locale/programs/ld-collate.c (collate_read): If ignore_content
6351         and nowtok is tok_define, eat any tok_eol tokens.
6353 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
6355         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
6356         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
6358         * inet/netinet/in.h: Don't include bits/socket.h.
6359         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
6360         macro.
6361         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6363 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
6365         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
6366         and tok_elifndef.
6367         * locale/programs/locfile-kw.gperf: Likewise.
6368         * locale/programs/ld-collate.c: Implement primitive preprocessor.
6370 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
6372         * stdio-common/printf-parse.h: Include string.h and wchar.h.
6373         (__find_specwc): Change into __extern_always_inline function.
6374         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
6375         (__parse_one_specmb): Remove ps argument.
6376         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
6377         Adjust __find_specmb and __parse_one_specmb callers.
6378         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
6379         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
6380         Removed.
6381         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
6382         caller.
6384 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
6386         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
6387         with some Pentium Ds.
6389 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
6391         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
6392         __read not read.
6393         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
6394         __write not write.
6396 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
6398         [BZ #181]
6399         * locale/C-time.c: Set week_1stday data to 19971201.
6400         * locale/programs/ld-time.c (time_finish): Default for
6401         first_workday is Monday.
6403         [BZ #2633]
6404         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
6406         [BZ #5103]
6407         * posix/glob.c (glob): Recognize patterns starting \/.
6408         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
6409         (main): Add test for pattern starting \/.
6411         * misc/error.h: Use __const instead of const.
6412         * misc/bits/error.h: Likewise.
6414 2007-10-07  Andreas Jaeger  <aj@suse.de>
6416         * include/bits/error.h: New file.
6418         * misc/bits/error.h (error_at_line): Fix prototype.
6420 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
6422         [BZ #3924]
6423         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
6424         more little bugs in creating the stack frame when pltexit has to
6425         be called.
6427         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
6428         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
6430         [BZ #4407]
6431         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
6432         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6433         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
6434         * math/libm-test.inc: Add test for this case.
6436         [BZ #5010]
6437         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
6438         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
6439         map service succeeded.
6440         (svc_is_mapped): New function.
6441         (svc_unregister): Use it before trying to unmap service.
6443 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
6445         * timezone/zic.c: Update from tzcode2007h.
6447         [BZ #5063]
6448         * timezone/africa: Update from tzdata2007h.
6449         * timezone/antarctica: Likewise.
6450         * timezone/asia: Likewise.
6451         * timezone/australasia: Likewise.
6452         * timezone/europe: Likewise.
6453         * timezone/leapseconds: Likewise.
6454         * timezone/northamerica: Likewise.
6455         * timezone/southamerica: Likewise.
6456         * timzeone/zone.tab: Likewise.
6458         [BZ #5104]
6459         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
6461         [BZ #5113]
6462         * string/bits/string2.h (__strdup): Cast parameters to calloc to
6463         avoid warning with -Wconversion.
6464         (__strndup): Likewise.
6465         Half the patch by Christian Iseli <christian.iseli@licr.org>.
6467         [BZ #5112]
6468         * nscd/connections.c (restart): Don't resync if database is
6469         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
6471         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
6472         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
6474         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
6475         evetnfd_read, eventfd_write.
6476         * sysdeps/unix/sysv/linux/eventfd.c: New file.
6477         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
6478         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
6479         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
6480         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
6481         eventfd_write for GLIBC_2.7.
6483         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
6484         * sysdeps/unix/sysv/linux/signalfd.c: New file.
6485         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
6486         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
6488 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
6490         * stdlib/msort.c: Include stdint.h.
6491         (struct msort_param): New type.
6492         (msort_with_tmp): Use struct msort_param pointer for unchanging
6493         parameters.  Add optimized handling for several common sizes
6494         and indirect sorting mode.
6495         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
6496         sorting.
6497         Suggested by Belazougui Djamel .
6499         * stdlib/Makefile (tests): Add tst-qsort2.
6500         * stdlib/tst-qsort2.c: New test.
6502 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
6504         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
6505         for dup2 in case another thread races with the current one.  Retry
6506         in this case.
6508         * misc/error.h: Remove support for use outside of libc.  We have to
6509         include <features.h> now.  Include <bits/error.h> if possible.
6510         * misc/bits/error.h: New file.
6512 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
6514         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
6515         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
6516         __extern_always_inline functions unconditionally, drop macros.
6518         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
6519         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
6520         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
6522         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
6523         add __artificial__ attribute.
6525 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
6527         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
6528         backward to forward direction.
6530         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
6532         [BZ #645]
6533         * locale/programs/ld-collate.c (collate_finish): Compare against last
6534         used section which is known to have rules defined.
6535         (collate_read): After order_start, correctly record order of sections
6536         and queue sections up.
6538 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
6540         [BZ #5071]
6541         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
6542         the same number of pages.
6543         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
6545         * locale/programs/ld-collate.c (collate_read): After initial copy
6546         statement, continue in state 0.
6548         * include/stdio_ext.h (__fsetlocking): Define as macro.
6550 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
6552         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
6553         of section order.
6555         * po/pt_BR.po: Fix typo.
6557 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
6559         * iconvdata/Makefile (modules): Add ISO8859-9E.
6560         (distribute): Add iso8859-9e.c.
6561         (gen-8bit-gap-modules): Add iso8859-9e.
6562         * iconvdata/iso8859-9e.c: New file.
6563         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
6564         * iconvdata/TESTS: Likewise.
6565         * iconvdata/tst-tables.sh: Likewise.
6567         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6569         * locale/iso-639.def: Add several new entries.
6571 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
6573         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
6574         void * pointers instead of struct link_map **.
6575         (_dl_scope_free): Change argument type to void *.
6576         * include/link.h (struct link_map): Change type of l_reldeps
6577         to struct link_map_reldeps, move l_reldepsact into that
6578         struct too.
6579         * elf/dl-deps.c: Include atomic.h.
6580         (_dl_map_object_deps): Only change l->l_initfini when it is
6581         fully populated, use _dl_scope_free for freeing it.  Optimize
6582         removal of libs from reldeps by using l_reserved flag, when
6583         some removal is needed, allocate a new list instead of
6584         reallocating and free the old with _dl_scope_free.  Adjust
6585         for l_reldeps and l_reldepsact changes.
6586         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
6587         searching in l_initfini and l_reldeps without holding dl_load_lock.
6588         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
6589         l_reldepsact changes.
6590         * elf/dl-close.c (_dl_close_worker): Likewise.
6591         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
6593 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
6595         * iconvdata/Makefile (modules): Add KOI8-RU.
6596         (distribute): Add koi8-ru.c.
6597         (gen-8bit-gap-modules): Add koi8-ru.
6598         * iconvdata/koi8-ru.c: New file.
6599         * iconvdata/gconv-modules: Add entries for KOI8-RU.
6600         * iconvdata/TESTS: Likewise.
6601         * iconvdata/tst-tables.sh: Likewise.
6603         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6605 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
6607         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
6608         with __warning__/__error__ attributes.
6609         (__warnattr): Define.
6610         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
6611         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
6612         __warnattr.
6613         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
6614         of __*_chk if compile time detectable overflow is found.
6615         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
6616         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
6617         with __warnattr.
6618         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
6619         instead of __*_chk if compile time detectable overflow is found.
6620         (__gets_alias): Rename to...
6621         (__gets_warn): ... this.  Add __warnattr.
6622         (gets): Call __gets_warn instead of __gets_alias.
6623         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
6624         aliases with __warnattr.
6625         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
6626         time detectable overflow is found.
6627         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
6628         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
6629         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
6630         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
6631         __getdomainname_chk_warn): New aliases with __warnattr.
6632         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
6633         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
6634         __*_chk_warn instead of __*_chk if compile time detectable overflow
6635         is found.
6636         (__getgroups_chk): Rename argument to __listlen from listlen.
6637         (__getwd_alias): Rename to...
6638         (__getwd_warn): ... this.  Add __warnattr.
6639         (getwd): Call __getwd_warn instead of __getwd_alias.
6640         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
6641         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
6642         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
6643         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
6644         __wcsnrtombs_chk_warn): New aliases with __warnattr.
6645         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
6646         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
6647         compile time detectable overflow is found.
6648         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
6649         to use __*_chk or not.
6650         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
6651         in comparisons which function should be called and in __*_chk*
6652         arguments.  Call __*_chk_warn instead of __*_chk if compile time
6653         detectable overflow is found.
6654         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
6655         __*_chk argument.
6656         * debug/tst-chk1.c (do_test): Add a few more tests.
6658 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
6660         [BZ #5058]
6661         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
6662         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
6663         (_nl_unload_domain): Finalize conversions_lock.
6664         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
6665         handling table of known conversions.
6667 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
6669         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
6670         close_not_cancel_no_status instead of close.
6672 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
6674         [BZ #5028]
6675         * posix/regcomp.c (lookup_collation_sequence_value): Check that
6676         nrules != 0 for multibyte chars.
6678 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
6680         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
6681         Provide better error message in case the type is unknown.
6683         [BZ #4963]
6684         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
6685         * string/stratcliff.c: Make usable to test wide char functions.
6686         * wcsmbs/wcsatcliff.c: New file.
6687         * wcsmbs/Makefiel (tests): Add wcsatcliff.
6689         [BZ #4972]
6690         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
6691         (distribute): Add mac-centraleurope.c.
6692         (gen-8bit-gap-modules): Add mac-centraleurope.
6693         * iconvdata/mac-centraleurope.c: New file.
6694         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
6695         * iconvdata/TESTS: Likewise.
6696         * iconvdata/tst-tables.sh: Likewise.
6698         [BZ #5043]
6699         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
6701 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
6703         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
6704         from __x86_64_core_cache_size_half.
6705         (init_cacheinfo): Compute shared cache size for AMD processors with
6706         shared L3 correctly.
6707         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
6708         name change.
6709         Patch in large parts by Evandro Menezes.
6711 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
6713         * elf/dl-lookup.c (add_dependency): Handle failing memory
6714         allocation for dependency list.  Remove unnecessary check.
6716         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
6717         open/close when determining source addresses.
6719         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
6720         sha512-crypt, and sha512.
6721         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
6722         (distribute): Add sha256.h and sha512.h.
6723         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
6724         and call the appropriate code.
6725         * crypt/sha256-crypt.c: New file.
6726         * crypt/sha256.c: New file.
6727         * crypt/sha256.h: New file.
6728         * crypt/sha256c-test.c: New file.
6729         * crypt/sha256test.c: New file.
6730         * crypt/sha512-crypt.c: New file.
6731         * crypt/sha512.c: New file.
6732         * crypt/sha512.h: New file.
6733         * crypt/sha512c-test.c: New file.
6734         * crypt/sha512test.c: New file.
6736 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
6738         * misc/bits/syslog.h (syslog): Remove extraneous argument from
6739         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
6740         __syslog_chk.
6742 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
6744         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
6745         %as in fscanf format strings.
6747         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
6748         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6749         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
6750         Likewise.
6751         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
6752         Likewise.
6754         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
6755         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
6756         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
6757         * elf/dl-sym.c (do_sym): Likewise.
6758         * include/link.h (struct link_map): Add l_serial field.
6759         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
6760         * elf/dl-lookup.c (add_dependency): Add flags argument.
6761         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
6762         flags, use THREAD_GSCOPE_RESET_FLAG before and
6763         THREAD_GSCOPE_SET_FLAG after
6764         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
6765         Don't dereference map until it has been found on some list.
6766         If map->l_serial changed, return -1.
6768 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
6770         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
6771         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
6772         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
6773         libc_hidden_proto.
6774         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
6775         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
6776         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
6777         add libc_hidden_proto.
6778         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
6779         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
6780         conformance requested.
6781         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
6782         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
6783         conformance requested.
6784         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
6785         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
6786         conformance requested.
6787         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
6788         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
6789         ISO C99 or POSIX conformance requested.
6790         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
6791         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
6792         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
6793         and __isoc99_vsscanf@@GLIBC_2.7.
6794         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
6795         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
6796         (tests): Add scanf14.
6797         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
6798         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
6799         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
6800         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
6801         CFLAGS-isoc99_scanf.c): Add $(exceptions).
6802         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
6803         from using internal headers.
6804         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
6805         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
6806         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
6807         and __isoc99_vswscanf@@GLIBC_2.7.
6808         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
6809         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
6810         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
6811         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
6812         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
6813         * stdio-common/isoc99_scanf.c: New file.
6814         * stdio-common/isoc99_vsscanf.c: New file.
6815         * stdio-common/isoc99_vscanf.c: New file.
6816         * stdio-common/isoc99_vfscanf.c: New file.
6817         * stdio-common/isoc99_fscanf.c: New file.
6818         * stdio-common/isoc99_sscanf.c: New file.
6819         * wcsmbs/isoc99_fwscanf.c: New file.
6820         * wcsmbs/isoc99_vswscanf.c: New file.
6821         * wcsmbs/isoc99_swscanf.c: New file.
6822         * wcsmbs/isoc99_wscanf.c: New file.
6823         * wcsmbs/isoc99_vwscanf.c: New file.
6824         * wcsmbs/isoc99_vfwscanf.c: New file.
6825         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
6826         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
6827         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
6828         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
6829         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
6830         * stdio-common/scanf14.c: New test.
6831         * stdio-common/scanf15.c: New test.
6832         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
6833         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
6834         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
6835         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
6836         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
6837         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
6838         __nldbl___isoc99_scanf@@GLIBC_2.7,
6839         __nldbl___isoc99_fscanf@@GLIBC_2.7,
6840         __nldbl___isoc99_sscanf@@GLIBC_2.7,
6841         __nldbl___isoc99_vscanf@@GLIBC_2.7,
6842         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
6843         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
6844         __nldbl___isoc99_wscanf@@GLIBC_2.7,
6845         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
6846         __nldbl___isoc99_swscanf@@GLIBC_2.7,
6847         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
6848         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
6849         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
6850         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
6851         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
6852         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
6853         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
6854         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
6855         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6856         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
6857         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
6858         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
6859         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
6860         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
6861         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
6862         functions.
6863         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
6864         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
6865         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
6866         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
6867         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
6868         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
6869         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
6870         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
6871         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
6872         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
6873         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
6874         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
6876         * stdio-common/Makefile (tests): Add scanf13.
6877         (scanf13-ENV): New.
6878         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
6879         m modifier followed by l.
6880         (STRING_ARG): Add width argument.
6881         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
6882         <case L_('C')>: Handle %mlc and %mC.
6883         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
6884         arguments.
6885         * stdio-common/scanf13.c: New test.
6887         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
6888         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
6890 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
6892         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
6893         type and __THROW marker of splice, vmsplice, and tee.
6894         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6895         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6896         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6897         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6898         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6899         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6900         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6901         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
6902         as cancellation points.
6904 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
6906         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
6907         parse more than three parts of the version number.
6909 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
6911         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
6912         modifier.  Patch by Jakub Jelinek.
6914 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
6916         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
6917         call_fallocate in misc subdir.
6918         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
6919         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
6920         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
6921         instead of __fallocate64.
6922         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
6924 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
6926         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
6927         * rt/Makefile (headers): Add bits/mqueue2.h.
6928         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
6929         optimizing with GCC and __va_arg_pack_len is defined.
6930         * rt/bits/mqueue2.h: New file.
6931         * rt/mq_open.c (__mq_open): Renamed from mq_open.
6932         (mq_open): New strong_alias.
6933         (__mq_open_2): New function.
6934         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
6935         (mq_open): New strong_alias.
6936         (__mq_open_2): New function.
6937         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
6938         * Versions.def (librt): Add GLIBC_2.7 version.
6939         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
6940         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
6942         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
6943         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
6944         is defined rather than when not C++.
6945         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
6946         __openat64_alias): New redirects.
6947         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
6948         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
6949         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
6950         (open, open64, openat, openat64): Rewrite as __extern_always_inline
6951         functions instead of function-like macros.
6953 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
6955         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
6956         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
6957         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
6959 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
6961         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
6962         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
6964 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
6966         * inet/tst-network.c: Increment ERRORS for failing tests.
6968 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
6970         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
6971         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
6972         implement as __extern_always_inline function.
6973         (vsyslog): Define as __extern_always_inline function unconditionally.
6974         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
6975         When __va_arg_pack is defined, implement as __extern_always_inline
6976         functions.
6977         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
6978         __extern_always_inline functions unconditionally.
6979         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
6980         bits/stdio2.h will be included.
6981         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
6982         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
6983         implement as __extern_always_inline functions.
6984         (vswprintf, vwprintf, vfwprintf): Define as
6985         __extern_always_inline functions unconditionally.
6986         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
6988 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
6990         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
6991         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
6992         attribute.
6993         * include/features.h (__USE_EXTERN_INLINES): Define only when
6994         __extern_inline is defined.
6995         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
6996         is defined instead of when not __cplusplus.
6997         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
6998         is defined instead of when not __cplusplus.
6999         * socket/sys/socket.h: Include bits/socket2.h when
7000         __extern_always_inline is defined instead of when not __cplusplus.
7001         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
7002         is defined instead of when not __cplusplus.
7003         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
7004         is defined instead of when not __cplusplus.
7005         * string/string.h: Include bits/string3.h when __extern_always_inline
7006         is defined instead of when not __cplusplus.
7007         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
7008         is defined instead of when not __cplusplus.
7009         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
7010         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
7011         is not defined.
7012         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
7013         defined __extern_always_inline instead of !defined __cplusplus.
7014         * libio/bits/stdio-ldbl.h: Likewise.
7015         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7016         * misc/bits/syslog.h (syslog): Don't define for C++.
7017         (vsyslog): Use __extern_always_inline function for C++ instead of
7018         a macro.
7019         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
7020         whenever that macro is defined.
7021         (vprintf): Don't provide the inline for C++.
7022         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
7023         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
7024         define the macros for C++.
7025         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7026         __extern_always_inline functions for C++.
7027         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
7028         stat64, lstat64, fstat64, fstatat64): Don't define if not
7029         __USE_EXTERN_INLINES.
7030         * wcsmbs/bits/wchar2.h: Fix #error message.
7031         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
7032         (vswprintf, vwprintf, vfwprintf): Define using
7033         __extern_always_inline functions for C++.
7034         * string/bits/string3.h: Don't #undef macros if __cplusplus.
7035         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
7036         strncpy, strcat, strncat): Define as __extern_always_inline
7037         functions instead of macros for C++.
7038         * math/bits/cmathcalls.h: Guard __extern_inline routines with
7039         defined __extern_inline.
7040         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
7041         to __extern_inline whenever that macro is defined.
7042         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7043         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7044         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
7045         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
7046         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7047         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7048         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7049         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7050         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
7051         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
7052         prototypes.  Only provide __extern_inline routines if
7053         __USE_EXTERN_INLINES.
7054         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
7055         tests.
7056         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
7057         For now avoid some *printf tests in C++.  Skip all testing
7058         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
7059         is not.
7060         * debug/tst-chk4.cc: New file.
7061         * debug/tst-chk5.cc: New file.
7062         * debug/tst-chk6.cc: New file.
7063         * debug/tst-lfschk4.cc: New file.
7064         * debug/tst-lfschk5.cc: New file.
7065         * debug/tst-lfschk6.cc: New file.
7066         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
7067         prototypes in C++.
7068         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
7069         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
7070         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
7072 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
7074         * po/cs.po: Update from translation team.
7076 2007-09-11  Roland McGrath  <roland@redhat.com>
7078         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
7079         compiling.
7081 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7083         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
7085 2007-09-05  Roland McGrath  <roland@redhat.com>
7087         * manual/signal.texi (Signaling Another Process): Typo fix.
7088         From Karl Berry <karl@freefriends.org>.
7090 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
7092         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
7093         zero if not defined.
7094         (make_request): Recognize optimistic addresses and treat them like
7095         deprecated addresses.
7096         Reported by Neil Horman <nhorman@redhat.com>.
7098 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
7100         * nscd/connections.c (send_ro_fd): Also transfer file size.
7101         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
7102         file size don't call fstat.
7104         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
7105         ahead and map the file.  This should always be correct and we can
7106         catch problems later.
7108 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
7110         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
7111         prototypes.
7112         (__fread_alias, __fread_unlocked_alias): New aliases.
7113         (fread): New extern inline.
7114         (fread_unlocked): Likewise.  Undef macro before definition of
7115         the inline function.
7116         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
7117         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
7118         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
7119         and __fread_unlocked_chk@@GLIBC_2.7.
7120         * debug/fread_chk.c: New file.
7121         * debug/fread_u_chk.c: New file.
7122         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
7124 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
7126         * sysdeps/unix/sysv/linux/syscalls.list
7127         (personality): Change caller to EXTRA.
7129 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
7131         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
7132         to keep gcc quiet.
7133         * iconvdata/iso-2022-cn.c (BODY): Likewise.
7135         * locale/programs/ld-collate.c (collate_output): Avoid warning if
7136         NDEBUG is defined.
7138         * Makerules: Use -p option with mkdir.
7140         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
7141         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
7142         (_xdr_directory_obj): Likewise.
7143         (xdr_entry_obj): Likewise.
7144         (xdr_group_obj): Likewise.
7145         (xdr_link_obj): Likewise.
7146         (xdr_table_obj): Likewise.
7147         (_xdr_nis_result): Likewise.
7148         (_xdr_ns_request): Likewise.
7149         (_xdr_ib_request): Likewise.
7150         (_xdr_nis_taglist): Likewise.
7151         (xdr_cback_data): Likewise.
7152         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
7153         (xdr_ypresp_maplist): Likewise.
7155         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
7157         * posix/regex_internal.h: Prevent some declarations and definitions
7158         to be seen when used in tests.
7160         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
7161         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
7163         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
7165         * config.make.in (datarootdir): Add to shut up configure.
7167         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
7168         associativity for fully-associative caches.
7170         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
7171         requests.  Fill on more associativity values for L2.
7172         Patch mostly by Evandro Menezes.
7174 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
7176         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7177         (_libc_vdso_platform_setup): Avoid using exported variable by using
7178         alias.
7180         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
7182         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
7183         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
7184         defined.
7186 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
7188         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
7189         align stack for call if pltexit is to be used.
7191         [BZ #3924]
7192         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
7193         align for function call in case pltexit has to be called later.
7195         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
7196         implicit atomic operation when storing function pointer.
7197         (_dl_runtime_profile): Likewise.
7199 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
7201         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
7202         NIS_NOTFOUND.
7204 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
7206         [BZ #4566]
7207         * string/strtok.c: Fix typo in comment.
7209         [BZ #4582]
7210         * debug/segfault.c: Fix typos in comments.
7212         [BZ #4588]
7213         * stdio-common/tempnam.c: Fix comment, it is not checked that
7214         TMPDIR points to a writable directory.
7216         [BZ #4726]
7217         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
7218         memory allocated for the name server address.
7220         [BZ #4946]
7221         * nscd/connections.c (handle_request): Using sendfile always
7222         requires that mmap is used for the database.
7223         Patch by Petr Baudis <pasky@suse.cz>.
7225         [BZ #4905]
7226         * nscd/hstcache.c (cache_addhst): When reloading an entry which
7227         suddenly has two or more addresses, ignore it and remove the old
7228         entry.
7230         [BZ #4814]
7231         * resolv/res_hconf.c: Prepare for compiling outside libc.
7232         * nscd/res_hconf.c: New file.
7233         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
7234         the new file.
7235         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
7236         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
7238         * nscd/hstcache.c (cache_addhst): Minimal optimization.
7240         [BZ #4925]
7241         * debug/pcprofiledump.c: Turn on internationalization by calling
7242         setlocale.  Patch mostly by Benno Schulenberg.
7244         [BZ #4936]
7245         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
7246         the state.
7247         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
7248         * iconvdata/bug-iconv5.c: New file.
7250 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
7252         [BZ #4896]
7253         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
7254         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
7255         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
7256         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
7257         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
7258         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
7259         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
7260         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
7262 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
7264         [BZ #4937]
7265         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
7266         lookup loop.  Suggested by John Reiser.
7268 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
7270         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
7272 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
7274         * csu/libc-start.c: Don't handle VDSO_SETUP here.
7275         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
7276         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
7277         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
7278         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
7279         to...
7280         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
7282 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
7284         * po/nl.po: Update from translation team.
7286 2007-08-16  Andreas Jaeger  <aj@suse.de>
7288         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
7289         Reported by Peter Festner <peter.festner@ewetel.net>.
7291 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
7293         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
7295 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
7297         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
7298         to check for undefined symbols.
7300         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
7301         If the syscall fails, set errno to the actual returned error number
7302         rather than EINVAL.
7303         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
7304         arguments are incorrect, set errno to EINVAL, if the syscall
7305         fails, set errno to the actual returned error number.
7307         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
7308         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
7310         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
7311         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
7312         file.
7313         (ASI_PNF, ASI_BLK_P): Don't define.
7314         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
7315         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
7316         file.
7317         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
7318         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
7319         file.
7321 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
7323         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
7324         FE_UNDERFLOW on Niagara CPUs.
7326         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
7327         exceptions.
7329 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
7331         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
7332         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
7333         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
7334         flush should be used or not inside of the function.
7335         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
7337         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
7338         __thread_start): Use HIDDEN_JUMPTARGET.
7339         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
7340         __thread_start): Likewise.
7341         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
7343         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
7344         Add libc_hidden_proto.
7345         (STRTOF): Add libc_hidden_proto.
7346         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
7347         (strtold_l, wcstold_l): Use them as second argument for
7348         long_double_symbol.
7350 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
7352         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
7354 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7356         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
7358 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
7360         * po/bg.po: New file.  From the translation team.
7362 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
7364         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
7365         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
7366         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
7367         when each feature was introduced.
7369         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
7370         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
7371         (CHECK_HASH): New macro.
7372         (PREPARE_VERSION): Use it.
7374         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
7375         prototype if not __ASSUME_PSELECT.
7376         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
7377         prototype if not __ASSUME_PPOLL.
7379         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
7381         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
7382         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
7383         is defined.
7385 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
7387         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7388         (_libc_vdso_platform_setup): If vDSO is not available point
7389         __vdso_gettimeofday to the vsyscall.
7390         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
7391         __vdso_gettimeofday instead of vsyscall.
7393 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
7395         * nscd/servicescache.c: Include kernel-features.h.
7396         * nscd/gai.c: Likewise.
7397         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
7398         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
7399         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
7400         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
7401         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
7402         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
7403         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
7404         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
7405         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
7407 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
7409         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
7410         and _dl_get_origin defines anymore.
7412         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
7413         Build fix for systems which might lack POSIX timer support.
7415         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7416         (_libc_vdso_platform_setup): Mangle function pointers before storing
7417         them.
7418         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
7419         Demangle vdso pointer before use.
7420         (INTERNAL_VSYSCALL): Likewise.
7422         * elf/cache.c (primes): Mark as const.
7423         Noted by Roland McGrath.
7425 2007-08-01  Andreas Jaeger  <aj@suse.de>
7426             Jakub Jelinek  <jakub@redhat.com>
7428         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
7429         (options): Add option.
7430         (parse_opt): Handle option.
7431         (manual_link): Adjust process_file caller.  Call implicit_soname.
7432         (search_dir): Formatting.  Use and populate auxiliary cache.
7433         (main): Load and save auxiliary cache.
7434         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
7435         stat64 from fstat64 to caller.
7436         (implicit_soname): New function.
7437         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
7438         leave *soname as NULL.
7439         * elf/cache.c: Include libgen.h.
7440         (print_entry, print_cache, compare, save_cache, add_to_cache):
7441         Formatting and cleanups.
7442         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
7443         aux_cache_file): New structures.
7444         (AUX_CACHEMAGIC): Define.
7445         (primes): New array.
7446         (aux_hash_size, aux_hash): New variables.
7447         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
7448         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
7449         load_aux_cache, save_aux_cache): New functions.
7450         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
7451         (init_aux_cache, search_aux_cache, add_to_aux_cache,
7452         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
7453         (process_file): Adjust prototype.
7455 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
7457         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
7458         with __need_size_t.
7460 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
7462         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
7463         r_found_version structure as second parameter.
7464         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
7465         (_dl_vdso_vsym): Change type of second parameter accordingly.
7466         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
7467         (_libc_vdso_platform_setup): Adjust.
7468         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7469         (_libc_vdso_platform_setup): Likewise.
7471         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
7472         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
7473         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
7474         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
7475         * csu/libc-start.c: Pretty printing.
7476         Use VDSO_SETUP if defined.
7477         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
7478         and let generic code call into _libc_vdso_platform_setup.
7479         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
7480         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
7481         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
7482         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
7483         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
7484         for GLIBC_PRIVATE.
7485         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
7486         (sysdep_rountines): Add dl-vdso.
7488         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
7489         of routines.
7491         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
7492         attribute_hidden to __vdso_gettimeofday prototype.
7494 2007-08-12  Roland McGrath  <roland@redhat.com>
7496         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
7497         From: Karl Berry <karl@freefriends.org>.
7499 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
7501         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
7502         an atime update for the files we read.
7504 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
7506         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
7508         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
7509         instead of mkstemp.
7511         * misc/Makefile (routines): Add mkostemp and mkostemp64.
7512         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
7513         * misc/mkostemp.c: New file.
7514         * misc/mkostemp64.c: New file.
7515         * stdlib/stdlib.h: Declare the new functions.
7516         * sysdeps/posix/tempname.c: Add new parameter which is added to
7517         the flags for open.  Remove __GT_BIGFILE handling.
7518         * stdio-common/tempname.c: Likewise.
7519         * include/stdio.h: Adjust __gen_tempname prototype.
7520         Renumber __GT_* constants.
7521         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
7522         * misc/mkdtemp.c: Likewise.
7523         * misc/mkstemp.c: Likewise.
7524         * misc/mkstemp64.c: Likewise.
7525         * misc/mktemp.c: Likewise.
7526         * stdio-common/tempnam.c: Likewise.
7527         * stdio-common/tmpfile.c: Likewise.
7528         * stdio-common/tmpfile64.c: Likewise.
7529         * stdio-common/tmpnam.c: Likewise.
7530         * stdio-common/tmpnam_r.c: Likewise.
7532 2007-08-10  Roland McGrath  <roland@frob.com>
7534         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
7535         New macros.
7536         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
7537         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7539 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
7541         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
7542         possible.
7543         * nss/nss_files/files-alias.c (internal_setent): Likewise.
7544         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
7545         * nss/nss_files/files-have_o_cloexec.c: New file.
7547         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
7548         available.
7550 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
7552         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
7553         ___new_wcstold_l): New weak aliases.
7554         (strtold_l, wcstold_l): Use them as second argument for
7555         long_double_symbol.
7557 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
7559         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
7560         register in test for error.
7562         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
7563         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
7565         * po/sv.po: Update from translation team.
7567 2007-08-06  Roland McGrath  <roland@redhat.com>
7569         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
7570         Remove __strto*_l inlines.
7571         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
7572         * stdlib/strtod.c: Add libc_hidden_def.
7573         * stdlib/strtod_l.c: Likewise.
7574         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
7575         for __new_strtold and __new_wcstold.
7576         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
7577         __STRTOF, STRTOF.
7578         * stdlib/strtol.c: Add libc_hidden_def.
7579         * stdlib/strtol_l.c: Likewise.
7580         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
7581         strtoq.
7583         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
7585         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
7586         * scripts/data/localplt-generic.data: ... here.
7587         * elf/Makefile (check-data): Get generic file if no other.
7588         ($(objpfx)check-localplt.out): Make target unconditional.
7590         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
7591         Use ElfW(Nhdr).
7593 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
7595         * po/zh_CN.po: Updated translation from translation team.
7597 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
7599         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
7600         Don't use CGOTSETUP and CGOTRESTORE macros.
7602 2007-08-04  Roland McGrath  <roland@redhat.com>
7604         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
7606 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
7608         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
7609         __extension__ around the whole statement expression.
7611 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
7613         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
7614         elements during initialization.
7616         * po/pl.po: Updated translation from translation team.
7617         * po/tr.po: Likewise.
7618         * po/nl.po: Likewise.
7620 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
7622         * rt/aio.h: Add __nonnull attributes.
7624 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
7626         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
7627         * stdlib/Makefile (tests): Add tst-strtod5.
7628         (tst-strtod5-ENV): New.
7629         * stdlib/tst-strtod5.c: New file.
7631         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
7632         failed.
7633         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
7634         on failure.
7636         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
7637         allocated.
7639 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
7641         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
7642         numbers.
7644 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
7646         * io/Makefile (aux): Add have_o_cloexec.
7647         * include/fcntl.h: Declare __have_o_cloexec.
7648         * io/have_o_cloexec.c: New file.
7649         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
7650         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
7651         fcntl call if not necessary.
7652         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
7653         of local variable.
7655         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
7656         Avoid memset, add explicit initialization.
7657         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
7658         to the end and change into zero-sized array.
7659         Move lock member to fill a hole on 64-bit platforms.
7661         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
7662         inline functions.
7663         * include/stdlib.h: Add __strto*_internal prototypes here.
7664         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
7665         inline functions.
7666         * include/wchar.h: Add __wcsto*_internal prototypes.
7667         * sysdeps/generic/inttypes.h: No need to protect the declaration
7668         of the __strto*_internal and __wcsto*_internal members here.
7670         * rt/mqueue.h: Change const to __const and add nonnull attributes.
7672 2007-08-02  Roland McGrath  <roland@redhat.com>
7674         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
7675         $(inst_bindir)/getconf if possible.
7677         * posix/Makefile ($(objpfx)getconf.speclist): New target.
7678         (generated): Add it.
7679         ($(inst_libexecdir)/getconf): Use it.
7681 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
7683         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
7684         /proc is faster and sufficient.  /sys is still needed for
7685         __get_nprocs_conf.
7687 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
7689         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
7690         syscall as __fallocate64.
7691         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
7692         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
7694 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
7696         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
7697         value.
7699         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
7700         if off_t is different rank from size_t.
7702         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
7703         uw_frame_state_for): Avoid type punning warnings.
7704         * sysdeps/generic/unwind-dw2-fde-glibc.c
7705         (_Unwind_IteratePhdrCallback): Likewise.
7706         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
7707         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
7708         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
7709         pointers.
7711 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
7713         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
7714         total processors using sysfs.
7715         (__get_nprocs): Use sysfs to determine which processors are online.
7717 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
7719         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
7720         syscall arguments count.
7722         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
7724 2007-07-30  Roland McGrath  <roland@redhat.com>
7726         * manual/libc.texinfo: Update copyrights, formatting magic, and
7727         @dircategory.  From Karl Berry <karl@freefriends.org>.
7729 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
7731         [BZ #4860]
7732         * io/Makefile (headers): Add bits/fcntl2.h.
7734         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
7735         using gcc builtin.
7736         (__CPU_EQUAL_S): Likewise.
7738         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
7739         (tests): Add tst-cpuset.
7740         * posix/sched_cpualloc.c: New file.
7741         * posix/sched_cpufree.c: New file.
7742         * posix/tst-cpuset.c: New file.
7743         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
7744         GLIBC_2.7.
7745         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
7746         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
7747         macros.  Define CPU_*_S macros.
7749 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
7751         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
7752         entry.
7754         [BZ #4858]
7755         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
7756         #.0g and value rounded to 1.0.
7757         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
7759 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
7761         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
7762         for int_frac_digits and frac_digits.
7764         * login/logout.c (logout): Avoid aliasing violation.
7765         * login/logwtmp.c (logwtmp): Likewise.
7767         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
7769         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
7770         to avoid warning.
7771         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
7772         warning.
7773         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
7774         warning.
7775         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
7776         to avoid warnings.
7778         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
7779         void **.
7780         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
7782         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
7783         char * to avoid warning.
7784         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
7786         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
7788         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
7789         allocate_arrays): Cast second argument to charmap_find_symbol
7790         to char * to avoid warnings.
7792         * locale/programs/repertoire.c (repertoire_new_char): Change
7793         from_nr, to_nr and cnt to unsigned long, adjust printf format
7794         string.
7796         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
7797         Cast second argument to new_element to char * to avoid warnings.
7799         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
7801         * intl/gettextP.h (struct loaded_domain): Change plural to const
7802         struct expression *.
7803         * intl/plural-eval.c (plural_eval): Change first argument to
7804         const struct expression *.
7805         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
7806         argument to const struct expression **.
7807         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
7808         prototypes.
7809         * intl/loadmsgcat (_nl_unload_domain): Cast away const
7810         in call to __gettext_free_exp.
7812         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
7813         unitialized wstring/wpattern var warnings.
7815         * posix/runtests.c (struct a_test): Make data field const char *.
7817         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
7818         vars if not LDBL_MANT_DIG >= 106.
7820         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
7822         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
7823         __find_specmb to avoid warning.
7825         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
7827         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
7828         to avoid warnings.
7830         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
7831         initializer.
7833         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
7834         tv var when it will be actually used.
7836         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
7837         to avoid warnings.
7839         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
7840         char array resp. pointer.
7841         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
7842         char array.
7843         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
7844         to const unsigned char **.
7845         (ucs4_to_cns11643): Change second argument to unsigned char *.
7846         * iconvdata/euc-tw.c (BODY): Change endp type to
7847         const unsigned char *.
7848         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
7849         to unsigned char *.
7850         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
7851         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
7852         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
7853         types to unsigned char pointers/arrays instead of char.
7854         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
7855         to unsigned char *.
7856         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
7857         * iconvdata/jis0212.h: Include assert.h.
7858         (ucs4_to_jisx0212): Change second argument to unsigned char *.
7859         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
7860         of trying to handle that.
7861         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
7862         shut up a warning.
7863         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
7864         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
7865         two dimensional const unsigned char arrays.
7866         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
7867         Initialize endp to inptr to shut up a warning.
7869 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
7871         [BZ #4772]
7872         * time/strptime_l.c (__strptime_internal): Silently ignore
7873         strftime modifiers and field width in recursive calls.
7875         * include/time.h (enum ptime_locale_status): Remove.
7876         (__strptime_internal): Remove decided and era_cnt arguments,
7877         add statep argument.
7878         * time/strptime_l.c (__strptime_internal): Remove decided
7879         and era_cnt arguments, add statep argument.  Don't recompute
7880         any fields in recursive calls, only update caller's tm
7881         and state, if recursive call fails, don't change tm nor
7882         any state.
7883         (get_alt_number): Adjust.
7884         (recursive): Adjust caller.
7885         (strptime): Likewise.
7886         * time/strptime.c (strptime): Likewise.
7888 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
7890         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
7891         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
7892         if from and to charsets are the same.
7893         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
7894         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
7895         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
7897 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
7899         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
7900         Don't define wint_t when __need_mbstate_t unless it
7901         is necessary.
7902         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
7903         in the typedef if possible.
7904         * wctype/wctype.h (wint_t): Define by including
7905         wchar.h with __need_wint_t instead of including stddef.h
7906         with __need_wint_t and as fallback definining it ourselves.
7907         * iconv/gconv.h (__need_wint_t): Define before including
7908         wchar.h.
7909         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
7910         or _GLIBCPP_USE_WCHAR_T.
7911         (__need_wchar_t): Don't define
7912         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
7913         (__need_wint_t): Don't define before including stddef.h,
7914         define before including wchar.h only if _LIBC or
7915         _GLIBCPP_USE_WCHAR_T.
7916         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
7917         * sysdeps/mach/hurd/_G_config.h: Likewise.
7918         * sysdeps/generic/_G_config.h: Likewise.
7919         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
7920         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
7921         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
7922         if _LIBC or _GLIBCPP_USE_WCHAR_T.
7924 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
7926         * sysdeps/posix/posix_fallocate64.c: Undefine
7927         __posix_fallocate64_l64 before alias handling.
7928         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
7929         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
7930         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
7931         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
7933         * io/tst-posix_fallocate.c: Include <fcntl.h>.
7935 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
7937         * locale/programs/ld-collate.c (atwc): New variable.
7938         (add_to_tablewc): New toplevel function, moved from collate_output.
7939         (collate_output): Remove add_to_tablewc nested function.
7941         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
7942         (name_insert): New function.
7943         (write_output): Remove hash_table and hash_size vars and name_insert
7944         nested function.
7946 2007-07-24  Roland McGrath  <roland@redhat.com>
7948         * Makerules (install-others-programs-nosubdir): New target.
7949         (install-no-libc.a-nosubdir): Depend on it.
7951         * iconv/Makefile (install-others-programs): Set this instead of
7952         install-others.
7953         * login/Makefile (install-others-programs): Likewise.
7954         * posix/Makefile (install-others-programs): Likewise.
7956         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
7957         dependencies.
7959 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
7961         * io/Makefile (tests): Add tst-posix_fallocate.
7962         * io/tst-posix_fallocate.c: New file.
7964         * sysdeps/unix/sysv/linux/kernel-features.h: Define
7965         __ASSUME_FALLOCATE.
7967 2007-07-22  Roland McGrath  <roland@frob.com>
7969         * hurd/getdport.c: Add missing copyright year update.
7971         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
7972         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
7974 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
7976         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
7978         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
7979         O_CLOEXEC is needed.
7980         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
7981         Avoid additional fcntl to set O_CLOEXEC if not needed.
7982         * nis/nss_compat/compat-initgroups.c: Likewise.
7983         * nis/nss_compat/compat-pwd.c: Likewise.
7984         * nis/nss_compat/compat-spwd.c: Likewise.
7986 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7988         [BZ #3665]
7989         * manual/errno.texi: Change ECANCELED value to 119.
7991         [BZ #4610]
7992         * mach/lock-intern.h: Include <sys/cdefs.h>.
7994         [BZ #4178]
7995         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
7996         reading A.
7998         [BZ #4126]
7999         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
8000         to __sigsuspend.
8002         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
8004 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
8006         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
8007         `__ASSEMBLER__'.
8008         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8010 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
8012         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
8013         descriptor received from nscd.
8015         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
8017         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
8018         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8019         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8020         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8021         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8022         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8024 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
8026         [BZ #4816]
8027         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
8029         [BZ #4813]
8030         * login/forkpty.c (forkpty): Close master and slave fds on
8031         fork failure.  Patch by
8032         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
8034 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
8036         * include/features.h (__USE_ISOC95): New define.
8037         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
8038         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
8039         for -std=iso9899:199409.
8040         * CONFORMANCE: Remove comments about unsupported AMD1.
8042 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
8044         * sysdeps/ia64/sched_cpucount.c: New file.
8045         * sysdeps/powerpc/sched_cpucount.c: New file.
8047         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
8048         __BEGIN_DECLS/__END_DECLS around the prototype.
8049         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
8050         pointer to const cpu_set_t.
8052         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
8053         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
8054         __need_size_t and include stddef.h.
8055         * sysvipc/sys/msg.h: Likewise.
8056         * posix/sched.h: Likewise.
8057         * hurd/hurd/signal.h (__need_size_t): Define.
8059         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
8060         neither does signal.h in pedantic ISO C namespaces.  stdio.h
8061         no longer defines wint_t or wchar_t.
8063         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
8064         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
8065         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
8066         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
8067         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
8068         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
8069         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
8070         * debug/printf_chk.c (__printf_chk): Likewise.
8071         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
8072         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
8074         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
8075         Define.
8077         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
8078         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
8080 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
8082         [BZ #4792]
8083         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
8084         * malloc/malloc.h (realloc): Likewise.
8086         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
8087         if one of proc_file_chain streams has that fileno.
8088         * stdio-common/Makefile (tests): Add tst-popen2.
8089         * stdio-common/tst-popen2.c: New test.
8091 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
8093         * elf/ldconfig.c: Allow GPLv2 or any later version.
8094         * elf/readlib.c: Likewise.
8095         * elf/chroot_canon.c: Likewise.
8096         * elf/cache.c: Likewise.
8097         * nscd/mem.c: Likewise.
8098         * nscd/getpwuid_r.c: Likewise.
8099         * nscd/grpcache.c: Likewise.
8100         * nscd/aicache.c: Likewise.
8101         * nscd/getsrvbynm_r.c: Likewise.
8102         * nscd/nscd.c: Likewise.
8103         * nscd/servicescache.c: Likewise.
8104         * nscd/getsrvbypt_r.c: Likewise.
8105         * nscd/initgrcache.c: Likewise.
8106         * nscd/gethstbyad_r.c: Likewise.
8107         * nscd/gethstbynm2_r.c: Likewise.
8108         * nscd/getgrnam_r.c: Likewise.
8109         * nscd/nscd_setup_thread.c: Likewise.
8110         * nscd/getpwnam_r.c: Likewise.
8111         * nscd/gai.c: Likewise.
8112         * nscd/connections.c: Likewise.
8113         * nscd/dbg_log.c: Likewise.
8114         * nscd/cache.c: Likewise.
8115         * nscd/hstcache.c: Likewise.
8116         * nscd/nscd_conf.c: Likewise.
8117         * nscd/getgrgid_r.c: Likewise.
8118         * nscd/pwdcache.c: Likewise.
8119         * catgets/gencat.c: Likewise.
8120         * locale/programs/linereader.h: Likewise.
8121         * locale/programs/locarchive.c: Likewise.
8122         * locale/programs/ld-paper.c: Likewise.
8123         * locale/programs/locfile-kw.h: Likewise.
8124         * locale/programs/ld-address.c: Likewise.
8125         * locale/programs/xmalloc.c: Likewise.
8126         * locale/programs/ld-time.c: Likewise.
8127         * locale/programs/localedef.c: Likewise.
8128         * locale/programs/simple-hash.c: Likewise.
8129         * locale/programs/xstrdup.c: Likewise.
8130         * locale/programs/ld-numeric.c: Likewise.
8131         * locale/programs/locfile-kw.gperf: Likewise.
8132         * locale/programs/ld-collate.c: Likewise.
8133         * locale/programs/charmap-kw.gperf: Likewise.
8134         * locale/programs/charmap.h: Likewise.
8135         * locale/programs/charmap-kw.h: Likewise.
8136         * locale/programs/config.h: Likewise.
8137         * locale/programs/locfile.c: Likewise.
8138         * locale/programs/ld-ctype.c: Likewise.
8139         * locale/programs/charmap.c: Likewise.
8140         * locale/programs/ld-messages.c: Likewise.
8141         * locale/programs/repertoire.h: Likewise.
8142         * locale/programs/locale.c: Likewise.
8143         * locale/programs/ld-name.c: Likewise.
8144         * locale/programs/linereader.c: Likewise.
8145         * locale/programs/locfile.h: Likewise.
8146         * locale/programs/3level.h: Likewise.
8147         * locale/programs/ld-monetary.c: Likewise.
8148         * locale/programs/ld-measurement.c: Likewise.
8149         * locale/programs/charmap-dir.c: Likewise.
8150         * locale/programs/ld-identification.c: Likewise.
8151         * locale/programs/localedef.h: Likewise.
8152         * locale/programs/charmap-dir.h: Likewise.
8153         * locale/programs/repertoire.c: Likewise.
8154         * locale/programs/simple-hash.h: Likewise.
8155         * locale/programs/ld-telephone.c: Likewise.
8156         * locale/programs/locale-spec.c: Likewise.
8157         * locale/programs/locfile-token.h: Likewise.
8158         * posix/getconf.c: Likewise.
8159         * iconv/dummy-repertoire.c: Likewise.
8160         * iconv/iconv_charmap.c: Likewise.
8161         * iconv/iconvconfig.c: Likewise.
8162         * iconv/iconv_prog.c: Likewise.
8163         * malloc/memusagestat.c: Likewise.
8164         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
8166 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8168         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
8169         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
8170         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
8171         check for the first argument.
8173 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
8175         [BZ #4775]
8176         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
8177         (__tgmath_real_type): Fix if expr is const int or other const
8178         qualified integral type.
8179         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
8180         expressions and handle const qualified arguments.
8181         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
8182         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
8183         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
8184         statement expressions.
8185         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
8186         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
8187         (__TGMATH_UNARY_IMAG): Define.
8188         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
8189         * math/Makefile (tests): Add test-tgmath2.
8190         (CFLAGS-test-tgmath2.c): Add.
8191         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
8192         count_cfloat, count_cldouble): New variables.
8193         (NCCALLS): Define.
8194         (main): Check number of complex calls as well.
8195         (F(compile_test)): Add complex tests and tests with const qualified
8196         arguments.
8197         (y, z, ccount): Define.
8198         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
8199         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
8200         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
8201         F(cproj)): New functions.
8202         * math/test-tgmath2.c: New test.
8204 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
8206         [BZ #4776]
8207         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
8208         RPATH etc. as "/" rather than "", don't segfault on empty paths,
8209         instead output ".".
8210         * dlfcn/Makefile (distribute): Add glreflib3.c.
8211         (module-names): Add glreflib3.
8212         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
8213         glreflib1.so.
8214         (LDFLAGS_glreflib3.so): New.
8215         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
8216         glreflib1.so.
8217         * dlfcn/glreflib3.c: New file.
8219         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
8220         returned -1, return NULL.
8221         * intl/explodename.c (_nl_explode_name): Return -1 if
8222         _nl_normalize_codeset failed.
8224 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
8226         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
8227         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
8228         and avoid branch misspredicts for > 31 bytes memset case.
8229         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
8230         Remove toc ref to __cache_line_size.
8232         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
8233         to get ISA-V2.0 branch hints.
8234         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
8235         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
8236         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
8237         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
8238         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
8239         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
8240         Remove toc ref to __cache_line_size.
8242         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
8243         Include math_ldbl_opt.h.
8245 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
8247         [BZ #4773]
8248         * time/strptime_l.c (__strptime_internal): Implement greedy
8249         matching of weekday and month names.
8251 2007-07-09  Roland McGrath  <roland@redhat.com>
8253         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
8254         (ELF_NOTE_ABI): Use it.
8255         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
8257 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
8259         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
8260         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
8262 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
8264         [BZ #4745]
8265         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
8266         in loop to look for conversion specifier to avoid testing of
8267         wrong errno value.
8268         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
8269         * stdio-common/bug18.c: New file.
8270         * stdio-common/bug18a.c: New file.
8271         * stdio-common/bug19.c: New file.
8272         * stdio-common/bug19a.c: New file.
8274 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
8276         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
8277         running awk script.
8279 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
8281         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
8282         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
8283         Return NULL if mmap failed instead of asserting it does not.
8284         (calloc): Check for integer overflow.
8286         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
8287         than LONG_MAX / 10.
8289 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
8291         [BZ #4702]
8292         * nis/nss-default.c: Include errno.h.
8293         (init): Preserve errno.
8295 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
8297         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
8299 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
8301         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
8303 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8305         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
8307 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8309         * sysdeps/s390/dl-procinfo.c: New file.
8310         * sysdeps/s390/dl-procinfo.h: New file.
8311         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
8313 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
8315         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
8316         in PT_NOTE segments with multiple notes.
8317         * elf/readelflib.c (process_elf_file): Likewise.
8319 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
8321         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
8322         ISO C compliant.
8324 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
8326         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
8328 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
8330         * include/link.h: Don't include rtld-lowlevel.h.
8331         (struct link_map): Remove l_scope_lock.
8332         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
8333         (_dl_scope_free_list): New field (variable) in _rtld_global.
8334         (DL_LOOKUP_SCOPE_LOCK): Remove.
8335         (_dl_scope_free): New prototype.
8336         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
8337         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
8338         (_dl_profile_fixup): Likewise.
8339         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
8340         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
8341         THREAD_GSCOPE_RESET_FLAG around it.
8342         * elf/dl-close.c (_dl_close_worker): Don't use
8343         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
8344         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
8345         scopes were queued or if l_scope_mem has been abandoned.
8346         * elf/dl-open.c (_dl_scope_free): New function.
8347         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
8348         * elf/dl-support.c (_dl_scope_free_list): New variable.
8349         * elf/dl-lookup.c (add_dependency): Remove flags argument.
8350         Remove DL_LOOKUP_SCOPE_LOCK handling.
8351         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
8352         handling.
8353         * elf/dl-object.c (_dl_new_object): Don't use
8354         __rtld_mrlock_initialize.
8356 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
8358         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
8359         to fill in holes
8360         (rtld_global_ro): Likewise.
8362 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
8364         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
8365         Move PT_LOAD checking to...
8366         (_dl_addr_inside_object): ... here, new function.
8367         * elf/dl-sym.c (do_sym): If not l_contiguous,
8368         call _dl_addr_inside_object.
8369         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
8370         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
8371         * elf/dl-open.c (dl_open_worker): Likewise.
8372         (_dl_addr_inside_object): New function if IS_IN_rtld.
8373         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
8374         holes are present or are PROT_NONE protected.
8375         * include/link.h (struct link_map): Add l_contiguous field.
8376         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
8378 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
8379             Tomas Janousek  <tjanouse@redhat.com>
8380             Ulrich Drepper  <drepper@redhat.com>
8382         [BZ #4647]
8383         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
8384         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
8385         socket.
8386         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
8387         unused member a bitmap.
8388         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
8389         servers are configured.
8391 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
8393         * elf/rtld.c (dl_main): Don't call init_tls more than once.
8395 2007-06-17  Andreas Schwab  <schwab@suse.de>
8397         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
8399 2007-06-16  Andreas Jaeger  <aj@suse.de>
8401         [BZ #4125]
8402         * sysdeps/unix/sysv/linux/sys/ptrace.h
8403         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
8404         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
8405         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
8406         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
8407         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
8408         Define.
8409         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8410         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8411         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8412         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8414 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
8416         [BZ #4599]
8417         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
8418         determining whether there are IPv4/IPv6 addresses, ignore loopback
8419         addresses.
8421 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
8423         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
8424         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
8425         as the return type.  Change type of "r" variable to CMPtype.
8426         * soft-fp/eqsf2.c (__eqsf2): Likewise.
8427         * soft-fp/eqtf2.c (__eqtf2): Likewise.
8428         * soft-fp/gedf2.c (__gedf2): Likewise.
8429         * soft-fp/gesf2.c (__gesf2): Likewise.
8430         * soft-fp/getf2.c (__getf2): Likewise.
8431         * soft-fp/ledf2.c (__ledf2): Likewise.
8432         * soft-fp/lesf2.c (__lesf2): Likewise.
8433         * soft-fp/letf2.c (__letf2): Likewise.
8434         * soft-fp/unorddf2 (__unorddf2): Likewise.
8435         * soft-fp/unordsf2 (__unordsf2): Likewise.
8436         * soft-fp/unordtf2 (__unordtf2): Likewise.
8438 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
8440         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
8441         make sure gcc doesn't mess around with this.
8443 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
8445         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
8447 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
8449         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
8450         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
8451         at most once per _dl_close_worker.
8453 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
8455         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
8456         __sched_cpucount as const.
8457         * posix/sched_cpucount.c: Adjust.
8459         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
8460         instruction for counting bits.
8461         * sysdeps/x86_64/sched_cpucount.c: New file.
8463 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
8465         * configure.in: Avoid variable named BASH.
8466         * config.make.in: Likewise.
8467         Patch in part by Mike Frysinger.
8469 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
8471         [BZ #4586]
8472         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
8473         pseudo-zeros as zero.
8474         * sysdeps/x86_64/ldbl2mpn.c: New file.
8475         * sysdeps/ia64/ldbl2mpn.c: New file.
8477 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
8479         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
8480         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
8481         Remove unreachable code at the end.
8483 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
8485         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
8486         ldbl-128ibm in comment.
8487         (fpclassifyl): Correct classification of denormals.
8488         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
8489         return value for MIN denormal. Rewrite using long double math too
8490         correctly handle denormals and canonicalize the results.
8492 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
8494         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
8495         (__mpn_construct_long_double): Fix conversion where result ought
8496         to be smaller than __LDBL_MIN__, or the low double should be
8497         denormal.  Fix decision where to negate low double - honor round
8498         to even rules.
8499         * stdio-common/tst-sprintf2.c: Include string.h.
8500         (COMPARE_LDBL): Define.
8501         (TEST): Also test whether a string hexadecimal float representation
8502         can be parsed back to the number.
8503         (main): Add a couple of further tests.
8505 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
8507         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
8508         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
8509         is non-zero, but smaller than 2 * __DBL_MIN__.
8510         * stdio-common/tst-sprintf2.c: New test.
8511         * stdio-common/Makefile (tests): Add tst-sprintf2.
8513         * math/test-misc.c (main): Don't run last batch of tests with
8514         IBM long double format.
8516 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
8518         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
8519         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
8520         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
8521         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
8522         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8523         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
8524         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
8525         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
8526         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
8527         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8528         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
8529         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
8530         New file.
8531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
8532         New file.
8533         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
8534         New file.
8535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
8536         New file.
8537         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
8538         New file.
8539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
8540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
8541         New file.
8542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
8543         New file.
8544         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
8545         New file.
8546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
8547         New file.
8548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
8549         New file.
8551 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
8553         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
8554         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
8555         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
8556         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
8557         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
8558         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
8559         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
8560         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
8562 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
8564         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
8565         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8566         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
8567         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8568         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
8569         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8570         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
8571         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8573 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
8575         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
8576         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
8577         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
8578         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
8580 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
8582         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
8583         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
8585 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
8587         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
8588         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
8589         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
8590         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
8592 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
8594         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
8595         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
8597 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
8599         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
8600         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
8602         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
8603         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
8604         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
8605         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
8607 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
8609         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
8610         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
8611         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
8612         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
8614 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
8616         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
8617         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
8618         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
8619         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8620         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
8621         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8623 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
8625         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
8626         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
8627         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
8628         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
8630 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
8632         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
8633         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
8634         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
8635         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
8636         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
8637         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
8638         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
8639         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
8640         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
8641         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
8642         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
8643         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
8644         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
8645         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
8646         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
8647         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
8649 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
8651         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
8652         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
8654 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
8656         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
8657         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
8659 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
8661         * sysdeps/powerpc/powerpc32/970/Implies: New file.
8662         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
8663         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
8664         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
8665         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
8666         * sysdeps/powerpc/powerpc64/970/Implies: New file.
8667         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
8668         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
8669         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
8670         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
8672 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
8674         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
8676 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
8678         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
8679         branch miss-predicts. Ensure that cache line crossing does not impact
8680         dispatch grouping.
8682 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
8684         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
8685         "../../powerpc32/power4/memcopy.h".
8686         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
8687         "../../powerpc32/power4/wordcopy.c".
8689 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
8691         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
8692         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
8693         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
8694         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
8695         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
8696         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
8698 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
8700         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
8702 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
8704         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
8705         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
8706         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
8707         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
8708         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
8709         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
8710         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
8711         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
8713 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
8715         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
8717 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
8719         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
8720         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
8721         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
8722         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
8723         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
8724         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
8725         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
8727 2007-05-29  Roland McGrath  <roland@redhat.com>
8729         * po/Makefile (po-sed-cmd): New variable.
8730         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
8732 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
8734         * crypt/md5-crypt.c: Fix comment.
8736         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
8737         of crashing.  When this is the case or if the reply is malformed,
8738         don't try to close the new file descriptor since it does not
8739         exist.
8740         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
8742 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
8744         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
8745         if __NR_utimensat is not defined.
8747 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
8749         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
8751 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
8753         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
8754         (open): Fix comment typos.  Don't call __open_2 if flags
8755         is a compile time constant without O_CREAT.
8756         (__open64_2): Add nonnull attribute.
8757         (open64): Fix comment typos.  Don't call __open64_2 if flags
8758         is a compile time constant without O_CREAT.
8759         (__openat_2): Add nonnull attribute, fix nonnull attribute
8760         on redirect.
8761         (openat): Fix comment typos.  Don't call __openat_2 if flags
8762         is a compile time constant without O_CREAT.
8763         (__openat64_2): Add nonnull attribute, fix nonnull attribute
8764         on redirect.
8765         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
8766         is a compile time constant without O_CREAT.
8768 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
8770         * Makerules (sysd-rules): Define PTW for ptw-* files.
8771         * Versions: Define GLIBC_2.7 for libc.
8772         * include/stdio.h: Declare __fortify_fail.
8773         * debug/fortify_fail.c: New file.
8774         * debug/Makefile (routines): Add fortify_fail.
8775         * debug/chk_fail.c: Use __fortify_fail.
8776         * debug/stack_chk_fail.c: Likewise.
8777         * io/Versions: Export __open_2, __open64_2, __openat_2, and
8778         __openat64_2 for GLIBC_2.7.
8779         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
8780         * io/open.c: Define *_2 variant of function which checks for O_CREAT
8781         and fails if necessary.
8782         * io/open64.c: Likewise.
8783         * io/openat.c: Likewise.
8784         * io/openat64.c: Likewise.
8785         * sysdeps/unix/sysv/linux/open64.c: Likewise.
8786         * sysdeps/unix/sysv/linux/openat.c: Likewise.
8787         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
8788         * io/bits/fcntl2.h: New file.
8789         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
8790         __openat64_2.
8791         * include/bits/fcntl2.h: New file.
8792         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8793         Add open_2.
8794         * sysdeps/unix/sysv/linux/open_2.c: New file.
8796 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
8798         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
8799         as second parameter to handle_intel.
8801         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
8802         the entry.
8804         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
8805         handling to ...
8806         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
8807         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
8808         cacheinfo.
8809         * sysdeps/x86_64/memcpy.S: Complete rewrite.
8810         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
8811         Patch by Evandro Menezes <evandro.menezes@amd.com>.
8813         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
8815 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
8817         [BZ #4525]
8818         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
8819         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
8820         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
8822         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
8824         [BZ #4514]
8825         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
8826         reinitialize workend at the start of each do_positional format spec
8827         loop, free workstart before do_positional loops.
8828         (printf_unknown): Fix size of work_buffer.
8829         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
8831         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
8832         (public_sET_STATe): If ms->version < 3, put all chunks into
8833         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
8834         chunks.
8836         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
8837         * malloc/hooks.c: Likewise.
8838         * malloc/arena.c: Likewise.
8839         * malloc/malloc.c (do_check_malloc_state): Don't assert
8840         n_mmaps is not greater than n_mmaps_max.  This removes the need
8841         for the previous change.
8843         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
8844         2007-05-07 commit.
8846 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
8848         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
8849         Define for kernel >= 2.6.22.
8851 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
8853         * elf/dl-close.c (_dl_close_worker): When removing object from
8854         global scope, wait for all lookups to finish afterwards.
8855         * elf/dl-open.c (add_to_global): When global scope array must
8856         grow, allocate a new one and free old array only after all
8857         lookups finish.
8858         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
8859         (_dl_lookup_symbol_x): Likewise.
8860         * elf/dl-support.c: Define _dl_wait_lookup_done.
8861         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
8862         _dl_wait_lookup_done.
8864         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
8865         not overlapping with arena.
8867         * malloc/mcheck.c (reallochook): If size==0, free the block.
8869         * rt/tst-shm.c: Use fstat64 instead of fstat.
8871         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
8872         __NR_sync_file_range is not defined.
8874 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
8876         Dummy files to prevent stub versions from being used.
8877         * sysdeps/x86_64/fpu/k_cosl.c: New file.
8878         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
8879         * sysdeps/x86_64/fpu/k_sinl.c: New file.
8880         * sysdeps/x86_64/fpu/k_tanl.c: New file.
8882         * version.h (VERSION): Set to 2.6.90.
8884 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
8886         * version.h (VERSION): Define to 2.6.
8887         * include/features.h (__GLIBC_MINOR__): Define to 6.
8889         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
8891         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
8892         sizes.
8894 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
8896         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
8897         number of mmaps.  n_mmaps_max is the target.
8898         * malloc/hooks.c: Likewise.
8899         * malloc/arena.c: Likewise.
8901 2007-05-12  Andreas Jaeger  <aj@suse.de>
8903         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
8904         getpid.
8906 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
8908         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
8909         adding new variables.
8911         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
8912         optimize.  Completely extend global scope array before making the
8913         new entries visible.
8915 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
8917         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
8918         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
8919         tst-getcpu.
8921         * include/link.h: Move l_version and l_nversion members around to
8922         fill gaps.
8924         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
8926         * sysdeps/unix/sysv/linux/sched_setaffinity.c
8927         (__sched_setaffinity_new): If syscall was successful and
8928         RESET_VGETCPU_CACHE is defined, use it before returning.
8929         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
8931         * io/sys/stat.h: Make sure struct timespec is defined for
8932         __USE_ATFILE.
8934         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
8935         UTIME_OMIT.
8936         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
8937         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
8938         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
8939         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
8940         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
8941         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
8942         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
8943         * io/sys/stat.h: Declare utimensat, futimens.
8944         * io/utimensat.c: New file.
8945         * io/futimens.c: New file.
8946         * sysdeps/unix/sysv/linux/utimensat.c: New file.
8947         * sysdeps/unix/sysv/linux/futimens.c: New file.
8948         * io/Makefile (routines): Add utimensat, futimens.
8949         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
8950         * sysdeps/unix/sysv/linux/lutimes.c: New file.
8951         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
8952         available.
8954         * include/sys/cdefs.h: Redefine __nonnull so that test for
8955         incorrect parameters in the libc code itself are not omitted.
8957 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
8959         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
8960         exception in addition to inexact when asked to raise only FE_INEXACT.
8962         [BZ #3427]
8963         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
8964         in *envp.
8966 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
8968         [BZ #4403]
8969         * string/strfry.c (strfry): Make result more random.
8971 2007-05-07  Richard Henderson  <rth@redhat.com>
8973         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
8974         if __NO_LONG_DOUBLE_MATH.
8975         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
8976         available in the compiler, add .arch directive to the assembly.
8978 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
8980         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
8981         compat_symbol to GLIBC_2_1.
8982         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
8983         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
8984         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
8985         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
8986         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
8987         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
8988         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
8989         libc, not libm.
8990         (__isnanl): New compat_symbol.
8992 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
8993             Jakub Jelinek  <jakub@redhat.com>
8995         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
8996         (new_heap): Initialize mprotect_size.
8997         (grow_heap): When growing, only mprotect from mprotect_size till
8998         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
8999         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
9001 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
9002             Peter Bergner  <bergner@us.ibm.com>
9004         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
9005         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
9006         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
9007         * sysdeps/powerpc/fpu/fe_mask.c: New file.
9008         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
9009         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
9010         Call __fe_mask_env() if all FP exceptions disabled.
9011         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
9012         from old FPSCR to new fenv to propagate DFP rounding modes.
9013         Call __fe_mask_env() if FP exceptions previously enabled.
9014         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
9015         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
9016         transitioning from all exceptions disabled to any exception enabled
9017         or visa versa.
9018         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
9019         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
9020         when transitioning from all exceptions disabled to any exception
9021         enabled or visa versa.
9022         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
9023         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
9024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
9025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
9026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
9027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
9029 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
9031         [BZ #4465]
9032         * posix/unistd.h: Remove __THROW from fdatasync.
9034 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
9036         [BZ #4465]
9037         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
9039 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
9041         * stdio-common/vfprintf.c (process_string_arg): Optimize
9042         ridiculous precision in wide char code printing multi-byte string.
9043         Reported by Jim Meyering <jim@meyering.net>.
9045         [BZ #4131]
9046         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
9047         boundaries to work around systems with overlapping binary loading.
9048         Based on a patch by Suzuki <suzuki@in.ibm.com>.
9050 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
9052         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
9053         __mbsnrtowcs after last change.
9055         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
9056         (get_ident): Likewise.
9058 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
9060         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
9061         with setting the sticky bit.
9062         * math/test-misc.c (main): Add more truncation tests.
9064 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
9066         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
9067         double in the function declaration.
9068         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
9069         double in the function declaration.
9070         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9071         float in the function declaration.
9072         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9073         float in the function declaration.
9075         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
9076         denormal operands.  Do not generate FP_EX_DENORM exception.
9077         (FP_UNPACK_RAW_EP): Ditto.
9078         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
9079         undefined _FP_UNPACK_RAW_E.
9080         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
9081         undefined _FP_UNPACK_RAW_EP.
9082         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
9083         undefined _FP_PACK_RAW_E.
9084         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
9085         undefined _FP_PACK_RAW_EP.
9087         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
9088         _FP_FRAC_COPY_2.
9089         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
9090         _FP_FRAC_COPY_4.
9092 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
9093             Jakub Jelinek  <jakub@redhat.com>
9095         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
9096         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
9097         this case.
9098         * soft-fp/op-common.h (FP_TRUNC): Ditto.
9100 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
9102         * math/test-misc.c (main): Add tests for rounding long double
9103         values close to smallest double denormalized value to double.
9105 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
9107         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
9108         condition for truncating to 0.  Set sticky bit for such
9109         truncation.
9111 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
9113         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
9114         fixed length array for ignore.
9116 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
9118         [BZ #4438]
9119         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
9120         stack for large precisions.
9121         * stdio-common/test-vfprintf.c (main): Add test for large
9122         precision.
9124 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
9126         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
9127         for exponent 0.
9128         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
9130         [BZ #4439]
9131         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
9132         account in the size check.
9133         * resolv/tst-inet_ntop.c: New test.
9134         * resolv/Makefile (tests): Add tst-inet_ntop.
9136 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
9137             Jakub Jelinek  <jakub@redhat.com>
9139         [BZ #4349]
9140         * malloc/malloc.c: Keep separate list for first blocks on the bin
9141         lists with a given size.  This helps skipping over list elements
9142         we know won't fit in two places.
9143         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
9145 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
9147         [BZ #4102]
9148         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
9149         label to Teredo tunnel addresses 2001://32.
9151 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
9153         * locale/programs/ld-collate.c (collate_read): Allow order_start
9154         after copy.
9156         * locale/programs/ld-collate.c (collate_read): Fix printing of
9157         error message.
9159         [BZ #3213]
9160         * locale/C-translit.h.in: Add entry for U2044.
9162         [BZ #4342]
9163         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
9164         hexa-decimal floats without exponent.
9165         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
9167 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
9169         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
9170         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
9171         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
9172         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
9173         GLIBC_2.6.
9174         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
9175         Add sched_getcpu.
9177 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
9179         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
9180         of 0 after the out_fail label.
9182 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
9184         [BZ #4406]
9185         * iconv/gconv_charset.h (strip): Allow ':'.
9186         * iconv/iconv_open.c (iconv_open): Adjust comment.
9188 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
9190         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
9191         version.
9193 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
9195         [BZ #4381]
9196         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
9197         alignment of buffer and tmp_buffer.
9198         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
9199         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
9200         alignment of buffer.
9201         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
9202         bigger than INT_MAX.
9203         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
9204         h_errnop arguments.  Fail if buflen is too small.
9205         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
9207 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
9209         [BZ #4405]
9210         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
9211         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
9213 2007-04-22  Roland McGrath  <roland@redhat.com>
9215         * elf/elf.h (NT_PRXFPREG): New macro.
9217 2007-04-19  Andreas Jaeger  <aj@suse.de>
9219         [BZ #3905]
9220         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
9221         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
9222         Added.
9224 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
9226         * include/sys/mman.h: Mark madvise hidden.
9227         * misc/madvise.c: Add libc_hidden_def.
9229 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
9231         * nis/nis_domain_of.c (__nis_domain_of): New function.
9232         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
9233         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
9234         * nis/nis_call.c (rec_dirsearch): Likewise.
9235         (first_shoot): Likewise.  Remove search_parent_first argument.
9236         (struct nis_server_cache): Rename search_parent_first field
9237         to search_parent.
9238         (nis_server_cache_search, nis_server_cache_add): Rename
9239         search_parent_first argument to search_parent.
9240         (__nisfind_server): Likewise.  If search_parent, call
9241         __nis_domain_of.
9243 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
9245         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
9247 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
9249         [BZ #4368]
9250         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
9252 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
9254         [BZ #4364]
9255         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
9257 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
9259         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
9260         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
9261         current number of locales in SUPPORTED.
9262         (create_archive): Initialize serial.
9263         (enlarge_archive): Preserve aliases rather than duplicating
9264         their locrecs.
9266 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
9268         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
9269         after _IO_un_link, not before it.
9271         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
9272         special case handling when wcp == wstartp + 1.  Fix a comment typo.
9273         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
9275 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
9277         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
9278         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
9279         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
9280         Remove __THROW.
9281         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
9282         _IO_file_xsgetn_maybe_mmap): Likewise.
9283         * libio/oldfileops.c (old_do_write): Likewise.
9284         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
9285         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
9286         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
9287         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
9288         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
9289         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
9290         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
9291         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
9292         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
9293         _IO_file_underflow, _IO_file_underflow_mmap,
9294         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
9295         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
9296         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
9297         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
9298         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
9299         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
9300         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
9301         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
9302         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
9303         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
9304         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
9305         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
9306         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
9307         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
9308         _IO_adjust_column_internal, _IO_default_uflow_internal,
9309         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
9310         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
9311         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
9312         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
9313         _IO_file_close_it_internal, _IO_file_underflow_internal,
9314         _IO_file_overflow_internal, _IO_file_attach_internal,
9315         _IO_file_fopen_internal, _IO_file_sync_internal,
9316         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
9317         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
9318         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
9319         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
9320         _IO_seekpos_unlocked): Likewise.
9321         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
9322         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
9324 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
9326         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
9327         argument in xmalloc size computation.
9329 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
9331         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
9332         math_opt_barrier and math_force_eval macros.
9334 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
9336         [BZ #3306]
9337         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
9338         * sysdeps/i386/fpu/math_private.h: New file.
9339         * sysdeps/x86_64/fpu/math_private.h: New file.
9340         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
9341         math_force_eval macros.  Use "+m" constraint on asm rather than
9342         "=m" and "m".
9343         * math/s_nextafter.c (__nextafter): Likewise.
9344         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
9345         Likewise.
9346         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
9347         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
9348         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9349         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
9350         math_opt_barrier and math_force_eval macros.
9351         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
9352         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
9353         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
9354         (__nexttoward): Use math_opt_barrier and
9355         math_force_eval macros.  Use "+m" constraint on asm rather than
9356         "=m" and "m".  Only use asm to force double result if
9357         FLT_EVAL_METHOD is 2.
9358         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
9359         (__nexttowardf): Use math_opt_barrier and
9360         math_force_eval macros.  Use "+m" constraint on asm rather than
9361         "=m" and "m".  Only use asm to force double result if
9362         FLT_EVAL_METHOD is not 0.
9363         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
9364         (__nexttowardf): Use math_opt_barrier and
9365         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
9366         x to float using asm.
9367         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
9368         (__nldbl_nexttowardf): Use math_opt_barrier and
9369         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
9370         x to float using asm.
9371         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
9372         (__nexttowardf): Use math_opt_barrier and math_force_eval
9373         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
9374         * math/bug-nextafter.c (zero, inf): New variables.
9375         (main): Add new tests.
9376         * math/bug-nexttoward.c (zero, inf): New variables.
9377         (main): Add new tests.
9379 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
9381         [BZ #3427]
9382         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
9383         exceptions both in SW and MXCSR.
9384         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
9385         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
9386         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
9387         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9388         in MXCSR if SSE is available.
9389         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
9390         and ldsodefs.h.
9391         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
9392         Fix comment typo.
9393         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
9394         Return 0 rather than 1.
9395         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
9396         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
9397         * math/test-fenv.c (feholdexcept_tests): New function.
9398         (main): Call it.
9400 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
9402         [BZ #3427]
9403         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9404         in SW.
9406 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
9408         [BZ #4344]
9409         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
9410         Reported by David Anderson <davea42@earthlink.net>.
9412 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
9414         * posix/sys/wait.h: Remove unnecessary forward declaration.
9416 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
9418         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
9419         with obj->do_servers after first_shoot.
9421 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
9423         * posix/Makefile (routines): Add sched_cpucount.
9424         (tests): Add tst-cpucount.
9425         * posix/sched_cpucount.c: New file.
9426         * posix/tst-cpucount.c: New file.
9427         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
9428         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
9429         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
9430         * posix/sched.h: Define CPU_COUNT.
9432 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
9434         * posix/fnmatch.c (STRUCT): Define.
9435         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
9436         * posix/fnmatch_loop.c (struct STRUCT): New type.
9437         (FCT): Add ends argument.  If ends != NULL and normal * is
9438         seen in the pattern, store current pattern and string pointers
9439         and return.  Adjust recursive calls.
9440         (EXT): Adjust FCT callers.
9441         (STRUCT): Undef at the end of the file.
9442         * posix/Makefile (tests): Add tst-fnmatch2.
9443         * posix/tst-fnmatch2.c: New test.
9445 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
9447         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
9448         and 1 on failure.
9450         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
9451         Change last argument to unsigned int.
9453 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
9455         * scripts/check-local-headers.sh: Filter out sys/capability.h.
9457 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
9459         * config.h.in (HAVE_LIBCAP): Add.
9460         * nscd/selinux.h: Include sys/capability.h rather than non-existent
9461         sys/capabilities.h.
9462         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
9463         free_caps.  Cast away const from 4th cap_set_flag argument.
9465 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
9467         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
9468         GLIBC_2.6.
9469         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9470         Add sync_file_range.
9471         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
9473 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
9475         * sysdeps/powerpc/bits/atomic.h
9476         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
9477         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
9478         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9479         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
9480         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9481         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
9482         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
9483         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9484         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9485         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9486         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
9487         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9488         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9489         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9490         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9491         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
9492         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9493         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
9494         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9495         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
9497 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
9499         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9500         (__cache_line_size): Define the variable here.  Add
9501         attribute_hidden, remove weak_extern.
9502         (__libc_start_main): Set __cache_line_size
9503         unconditionally.
9504         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
9505         (__cache_line_size): Define the variable here.  Add
9506         attribute_hidden, remove weak_extern.
9507         (DL_PLATFORM_AUXV): Set __cache_line_size
9508         unconditionally.
9509         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
9510         weak_extern, add attribute_hidden.
9511         (__elf_machine_runtime_setup): Assume __cache_line_size is always
9512         defined in ld.so.
9513         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
9514         definition.
9515         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
9517 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
9519         [BZ #4276]
9520         * timezone/africa: Update from tzdata2007d.
9521         * timezone/asia: Likewise.
9522         * timezone/australasia: Likewise.
9523         * timezone/backward: Likewise.
9524         * timezone/europe: Likewise.
9525         * timezone/iso3166.tab: Likewise.
9526         * timezone/leapseconds: Likewise.
9527         * timezone/northamerica: Likewise.
9528         * timezone/southamerica: Likewise.
9529         * timezone/zone.tab: Likewise.
9531         * timezone/private.h: Update from tzcode2007d.
9532         * timezone/zdump.c: Likewise.
9533         * timezone/zic.c: Likewise.
9535 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
9537         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
9538         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
9539         variables.
9540         (nis_server_cache_search, nis_server_cache_add): New functions.
9541         (__nisfind_server): Use them.  Add dbp and flags argument, if
9542         call __nisbind_create.
9543         (__nisbind_create): Add server_used and current_ep arguments,
9544         only call __nis_findfastest if server_used is ~0.
9545         (__do_niscall2, __prepare_niscall): Adjust callers.
9546         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
9547         ckey_cache_euid, ckey_cache_lock): New variables.
9548         (get_ckey): New function.
9549         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
9550         __pmap_getnisport.  Save __pmap_getnisport result in
9551         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
9552         key.
9553         * nis/nis_lookup.c (nis_lookup): Likewise.
9554         * nis/nis_table.c (nis_list): Likewise.
9555         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
9556         prototypes.
9558         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
9559         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
9560         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
9561         _nss_nisplus_getservbyport_r): Likewise.
9562         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
9563         _nss_nisplus_getnetbyaddr_r): Likewise.
9564         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
9565         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
9566         _nss_nisplus_getntohost_r): Likewise.
9567         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
9568         _nss_nisplus_getrpcbynumber_r): Likewise.
9570 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
9572         * configure.in (libc_cv_gnu89_inline): Only do compile test.
9573         * configure: Rebuilt.
9575         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
9576         bit-fields.
9577         * soft-fp/extended.h (_FP_UNION_E): Likewise.
9579 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
9581         [BZ #2831]
9582         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
9583         bit-fields.
9585 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
9587         * nscd/gai.c: Include alloca.h.
9588         (__libc_use_alloca): Define.
9590 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
9592         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
9593         smaller scopes.
9594         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
9595         (DL_DST_REQUIRED): Adjust user.
9597         * include/dlfcn.h (struct link_map): New forward decl.
9599         * inet/getnameinfo.c: Include stddef.h.
9600         (getnameinfo): Use offsetof.
9602         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
9604         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
9606         * string/strerror_l.c: Include stdlib.h.
9608         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
9609         * config.make.in (gnu89-inline-CFLAGS): New variable.
9610         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
9611         -std=gnu99.
9612         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
9613         * argp/argp.h: Use it.
9614         * bits/mathinline.h: Likewise.
9615         * bits/sigset.h: Likewise.
9616         * bits/string.h: Likewise.
9617         * ctype/ctype.h: Likewise.
9618         * hurd/hurd.h: Likewise.
9619         * hurd/hurd/fd.h: Likewise.
9620         * hurd/hurd/port.h: Likewise.
9621         * hurd/hurd/signal.h: Likewise.
9622         * hurd/hurd/threadvar.h: Likewise.
9623         * hurd/hurd/userlink.h: Likewise.
9624         * io/sys/stat.h: Likewise.
9625         * libio/bits/stdio.h: Likewise.
9626         * libio/bits/stdio2.h: Likewise.
9627         * mach/lock-intern.h: Likewise.
9628         * mach/mach/mig_support.h: Likewise.
9629         * math/bits/cmathcalls.h: Likewise.
9630         * posix/bits/unistd.h: Likewise.
9631         * socket/bits/socket2.h: Likewise.
9632         * stdlib/bits/stdlib.h: Likewise.
9633         * stdlib/stdlib.h: Likewise.
9634         * string/argz.h: Likewise.
9635         * string/bits/string2.h: Likewise.
9636         * string/bits/string3.h: Likewise.
9637         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
9638         * sysdeps/generic/inttypes.h: Likewise.
9639         * sysdeps/generic/machine-lock.h: Likewise.
9640         * sysdeps/generic/machine-sp.h: Likewise.
9641         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
9642         * sysdeps/i386/i486/bits/string.h: Likewise.
9643         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
9644         * sysdeps/mach/alpha/machine-lock.h: Likewise.
9645         * sysdeps/mach/alpha/machine-sp.h: Likewise.
9646         * sysdeps/mach/i386/machine-lock.h: Likewise.
9647         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9648         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
9649         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
9650         * sysdeps/s390/bits/string.h: Likewise.
9651         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
9652         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
9653         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
9654         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
9655         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9656         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
9657         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
9658         * wcsmbs/bits/wchar2.h: Likewise.
9659         * wcsmbs/wchar.h: Likewise.
9660         * stdlib/gmp.h: Likewise.  Include <features.h> to get
9661         __extern_inline definition.
9663 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
9665         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
9666         NULL.
9668         [BZ #3919]
9669         * math/libm-test.inc (log_test): Test -Inf and NaN.
9670         (log10_test, log1p_test, log2_test): Test -Inf.
9671         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
9672         FE_INVALID when argument is qNaN.
9673         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
9674         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
9675         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
9676         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
9677         andb $1, %ah with testb $1, %ah, don't test for parity, instead
9678         testb $4, %ah and jump if non-zero.
9679         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
9680         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
9682         [BZ #4101]
9683         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
9684         ancestors with the same depths.
9685         Patch by Niels Moeller <nisse@lysator.liu.se>.
9686         (filter_doc): Don't crash if argp is NULL.
9687         * argp/Makefile (tests): Add tst-argp2.
9688         * argp/tst-argp2.c: New test.
9690         [BZ #4130]
9691         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
9692         open_not_cancel_2.
9693         (updwtmp_file): Likewise.
9695         [BZ #4181]
9696         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
9697         (inet6_opt_append): Don't check extlen is big enough if extbuf
9698         is NULL.
9699         (inet6_opt_finish): Likewise.
9700         * inet/Makefile (tests): Add test-inet6_opt.
9701         * inet/test-inet6_opt.c: New test.
9703         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
9704         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
9705         NLMSG_ERR.  Instead use a page sized buffer.
9706         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
9707         buffer.
9709 2007-03-14  Richard Henderson  <rth@redhat.com>
9711         * sysdeps/alpha/fpu/s_llround.c: New file.
9712         * sysdeps/alpha/fpu/s_llroundf.c: New file.
9713         * sysdeps/alpha/fpu/s_lround.c: New file.
9714         * sysdeps/alpha/fpu/s_lroundf.c: New file.
9715         * sysdeps/alpha/fpu/s_round.c: New file.
9716         * sysdeps/alpha/fpu/s_roundf.c: New file.
9717         * sysdeps/alpha/fpu/s_trunc.c: New file.
9718         * sysdeps/alpha/fpu/s_truncf.c: New file.
9720         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
9721         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
9722         * sysdeps/alpha/fpu/s_floor.c: Likewise.
9723         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
9724         * sysdeps/alpha/fpu/s_rint.c: Likewise.
9725         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
9727         * sysdeps/alpha/fpu/s_fmax.S: New file.
9728         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
9729         * sysdeps/alpha/fpu/s_fmin.S: New file.
9730         * sysdeps/alpha/fpu/s_fminf.S: New file.
9731         * sysdeps/alpha/fpu/s_isnan.c: New file.
9732         * sysdeps/alpha/fpu/s_isnanf.c: New file.
9733         * sysdeps/alpha/fpu/s_llrint.c: New file.
9734         * sysdeps/alpha/fpu/s_llrintf.c: New file.
9735         * sysdeps/alpha/fpu/s_lrint.c: New file.
9736         * sysdeps/alpha/fpu/s_lrintf.c: New file.
9737         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
9738         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
9740         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
9741         (__fdimf, fdimf, __fdim, fdim): Remove.
9742         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
9743         (__isnanf, __isnan, __isnanl): New.
9745 2007-03-13  Richard Henderson  <rth@redhat.com>
9747         * sysdeps/ieee754/ldbl-128/Makefile: New file.
9749 2007-03-13  Richard Henderson  <rth@redhat.com>
9751         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
9752         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
9753         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
9754         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
9755         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
9756         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
9758 2007-03-13  Richard Henderson  <rth@redhat.com>
9760         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
9761         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
9762         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
9763         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
9764         Move to dl-auxv.h; initialize instead of extern weak.
9765         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
9766         weak symbol.
9767         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
9768         Extern instead of initialized.
9770 2007-03-13  Richard Henderson  <rth@redhat.com>
9772         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
9773         __sigsuspend_nocancel.
9775 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
9777         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
9778         172.16/12 address range.
9780 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
9782         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
9783         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
9784         message.
9786 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
9788         [BZ #4069]
9789         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
9790         earlier.
9791         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
9793         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
9794         for x qNaN and y either +-inf or non-integer value.
9795         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
9796         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
9797         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9799 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
9801         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
9802         from sysdep_headers.
9804 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
9806         * time/tzfile.c (find_transition): Instead of a linear search try to
9807         guess the transition index, use a linear search if the result is at
9808         most 10 transitions away from the guess or binary search otherwise.
9810 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
9812         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
9813         memory reallocation.
9815 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
9817         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
9818         and fix some typos.
9819         Optimize use of TOLOWER.
9821         [BZ #3325]
9822         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
9823         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9824         * sysdeps/i386/fpu/e_fmod.S: Likewise.
9826         [BZ #3458]
9827         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
9828         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
9830         [BZ #4076]
9831         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
9832         (open_dir_stream): Likewise.
9833         * io/Makefile (tests): Add bug-ftw5.
9834         * io/bug-ftw5.c: New file.
9836         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
9837         * nscd/servicescache.c (cache_addserv): Likewise.
9839         * nscd/grpcache.c (cache_addgr): In case a record changed on
9840         refresh, adjust key_copy.
9842         [BZ #4074]
9843         * nscd/pwdcache.c (cache_addpw): In case a record changed on
9844         refresh, adjust key_copy.
9846         [BZ #4070]
9847         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
9848         special cases.
9849         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
9851 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
9853         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
9854         optimization.
9856         * stdio-common/vfscanf.c: Small cleanups throughout.
9858 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
9860         [BZ #3325]
9861         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
9862         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9863         * sysdeps/i386/fpu/e_fmod.S: Likewise.
9864         Patch by Jared Casper <jaredcasper@gmail.com>.
9866         * sysdeps/unix/closedir.c: Outside libc don't use locking.
9867         * sysdeps/unix/opendir.c: Likewise.
9868         * sysdeps/unix/readdir.c: Likewise.
9870         [BZ #2211]
9871         * stdio-common/vfscanf.c: Handle localized digits etc for floating
9872         point numbers.
9873         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
9875         * stdio-common/vfscanf.c: Fix problems in width accounting.
9876         * stdio-common/tst-sscanf.c (double_tests): New tests.
9877         (main): Hook them up.
9879         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
9880         More simplifications of floating-point reader.
9882         * stdio-common/Makefile (tests): Add tst-swscanf.
9883         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
9884         testing.
9885         * stdio-common/tst-swscanf.c: New file.
9887 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
9889         [BZ #2633]
9890         * libio/stdio.h: Define struct _IO_FILE in global namespace.
9891         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
9892         Remove using for __jmp_buf_tag.
9893         * locale/locale.h (struct lconv): Also define in std namespace.
9894         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
9896         [BZ #3842]
9897         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
9898         using __libc_enable_secure.
9900         [BZ #3818]
9901         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
9903         [BZ #3745]
9904         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
9905         of names for ellipsises.
9907         [BZ #3348]
9908         * malloc/memusage.sh: Cleanups.
9909         * debug/xtrace.sh: Quoting and trap changes.
9911 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
9913         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
9915         * locale/iso-3166.def: Update entry for Serbia.
9916         * locale/iso-4217.def: Define RSD, remove CSD.
9918         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
9919         and 64-bit operations.
9921         [BZ #4040]
9922         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
9923         16-bit operations.
9925         * nscd/nscd.c (parse_opt): One more conversion to use send instead
9926         of writev.
9928 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
9930         [BZ #3991]
9931         * assert/assert.h (assert): Simplify.
9932         (assert_perror): Likewise.
9933         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
9935         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
9936         reqdata.
9938         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
9939         change: don't pass NULL in place of an integer.
9941 2007-02-02  Bruno Haible  <bruno@clisp.org>
9943         [BZ #3954]
9944         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
9945         Add mapping for U+327E.
9946         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
9947         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
9948         mapping of 0xD9 0xE8.
9949         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
9950         mapping of U+327E.
9951         Reported by Jungshik Shin <jungshik@google.com>.
9953         [BZ #3955]
9954         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
9955         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
9956         Reported by Jungshik Shin <jungshik@google.com>.
9958 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
9960         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
9961         byte variants.
9963         [BZ #4040]
9964         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
9965         byte variants.  Patch mostly be tom@tommay.net.
9967 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
9969         [BZ #3996]
9970         * posix/glob.c (attribute_hidden): Define if not defined.
9971         (glob): Unescape dirname, filename or username when needed and not
9972         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
9973         is NULL.  Handle unescaped [ in pattern without closing ].
9974         Don't pass GLOB_CHECK down to recursive glob for directories.
9975         (__glob_pattern_type): New function.
9976         (__glob_pattern_p): Implement using __glob_pattern_type.
9977         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
9978         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
9979         Remove unreachable code.
9980         * posix/globtest.sh: Add a couple of new tests.
9982 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
9984         * po/ru.po: Update from translation team.
9986 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
9988         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
9989         to the list of i486+ CPUs.
9990         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
9992 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
9994         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
9995         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
9996         references.
9998 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
10000         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
10002         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
10003         * resolv/res_mkquery.c: Define __res_nopt.
10004         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
10005         try adding EDNS0 record.
10006         * resolv/res_send.c (send_dg): If request failed with FORMERR and
10007         EDNS0 record was send make sure we don't try it again.
10008         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
10009         * include/resolv.h: Declare __res_nopt.
10011 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
10013         [BZ #3944]
10014         * time/strptime_l.c (__strptime_internal): Set have_mon for
10015         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
10016         have been computed from tm_yday and tm_year.  Don't crash
10017         in day_of_the_week or day_of_the_year if not have_mon
10018         and tm_mon contains bogus value.
10019         * time/Makefile (tests): Add tst-strptime3.
10020         * time/tst-strptime3.c: New test.
10022 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
10024         [BZ #3957]
10025         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
10026         bit for RE_HAT_LISTS_NOT_NEWLINE.
10027         (build_charclass_op): Remove bogus comment.
10028         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
10029         * posix/bug-regex27.c: New test.
10030         * posix/bug-regex28.c: New test.
10032 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
10034         * po/sv.po: Update from translation team.
10036 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
10038         * nscd/nscd_helper.c (open_socket): Minor size optimization.
10040 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
10042         * include/locale.h (__uselocale): Add libc_hidden_proto.
10043         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
10045         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
10046         gettimeofday.
10048 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
10050         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
10051         returning.
10052         (PTR_DEMANGLE): Real definition now that it's not the same as
10053         PRT_MANGLE anymore.
10054         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10056         * string/strerror_l.c: New file.
10057         * string/Makefile (routines): Add strerror_l.
10058         * string/string.h: Declare strerror_l.
10059         * string/Versions: Export strerror_l for GLIBC_2.6.
10061 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
10063         * nscd/nscd_helper.c (open_socket): Now takes request type and key
10064         as parameter.  Construct request record.  Try sending request
10065         before the first poll use, it usually succeeds.  Adjust all
10066         callers.
10067         * nscd/nscd-client.h: Define MAXKEYLEN.
10068         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
10070 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
10072         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
10073         from return value.
10074         * nscd/nscd_helper.c: Include string.h.
10075         (__nscd_cache_search): Remove const qualifier from return value.
10076         On strict alignment architectures check hash entry and data head
10077         alignment.
10078         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
10079         mmapped data during GC cycle contains garbage.  If
10080         __nscd_drop_map_ref fails, decrement mapped->counter when returning
10081         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
10082         dropped to 0.
10083         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
10084         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
10085         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
10086         * nscd/nscd_getai.c (__nscd_getai): Likewise.
10087         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
10089 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
10091         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
10093 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
10095         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
10096         names not numbers in cfi_*.
10098 2007-01-26  Andreas Jaeger  <aj@suse.de>
10100         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
10101         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
10102         Correct values of PER_HPUX and PER_OSF4.
10104 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
10106         * elf/dl-minimal.c: Undefine _itoa first.
10107         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
10108         * malloc/mtrace.c: Revert last change.
10109         * posix/wordexp.c: Likewise.
10111 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
10113         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
10114         and __geode__ to the list of i486+ CPUs.
10115         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10117 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
10119         * stdio-common/_itoa.c: Include <limits.h>.
10120         * stdio-common/_itowa.c: Likewise.
10122 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
10124         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
10125         platforms.
10126         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
10127         64-bit platforms.
10128         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
10129         possible.
10130         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
10131         if possible.
10133         [BZ #3902]
10134         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
10135         * stdio-common/Makefile (tests): Add bug17.
10136         * stdio-common/bug17.c: New file.
10138 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
10140         * iconvdata/brf.c: New file.
10141         * iconvdata/testdata/BRF: New file.
10142         * iconvdata/testdata/BRF..UTF8: New file.
10143         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
10144         * iconvdata/Makefile: Add rules to build BRF.
10145         * iconvdata/TESTS: Add BRF entry.
10146         * iconvdata/gconv-modules: Likewise.
10147         * iconvdata/tst-tables.sh: Likewise.
10149 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
10151         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
10152         type `long long int', not `long int'.
10153         (wcstoq): Likewise.
10155 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
10157         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
10158         of values on 64-bit platforms which are too large.
10160 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
10161             Joe Kerian  <jkerian@us.us.ibm.com>
10163         [BZ #2749]
10164         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
10165         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
10166         (__copysignl): Use signbit() for comparison.
10167         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
10168         SET_LDOUBLE_WORDS64.
10170         [BZ #2423, #2749]
10171         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
10172         (__ceill): Remove calls to fegetround(), fesetround().
10173         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
10174         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
10175         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
10177 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
10179         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
10181         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
10183 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
10185         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
10186         demangle pointer.
10187         * csu/libc-start.c: Likewise.
10189 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
10191         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
10192         really work anyway.
10194 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
10196         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
10197         users.
10198         (handle_request): Remove unnecessary tests.
10200         * nscd/cache.c (cache_add): Record the failure to add to the cache.
10202 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
10204         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
10205         workbits in semi-raw fraction.
10207         * math/test-misc.c: Add new tests.
10209 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
10211         * math/basic-test.c: Include test-skeleton.c.
10212         (TEST_TRUNC): Define.
10213         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
10214         (main): Rename to ...
10215         (do_test): ...this.  Run new tests.
10216         (TEST_FUNCTION): Define.
10218 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
10219             Joe Kerian  <jkerian@us.us.ibm.com>
10221         [BZ #2749]
10222         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
10223         handling for high words.
10224         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
10225         and overflow for infinity.
10227 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
10229         * nscd/connections.c (handle_request): Add a __builtin_expect.
10231         * nscd/connections.c (serv2db): Change type into structure which
10232         also says whether this is a request for data.  Renamed to
10233         servinfo.  All users changed.
10234         (handle_request): Much simpler test whether we should search the cache.
10236         * nscd/connections.c (handle_request): Fix thinko in selinux test
10237         invocation.
10239         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
10240         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
10241         it before getting dl_load_lock and then relock.
10242         (_dl_lookup_symbol_x): Pass flags to add_dependency.
10243         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
10244         case we unlocked the scope.
10245         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
10246         _dl_lookup_symbol_x in case we locked the scope.
10247         (_dl_profile_fixup): Likewise.
10248         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
10249         set DL_LOOKUP_SCOPE_LOCK.
10251 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
10253         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
10254         CFLAGS-getsrvbynpt_r.c.
10255         * nscd/getsrvbynm_r.c: New file.
10256         * nscd/getsrvbypt_r.c: New file.
10257         * nscd/nscd_getserv_r.c: New file.
10258         * nscd/servicescache.c: New file.
10259         * nscd/Makefile (routines): Add nscd_getserv_r.
10260         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
10261         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
10262         CFLAGS-getsrvbypt_r.c.
10263         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
10264         table.  Add entries for services database.
10265         * nscd/connections.c (serv2str): Mark as const.  Add entries for
10266         services database.
10267         (dbs): Add .reset_res and servdb initialization.
10268         (serv2db): Add entries for services database.
10269         (verify_persistent_db): Accept dbnr == servdb.
10270         (invalidate_cache): Rewrite database name recognition to use a table.
10271         Call res_init() if .reset_res is set for database.
10272         (handle_request): Add code to handle services database.
10273         * nscd/gai.c: Don't define __getservbyname_r.
10274         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
10275         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
10276         (serv_response_header): Define.
10277         (struct datahead): Add serv_response_header member.
10278         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
10279         using table.
10280         * nscd/nscd.conf: Add entries for services database.
10281         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
10282         Declare serv_iov_disabled.
10283         Declare addservbyname, readdservbyname, addservbyport, and
10284         readdservbyport.
10285         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
10286         (find_db): Fix error message.
10287         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
10288         __nscd_getservbyname_r, and __nscd_getservbyport_r.
10289         * nscd/selinux.c (perms): Add entries for services database.
10290         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
10291         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
10293         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
10294         * nscd/hstcache.c: Likewise.
10295         * nscd/pwdcache.c: Likewise.
10297         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
10298         computation of keylen.
10300         * include/string.h: Only redefine strndupa if this is really for
10301         libc code.
10303 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
10305         * nscd/nscd_gethst_r.c: Minor cleanups.
10307         * nscd/connections.c (handle_request): Check selinux permissions
10308         for all non-admin commands.
10310         * sysdeps/i386/i486/bits/atomic.h: Define
10311         atomic_compare_and_exchange_val_acq,
10312         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
10313         using __sync_* built-ins for gcc >= 4.1.
10314         * sysdeps/x86_64/bits/atomic.h: Likewise.
10316         [BZ #3840]
10317         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
10318         and .oS.d files.
10320 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
10322         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
10323         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
10324         (do_test): Check errno and exit(0) if ENOSYS.
10326 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
10328         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
10329         thousands separators.
10330         * stdlib/Makefile: Add rules to build and run tst-strtod4.
10331         * stdlib/tst-strtod4.c: New test.
10333         [BZ #3855]
10334         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
10335         hexadecimal digit should accept just the initial 0.
10336         * stdlib/tst-strtod2.c (tests): New variable.
10337         (do_test): Run several tests rather than just one.
10339 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
10341         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
10342         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
10344 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
10346         * io/fts.c: Make sure fts_cur is always valid after return from
10347         fts_read.
10348         Patch by Miloslav Trmac <mitr@redhat.com>.
10350 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
10352         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
10353         (R_MIPS_NUM): Bump by 1.
10355 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
10357         * posix/execvp.c: Include alloca.h.
10358         (allocate_scripts_argv): Renamed to...
10359         (scripts_argv): ... this.  Don't allocate buffer here nor count
10360         arguments.
10361         (execvp): Use alloca if possible.
10362         * posix/Makefile: Add rules to build and run tst-vfork3 test.
10363         * posix/tst-vfork3.c: New test.
10365 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
10367         * string/Makefile (tst-strxfrm2-ENV): Define.
10368         * stdlib/Makefile (tst-strtod3-ENV): Define.
10370 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
10372         * posix/getconf.c: Update copyright year.
10373         * nss/getent.c: Likewise.
10374         * iconv/iconvconfig.c: Likewise.
10375         * iconv/iconv_prog.c: Likewise.
10376         * elf/ldconfig.c: Likewise.
10377         * catgets/gencat.c: Likewise.
10378         * csu/version.c: Likewise.
10379         * elf/ldd.bash.in: Likewise.
10380         * elf/sprof.c (print_version): Likewise.
10381         * locale/programs/locale.c: Likewise.
10382         * locale/programs/localedef.c: Likewise.
10383         * nscd/nscd.c (print_version): Likewise.
10384         * debug/xtrace.sh: Likewise.
10385         * malloc/memusage.sh: Likewise.
10386         * malloc/mtrace.pl: Likewise.
10387         * debug/catchsegv.sh: Likewise.
10389 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
10391         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
10392         attempts.
10394 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
10396         * posix/wordexp.c: Remove some unnecessary tests.
10398 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
10400         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
10401         blacklist the group till after we look it up.
10403 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
10405         * include/atomic.h (atomic_forced_read): New macro.
10407 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
10409         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
10411 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
10413         * nss/getXXbyYY_r.c: Include atomic.h.
10414         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
10415         add atomic_write_barrier () in between.
10417         * stdlib/Makefile (tests): Add tst-makecontext.
10418         * stdlib/tst-makecontext.c: New test.
10420         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
10421         (__makecontext): Don't realign uc_mcontext.uc_regs.
10423 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
10425         * elf/dl-support.c: Include dl-procinfo.h.
10426         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
10427         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
10428         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
10429         Define.
10430         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
10431         hardcoded constants.
10432         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
10433         PPC_PLATFORM_* macros for array designators.
10435 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
10437         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
10438         names to the beginning.
10439         (_dl_powerpc_platforms): Add "power6x".
10440         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10441         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
10442         (_DL_PLATFORMS_COUNT): Increase.
10443         (_dl_string_platform): Handle power6x case.
10444         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
10445         PPC_FEATURE_POWER6_EXT): Define.
10446         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
10448 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
10450         [BZ #3747]
10451         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
10452         [-2^31 .. 2^31) range.
10453         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
10454         targets.
10455         * stdlib/tst-rand48-2.c: New test.
10456         * stdlib/Makefile (tests): Add tst-rand48-2.
10458 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
10460         * misc/tst-pselect.c (do_test): Fix sigblock argument.
10462 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
10464         * misc/tst-pselect.c (do_test): Make sure the helper process is
10465         terminating when the test is aborted.
10467 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
10469         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
10470         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
10471         Handle relatime mount option.
10473         [BZ #2337]
10474         * libio/Makefile (tests): Add tst-setvbuf1.
10475         * libio/tst-setvbuf1.c: New file.
10477 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
10479         [BZ #2337]
10480         * libio/genops.c (__uflow): Fix a typo.
10481         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
10482         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
10483         the narrow buffer size.
10485 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
10487         [BZ #2337]
10488         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
10489         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
10490         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
10491         in _flags.
10492         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
10493         _IO_wstr_finish): Likewise.
10494         * libio/wmemstream.c (open_wmemstream): Likewise.
10495         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
10496         even for wide streams.
10498 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
10500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
10501         kernel-features.h.
10503 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
10505         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
10506         separators also if no non-zero digits found.
10507         * stdlib/Makefile (tests): Add tst-strtod3.
10509 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
10511         [BZ #3632]
10512         * include/features.h: Fix comment about default value for
10513         _POSIX_C_SOURCE.
10515         [BZ #3664]
10516         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
10517         empty parsed strings.
10518         * stdlib/Makefile (tests): Add tst-strtod2.
10519         * stdlib/tst-strtod2.c: New file.
10521         [BZ #3673]
10522         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
10523         computation.
10524         * stdlib/Makefile (tests): Add tst-atof2.
10525         * stdlib/tst-atof2.c: New file.
10527         [BZ #3674]
10528         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
10529         correctly if removing trailing zero of hex-float.
10530         * stdlib/Makefile (tests): Add tst-atof1.
10531         * stdlib/tst-atof1.c: New file.
10533 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
10535         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
10536         Start searching for next comma at p rather than rest.
10537         * misc/Makefile (tests): Add tst-mntent2.
10538         * misc/tst-mntent2.c: New test.
10540         * misc/getusershell.c (initshells): Check for integer overflows.
10541         Make strings buffer one bigger as fgets always succeeds when second
10542         argument is 1.  Don't use calloc for shells array.  Disallow
10543         / as shell.
10545 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
10547         * malloc/memusage.c: Handle realloc with new size of zero and
10548         non-NULL pointer correctly.
10549         (me): Really write first record twice.
10550         (struct entry): Make format bi-arch safe.
10551         (dest): Write out more realloc statistics.
10552         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
10554 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
10556         * nis/nis_subr.c (nis_getnames): Revert last change.
10558 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
10560         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
10561         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
10562         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
10563         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
10564         ENOTTY.
10565         * io/Makefile: Add rules to build and run tst-ttyname_r test.
10566         * io/tst-ttyname_r.c: New test.
10568 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10570         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
10572 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
10574         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
10575         jump table entries.
10577 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
10579         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
10580         `clone' function to ensure proper unwinding stop of gdb.
10581         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
10583 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
10585         * nscd/nscd.init: Remove obsolete and commented-out -S option
10586         handling.
10588 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
10590         [BZ #3514]
10591         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
10593         [BZ #3515]
10594         * manual/string.texi (strtok): Remove duplicate paragraph.
10596 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10598         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
10599         libgcc not supporting `rflags' unwinding (register # >= 17).
10601 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
10603         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
10604         succeeded.
10606 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
10607             Jakub Jelinek  <jakub@redhat.com>
10608             Jan Kratochvil  <jan.kratochvil@redhat.com>
10610         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
10611         unwind information.
10612         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
10613         'restore_rt' even in the 'signal' directory.
10614         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
10616 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
10618         [BZ #3559]
10619         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
10620         malloc crashed.  Don't allocate memory unnecessarily in each
10621         loop.
10623 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
10625         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
10627 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
10629         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
10631 2006-11-18  Bruno Haible  <bruno@clisp.org>
10633         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
10634         __sysconf only after having tried to call getgroups32.
10636 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
10638         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
10639         addresses for IPv4 queries if they can be mapped.
10641 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
10643         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
10644         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
10645         (signmask): Add .size directive.
10646         (othermask): Add .type directive.
10648 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
10650         * po/nl.po: Update from translation team.
10652         * timezone/zdump.c: Redo fix for BZ #3137.
10654 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
10656         * nss/nss_files/files-alias.c (get_next_alias): Set line back
10657         to first_unused after parsing :include: file.
10659 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
10661         * timezone/africa: Update from tzdata2006o.
10662         * timezone/antarctica: Likewise.
10663         * timezone/asia: Likewise.
10664         * timezone/australasia: Likewise.
10665         * timezone/backward: Likewise.
10666         * timezone/europe: Likewise.
10667         * timezone/iso3166.tab: Likewise.
10668         * timezone/northamerica: Likewise.
10669         * timezone/southamerica: Likewise.
10670         * timezone/zone.tab: Likewise.
10672         * time/tzfile.c (__tzfile_read): Extend to handle new file format
10673         on machines with 64-bit time_t.
10675         * timezone/checktab.awk: Update from tzcode2006o.
10676         * timezone/ialloc.c: Likewise.
10677         * timezone/private.h: Likewise.
10678         * timezone/scheck.c: Likewise.
10679         * timezone/tzfile.h: Likewise.
10680         * timezone/tzselect.ksh: Likewise.
10681         * timezone/zdump.c: Likewise.
10682         * timezone/zic.c: Likewise.
10684         [BZ #3483]
10685         * elf/ldconfig.c (main): Call setlocale and textdomain.
10686         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
10688         [BZ #3480]
10689         * manual/argp.texi: Fix typos.
10690         * manual/charset.texi: Likewise.
10691         * manual/errno.texi: Likewise.
10692         * manual/filesys.texi: Likewise.
10693         * manual/lang.texi: Likewise.
10694         * manual/maint.texi: Likewise.
10695         * manual/memory.texi: Likewise.
10696         * manual/message.texi: Likewise.
10697         * manual/resource.texi: Likewise.
10698         * manual/search.texi: Likewise.
10699         * manual/signal.texi: Likewise.
10700         * manual/startup.texi: Likewise.
10701         * manual/stdio.texi: Likewise.
10702         * manual/sysinfo.texi: Likewise.
10703         * manual/syslog.texi: Likewise.
10704         * manual/time.texi: Likewise.
10705         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10707         [BZ #3465]
10708         * sunrpc/clnt_raw.c: Minimal message improvements.
10709         * sunrpc/pm_getmaps.c: Likewise.
10710         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
10711         * nis/nis_print_group_entry.c: Likewise.
10712         * locale/programs/repertoire.c: Likewise.
10713         * locale/programs/charmap.c: Likewise.
10714         * malloc/memusage.sh: Likewise.
10715         * elf/dl-deps.c: Likewise.
10716         * locale/programs/ld-collate.c: Likewise.
10717         * libio/vswprintf.c: Likewise.
10718         * malloc/memusagestat.c: Likewise.
10719         * sunrpc/auth_unix.c: Likewise.
10720         * sunrpc/rpc_main.c: Likewise.
10721         * nscd/cache.c: Likewise.
10722         * locale/programs/repertoire.c: Unify output messages.
10723         * locale/programs/charmap.c: Likewise.
10724         * locale/programs/ld-ctype.c: Likewise.
10725         * locale/programs/ld-monetary.c: Likewise.
10726         * locale/programs/ld-numeric.c: Likewise.
10727         * locale/programs/ld-time.c: Likewise.
10728         * elf/ldconfig.c: Likewise.
10729         * nscd/selinux.c: Likewise.
10730         * elf/cache.c: Likewise.
10731         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
10733         [BZ #3451]
10734         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
10735         change atomic.
10736         (ceil): Likewise.
10738 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
10740         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
10741         if N is one bigger than return value.
10742         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
10743         and l1 last arguments, if buf is defined, verify the return value
10744         equals to strlen (buf) and verify no byte beyond passed length
10745         is modified.
10747 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
10749         * po/sv.po: Update from translation team.
10751 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
10753         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
10754         noinline attribute.
10756 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
10758         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
10759         noinline attribute.
10761         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
10762         Use __new_sys_siglist instead of _sys_siglist_internal as
10763         second macro argument.
10764         (_old_sys_siglist): Use declare_symbol_alias macro instead of
10765         strong_alias.
10767 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
10769         [BZ #3493]
10770         * posix/unistd.h (sysconf): Remove const attribute.
10772         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
10773         temporary or deprecated addresses.
10774         Patch by Sridhar Samudrala <sri@us.ibm.com>.
10776         * string/Makefile (tests): Add tst-strxfrm2.
10777         * string/tst-strxfrm2.c: New file.
10779 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
10781         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
10782         rather than r->r_brk.
10784 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
10786         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
10787         optimization even if needed > n.
10789         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
10790         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
10791         return false, otherwise return true.
10792         (cache_rpath): Return decompose_rpath return value.
10794 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
10796         * include/libc-symbols.h (declare_symbol): Rename to...
10797         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
10798         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
10799         .size directive.
10800         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
10801         changes.
10802         * sysdeps/gnu/siglist.c: Likewise.
10804 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
10806         * sysdeps/powerpc/fpu/bits/mathinline.h
10807         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
10808         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
10810 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
10812         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
10813         Update handling of cache descriptor 0x49 for new models.
10814         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
10815         Likewise.
10817 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
10819         * malloc/memusage.c (dest): Reset not_me back to false after
10820         printing statistics.
10822 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
10824         * configure.in: Work around ld --help change and avoid -z relro
10825         test completely if the architecture doesn't care about security.
10827 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
10829         * po/sv.po: Update from translation team.
10831 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
10833         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
10834         generate compatibility version.
10836 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
10838         * configure.in: Relax -z relro requirement a bit.
10840         * po/sv.po: Update from translation team.
10842 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
10844         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
10845         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
10846         * elf/dl-close.c (_dl_close_worker): Likewise.
10847         * elf/dl-open.c (_dl_open_worker): Likewise.
10848         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
10850 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
10852         * configure.in: Require assembler support for visibility, compiler
10853         support for visibility and aliases, linker support for various -z
10854         options.
10855         * Makeconfig: Remove conditional code which now is unnecessary.
10856         * config.h.in: Likewise.
10857         * config.make.in: Likewise.
10858         * dlfcn/Makefile: Likewise.
10859         * elf/Makefile: Likewise.
10860         * elf/dl-load.c: Likewise.
10861         * elf/rtld.c: Likewise.
10862         * include/libc-symbols.h: Likewise.
10863         * include/stdio.h: Likewise.
10864         * io/Makefile: Likewise.
10865         * io/fstat.c: Likewise.
10866         * io/fstat64.c: Likewise.
10867         * io/fstatat.c: Likewise.
10868         * io/fstatat64.c: Likewise.
10869         * io/lstat.c: Likewise.
10870         * io/lstat64.c: Likewise.
10871         * io/mknod.c: Likewise.
10872         * io/mknodat.c: Likewise.
10873         * io/stat.c: Likewise.
10874         * io/stat64.c: Likewise.
10875         * libio/stdio.c: Likewise.
10876         * nscd/Makefile: Likewise.
10877         * stdlib/Makefile: Likewise.
10878         * stdlib/atexit.c: Likewise.
10879         * sysdeps/generic/ldsodefs.h: Likewise.
10880         * sysdeps/i386/dl-machine.h: Likewise.
10881         * sysdeps/i386/sysdep.h: Likewise.
10882         * sysdeps/i386/i686/memcmp.S: Likewise.
10883         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
10884         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10885         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
10887         * Makerules: USE_TLS support is now default.
10888         * tls.make.c: Likewise.
10889         * csu/Versions: Likewise.
10890         * csu/libc-start.c: Likewise.
10891         * csu/libc-tls.c: Likewise.
10892         * csu/version.c: Likewise.
10893         * dlfcn/dlinfo.c: Likewise.
10894         * elf/dl-addr.c: Likewise.
10895         * elf/dl-cache.c: Likewise.
10896         * elf/dl-close.c: Likewise.
10897         * elf/dl-iteratephdr.c: Likewise.
10898         * elf/dl-load.c: Likewise.
10899         * elf/dl-lookup.c: Likewise.
10900         * elf/dl-object.c: Likewise.
10901         * elf/dl-open.c: Likewise.
10902         * elf/dl-reloc.c: Likewise.
10903         * elf/dl-support.c: Likewise.
10904         * elf/dl-sym.c: Likewise.
10905         * elf/dl-sysdep.c: Likewise.
10906         * elf/dl-tls.c: Likewise.
10907         * elf/ldconfig.c: Likewise.
10908         * elf/rtld.c: Likewise.
10909         * elf/tst-tls-dlinfo.c: Likewise.
10910         * elf/tst-tls1.c: Likewise.
10911         * elf/tst-tls10.h: Likewise.
10912         * elf/tst-tls14.c: Likewise.
10913         * elf/tst-tls2.c: Likewise.
10914         * elf/tst-tls3.c: Likewise.
10915         * elf/tst-tls4.c: Likewise.
10916         * elf/tst-tls5.c: Likewise.
10917         * elf/tst-tls6.c: Likewise.
10918         * elf/tst-tls7.c: Likewise.
10919         * elf/tst-tls8.c: Likewise.
10920         * elf/tst-tls9.c: Likewise.
10921         * elf/tst-tlsmod1.c: Likewise.
10922         * elf/tst-tlsmod13.c: Likewise.
10923         * elf/tst-tlsmod13a.c: Likewise.
10924         * elf/tst-tlsmod14a.c: Likewise.
10925         * elf/tst-tlsmod2.c: Likewise.
10926         * elf/tst-tlsmod3.c: Likewise.
10927         * elf/tst-tlsmod4.c: Likewise.
10928         * elf/tst-tlsmod5.c: Likewise.
10929         * elf/tst-tlsmod6.c: Likewise.
10930         * include/errno.h: Likewise.
10931         * include/link.h: Likewise.
10932         * include/tls.h: Likewise.
10933         * locale/global-locale.c: Likewise.
10934         * locale/localeinfo.h: Likewise.
10935         * malloc/arena.c: Likewise.
10936         * malloc/hooks.c: Likewise.
10937         * malloc/malloc.c: Likewise.
10938         * resolv/Versions: Likewise.
10939         * sysdeps/alpha/dl-machine.h: Likewise.
10940         * sysdeps/alpha/libc-tls.c: Likewise.
10941         * sysdeps/generic/ldsodefs.h: Likewise.
10942         * sysdeps/generic/tls.h: Likewise.
10943         * sysdeps/i386/dl-machine.h: Likewise.
10944         * sysdeps/ia64/dl-machine.h: Likewise.
10945         * sysdeps/ia64/libc-tls.c: Likewise.
10946         * sysdeps/mach/hurd/fork.c: Likewise.
10947         * sysdeps/mach/hurd/i386/tls.h: Likewise.
10948         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
10949         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
10950         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
10951         * sysdeps/s390/libc-tls.c: Likewise.
10952         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10953         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10954         * sysdeps/sh/dl-machine.h: Likewise.
10955         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10956         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10957         * sysdeps/x86_64/dl-machine.h: Likewise.
10959         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
10960         split out locking and parameter checking.
10961         (_dl_close): Call _dl_close_worker after locking and checking.
10962         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
10963         _dl_close.
10964         * elf/Makefile: Add rules to build and run tst-thrlock.
10965         * elf/tst-thrlock.c:  New file.
10967         [BZ #3426]
10968         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
10969         reality.
10971         [BZ #3429]
10972         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
10973         we are sure we do not need it anymore for _dl_close.  Also move
10974         the asserts inside the lock region.
10975         Patch mostly by Suzuki <suzuki@in.ibm.com>.
10977 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
10979         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
10980         argument.
10981         (_dl_lookup_symbol_x): Adjust caller.
10983         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
10984         _ns_global_scope.
10985         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
10987         * elf/dl-libc.c: Revert l_scope name changes.
10988         * elf/dl-load.c: Likewise.
10989         * elf/dl-object.c: Likewise.
10990         * elf/rtld.c: Likewise.
10991         * elf/dl-close.c (_dl_close): Likewise.
10992         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
10993         always use __rtld_mrlock_{change,done}.  Always free old scope list
10994         here if not l_scope_mem.
10995         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
10996         change.  Never free scope list here.  Just __rtld_mrlock_lock before
10997         the lookup and __rtld_mrlock_unlock it after the lookup.
10998         * elf/dl-sym.c: Likewise.
10999         * include/link.h (struct r_scoperec): Remove.
11000         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
11001         with l_scope_mem and l_scoperec_lock with l_scope_lock.
11003 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
11005         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
11007 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11009         * configure.in: Disable building profile libraries by default.
11011 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11013         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
11014         as signed longs, check for x_base + pos overflow.
11015         * sunrpc/Makefile (tests): Add tst-xdrmem2.
11016         * sunrpc/tst-xdrmem2.c: New test.
11018 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11020         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
11021         _dl_lookup_symbol_x code.
11023 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11025         * elf/dl-runtime.c: Include sysdep-cancel.h.
11026         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
11027         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
11028         instead of catomic_* macros.
11029         * elf/dl-sym.c: Include sysdep-cancel.h.
11030         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
11031         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11032         * elf/dl-close.c: Include sysdep-cancel.h.
11033         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
11034         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11035         * elf/dl-open.c: Include sysdep-cancel.h.
11036         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
11037         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11039 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11041         [BZ #3313]
11042         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
11043         fastbin rather than end of fastbin array.
11045 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11047         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
11048         body macro.
11049         * sysdeps/x86_64/bits/atomic.h
11050         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
11051         (catomic_decrement): Use correct body macro.
11053 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11055         * include/atomic.h: Add a unique prefix to all local variables
11056         in macros.
11057         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
11059 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
11061         [BZ #3369]
11062         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
11063         and 7.
11065 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
11067         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
11069 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
11071         [BZ #3313]
11072         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
11073         determine highest fast bin to consolidate, always look into all of
11074         them.
11075         (do_check_malloc_state): Only require for empty bins for large
11076         sizes in main arena.
11078         * libio/stdio.h: Add more __wur attributes.
11080         * elf/dl-minimal.c (realloc): Optimize last patch.
11082 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
11084         [BZ #3352]
11085         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
11086         and use memcpy() if it does.
11088 2006-11-12  Andreas Jaeger  <aj@suse.de>
11090         [BZ #2510]
11091         * manual/search.texi (Hash Search Function): Clarify.
11092         (Array Search Function): Clarify.
11094 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
11096         [BZ #2830]
11097         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
11098         shifting.
11099         * math/atest-exp2.c (read_mpn_hex): Likewise.
11100         * math/atest-sincos.c (main): Likewise.
11102 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
11104         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
11105         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
11106         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
11107         version GLIBC_2.6.
11108         * Versions.def: Add GLIBC_2.6 for libc.
11110         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
11112         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
11114 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
11116         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
11118         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
11120         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
11121         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
11123 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
11125         * include/atomic.c: Define catomic_* operations.
11126         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
11127         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
11128         * malloc/memusage.c: Likewise.
11129         * gmon/mcount.c: Likewise.
11130         * elf/dl-close.c: Likewise.
11131         * elf/dl-open.c: Likewise.
11132         * elf/dl-profile.c: Likewise.
11133         * elf/dl-sym.c: Likewise.
11134         * elf/dl-runtime.c: Likewise.
11135         * elf/dl-fptr.c: Likewise.
11136         * resolv/res_libc.c: Likewise.
11138 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
11140         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
11141         components which lack them.
11143         * nis/nis_subr.c (nis_getnames): Make sure that we always return
11144         at least one entry consisting of the parameter concatenated with
11145         the domain.
11147 2006-10-10  Roland McGrath  <roland@frob.com>
11149         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
11150         * sysdeps/mach/hurd/futimes.c: Likewise.
11151         * sysdeps/mach/hurd/lutimes.c: Likewise.
11153 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
11154             Jakub Jelinek  <jakub@redhat.com>
11156         Implement reference counting of scope records.
11157         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
11158         from the list in objects which remain.  Always allocate new scope
11159         record.
11160         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
11161         don't resize, allocate a new one.
11162         * elf/dl-runtime.c: Update reference counters before using a scope
11163         array.
11164         * elf/dl-sym.c: Likewise.
11165         * elf/dl-libc.c: Adjust for l_scope name change.
11166         * elf/dl-load.c: Likewise.
11167         * elf/dl-object.c: Likewise.
11168         * elf/rtld.c: Likewise.
11169         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
11170         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
11171         Add l_scoperec_lock.
11172         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
11173         * sysdeps/generic/rtld-lowlevel.h: New file.
11175         * include/atomic.h: Rename atomic_and to atomic_and_val and
11176         atomic_or to atomic_or_val.  Define new macros atomic_and and
11177         atomic_or which do not return values.
11178         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
11179         Various cleanups.
11180         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11182         * po/sv.po: Update from translation team.
11184 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
11186         * Versions.def: Add GLIBC_2.6 to libpthread.
11188         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
11189         (versioned_symbol): Likewise.
11190         (compat_symbol): Likewise.
11192         * po/tr.po: Update from translation team.
11194 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
11196         * nis/Banner: Removed.  It's been integral part forever and the
11197         author info is incomplete anyway.
11198         * libio/Banner: Likewise.
11200         * nis/nis_table.c (nis_list): If __follow_path fails in the new
11201         code, make sure the nis_freeresult call doesn't crash and that the
11202         result is reported correctly.
11204 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
11206         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
11207         when callback is NULL.
11209         * nis/Versions (libnss_nisplus): Add
11210         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
11211         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
11212         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
11213         _nss_create_tablename): Rename to...
11214         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
11215         ... these.  No longer static.
11216         (internal_setgrent): Adjust users.
11217         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
11218         Don't use locking around _nss_grp_create_tablename call.
11219         * nis/nss_nisplus/nisplus-initgroups.c: New file.
11221 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
11223         * version.h (VERSION): Bump to 2.5.90 for new development tree.
11225 2006-10-06  Andreas Jaeger  <aj@suse.de>
11227         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
11229 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
11231         * po/pl.po: Update from translation team.
11233         * nscd/nscd.c (main): Fix typo in message.
11234         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
11236 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
11238         [BZ #3291]
11239         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
11240         errno.h, signal.h, unistd.h and sysdep-cancel.h.
11241         (__sigprocmask): Define.
11243 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
11245         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
11246         used.
11248 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
11250         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
11251         in oldtotal and newtotal calculation.
11252         * nscd/nscd-client.h (struct mapped_database): Add datasize
11253         field.
11254         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
11255         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
11256         increased.
11257         (__nscd_cache_search): Add checks to make sure we never reference
11258         data beyond the current mapping.
11260 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
11262         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
11263         variables const to avoid compiler warnings.
11265         * io/fts.c (fts_close): Remove redundant checks.
11266         (fts_build): Likewise.
11267         (fts_palloc): Likewise.
11269         * manual/message.texi (Advanced gettext functions,
11270         Using gettextized software): Fix typos.
11272 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
11274         * posix/glob.c (glob_in_dir): Add some comments and asserts to
11275         explain why there are no leaks.
11277 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
11279         * libio/wmemstream.c: Include <wchar.h>.
11280         * libio/bug-wmemstream1.c: Likewise.
11281         * libio/tst-wmemstream1.c: Likewise.
11282         * libio/tst-wmemstream2.c: Likewise.
11284         * version.h (RELEASE): Bump to 2.5.
11285         * README: Regenerated.
11287         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
11289         [BZ #3273]
11290         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
11291         found no group members.
11292         Patch by Petr Baudis.
11294 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
11296         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
11297         assert bootstrap_map.l_tls_modid is zero.
11298         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
11299         if USE___THREAD.
11301 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
11303         * libio/stdio.h: Move open_wmemstream prototype to ...
11304         * wcsmbs/wchar.h: ... here.
11306 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
11308         [BZ #3252]
11309         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
11310         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
11311         __{,l}chown to handle the rest.
11312         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
11313         fchownat syscall and __ASSUME_32BITUIDS case inline, call
11314         __{,l}chown to handle the rest.
11315         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
11316         i386/fchownat.c.
11317         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
11318         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
11320         [BZ #3253]
11321         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
11322         time, rather allocate increasingly bigger arrays of pointers, if
11323         possible with alloca, if too large with malloc.
11325 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
11327         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
11329         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
11331 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
11333         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
11334         home addresses.
11335         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
11336         IFA_F_HOMEADDRESS flag for interfaces.
11337         * include/ifaddrs.h (struct in6addrinfo): Define
11338         in6ai_homeaddress.
11340 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
11342         [BZ #3225]
11343         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
11344         PTR_DEMANGLE3): Define.
11345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
11346         PTR_DEMANGLE3): Likewise.
11347         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
11348         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
11349         Likewise.
11350         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
11352 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
11354         * po/libc.pot: Regenerated.
11355         * po/be.po: Updated.
11356         * po/ca.po: Likewise.
11357         * po/cs.po: Likewise.
11358         * po/da.po: Likewise.
11359         * po/de.po: Likewise.
11360         * po/el.po: Likewise.
11361         * po/en_GB.po: Likewise.
11362         * po/es.po: Likewise.
11363         * po/fi.po: Likewise.
11364         * po/fr.po: Likewise.
11365         * po/gl.po: Likewise.
11366         * po/hr.po: Likewise.
11367         * po/hu.po: Likewise.
11368         * po/ja.po: Likewise.
11369         * po/ko.po: Likewise.
11370         * po/nb.po: Likewise.
11371         * po/nl.po: Likewise.
11372         * po/pl.po: Likewise.
11373         * po/pt_BR.po: Likewise.
11374         * po/ru.po: Likewise.
11375         * po/rw.po: Likewise.
11376         * po/sk.po: Likewise.
11377         * po/sv.po: Likewise.
11378         * po/tr.po: Likewise.
11379         * po/zh_CN.po: Likewise.
11380         * po/zh_TW.po: Likewise.
11382         [BZ #3137]
11383         * iconv/iconv_prog.c (main): Fix spelling in error message.
11384         * iconv/iconvconfig.c (main): Likewise.
11385         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
11386         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
11387         * locale/programs/localedef.c (main): Likewise.
11388         * locale/programs/repertoire.c (repertoire_read): Likewise.
11389         * timezone/zdump.c (main): Likewise.
11390         * nscd/connections.c (handle_request): Fix spelling in log message.
11391         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
11393 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
11395         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
11396         interfaces.
11398 2006-09-20  Andreas Jaeger  <aj@suse.de>
11400         * math/libm-test.inc (lrint_test_upward): Fix typo.
11402 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
11404         [BZ #2592]
11405         * math/libm-test.inc (lrint_test_tonearest): New function.
11406         (lrint_test_towardzero): New function.
11407         (lrint_test_downward): New function.
11408         (lrint_test_upward): New function.
11409         (main): Run these new tests.
11410         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
11411         of values near to 0.
11412         (two52): Use double not long double.
11413         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11414         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11415         (two23): Use float not double.
11416         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11417         (two23): Use float not double.
11418         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
11419         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11420         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
11421         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11423 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11425         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
11426         Cast sp to unsigned long to avoid compiler warning.
11427         Use __makecontext_ret function instead of a trampoline on the stack.
11428         (__makecontext_ret): New function.
11429         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
11431 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
11433         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
11434         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
11435         bits.
11437 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
11439         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
11440         sure no reference to the unloaded map's search list remains in the
11441         dependency's scope.
11443 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
11445         * elf/Makefile: Add rules to build and run unload7 test.
11446         * elf/unload7.c: New test.
11447         * elf/unload7mod1.c: New file.
11448         * elf/unload7mod2.c: New file.
11450 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
11452         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
11453         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
11454         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11455         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
11456         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11457         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
11458         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11459         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
11460         PTRACE_GETEVENTMSG): Likewise.
11461         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
11462         values.
11464 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
11466         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
11467         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11468         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
11469         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
11471 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
11473         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
11474         write '\0' to the fd.
11475         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
11476         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
11477         Change regs to unsigned long pointer from unsigned int, fix fscr
11478         offset.
11480 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
11482         * io/Makefile (CFLAGS-fstatat.c): Set.
11483         (CFLAGS-fstatat64.c): Likewise.
11484         (CFLAGS-mknodat.c): Likewise.
11486         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
11487         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11488         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
11489         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
11491 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
11492             Steven Munroe  <sjmunroe@us.ibm.com>
11494         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
11495         names to the beginning.  Rename "cell" to "cellbe".
11496         (_dl_powerpc_platforms): New.
11497         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11498         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
11499         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
11500         (_DL_HWCAP_PLATFORM): Define to new mask.
11501         (_dl_platform_string, _dl_string_platform): New functions.
11502         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
11503         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
11505 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
11507         [BZ #2526]
11508         * README.libm: Fix a thinko in sqrt algorithm description.
11510         [BZ #3143]
11511         * manual/string.texi (argz_delete): Fix prototype.
11512         Patch by <alpt@freaknet.org>.
11514 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
11516         [BZ #3138]
11517         * io/test-lfs.c (do_prepare): Give name_len type size_t.
11518         * io/tst-fcntl.c (do_prepare): Likewise.
11519         * posix/tst-exec.c (do_prepare): Likewise.
11520         * posix/tst-preadwrite.c (do_prepare): Likewise.
11521         * posix/tst-spawn.c (do_prepare): Likewise.
11522         * posix/tst-truncate.c (do_prepare): Likewise.
11523         * rt/tst-aio.c (do_prepare): Likewise.
11524         * rt/tst-aio64.c (do_prepare): Likewise.
11525         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
11526         size_t.
11528 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
11530         [BZ #2821]
11531         * time/mktime.c (guess_time_tm): Fix overflow detection.
11532         * time/Makefile (tests): Add bug-mktime1.
11533         * time/bug-mktime1.c: New file.
11535         [BZ #3189, #3188]
11536         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
11537         (mremap): Likewise.
11539 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
11541         [BZ #1006]
11542         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
11543         Ensure relocation doesn't clobber any bits outside of the
11544         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
11545         R_SPARC_HI22 and R_SPARC_H44.
11547         [BZ #2775]
11548         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
11549         (long) (MINSIZE + nb - old_size) is positive.
11551         * malloc/arena.c (grow_heap): When growing bail even if new_size
11552         is negative.
11554         [BZ #3155]
11555         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
11556         stack below r1.
11558 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
11560         * posix/regex_internal.c (re_string_reconstruct): Handle
11561         offset < pstr->valid_raw_len && pstr->offsets_needed case.
11562         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
11563         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
11564         re_string_context_at.
11565         * posix/Makefile: Add rules to build and run bug-regex26 test.
11566         * posix/bug-regex26.c: New test.
11568         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
11569         rather than col_sym_free.  Move seqp declaration earlier.
11571         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
11573 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
11575         * nscd/initgrcache.c (addinitgroupsX): Move any_success
11576         decl before first goto out.
11578 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
11580         * Makerules (shlib.lds): If have-hash-style, put .hash section
11581         at the end of the RO segment.
11583 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
11585         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
11586         style hash table format is used.
11588 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
11590         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
11591         randomization rather than before.
11592         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
11594 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
11596         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
11598         * malloc/malloc.c (_int_malloc): Use full list insert and not
11599         shortcut which assumes the list is empty for large requests
11600         too.
11602         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
11604 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
11606         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
11607         and offout arguments to the prototype.
11608         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
11609         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
11610         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
11611         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
11612         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
11613         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
11614         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
11615         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
11617 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
11619         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
11621         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
11622         dlopen parameters.
11624 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
11626         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
11627         only if herrno is NETDB_INTERNAL.  Handle errors other than
11628         ERANGE outside of the loops, handle TRY_AGAIN.
11630         * locale/programs/ld-ctype.c (translit_flatten): Issue error
11631         if other's ctype category was missing.
11632         * locale/programs/ld-collate.c (collate_read): Return if
11633         copy_locale's collate category is missing.
11635 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
11637         [BZ #2684]
11638         * malloc/malloc.c (public_rEALLOc): Try harder by using other
11639         arenas if allocation failed.
11640         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
11642 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
11644         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
11645         waste bins[0..1].
11646         (malloc_state): Reduce bins size by 2.
11647         (_int_malloc): Fix test for large enough buffer for early termination.
11648         When no unsorted block matches perfectly and an exiting block has
11649         to be split, use full list insert and not shortcut which assumes
11650         the list is empty.
11652         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
11653         failure.
11655 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
11657         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
11658         do anything.
11660         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
11661         symbol require exact match (these are PLTs).
11662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
11663         (_dl_ppc64_addr_sym_match): Likewise.
11665         [BZ #2683]
11666         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
11667         If symbol has a value use it.
11668         * elf/tst-dladdr1.c: New file.
11669         * elf/Makefile: Add rules to build and run tst-addr1.
11671 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
11673         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
11674         keeps failing and heap growth or new heap creation isn't
11675         successful either.
11676         * malloc/tst-malloc.c (main): Add new tests.
11678 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
11680         [BZ #2734]
11681         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
11682         as in the x86-64 code to use bswap.
11684 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
11686         [BZ #2680]
11687         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
11688         __USE_UNIX98.
11689         * posix/bits/unistd.h: Likewise.
11691 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
11693         [BZ #2751]
11694         * string/strchr.c: Add cast to avoid warning.
11696 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
11698         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
11699         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
11700         limit is needed to avoid the exploding of the address space
11701         requirement for secondary heaps.
11702         * malloc/arena.c (HEAP_MAX_SIZE): Define using
11703         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
11705 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
11707         [BZ #3018]
11708         * Makerules (depfiles): Handle extra-test-objs the same as
11709         extra-objs.
11710         (common-mostlyclean): Likewise.
11711         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
11712         instead.
11713         * elf/Makefile (extra-objs): Likewise.
11714         * stdlib/Makefile (extra-objs): Likewise.
11716 2006-08-14  Eric Blake  <ebb9@byu.net>
11718         [BZ #3044]
11719         * misc/error.h: Assume C89 or better.
11720         * misc/error.c: Likewise.
11722 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
11724         [BZ #3040]
11725         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
11726         __ASSUME_ATFCTS is defined.
11728 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
11730         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
11731         to sort in each call.
11733         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
11734         is empty simply return and use next service.
11735         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
11737         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
11738         tells us when not finding a charmap file is an error.
11739         * locale/programs/charmap.h: Adjust charmap_read prototype.
11740         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
11741         cannot find a charmap.
11742         * locale/programs/localedef.c (main): Adjust charmap_read call.
11744 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
11746         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
11747         sysdeps/posix/pause.c implementation instead.
11749 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
11751         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
11752         to EPERM.
11754 2006-08-13  Andreas Schwab  <schwab@suse.de>
11756         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
11757         Don't clobber caller's LRSAVE.
11758         (_dl_prof_resolve): Likewise.
11760 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
11762         [BZ #1996]
11763         * libio/memstream.c (open_memstream): Allocate initial buffer with
11764         calloc.
11765         * libio/wmemstream.c (open_wmemstream): Likewise.
11766         * libio/strops.c: Pretty printing.
11767         (_IO_str_overflow): Clear uninitialized part of the new buffer.
11768         (enlarge_userbuf): New function.
11769         (_IO_str_seekoff): Call it if seek position is larger than current
11770         buffer.
11771         * libio/wstrops.c: Likewise.
11772         * libio/vasprintf.c: Add comment as to why we do not have to use
11773         calloc instead of malloc to allocate initial buffer.
11774         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
11775         * libio/bug-memstream1.c: New file.
11776         * libio/bug-wmemstream1.c: New file.
11778 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
11780         * libio/wstrops.c: Remove dead macro definitions and comments.
11781         * libio/strops.c: Likewise.
11783         [BZ #2764]
11784         * login/utmpname.c (__utmpname): Remove unnecessary test.
11786 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
11788         [BZ #2832]
11789         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
11790         0s from integers.
11792 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
11794         [BZ #2987]
11795         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
11796         for CPU clocks.
11797         * sysdeps/unix/clock_settime.c: Add support for platform-specific
11798         setting of CPU clocks.
11800 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11802         [BZ #2841]
11803         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
11804         since C99 requires the result to promote to 'int' when uint_least8_t
11805         and uint_least16_t promote to 'int'.
11807 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
11809         [BZ #3013]
11810         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
11811         lenght of one output field, correct bitmask creation.
11812         * locale/programs/ld-time.c: Add alignment.
11814         [BZ #2997]
11815         * misc/error.c: Add space between program name and message if file
11816         name is missing.
11818 2006-08-03  Eric Blake  <ebb9@byu.net>
11820         [BZ #2998]
11821         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
11823 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
11825         * malloc/memusagestat.c: Silence warnings.
11827         * malloc/malloc.c: Dynamically size mmap treshold if the program
11828         frees mmaped blocks.
11829         Patch by Valerie Henson and Arjan van de Ven.
11831 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
11833         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
11834         __USE_GNU.
11836         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
11837         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
11838         (DEF): Don't put the var into .gnu.linkonce.r.* section.
11839         Only provide var definitions in strtol_l (or for *ull*
11840         in strtoll_l).
11842         * stdio-common/bug16.c (tests): New array.
11843         (do_tests): Allow the first hexadecimal digit
11844         to be 1, 2, 4 or 8.  Do 3 additional tests.
11846         * sysdeps/s390/fpu/libm-test-ulps: Update.
11848         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
11849         fchownat syscall if available.
11850         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
11851         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
11852         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
11854 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
11856         * nis/nis_xdr.c: Avoid some function calls.
11858 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
11859             Ulrich Drepper  <drepper@redhat.com>
11861         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
11862         short cut if only one name component is stripped away.
11864 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
11866         * nis/nis_call.c: Minor cleanups throughout.
11867         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
11868         (first_shoot): Add search_parent_first parameter.  Only if it is set
11869         search parent server first.
11870         If directory for table found through cold start cache is not the same
11871         as referenced in the cache, don't use it.
11872         (__nisfind_server): Take additional parameter.  Pass it on to
11873         first_shoot.
11874         (__prepare_niscall): Adjust __nisfind_server call.
11875         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
11876         * nis/nis_table.c: Adjust __nisfind_server call.
11877         * nis/nis_lookup.c: Likewise.
11878         (nis_lookup): Don't loop endlessly if name is reduced to ".".
11880 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
11882         [BZ #2182]
11883         * math/s_cacosh.c: Return values from positive branch.
11884         * math/s_cacoshf.c: Likewise.
11885         * math/s_cacoshl.c: Likewise.
11887         [BZ #2883]
11888         * sysvipc/sys/msg.h: Change return value to ssize_t.
11889         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
11890         * sysvipc/msgrcv.c: Likewise.
11891         * include/sys/msg.h: Likewise.
11893         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
11894         test introduced in patch for bz #661.
11895         (getgrouplist): Simplify code a bit.  Don't allocate one additional
11896         element for NEWGROUPS.
11898         [BZ #2908]
11899         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
11900         'f', use '1' as leading digit not '\1'.
11901         * stdio-common/Makefile (tests): Add bug16.
11902         * stdio-common/bug16.c: New file.
11904         [BZ #2914]
11905         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
11906         and don't try to open it.  The patch introducing the macro
11907         contained a bug and used the same file name as the new file
11908         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
11909         this out completely.
11911         [BZ #2926]
11912         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
11913         Patch by Jerry James <Jerry.James@usu.edu>.
11915         * rt/Makefile (tests): Add tst-clock2.
11916         * rt/tst-clock2.c: New file.
11918         [BZ #2978]
11919         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
11920         function and its parameters and pass it to new thread.
11921         (__gai_notify): Add support for alternative waiting for completion.
11922         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
11923         waiting for completion.
11924         * resolv/getaddrinfo_a.c: Likewise.
11925         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
11926         waiting for completion is used.
11927         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
11928         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
11929         * resolv/gai_error.c: Likewise.
11930         * resolv/gai_sigqueue.c: Likewise.
11932 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
11934         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
11935         errno to EBADF and return MACH_PORT_NULL.
11937 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
11939         [BZ #2980]
11940         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
11942 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
11944         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
11945         walk them instead of the symbol table.
11947 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
11949         [BZ #2098]
11950         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
11951         status of NSS calls, not the number of returned entries.
11953         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
11954         request_key, keyctl.
11956 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
11958         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
11960 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
11962         * elf/tst-auditmod1.c: Fix typo in #error.
11964 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
11966         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
11968         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
11970 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
11972         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
11973         that the directory is empty even on non-POSIX filesystems.
11975 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
11977         * elf/dl-open.c (dl_open_worker): Add branch prediction.
11979         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
11980         the backend NSS module.  If backend setgrent call failed, don't have
11981         internal_setgrent fail.  Just remember this until it is needed.
11982         * nis/nss_compat/compat-pwd.c: Likewise.
11983         * nis/nss_compat/compat-spwd.c: Likewise.
11985 2006-07-30  Roland McGrath  <roland@redhat.com>
11987         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
11988         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
11989         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
11990         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
11992         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
11993         (nanosleep_not_cancel): New macro.
11994         (sigsuspend_not_cancel): new macro.
11995         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
11996         (do_sigsuspend): Define as inline.
11997         (__sigsuspend): Always use do_sigsuspend.
11998         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
11999         * include/signal.h: Declare __sigsuspend_nocancel.
12000         * sysdeps/posix/pause.c
12001         [! NO_CANCELLATION] (__pause_nocancel): New function.
12003         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
12004         * include/time.h (__nanosleep_nocancel): Likewise.
12006 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
12008         * locale/programs/localedef.c (add_to_readlist): Rename local
12009         variables to avoid confusion.
12011         * locale/programs/charmap.c (charmap_read): Emit error message if
12012         charmap couldn't be found or read.
12014 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
12016         * sysdeps/unix/sysv/linux/kernel-features.h: Define
12017         __ASSUME_FUTEX_LOCK_PI.
12018         * include/time.h: Declare __nanosleep_nocancel.
12019         * include/unistd.h: Declare __pause_nocancel.
12021         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
12022         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
12023         get the __stack_chk_fail_local definition when it's needed.
12025 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
12027         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
12028         * dlfcn/bug-atexit3.c: New file.
12029         * dlfcn/bug-atexit3-lib.cc: New file.
12031         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
12032         used when the namespace is not the base namespace.
12034 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
12036         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
12037         (__new_exitfn): Bump it in every successful call.
12038         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
12039         more exit handlers, call them right away.
12040         * stdlib/exit.h: Declare __new_exitfn_called.
12042 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
12044         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
12045         calling registered handler.
12047         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
12048         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12049         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12050         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12051         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12052         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12053         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12054         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12056 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
12058         * elf/dl-lookup.c (dl_new_hash): New functions.
12059         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
12060         value here.  Compute new-style hash value.  Pass new hash value
12061         and reference to variable with the old value to do_lookup_x.
12062         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
12063         old-style hash table.
12064         (_dl_debug_bindings): Pass new hash value and reference to variable
12065         with the old value to do_lookup_x.
12066         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
12067         new-style hash value and change old-style hash value parameter to
12068         be a reference.  Reoganize functions to determine whether
12069         new-style hash table is available.  Only fall back on old-style
12070         table.  If old-style hash value is needed, compute it here.
12071         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
12072         entry.
12073         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
12074         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
12075         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
12076         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
12077         * Makeconfig: If linker supports --hash-style option add it to all
12078         linker command lines to build DSOs.
12079         * config.make.in: Define have-hash-style.
12080         * configure.in: Test whether linker supports --hash-style option.
12082         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
12083         * sysdeps/generic/ldsodefs.h: Adjust prototype.
12085 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
12087         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
12088         auditing.
12090         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
12091         RPATH of main map twice.
12093 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
12095         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
12096         look further, return original strings.
12097         (_nl_find_msg): Do not return found translation if the conversion
12098         failed.  Either signal the string is unusable or that something went
12099         wrong and the original should be used.
12101 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
12103         * string/_strerror.c (__strerror_r): Add __builtin_expect.
12105 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
12107         [BZ #2766]
12108         * misc/insremque.c (insque): Handle prev == NULL.
12109         * misc/Makefile (tests): Add tst-insremque.
12110         * misc/tst-insremque.c: New test.
12112 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
12114         [BZ #2792]
12115         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
12116         conflict with DL_DST_REQUIRED.
12118 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
12120         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
12121         match what Solaris does.
12123 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
12125         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
12126         local_setegid instead of seteuid and setegid.
12127         * sysdeps/generic/local-setxid.h: New file.
12128         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
12130         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
12132         * string/Makefile (tests): Add bug-envz1.
12133         * string/bug-envz1.c: New file.
12135 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
12137         * posix/regex_internal.c (re_string_skip_chars): If no character has
12138         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
12139         to the byte which couldn't be converted.
12140         (re_string_reconstruct): Don't clear valid_raw_len before calling
12141         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
12142         tip_context using re_string_context_at.
12143         * posix/Makefile: Add rules to build and run bug-regex25 test.
12144         * posix/bug-regex25.c: New test.
12146 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
12148         [BZ #2703]
12149         * string/envz.c (envz_strip): Correct erroneously reversed src
12150         and dest parameters to memmove() invocation.
12152 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
12154         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
12155         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
12156         to make sure the database has been already invalidated.
12157         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
12158         after the cache has been invalidated.  Use pthread_mutex_lock rather
12159         than pthread_mutex_trylock if fd != -1.
12160         * nscd/connections.c (invalidate_cache): Add fd argument, write
12161         response to fd if not calling prune_cache, pass fd to prune_cache.
12162         (handle_request): Adjust invalidate_cache caller.
12163         (nscd_run): Pass -1 as fd to prune_cache.
12165 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
12167         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
12168         the correct place.
12170 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
12172         * nscd/nscd.h (struct database_dyn): Add prunelock field.
12173         * nscd/cache.c (prune_cache): Take prunelock before starting the
12174         work.  Just return in case it is already taken.
12175         * nscd/connections.c (dbs): Initialize .prunelock.
12177 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
12179         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
12180         copying.  No need to allocate new array for group members.  Just
12181         move the pointers and update the size.
12183         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
12184         Avoid memory leak in case realloc fails.  Simplification for
12185         better code generation.
12187         Avoid deprecation warning because of libc_hidden_proto for
12188         inet6_option_alloc.
12189         * inet/inet6_option.c (option_alloc): Renamed from
12190         inet6_option_alloc.  Made static.
12191         (inet6_option_alloc): Now a simple wrapper around option_alloc.
12192         (inet6_option_append): Call option_alloc.
12193         * include/netinet/in.h: Remove libc_hidden_proto for
12194         inet6_option_alloc.
12196         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
12197         for cleanup when cb!=NULL [Coverity CID 233].
12199 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
12201         [BZ #2693]
12202         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
12203         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
12204         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
12205         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
12206         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
12207         and inet6_rth_getaddr.
12208         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
12209         array.
12210         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
12211         Mark inet6_option_* interfaces as deprecated.
12212         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
12213         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
12214         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
12215         inet6_rth_segments, and inet6_rth_getaddr.
12216         * inet/inet6_opt.c: New file.
12217         * inet/inet6_rth.c: New file.
12219         * inet/netinet/icmp6.h: Pretty printing.
12221         [BZ #2683]
12222         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
12224 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
12226         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
12227         doing it all here.  When server does not know the answer do not
12228         fail immediate, try parent first.
12230         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
12231         overflow test.
12233 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
12235         * nis/nis_call.c (__prepare_niscall): New function.  Split out
12236         from __do_niscall.
12237         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
12238         and exported.
12239         (__follow_path): New function.  Split out from nis_list.
12240         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
12241         _xdr_nis_result.
12242         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
12243         _xdr_nis_result.
12244         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
12245         and __follow_path.
12246         * nis/Versions: Export __prepare_niscall, __create_ib_request,
12247         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
12248         from libnsl for version GLIBC_PRIVATE.
12249         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
12250         Remove entry parameter from _nss_nisplus_parse_pwent and
12251         _nss_nisplus_parse_grent.
12252         * nis/nss_nisplus/nisplus-parser.c: Likewise.
12253         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
12254         again.  Rewrite getpwent handling to not use nis_first_entry and
12255         nis_next_entry.  Roll out own niscall handling.
12256         * nis/nss_nisplus/nisplus-grp.c: Likewise.
12258         * sunrpc/xdr_rec.c: Fix typo in comment.
12260 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
12262         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
12263         handling.
12265         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
12266         to allocate memory for my_pollfd.  Better initialization of
12267         cb_is_running.  Use TEMP_FAILURE_RETRY.
12269         * malloc/memusage.sh (memusageso): Add quotes.
12270         (memusagestat): Likewise.
12271         * debug/xtrace.sh (pcprofileso): Likewise.
12272         (pcprofiledump): Likewise.
12273         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
12274         replacement.
12275         * malloc/Makefile ($(objpfx)memusage): Likewise.
12277         * nis/nis_callback.c (__nis_create_callback): Calls to
12278         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
12279         asprintf call fails.
12281         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
12282         no uninitialized memory is passed to sendto.
12284 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
12286         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
12287         of snprintf+strdup.  Handle OOM.
12288         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
12289         cb->serv together.  Remove now obsolete free calls.
12290         (__nis_destroy_callback): Remove now obsolete free call.
12292 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
12294         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
12295         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
12296         and ULA respectively). Set precedence for IPv4 address to 10 as
12297         defined in RFC3484 for preferring IPv6.
12298         * posix/gai.conf: Update to match the new default tables.
12300 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
12302         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
12303         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
12304         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
12305         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
12307         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
12308         Removed.
12309         (init_nss_interface): Remove initialization of these variables.
12311 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
12313         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
12314         nis_free_directory forward to avoid duplication.
12316 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
12318         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
12319         rec_dirsearch returning NULL.
12320         (first_shoot): Handle __nis_finddirectory returning NULL.
12321         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
12323         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
12324         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
12326 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
12328         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
12329         pid changed.
12331 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
12333         * include/rpc/pmap_prot.h: Mark all functions as hidden.
12335         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
12336         * nscd/nscd_getgr_r.c: Likewise.
12338         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
12340         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
12341         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
12343         * stdlib/longlong.h (__clz_tab): Mark as hidden.
12345         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
12347         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
12349         * include/rpc/auth.h: Mark xdr_des_block_internal and
12350         xdr_opaque_auth_internal as hidden.
12352         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
12353         hidden.
12355         * include/rpc/xdr.h: Mark all _internal functions as hidden.
12357         * misc/getusershell.c (okshells): Don't use static initializers,
12358         do it dynamically.
12360         * stdlib/fmtmsg.c (keywords): Change type of len element to
12361         uint32_t to not waste space on 64bit machines.
12363         * locale/setlocale.c: Change _nl_category_names into a string.
12364         Add new _nl_category_name_idxs.  Change all users.
12365         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
12366         Declare _nl_category_name_idxs.
12367         * locale/findlocale.c: Adjust for _nl_category_names change.
12368         * locale/loadlocale.c: Likewise.
12369         * locale/newlocale.c: Likewise.
12370         * intl/dcigettext.c: Likewise.
12372         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
12373         (add_alias2): ...here.  New function.
12374         (__gconv_read_conf): Simplify builtin alias handling.
12375         (builtin_aliases): Convert to string to avoid relocations.
12376         * iconv/gconv_builtin.h: Add comment about correct formatting.
12378 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
12380         * resolv/res_debug.c (loc_ntoa): Make error const.
12382 2006-05-14  Andreas Schwab  <schwab@suse.de>
12384         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
12386 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
12388         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
12389         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
12390         sizeof (cpu_set_t).
12392 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
12394         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
12396         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
12398         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
12399         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
12401         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
12402         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
12404         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
12405         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
12406         xdr_cback_data.
12408         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
12409         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12410         xdr_ypupdate_args.
12412         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
12413         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
12415         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
12416         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
12418         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
12419         * include/rpcsvc/nis_callback.h: New file.
12421         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
12422         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
12424         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12425         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12427         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
12428         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
12430         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12431         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12433         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
12434         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12435         xdr_ypdelete_args.
12437         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
12438         __BEGIN_DECLS and __END_DECLS, the header is not installed.
12440         * nis/nis_error.c: Remove table of strings.  Use position
12441         independent mechanism.
12442         * nis/nis_error.h: New file.
12444 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
12446         * locale/programs/ld-time.c (time_finish): If wide era name or
12447         format aren't provided, set both wname and wformat to L"".
12449 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
12451         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
12452         results if the call was succesful.
12454         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
12456         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
12457         as hidden.
12459 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
12461         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
12463 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
12465         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
12466         caller makes sure this is not the case.
12467         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
12469 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
12471         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
12472         calls.
12474         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
12475         [Coverity CID 229, 230]
12477         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
12478         DGETTEXT calls.
12479         (hol_help): Likewise.  [Coverity CID 226, 227]
12481         * string/argz-replace.c (__argz_replace): Unconditionally call
12482         free on SRC.  [Coverity CID 225]
12484         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
12485         the return value of __nis_default_owner and __nis_default_group,
12486         it has been especially allocated.  [Coverity CID 224]
12488         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
12489         searchgroup and searchowner.  Significantly simplified.
12490         (__nis_default_owner): Remove duplication.  Do not locally copy the
12491         string before duplicating it.
12492         (__nis_default_group): Likewise.
12494         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
12495         we must clear the variable before calling __nisfind_server.
12497         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
12498         nis_getnames.  [Coverity CID 223]
12500         * locale/programs/locfile.c (locfile_read): Use alloca instead of
12501         xmalloc to allocate local repertoire name.  [Coverity CID 222]
12503         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
12504         allocate memory for the input to add_bytes.  [Coverity CID 221]
12506         * posix/wordexp.c (w_addword): Free word if realloc fails and it
12507         was allocated here.  [Coverity CID 219, 220]
12509         * posix/getconf.c (print_all): Free confstr data after printing.
12510         [Coverity CID 218]
12512         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
12513         list allocation fails.  [Coverity CID 215]
12515         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
12516         [Coverity CID 213]
12518         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
12519         string is NULL.  [Coverity CID 212]
12520         * argp/Makefile: Add rules to build and run bug-argp1.
12521         * argp/bug-argp1.c: New file.
12523         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
12524         end of string.
12525         * stdlib/canonicalize.c (__realpath): Likewise.
12527         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
12528         pointer.  [Coverity CID 206]
12530         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
12531         in statically linked code.
12532         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
12533         statically built code, be prepared to have no link map.
12534         [Coverity CID 205]
12536         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
12537         dgettext calls. [Coverity CID 204]
12539         * argp/argp-help.c (struct uparams): Remove valid member.  Change
12540         the one user.
12541         (uparam_names): Reduce size.  Avoid relative relocations.
12542         Moved to read-only segment.
12543         (fill_in_uparams): Update for new layout.
12545         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
12546         assumed to always be != NULL. [Coverity CID 202]
12548         * argp/argp-help.c (hol_entry_help): Remove some dead code
12549         [Coverity CID 200].
12551         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
12552         away a few more unconditional yperr2nss calls.
12553         (_nss_nis_getservbyname_r): Likewise.
12555 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
12557         * sysdeps/generic/ldsodefs.h: Remove support for non-core
12558         architectures.
12560         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
12561         that unused memory passed to sendto is nevertheless initialized.
12563         [BZ #2499]
12564         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
12565         possibly unaligned memory accesses.
12567         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
12568         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
12569         and __putlong respectively.  Correct buffer overflow check for
12570         NS_NOTIFY_OP.
12572         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
12574         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
12575         (send_dg): Rewrite error handling to be more compact and avoid
12576         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
12578         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
12580         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
12581         instead of ns_get16.
12582         (res_queriesmatch): Likewise.  Minor optimization.
12584         [BZ #2499]
12585         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
12586         __libc_res_nsend might reallocate the buffer for the answer.  In
12587         this case we have to reload the HP pointer.
12589 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
12591         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
12592         some branch prediction hints.
12594         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
12595         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12596         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12597         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12598         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12599         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12600         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12601         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12603 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12605         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
12606         by a GOT relocation to make Scrt1.o position independent.
12607         * sysdeps/s390/s390-64/elf/start.S: Likewise.
12609         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
12610         six system call parameters.
12611         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
12613 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
12615         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
12616         malloc&bzero.
12618         * sunrpc/svc_udp.c (BZERO): Remove definition.
12619         (CALLOC): Define.
12620         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
12622         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
12623         (des_SPtrans): Use uint32_t type.
12624         (des_skb): Likewise.
12626         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
12628 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
12630         [BZ #2509]
12631         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
12632         on 32-bit arches.
12634 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
12636         * locale/programs/ld-address.c (address_finish): Fix one more
12637         place where the iso639 array might be accessed beyond the limits.
12639 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
12641         * nis/nis_table.c (nis_list): Avoid clearing res twice before
12642         filling it for the first time.
12644         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
12645         Adjust all callers.
12646         Free res object content before returning.
12648         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
12650         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
12651         client->cl_auth.
12653         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
12654         cleanup for initial thread, just the free call on TVP.
12656         * nscd/gai.c (__getline): Define.
12659 See ChangeLog.16 for earlier changes.