Fix 64-bit platform handling in test cases for generated headers with constants.
[glibc/pb-stable.git] / ChangeLog
blob39bbb2ab9c9cd94ad0778040b9b8efd7d8926b5c
1 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
3         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
5 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
7         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
8         Also handle SIGINT.  In that case only do the cleanup and then
9         re-raise the signal.
10         (main): Install handler for SIGINT.
12 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
14         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
15         clobber list.
17 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
19         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
20         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
21         tst-auditmod7b.c.
22         (tests): Add tst-audit6 tst-audit7.
23         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
24         tst-auditmod7a tst-auditmod7b.
25         ($(objpfx)tst-audit6): New.
26         ($(objpfx)tst-audit6.out): Likewise.
27         ($(objpfx)tst-audit7): Likewise.
28         ($(objpfx)tst-audit7.out): Likewise.
29         (tst-audit6-ENV): Likewise.
30         (tst-audit7-ENV): Likewise.
31         (CFLAGS-tst-auditmod6b.c): Likewise.
32         (CFLAGS-tst-auditmod6c.c): Likewise.
33         (CFLAGS-tst-auditmod7b.c): Likewise.
34         * elf/tst-audit6.c: New file.
35         * elf/tst-audit7.c: New file.
36         * elf/tst-auditmod6a.c: New file.
37         * elf/tst-auditmod6b.c: New file.
38         * elf/tst-auditmod6c.c: New file.
39         * elf/tst-auditmod7a.c: New file.
40         * elf/tst-auditmod7b.c: New file.
41         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
42         saving and restoring SSE/AVX registers to ...
43         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
45 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
47         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
48         only if SHARED is defined.
49         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
51 2009-08-03  Jim Meyering  <meyering@redhat.com>
53         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
55 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
57         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
58         section as the other functions for this architecture.
59         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
61 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
63         * sysdeps/x86_64/strcmp.S: Add support to compile with
64         USE_SSSE3.  In this case palignr is used.
65         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
66         available but SSSE3 is, pick __str{,n}cmp_ssse3.
67         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
68         Add strcmp-ssse3 and strncmp-ssse3.
69         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
70         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
72         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
73         warning through fake initialization.
75 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
77         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
79 2009-08-07  Andreas Schwab  <schwab@redhat.com>
81         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
82         unique symbols.
84 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
86         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
87         EBX from EAX = 1.  Handle EAX = 11.
89 2009-08-07  Andreas Schwab  <schwab@redhat.com>
91         * Makefile (TAGS): Use separate sed -e expressions to avoid \
92         inside ''.
94 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
96         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
97         hidden IFUNC functions.
98         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
100         * sysdeps/i386/i686/multiarch/strlen.S: New file.
102         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
103         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
104         strcasestr-c.
105         (CFLAGS-strcspn-c.c): Define.
106         (CFLAGS-strpbrk-c.c): Define.
107         (CFLAGS-strspn-c.c): Define.
108         (CFLAGS-strstr.c): Define.
109         (CFLAGS-strcasestr.c): Define.
110         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
111         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
112         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
113         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
114         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
115         * sysdeps/i386/i686/multiarch/strspn.S: New file.
116         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
117         * sysdeps/i386/i686/multiarch/strstr.c: New file.
118         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
119         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
120         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
121         -16L instead of 0xfffffffffffffff0L.
122         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
124 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
126         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
128 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
130         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
131         another rewrite.  Much smaller and faster.
132         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
134         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
135         ss_flags from the correct location.
137 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
139         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
140         * sysdeps/i386/i686/cacheinfo.c: New file.
141         * sysdeps/i386/i686/multiarch/Makefile: New file.
142         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
143         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
144         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
145         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
146         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
147         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
148         (__cpuid_count): New. Provide the default.
149         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
150         (__x86_64_preferred_memory_instruction): Define only if
151         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
152         (intel_check_word): Use __cpuid.
153         (handle_intel): Likewise.
154         (handle_amd): Likewise.
155         (__cache_sysconf): Likewise.
156         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
157         (__cache_sysconf): Likewise.
158         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
159         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
160         (get_common_indeces): Use __cpuid.
161         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
162         if ENABLE_SSSE3_ON_ATOM is not defined.
163         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
164         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
165         popcnt instead of popcntq.
167 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
169         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
171 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
173         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
174         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
175         which always causes a compile error.
177         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
179         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
180         comes from...
181         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
182         which always causes a compile error.
184         * debug/Makefile (tests): Add tst-longjmp_chk2.
185         * debug/tst-longjmp_chk2.c: New file.
187         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
188         Remove incorrect use of BP_SYM.
189         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
190         here now since it is more complex than just a simple check.
192         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
193         we make no more progress.
195 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
197         * math/s_fma.c: Don't define alias if __fma is a macro.
198         * math/s_fmaf.c: Likewise.
199         * sysdeps/x86_64/multiarch/s_fma.c: New file.
200         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
201         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
203         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
204         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
205         New macro HAS_FMA.
206         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
207         function.
208         * include/libc-symbols.h (libm_ifunc): Define.
209         * sysdeps/x86_64/multiarch/Versions: New file.
211         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
213 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
215         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
217 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
219         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
220         call that registers used in calling conventions need to be preserved.
221         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
222         to preserve register content if necessary.
223         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
224         (_dl_x86_64_restore_sse): New function.
225         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
226         is allowed to modify xmm/ymm registers.
228         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
229         application's perspective.
230         * stdio-common/scanf17.c: Likewise.
232 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
234         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
235         size to memsz.
236         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
237         here.
238         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
239         two steps to catch bugs.
241 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
243         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
244         determines which files are used in runtime lookups and only checks
245         those for SSE use.
246         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
247         testing.
248         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
249         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
250         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
251         take a while.
253         * elf/dl-open.c: Move _dl_scope_free to...
254         * elf/dl-scope.c: ...here.  New file.
255         * elf/Makefile (dl-routines): Add scope.
257         * resolv/resolv.h (RES_USE_DNSSEC): Define.
258         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
259         RES_USE_DNSSEC.
260         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
261         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
262         all the places we handled RES_USE_EDNS0 only before.
263         Patch by Adam Tkac <atkac@redhat.com>.
265 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
267         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
268         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
269         Update size when reallocating.
271 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
273         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
274         functions used in ld.so modify xmm/ymm registers.
275         * sysdeps/x86_64/Makefile:  Hook new test up.
276         * sysdeps/x86_64/rtld-memchr.c: New file.
277         * sysdeps/x86_64/rtld-memcmp.c: New file.
278         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
279         * sysdeps/x86_64/rtld-strchr.S: New file.
280         * sysdeps/x86_64/rtld-strlen.S: New file.
281         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
282         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
284 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
286         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
287         strncmp-c.
288         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
289         (exit): Likewise.
290         (Byte1): Likewise.
291         (Byte2): Likewise.
292         (Byte3): Likewise.
293         (Byte4): Likewise.
294         (Byte5): Likewise.
295         (Byte6): Likewise.
296         (next_8_bytes): Likewise.
297         (Byte0): Remove commented out codes.
298         (unaligned_table): Align jump table at 8 bytes.
299         Add _sse4_2 to all labels.  Always include "../strcmp.S".
300         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
301         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
302         * sysdeps/x86_64/strncmp.S: New file.
304 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
306         [BZ #10422]
307         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
308         kernels, dropped when eventfd2 support was added.
309         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
310         kernels, dropped when signalfd4 support was added.
311         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
312         added, name them.
314         [BZ #10452]
315         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
316         replies up.
318         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
320 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
322         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
323         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
325         [BZ #10448]
326         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
327         callback we must touch the status to avoid using stale value.
329         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
330         compiled in.
332 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
334         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
335         /lib/modules/* headers anymore.  We have sane headers in the standard
336         place now.
338 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
340         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
341         "etf3enh" and "highgprs" added.
342         (_dl_s390_platforms): "z10" added.
343         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
344         Increased for the new entries.
345         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
346         HWCAP_S390_HIGH_GPRS added.
348         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
349         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
350         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
351         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
352         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
354 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
356         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
357         avoid additional cpuid instructions.  Most of the information is
358         stored somewhere.
360         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
361         cache descriptors.
362         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
364         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
365         SSSE3 bit for Atoms.
366         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
367         here anymore.
369         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
370         structure before copying it to avoid warning.
371         * posix/tst-rfc3484-2.c (do_test): Likewise.
372         * posix/tst-rfc3484-3.c (do_test): Likewise.
374         [BZ #10416]
375         * include/unistd.h: Make header file suitable for C++ test cases.
376         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
378         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
379         stack alignment in the exit code.
381         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
382         potentially be zero.
384         * elf/tst-unique1.c: Extend test to check for unloading DSO with
385         unique symbol definition.
386         Patch by Jakub Jelinek.
387         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
388         make sure the object with the definition cannot be unloaded.  Adjust
389         a few types.
390         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
391         the unique symbol hash table should not be const.
393 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
395         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
396         unnecesary variables.  Comment fixes.
398 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
400         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
401         Use NONASCII_CASE information provided by the locale to determine
402         whether optimized string load function can be used.  Minor cleanups.
404 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
406         * string/strcasestr.c (STRCASESTR): New macro.
407         (__strcasestr): Renamed to ..
408         (STRCASESTR): ...this.
409         * string/strstr.c (STRSTR): New macro.
410         (strstr): Renamed to ..
411         (STRSTR): ...this.
412         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
413         strstr-c strcasestr-c
414         (CFLAGS-strstr.c): New.
415         (CFLAGS-strcasestr.c): Likewise.
416         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
417         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
418         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
419         * sysdeps/x86_64/multiarch/strstr.c: New file.
421 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
423         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
424         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
425         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
426         _NL_CTYPE_NONASCII_CASE.
427         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
428         field.
429         (ctype_finish): Check whether there are any 8-bit characters outside
430         the range ASCII has or whether the mapping isn't the same as for
431         ASCII (±0x20).  Set nonascii_case appropriately.
432         (ctype_output): Add output handler for nonascii_case.
434 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
436         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
437         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
439 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
441         [BZ #10360]
442         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
443         0xffff in the EDNS0 record.
445 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
447         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
448         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
449         is written before the list head update.
450         Patch by Andreas Schwab <aschwab@redhat.com>.
452 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
453             Jakub Jelinek  <jakub@redhat.com>
455         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
456         corruption thread-safe.
458 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
460         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
461         overrides atomic_compare_and_exchange_val_rel, define to
462         atomic_compare_and_exchange_val_rel by default, otherwise default
463         to catomic_compare_and_exchange_val_acq.
464         (catomic_compare_and_exchange_bool_rel): If arch overrides
465         atomic_compare_and_exchange_bool_rel, define to
466         atomic_compare_and_exchange_bool_rel by default.
467         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
468         Use catomic_compare_and_exchange_val_rel instead of
469         catomic_compare_and_exchange_val_acq.
471 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
473         * sysdeps/generic/ldsodefs.h: Add prototype for
474         _dl_higher_prime_number.
475         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
477         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
478         restoring of ymm registers a bit.
480 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
482         * sysdeps/x86_64/memcmp.S: New file.
484 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
486         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
487         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
488         pointers in writable memory.
490 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
492         * config.h.in: Add HAVE_AVX_SUPPORT entry.
493         * config.make.in: Add config-cflags-avx entry.
494         * configure.in: Substitute libc_cv_cc_avx.
495         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
496         * elf/tst-audit4.c: New file.
497         * elf/tst-audit5.c: New file.
498         * elf/tst-auditmod4a.c: New file.
499         * elf/tst-auditmod4b.c: New file.
500         * elf/tst-auditmod5a.c: New file.
501         * elf/tst-auditmod5b.c: New file.
502         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
503         link-defines.sym.
504         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
505         (La_x86_64_vector): Likewise.
506         (La_x86_64_regs): Append lr_vector.
507         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
508         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
509         saving and restoring SSE registers to ...
510         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
511         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
512         <link-defines.h>.
513         (_dl_runtime_profile): Use LR_SIZE to allocate space for
514         La_x86_64_regs.  Allocate extra space and jump to memory at
515         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
516         (save_and_restore_vector_sse): New.
517         (save_and_restore_vector_avx): Likewise.
518         (check_avx): Likewise.
519         (save_and_restore_vector): Likewise.
520         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
521         HAVE_AVX_SUPPORT.
522         * sysdeps/x86_64/link-defines.sym: New file.
524 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
526         * elf/do-lookup.h: Removed after folding content into...
527         * elf/dl-lookup.c: ...here.
529         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
531 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
533         * configure.in: Check for gnu_unique_symbol symbol type.
534         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
535         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
536         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
537         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
538         change.
539         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
540         unique symbol table.
541         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
542         for first namespace.
543         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
544         unique symbol hash table.
545         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
546         * elf/tst-unique1.c: New file.
547         * elf/tst-unique1mod1.c: New file.
548         * elf/tst-unique1mod2.c: New file.
549         * elf/tst-unique2.c: New file.
550         * elf/tst-unique2mod1.c: New file.
551         * elf/tst-unique2mod2.c: New file.
553 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
555         * elf/elf.h (STB_GNU_UNIQUE): Define.
557         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
558         from...
559         * include/inline-hashtab.h: ...here.
560         (htab_expand): Adjust for renamed function.  Correct memory handling.
562 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
564         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
566 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
568         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
569         (PPC_FEATURE_HAS_VSX): Likewise.
571 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
573         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
574         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
576         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
577         aligned to 16 byte boundaries.
578         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
579         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
580         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
582 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
584         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
585         * config.make.in (config-cflags-sse4): New variable.
586         * configure.in: Substitute libc_cv_cc_sse4.
587         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
588         HAVE_SSE4_SUPPORT.
589         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
590         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
591         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
592         * sysdeps/x86_64/multiarch/strcspn.S: New file.
593         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
594         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
595         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
596         * sysdeps/x86_64/multiarch/strspn.S: New file.
598 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
600         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
601         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
602         (tests): Add tst-audit3 for x86_64.
603         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
604         ($(objpfx)tst-audit3): Define.
605         ($(objpfx)tst-audit3.out): Define.
606         (tst-audit3-ENV): Define.
607         * elf/tst-audit3.c: New file.
608         * elf/tst-auditmod3a.c: New file.
609         * elf/tst-auditmod3b.c: New file.
610         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
611         and restore xmm6.
613         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
614         (__stpncpy): Renamed to ...
615         (STPNCPY): This.
616         (stpncpy): Create alias only if STPNCPY is not defined.
617         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
618         defined.
619         (strncpy): Renamed to ...
620         (STRNCPY): This.
621         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
622          stpncpy-c strncpy-c for string.
623         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
624         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
625         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
626         * sysdeps/x86_64/multiarch/strcpy.S: New file.
627         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
628         * sysdeps/x86_64/multiarch/strncpy.S: New file.
630 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
632         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
633         adding to fast bin list.
635 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
637         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
638         inet_makeaddr.  This worked only with class-based networks.
639         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
640         Likewise.
642         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
643         recognize all types.
644         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
645         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
646         be in host byte order.
648 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
650         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
651         (MODEL_OFFSET): Define.
652         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
653         family and model.
654         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
655         out common code into new function get_common_indeces. Determine
656         extended family and model for Intel processors.
658 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
660         * resolv/resolv.h: Define RES_SNGLKUPREOP.
661         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
662         option.
663         * resolv/res_send.c (reopen): New function.  Broken out of...
664         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
665         fallback mechanism.  If single-request fails switch to
666         single-request-reopen mode which opens a new socket for the second
667         request.
669 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
671         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
672         (CHECK_SP): Use it.
674 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
676         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
677         for saved registers.
678         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
679         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
680         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
682 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
684         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
686 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
688         * po/id.po: Update from translation team.
690         * po/bg.po: Update from translation team.
692 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
694         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
695         defined.
696         (strncmp): Renamed to STRNCMP.
697         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
698         strncmp-c for string.
699         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
700         * sysdeps/x86_64/multiarch/strcmp.S: New file.
701         * sysdeps/x86_64/multiarch/strncmp.S: New file.
702         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
704 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
706         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
707         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
708         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
709         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
710         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
711         ifuncmain7static.c.
712         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
713         ifuncmain7static, and ifuncmain7picstatic.
714         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
715         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
716         $(objpfx)ifuncmain7pie.out.
717         (modules-names): Add ifuncmod5 ifuncmod6
718         (ifuncmod5.so-no-z-defs): Define.
719         (ifuncmod6.so-no-z-defs): Define.
720         (CFLAGS-ifuncmain5pic.c): Define.
721         (CFLAGS-ifuncmain5picstatic.c): Define.
722         (CFLAGS-ifuncmain5staticpic.c): Define.
723         (CFLAGS-ifuncdep5pic.c): Define.
724         (CFLAGS-ifuncmain7pic.c): Define.
725         (CFLAGS-ifuncmain7picstatic.c): Define.
726         (CFLAGS-ifuncmain1staticpie.c): Define.
727         (CFLAGS-ifuncmain5pie.c): Define.
728         (CFLAGS-ifuncmain6pie.c): Define.
729         (CFLAGS-ifuncmain7pie.c): Define.
730         ($(objpfx)ifuncmain1staticpie.out): Define.
731         ($(objpfx)ifuncmain1staticpie): Define.
732         ($(objpfx)ifuncmain5pie.out): Define.
733         ($(objpfx)ifuncmain5pie): Define.
734         ($(objpfx)ifuncmain6pie.out): Define.
735         ($(objpfx)ifuncmain6pie): Define.
736         ($(objpfx)ifuncmain5): Define.
737         ($(objpfx)ifuncmain5pic): Define.
738         ($(objpfx)ifuncmain5static): Define.
739         ($(objpfx)ifuncmain5staticpic): Define.
740         ($(objpfx)ifuncmain5picstatic): Define.
741         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
742         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
743         ifuncmain6pie.out.
744         * elf/b/elf/ifuncmain1staticpie.c: New file.
745         * elf/ifuncdep5.c: New file.
746         * elf/ifuncdep5pic.c: New file.
747         * elf/ifuncmain5.c: New file.
748         * elf/ifuncmain5pic.c: New file.
749         * elf/ifuncmain5picstatic.c: New file.
750         * elf/ifuncmain5pie.c: New file.
751         * elf/ifuncmain5static.c: New file.
752         * elf/ifuncmain5staticpic.c: New file.
753         * elf/ifuncmain6pie.c: New file.
754         * elf/ifuncmain7.c: New file.
755         * elf/ifuncmain7pic.c: New file.
756         * elf/ifuncmain7picstatic.c: New file.
757         * elf/ifuncmain7pie.c: New file.
758         * elf/ifuncmain7static.c: New file.
759         * elf/ifuncmod5.c: New file.
760         * elf/ifuncmod6.c: New file.
762 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
764         [BZ #10085]
765         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
766         (nss_endgrent): New variable.
767         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
768         fields. Change type of files to bool and adjust all users.
769         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
770         (internal_endgrent): Call nss_endgrent if necessary.
771         (add_group): New function.  Broken out of...
772         (check_and_add_group): ...here.
773         (getgrent_next_nss): Remove test that any callback is available.
774         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
775         callback.  If there is no blacklist we can trust the results returned
776         by the initgroups_dyn callback.  In case there is a callback and we
777         find a group entry for the group ID but it doesn't contain the
778         correct member, switch to the slow mode and use getgrent_r.
779         (internal_getgrent_r): When we see a +: entry, determine whether
780         there is any callback and which we can use the initgroups_dyn
781         callback.
783 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
785         * malloc/malloc.c (_int_malloc): Add some consistency checks.
786         (_int_free): Likewise.
788         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
789         AF_IEEE802154.
790         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
791         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
792         and ARPHRD_IEEE802154_PHY.
794         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
795         relative to generic Linux version.
797 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
799         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
800         ($(objpfx)ifuncmain1vispie): Likewise.
802 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
804         * login/Makefile: Build pt_chown as PIE.
806 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
808         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
809         a format string.
810         * elf/sln.c (usage): Likewise.
811         * malloc/memusage.sh (do_help): Likewise.
812         * nss/getent.c (more_help): Likewise.
813         * posix/getconf.c (main): Likewise.
814         * sunrpc/rpcinfo.c (usage): Likewise.
815         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
817 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
819         * login/programs/pt_chown.c: Use libcap to drop privileges other than
820         those needed.
821         * login/Makefile: If necessary link pt_chown with -lcap.
822         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
823         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
825 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
827         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
828         comparisons.
829         * string/test-memchr.c (do_random_tests): Test very large lengths
830         as well.
832 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
834         * Makeconfig (+link-pie): Define.
835         (+prectorS): Define.
836         (+postctorS): Define.
837         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
838         * nscd/Makefile ($(objpfx)nscd): Likewise.
840 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
842         [BZ #10107]
843         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
844         with cmplwi.
845         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
847 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
849         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
850         into ...
851         * sysdeps/unix/grantpt.c: ...here.
853 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
855         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
856         chmod if it is necessary.
858         [BZ #10166]
859         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
860         when the slave device is in devpts or devfs.
862         [BZ #10183]
863         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
865         [BZ #10195]
866         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
867         of nd_opt_home_agent_info_preference to uint16_t.
868         Patch by Arnaud Ebalard <arno@natisbad.org>.
870         [BZ #10207]
871         * nss/getent.c: Add support for printing gshadow data.
873         [BZ #10203]
874         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
875         not just the currently used one and those which follow.
876         Patch by Joe Landers <jlanders@vmware.com>.
878         [BZ #10196]
879         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
880         * libio/Makefile: Run tst-fgetwc with necessary envvar.
881         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
883         [BZ #10217]
884         * stdlib/abort.c: Define variable __abort_msg.
885         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
886         * include/stdlib.h: Declare __abort_msg.
887         * assert/assert-perr.c: Don't free buffer for message immediately.
888         Store atomically in __abort_msg and free old buffer if necessary.
889         * assert/assert.c: Likewise.
890         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
891         store pointer in __abort_msg, and possibly free old string.
892         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
894         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
896         [BZ #10211]
897         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
898         handle leap seconds if they are available.
899         Patch by Akinori Hattori <hattya@gentoo.org>.
901         * timezone/tzselect.ksh: Update from tzcode2009i.
902         * timezone/zdump.c: Likewise.
903         * timezone/zic.c: Likewise.
905         * timezone/africa: Update from tzdata2009i.
906         * timezone/antarctica: Likewise.
907         * timezone/asia: Likewise.
908         * timezone/australasia: Likewise.
909         * timezone/backward: Likewise.
910         * timezone/etcetera: Likewise.
911         * timezone/europe: Likewise.
912         * timezone/factory: Likewise.
913         * timezone/iso3166.tab: Likewise.
914         * timezone/leapseconds: Likewise.
915         * timezone/northamerica: Likewise.
916         * timezone/pacificnew: Likewise.
917         * timezone/solar87: Likewise.
918         * timezone/solar88: Likewise.
919         * timezone/solar89: Likewise.
920         * timezone/southamerica: Likewise.
921         * timezone/systemv: Likewise.
922         * timezone/yearistype: Likewise.
923         * timezone/zone.tab: Likewise.
925 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
927         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
928         STT_GNU_IFUNC symbol or in 8 into type_class.
930         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
931         instead of Elf64_Addr.
933 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
935         * po/sv.po: Update from translation team.
937         [BZ #10229]
938         * misc/sys/select.h (__NFDBITS): Expression should have type int.
939         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
940         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
941         the C version.
943 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
945         * Versions.def: Add GLIBC_2.11 for libpthread.
947 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
949         * resolv/res_send.c (send_dg): Remember we switched to
950         single-request mode.
952 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
954         * dlfcn/dlfcn.h: Remove comma at end of enum.
955         Patch by J.H.M. Dassen <rdassen@redhat.com>.
957         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
958         parsing mode string.
960 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
962         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
964         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
966         * sysdeps/x86_64/multiarch/strlen.S: New file.
967         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
968         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
969         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
970         content.
972         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
973         is defined.
975 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
977         * sysdeps/x86_64/strlen.S: Minor optimizations.
979 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
981         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
982         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
983         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
984         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
985         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
986         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
987         ifuncmain3.c, ifuncmod3.c,.
988         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
989         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
990         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
991         ifuncmain4picstatic.
992         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
993         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
994         ifuncmain3, ifuncmain4.
995         (tests): Depend on $(objpfx)ifuncmain1pie.out and
996         $(objpfx)ifuncmain1vispie.out.
997         (modules-names): Add ifuncmod1 ifuncmod3.
998         (generated): Add ifuncmain1pie ifuncmain1pie.out
999         ifuncmain1vispie ifuncmain1vispie.out.
1000         Define rules to build and run the tests.
1001         * elf/ifuncdep1.c: New file.
1002         * elf/ifuncdep1pic.c: New file.
1003         * elf/ifuncdep2.c: New file.
1004         * elf/ifuncdep2pic.c: New file.
1005         * elf/ifuncmain1.c: New file.
1006         * elf/ifuncmain1pic.c: New file.
1007         * elf/ifuncmain1picstatic.c: New file.
1008         * elf/ifuncmain1pie.c: New file.
1009         * elf/ifuncmain1static.c: New file.
1010         * elf/ifuncmain1staticpic.c: New file.
1011         * elf/ifuncmain1vis.c: New file..
1012         * elf/ifuncmain1vispic.c: New file..
1013         * elf/ifuncmain1vispie.c: New file.
1014         * elf/ifuncmain2.c: New file.
1015         * elf/ifuncmain2pic.c: New file.
1016         * elf/ifuncmain2picstatic.c: New file.
1017         * elf/ifuncmain2static.c: New file.
1018         * elf/ifuncmain3.c: New file.
1019         * elf/ifuncmain4.c: New file.
1020         * elf/ifuncmain4picstatic.c: New file.
1021         * elf/ifuncmain4static.c: New file.
1022         * elf/ifuncmod1.c: New file.
1023         * elf/ifuncmod3.c: New file.
1025 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
1027         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
1029 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
1031         [BZ #10221]
1032         * posix/Makefile (routines): Add execvpe.
1033         * posix/Versions: Export execvpe for GLIBC_2.11.
1034         * posix/execvp.c: Now only a wrapper.  Move code to...
1035         * posix/execvpe.c: ...here.  New file.
1036         * posix/unistd.h: Declare execvpe.
1038 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
1040         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
1041         for STT_GNU_IFUNC handling for efficiency.
1042         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1044         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
1045         _exit.
1046         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
1048 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
1050         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
1051         for !SHARED.
1053 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
1055         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
1056         is not defined.
1057         (__rela_iplt_start): New declaration.
1058         (__rela_iplt_end): Likewise.
1059         (__rel_iplt_start): Likewise.
1060         (__rel_iplt_end): Likewise.
1061         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
1062         * elf/elf.h (R_386_IRELATIVE): New macro.
1063         (R_X86_64_IRELATIVE): New macro.
1064         (R_386_NUM): Updated.
1065         (R_X86_64_NUM): Likewise.
1066         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
1067         (libc_ifunc_hidden_def): New macro.
1068         * sysdeps/generic/dl-irel.h: New file.
1069         * sysdeps/i386/dl-irel.h: New file.
1070         * sysdeps/x86_64/dl-irel.h: New file.
1071         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
1072         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
1073         Handle R_386_IRELATIVE.
1074         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
1075         (elf_machine_lazy_rela): Likewise.
1076         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1077         R_X86_64_IRELATIVE.
1078         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
1080 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
1082         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
1083         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
1084         are no differences.  If an architecture has bits in CPUID index 1
1085         meaning different things the values for the COMMON_CPUID_INDEX_1
1086         index must not be set.
1087         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
1088         (HAS_POPCOUNT): ...this.  New macro.
1089         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
1090         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
1091         to set the value for Intel and AMD architectures.
1092         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
1093         INTEL_CPUID_INDEX_1.
1094         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
1095         change.
1097 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
1099         * configure.in: Move AC_CANONICAL_HOST before first use of $host
1100         and $build.
1102 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
1104         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
1105         (__expm1l): Set errno to ERANGE on overflow.
1106         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
1107         (__tanl): Set errno to EDOM for Â±Inf.
1108         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
1109         (__cosl): Set errno to EDOM for Â±Inf.
1110         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
1111         (__sinl): Set errno to EDOM for Â±Inf.
1113         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
1114         defined, use it.
1115         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
1116         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
1117         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
1119 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
1121         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
1122         code accessing it.
1123         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
1125 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
1127         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
1128         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
1129         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
1130         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
1132         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
1133         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
1134         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
1135         defined.
1136         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1137         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
1139 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
1141         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
1142         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
1143         is, either do nothing at all if __ASSUME_ACCEPT4, or
1144         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
1145         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
1146         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
1147         define.
1148         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
1149         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
1150         internal_accept4 in socket directory.
1152 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
1154         * sysdeps/ia64/configure.in: New file.
1156 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1158         [BZ #10162]
1159         * sysdeps/ia64/memchr.S: Use speculative load.
1161         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
1162         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
1163         use it.
1165         * sysdeps/i386/__longjmp.S: Add .text.
1166         * sysdeps/x86_64/__longjmp.S: Likewise.
1168 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
1170         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
1171         __ASSUME_ACCEPT4 for IA-64.
1173 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
1175         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
1177         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
1178         (SOCKOP_accept4): Define.
1180 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
1182         Sun approved the change of the license.
1183         * sunrpc/auth_des.c: Replace license text.
1184         * sunrpc/auth_none.c: Likewise.
1185         * sunrpc/auth_unix.c: Likewise.
1186         * sunrpc/authdes_prot.c: Likewise.
1187         * sunrpc/authuxprot.c: Likewise.
1188         * sunrpc/bindrsvprt.c: Likewise.
1189         * sunrpc/clnt_gen.c: Likewise.
1190         * sunrpc/clnt_perr.c: Likewise.
1191         * sunrpc/clnt_raw.c: Likewise.
1192         * sunrpc/clnt_simp.c: Likewise.
1193         * sunrpc/clnt_tcp.c: Likewise.
1194         * sunrpc/clnt_udp.c: Likewise.
1195         * sunrpc/clnt_unix.c: Likewise.
1196         * sunrpc/des_crypt.c: Likewise.
1197         * sunrpc/des_soft.c: Likewise.
1198         * sunrpc/get_myaddr.c: Likewise.
1199         * sunrpc/getrpcport.c: Likewise.
1200         * sunrpc/key_call.c: Likewise.
1201         * sunrpc/key_prot.c: Likewise.
1202         * sunrpc/openchild.c: Likewise.
1203         * sunrpc/pm_getmaps.c: Likewise.
1204         * sunrpc/pm_getport.c: Likewise.
1205         * sunrpc/pmap_clnt.c: Likewise.
1206         * sunrpc/pmap_prot.c: Likewise.
1207         * sunrpc/pmap_prot2.c: Likewise.
1208         * sunrpc/pmap_rmt.c: Likewise.
1209         * sunrpc/rpc/auth.h: Likewise.
1210         * sunrpc/rpc/auth_unix.h: Likewise.
1211         * sunrpc/rpc/clnt.h: Likewise.
1212         * sunrpc/rpc/des_crypt.h: Likewise.
1213         * sunrpc/rpc/key_prot.h: Likewise.
1214         * sunrpc/rpc/netdb.h: Likewise.
1215         * sunrpc/rpc/pmap_clnt.h: Likewise.
1216         * sunrpc/rpc/pmap_prot.h: Likewise.
1217         * sunrpc/rpc/pmap_rmt.h: Likewise.
1218         * sunrpc/rpc/rpc.h: Likewise.
1219         * sunrpc/rpc/rpc_des.h: Likewise.
1220         * sunrpc/rpc/rpc_msg.h: Likewise.
1221         * sunrpc/rpc/svc.h: Likewise.
1222         * sunrpc/rpc/svc_auth.h: Likewise.
1223         * sunrpc/rpc/types.h: Likewise.
1224         * sunrpc/rpc/xdr.h: Likewise.
1225         * sunrpc/rpc_clntout.c: Likewise.
1226         * sunrpc/rpc_cmsg.c: Likewise.
1227         * sunrpc/rpc_common.c: Likewise.
1228         * sunrpc/rpc_cout.c: Likewise.
1229         * sunrpc/rpc_dtable.c: Likewise.
1230         * sunrpc/rpc_hout.c: Likewise.
1231         * sunrpc/rpc_main.c: Likewise.
1232         * sunrpc/rpc_parse.c: Likewise.
1233         * sunrpc/rpc_parse.h: Likewise.
1234         * sunrpc/rpc_prot.c: Likewise.
1235         * sunrpc/rpc_sample.c: Likewise.
1236         * sunrpc/rpc_scan.c: Likewise.
1237         * sunrpc/rpc_scan.h: Likewise.
1238         * sunrpc/rpc_svcout.c: Likewise.
1239         * sunrpc/rpc_tblout.c: Likewise.
1240         * sunrpc/rpc_util.c: Likewise.
1241         * sunrpc/rpc_util.h: Likewise.
1242         * sunrpc/rpcinfo.c: Likewise.
1243         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
1244         * sunrpc/rpcsvc/key_prot.x: Likewise.
1245         * sunrpc/rpcsvc/klm_prot.x: Likewise.
1246         * sunrpc/rpcsvc/mount.x: Likewise.
1247         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
1248         * sunrpc/rpcsvc/rex.x: Likewise.
1249         * sunrpc/rpcsvc/rstat.x: Likewise.
1250         * sunrpc/rpcsvc/rusers.x: Likewise.
1251         * sunrpc/rpcsvc/sm_inter.x: Likewise.
1252         * sunrpc/rpcsvc/spray.x: Likewise.
1253         * sunrpc/rpcsvc/yppasswd.x: Likewise.
1254         * sunrpc/rtime.c: Likewise.
1255         * sunrpc/svc.c: Likewise.
1256         * sunrpc/svc_auth.c: Likewise.
1257         * sunrpc/svc_authux.c: Likewise.
1258         * sunrpc/svc_raw.c: Likewise.
1259         * sunrpc/svc_run.c: Likewise.
1260         * sunrpc/svc_simple.c: Likewise.
1261         * sunrpc/svc_tcp.c: Likewise.
1262         * sunrpc/svc_udp.c: Likewise.
1263         * sunrpc/svc_unix.c: Likewise.
1264         * sunrpc/svcauth_des.c: Likewise.
1265         * sunrpc/xcrypt.c: Likewise.
1266         * sunrpc/xdr.c: Likewise.
1267         * sunrpc/xdr_array.c: Likewise.
1268         * sunrpc/xdr_float.c: Likewise.
1269         * sunrpc/xdr_mem.c: Likewise.
1270         * sunrpc/xdr_rec.c: Likewise.
1271         * sunrpc/xdr_ref.c: Likewise.
1272         * sunrpc/xdr_sizeof.c: Likewise.
1273         * sunrpc/xdr_stdio.c: Likewise.
1275         * po/da.po: Update from translation team.
1277 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1279         * sysdeps/sh/____longjmp_chk.S: New file.
1280         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
1281         * sysdeps/sh/sh4/__longjmp.S: Likewise.
1283 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
1284             Ulrich Drepper  <drepper@redhat.com>
1286         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
1287         (__nscd_cache_search): Assume each entry in the
1288         hash chain needs one hashentry and half of datahead.  Use
1289         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
1291 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
1293         * posix/sys/wait.h: Fix typos.  Pretty printing.
1294         * stdlib/stdlib.h: Likewise.  Correct comments.
1296         [BZ #10159]
1297         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
1299         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
1300         patch.
1302 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
1304         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
1305         Use it if we absolutely cannot reach any more correct list elements
1306         because that many do not fit into the currently mapped database.
1308 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
1310         * nscd/nscd_helper.c: Include stddef.h.
1311         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
1312         in a couple of places.  Return NULL if trail is not less than
1313         datasize, don't consider dataheads with length smaller than
1314         offsetof (struct datahead, data) + datalen.
1315         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
1316         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
1317         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
1318         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1319         * nscd/nscd_getai.c (__nscd_getai): Likewise.
1320         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
1321         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
1323         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
1324         Rename ...
1325         (fallocate64): ... to this.
1326         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
1327         Rename ...
1328         (fallocate64): ... to this.
1329         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
1330         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
1331         fallocate64@@GLIBC_2.10.
1332         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
1333         fallocate64@@GLIBC_2.11.
1334         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
1335         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
1336         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
1337         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
1339         * nscd/selinux.c (nscd_avc_destroy): Removed.
1340         * nscd/selinux.h (nscd_avc_destroy): Likewise.
1341         * nscd/nscd.c (termination_handler): Don't call
1342         nscd_avc_destroy.
1344 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
1346         * include/atomic.h: Formatting.
1347         (catomic_compare_and_exchange_val_acq): Don't define if already
1348         defined by bits/atomic.h.
1350 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
1352         * math/libm-test.inc (expm1_test): Add test for range error.
1354         * Versions.def: Add GLIBC_2.11 for libc.
1355         * debug/Makefile (routines): Add longjmp_chk.
1356         Add rules to build and run tst-longjmp_chk.
1357         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
1358         * debug/longjmp_chk.c: New file.
1359         * debug/tst-longjmp_chk.c: New file.
1360         * include/bits/setjmp2.: New file.
1361         * include/stdio.h: Mark __fortify_fail as internal_function.
1362         * setjmp/Makefile (headers): Add bits/setjmp2.h.
1363         * setjmp/bits/setjmp2.h: New file.
1364         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
1365         of the aliases.
1366         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
1367         defined.
1368         * sysdeps/i386/____longjmp_chk.S: New file.
1369         * sysdeps/x86_64/____longjmp_chk.S: New file.
1370         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
1371         * sysdeps/x86_64/__longjmp.S: Likewise.
1373         * version.h: Bump for 2.11 development.
1375         * elf/check-execstack.c: New file.
1376         * elf/Makefile: Add rules to build and run check-execstack.
1378 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
1380         * version.h (VERSION): Bump to 2.10.1.
1382         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
1383         compatibility functions.
1384         * nss/getXXent_r.c: Likewise.
1385         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
1386         * gshadow/getsgnam_r.c: Likewise.
1387         * gshadow/Version: Remove duplicate entries.
1389         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
1390         for recent processor.
1391         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
1392         Likewise.
1394 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
1396         * version.h (VERSION): Bump for 2.10 release.
1397         * include/features.h (__GLIBC_MINOR__): Bump to 10.
1399         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
1400         same place we add ASFLAGS-config.
1402 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
1404         [BZ #10128]
1405         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
1406         or FORMERR and the other NOERROR, don't raise an error.
1408 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
1410         [BZ #10118]
1411         * Makeconfig (+asflags): New variable based upon ASFLAG or
1412         asflags-cpu.
1413         (ASFLAGS): Add override to set ASFLAGS to +asflags.
1414         * config.make.in (asflags-cpu): Add variable based upon
1415         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
1416         the assembler.
1417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1418         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
1419         recognizes power6 instruction set due to passing -mcpu=power6 from
1420         --with-cpu=power6 when compiling .S files.
1421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1422         Likewise.
1423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1424         Likewise.
1425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1426         Likewise.
1428 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
1430         * string/stratcliff.c (do_test): Test for zero length
1431         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
1432         at the end of the page.
1434 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
1436         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
1438         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
1439         count is zero.
1441         * po/da.po: Update from translation team.
1443 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
1445         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
1446         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
1448 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
1450         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
1451         and READ_IMPLIES_EXEC.
1453 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
1455         * po/da.po: Update from translation team.
1457 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
1459         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
1460         comment change.
1462 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
1464         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
1465         to MAP_ANON in PROT_NONE mmap64 call.
1466         (open_archive): Likewise.
1467         (file_data_available_p): Use mmap64 instead of mremap.
1468         (enlarge_archive): Likewise.  Update head if ah->addr changed.
1469         Attempt to reserve address space after mmap64 region.
1471 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
1473         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
1474         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
1475         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1477         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
1478         atanh should set ERANGE.
1480         [BZ #10087]
1481         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
1482         result of lookup to make call to implement STT_GNU_IFUNC.
1483         (_dl_profile_fixup): Likewise.
1484         Patch by H.J. Lu <hjl.tools@gmail.com>.
1486         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
1487         warning.
1489         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
1490         from definition.
1492         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
1493         label if it is not used.
1495         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
1496         of gmon_hist_hdr and gmon_hdr structures and use them.
1497         * elf/sprof.c: Likewise.
1499         * elf/dl-load.c (open_verify): Add temporary variable to avoid
1500         warning.
1502         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
1504         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
1505         to avoid cast.
1507         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
1508         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
1509         to avoid warnings.
1510         (iruserok_af): Use ss_family instead of casts.
1512         * gmon/gmon.c (write_hist): Define real-type variant of
1513         gmon_hist_hdr structure and use it.
1514         (write_gmon): Likewise for gmon_hdr.
1516         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
1517         function if we are not going to define it.
1518         * sysdeps/unix/sysv/linux/writev.c: Likewise.
1520         * inet/inet6_option.c (option_alloc): Add temporary variable to
1521         avoid warning.
1523         * libio/strfile.h (struct _IO_streambuf): Use correct type and
1524         name of VTable element.
1525         * libio/iovsprintf.c: Avoid casts to avoid warnings.
1526         * libio/iovsscanf.c: Likewise.
1527         * libio/vasprintf.c: Likewise.
1528         * libio/vsnprintf.c: Likewise.
1529         * stdio-common/isoc99_vsscanf.c: Likewise.
1530         * stdlib/strfmon_l.c: Likewise.
1531         * debug/vasprintf_chk.c: Likewise.
1532         * debug/vsnprintf_chk.c: Likewise.
1533         * debug/vsprintf_chk.c: Likewise.
1535         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
1536         function pointers.
1538 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
1540         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
1542 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
1544         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
1546         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
1547         * sysdeps/i386/fpu/s_tanf.S: Likewise.
1548         * sysdeps/i386/fpu/s_tanl.S: Likewise.
1549         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1550         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
1551         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
1552         * math/libm-test.inc: Add tests for errno after tan calls with
1553         Â±Inf.
1555         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
1556         errno value vor pow(+-0,neg).
1557         * math/libm-test.inc (pow_test): Add tests for errno value for
1558         pole errors.
1560         * math/w_fmod.c: Also handle x=±Inf as error.
1561         * math/w_fmodf.c: Likewise.
1562         * math/w_fmodl.c: Likewise.
1563         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
1564         x=±Inf or y=0.
1566         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
1567         * sysdeps/i386/fpu/s_cosf.S: Likewise.
1568         * sysdeps/i386/fpu/s_cosl.S: Likewise.
1569         * sysdeps/i386/fpu/s_sin.S: Likewise.
1570         * sysdeps/i386/fpu/s_sinf.S: Likewise.
1571         * sysdeps/i386/fpu/s_sinl.S: Likewise.
1572         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1573         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
1574         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
1575         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
1576         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
1577         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
1578         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
1579         * math/libm-test.inc: Add tests for errno after sin/cos calls with
1580         Â±Inf.
1582         * stdlib/strtod_l.c (round_and_return): We have to set errno to
1583         ERANGE for underflows.
1584         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
1586         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
1587         the 2001 revision.
1589         * libio/tst-widetext.input: Remove surrogates.
1591         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
1593         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
1594         for lgamma should set errno to ERANGE, not EDOM.
1595         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
1597 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
1599         [BZ #10093]
1600         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
1601         UTF-16 surrogates.
1603         * locale/programs/locarchive.c (enlarge_archive): Conserve address
1604         space when temporarily mapping the whole content of the old file.
1606         [BZ #10100]
1607         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
1608         not zero.
1610 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
1612         * iconvdata/sjis.c (BODY): Don't advance inptr before
1613         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
1614         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
1615         two byte chars.
1617 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
1619         * locale/locarchive.h (struct locarhandle): Rename len field to
1620         mmaped and add new reserved field.
1621         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
1622         (create_archive): Reserve address space and then map file into it.
1623         (open_archive): Likewise.
1624         (file_data_available_p): New function.
1625         (compare_from_file): New function.
1626         (close_archive): Adjust to member name changes.
1627         (add_locale): Before comparing locale data, check it is mapped.
1628         Otherwise fall back to reading from the file.
1630 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
1632         * stdio-common/psiginfo.c: Include <errno.h>.
1634 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
1636         [BZ #9920]
1637         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
1638         to get consistency between 32 and 64 bit architectures.
1640         [BZ #10052]
1641         * sysdeps/unix/make-syscalls.sh: Add rule to create target
1642         directory for dummy syscall rules.
1643         Patch by Chris Steinbroner <hesh@pobox.com>.
1645 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
1647         [BZ #10092]
1648         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
1649         MNT_EXPIRE.
1651 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
1653         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
1654         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1656 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
1658         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
1659         data from vector to temporary buffer and call PWRITEV after it
1660         instead of vice versa.
1661         * sysdeps/posix/preadv.c: Fix up comment.
1662         * misc/preadv.c: Likewise.
1663         * misc/preadv64.c: Likewise.
1664         * misc/pwritev.c: Likewise.
1665         * misc/pwritev64.c: Likewise.
1666         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
1668 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
1670         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
1672         * shadow/Makefile (tests): Add tst-shadow.
1673         * shadow/tst-shadow.c: New file.
1675         [BZ #9955]
1676         * gshadow/Makefile: New file.
1677         * gshadow/Versions: New file.
1678         * gshadow/fgetsgent.c: New file.
1679         * gshadow/fgetsgent_r.c: New file.
1680         * gshadow/getsgent.c: New file.
1681         * gshadow/getsgent_r.c: New file.
1682         * gshadow/getsgnam.c: New file.
1683         * gshadow/getsgnam_r.c: New file.
1684         * gshadow/gshadow.h: New file.
1685         * gshadow/putsgent.c: New file.
1686         * gshadow/sgetsgent.c: New file.
1687         * gshadow/sgetsgent_r.c: New file.
1688         * gshadow/tst-gshadow.c: New file.
1689         * include/gshadow.h: New file.
1690         * Makeconfig (all-subdirs): Add gshadow.
1691         * Makefile (installed-headers): Add gshadow/gshadow.h.
1692         * nss/Makefile (databases): Add sgrp.
1693         * nss/Versions: Add gshadow functions as private exports.
1694         * nss/nsswitch.conf: Add gshadow entry.
1695         * nss/sgrp-lookup.c: New file.
1696         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
1697         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
1698         * nss/nss_files/files-sgrp.c: New file.
1699         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
1700         * sysdeps/unix/sysv/linux/paths.h: Likewise.
1702 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
1704         * stdio-common/printf.h: Add missing const to register_printf_modifier.
1705         * stdio-common/reg-modifier.c: Likewise.
1707 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
1709         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
1710         is no FPU.
1712 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
1714         [BZ #10086]
1715         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
1716         headers up to 2.6.30.
1718         * po/ca.po: Update from translation team.
1720 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
1722         [BZ #10069]
1723         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
1724         an object that uses static TLS if the TLS modid is higher than the
1725         reserve we always allocate.  At least for multi-threaded code.
1727 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
1729         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
1730         Numerically stable check for valid width.
1732         * locale/programs/locarchive.c (open_archive): Map the entire file
1733         and not just the administrative data.
1734         (add_locale): When we find a hash sum match compare the content
1735         to be sure.
1737         * malloc/malloc.c (malloc_info): Output address space information.
1739 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
1741         * malloc/malloc.c (malloc_info): Also output system memory information.
1743         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
1744         architectures have preadv/pwritev in 2.6.30.
1746         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
1747         * sysdeps/posix/readv.c: Likewise.
1748         Reported by Markus Armbruster <armbru@redhat.com>.
1750         * malloc/hooks.c (top_check): Force hook value into register.
1752 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1754         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
1755         calls to _dl_relocate_object.
1757 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
1759         [BZ #9957]
1760         * malloc/malloc.c (force_reg): Define.
1761         (sYSMALLOc): Load hook variable into variable
1762         before test and force into register.
1763         (sYSTRIm): Likewise.
1764         (public_mALLOc): Force hook value into register.
1765         (public_fREe): Likewise.
1766         (public_rEALLOc): Likewise.
1767         (public_mEMALIGn): Likewise.
1768         (public_vALLOc): Likewise.
1769         (public_pVALLOc): Likewise.
1770         (public_cALLOc): Likewise.
1771         (__posix_memalign): Likewise.
1772         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
1773         before test and force into register.
1774         * malloc/hooks.c (top_check): Likewise.
1775         (public_sET_STATe): Pretty printing.
1777         * resolv/res_send.c (send_dg): Don't just ignore the result we got
1778         in case we only receive one reply in single-request mode.
1780 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
1782         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
1783         are dlopened in statically linked program even for __LM_ID_CALLER.
1785 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
1787         * resolv/res_send.c (send_dg): Don't switch into single-request
1788         mode if we already are in it.
1790 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
1792         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
1793         are always at least 4 bytes in the returned line.
1795 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
1797         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
1798         __libc_use_alloca (8192), if the stack is too small use 512 bytes
1799         instead of 8K.  Stop searching in /proc/stat after hitting first
1800         line not starting with cpu.
1801         (next_line): Truncate too long
1802         lines at buffer size * 3/4 instead of pretending there were line
1803         breaks inside of large lines.
1805 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
1807         * sysdeps/x86_64/mp_clz_tab.c: New file.
1809 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
1810             Ulrich Drepper  <drepper@redhat.com>
1812         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
1813         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
1814         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
1816 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
1818         * sysdeps/sh/libc-tls.c: New file.
1820         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
1822 2009-04-14  Roland McGrath  <roland@redhat.com>
1824         * elf/elf.h: Add various missing ARM constants, to match binutils.
1826 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
1828         Optimizations from GMP.
1829         * sysdeps/x86_64/add_n.S: New file.
1830         * sysdeps/x86_64/addmul_1.S: New file.
1831         * sysdeps/x86_64/lshift.S: New file.
1832         * sysdeps/x86_64/mul_1.S: New file.
1833         * sysdeps/x86_64/rshift.S: New file.
1834         * sysdeps/x86_64/sub_n.S: New file.
1835         * sysdeps/x86_64/submul_1.S: New file.
1837 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
1839         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
1840         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
1841         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
1842         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
1844 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
1846         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
1847         preadv/pwritev.
1849 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
1851         * sysdeps/x86-64/strrchr.S: New file.
1853 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
1855         * stdio-common/printf.h (struct printf_info): Add user element.
1856         New types printf_arginfo_size_function, printf_va_arg_function.
1857         Declare register_printf_specifier, register_printf_modifier,
1858         register_printf_type.
1859         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
1860         (union printf_arg): Add pa_user element.
1861         Adjust __printf_arginfo_table type.
1862         Add __printf_va_arg_table, __printf_modifier_table,
1863         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
1864         declarations.
1865         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
1866         If registered arginfo call failed try normal specifier.
1867         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
1868         function.
1869         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
1870         * stdio-common/Versions: Export register_printf_modifier,
1871         register_printf_type, and register_printf_specifier for GLIBC_2.10.
1872         * stdio-common/reg-modifier.c: New file.
1873         * stdio-common/reg-type.c: New file.
1874         * stdio-common/reg-printf.c (__register_printf_specifier): New
1875         function.  Mostly the old __register_printf_function function but
1876         uses locking and type of third parameter changed.
1877         (__register_printf_function): Implement using
1878         __register_printf_specifier.
1879         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
1880         calls to arginfo functions.  Allocate enough memory for user-defined
1881         types.  Call new va_arg functions to get user-defined types.
1882         Try installed handlers even for existing format specifiers first.
1884 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
1886         * sysdeps/x86_64/rawmemchr.S: New file.
1888         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
1889         Simplified code and possible copy problem fixed.
1891         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
1892         function if it is not defined.  Add some necessary casts.
1893         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1895         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
1896         have preadv/pwritev in 2.6.30.
1898 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
1900         * malloc/malloc.c (malloc_info): New function.
1901         * malloc/malloc.h: Declare it.
1902         * malloc/Versions: Export malloc_info for GLIBC_2.10.
1904         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
1905         to avoid PLT slot.
1907         * malloc/malloc.c (_int_realloc): Add parameter with old block
1908         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
1909         Adjust all callers.
1910         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
1912 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
1914         * sysdeps/x86_64/strchrnul.S: New file.
1916         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
1917         depending libcrypt on -lfreebl3.
1919         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
1920         preadv/pwritev in 2.6.30.
1922         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
1923         instead of __strcasecmp.
1925         * string/stratcliff.c (do_test): Add memchr tests..
1926         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
1927         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
1928         first read quad word.
1930 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
1932         * string/strverscmp.c (__strverscmp): Fix last cleanups.
1933         * string/tst-svc.input: Add new test case.
1934         * string/tst-svc.expect: Adjust.
1935         * string/Makefile: Don't ignore tst-svc error.
1937         * sysdeps/x86_64/memchr.S: New file.
1939         * resolv/resolv.h (RES_SNGLKUP): Define.
1940         * resolv/res_init.c (res_setoptions): Recognize single-request option.
1941         * resolv/res_send.c (send_dg): If we sent two requests at once and
1942         only get one reply before timeout switch to mode where we send the
1943         second request only after the first answer has been received.
1945 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
1947         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
1948         * sysdeps/x86_64/strchr.S: Likewise.
1950 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
1952         * configure.in: We need to test for the compiler earlier.
1954         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
1955         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
1956         GLIBC_2.10.
1957         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
1958         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
1959         and pwritev.
1960         * misc/preadv.c: New file.
1961         * misc/preadv64.c: New file.
1962         * misc/pwritev.c: New file.
1963         * misc/pwritev64.c: New file.
1964         * sysdeps/posx/preadv.c: New file.
1965         * sysdeps/posx/preadv64.c: New file.
1966         * sysdeps/posx/pwritev.c: New file.
1967         * sysdeps/posx/pwritev64.c: New file.
1968         * sysdeps/unix/sysv/linux/preadv.c: New file.
1969         * sysdeps/unix/sysv/linux/preadv64.c: New file.
1970         * sysdeps/unix/sysv/linux/pwritev.c: New file.
1971         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
1972         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
1973         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
1975         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
1976         compatibility code.
1977         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
1979         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1980         __ASSUME_COMPLETE_READV_WRITEV.
1981         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
1982         with modern kernels.
1983         * sysdeps/unix/sysv/linux/writev.c: Likewise.
1985         * sysdeps/posix/readv.c: Since read is a cancellation point we have
1986         to free a possible malloced buffer in case of cancellation.
1987         * sysdeps/posix/writev.c: Likewise for write.
1989 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
1991         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
1993         * configure.in: Recognize --enable-nss-crypt.
1994         * config.make.in: Add nss-crypt entry.
1995         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
1996         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
1997         and include path for NSS directory to compiler for md5-crypt,
1998         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
1999         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
2000         function implementation, use NSS.  Introduce wrappers around the
2001         hash function calls.  Little code size optimization.
2002         * crypt/sha256-crypt.c: Likewise.
2003         * crypt/sha512-crypt.c: Likewise.
2004         * scripts/check-local-headers.sh: Ignore nss3 directory.
2006         * configure.in: Rename pic_default to libc_cv_pic_default.
2007         * config.make.in: Likewise.
2009 2009-04-01  Roland McGrath  <roland@redhat.com>
2011         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
2012         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
2013         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
2014         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
2015         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
2016         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
2017         (R_SPARC_NUM): Update.
2018         From Dave Miller <davem@davemloft.net>.
2020 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
2022         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
2024 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
2026         * elf/dl-open.c: Keep track of used name spaces and only iterate over
2027         those which are used.
2028         * elf/dl-addr.c: Likewise.
2029         * elf/dl-caller.c: Likewise.
2030         * elf/dl-fini.c: Likewise.
2031         * elf/dl-iteratephdr.c: Likewise.
2032         * elf/dl-libc.c: Likewise.
2033         * elf/dl-load.c: Likewise.
2034         * elf/dl-support.c: Likewise.
2035         * elf/dl-sym.c: Likewise.
2036         * elf/rtld.c: Likewise.
2037         * sysdeps/generic/ldsodefs.h: Likewise.
2039         * elf/dl-load.c: Remove support for systems without MAP_ANON.
2040         * elf/dl-minimal.c: Likewise.
2041         * elf/dl-misc.c: Likewise.
2042         * elf/rtld.c: Likewise.
2043         * sysdeps/generic/ldsodefs.h: Likewise.
2045 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
2047         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
2048         Avoid reuse of complex expression.
2050         * po/fr.po: Update from translation team.
2052 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
2054         * include/dirent.h: Yet more changes to match sort function type
2055         change.
2056         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
2057         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
2058         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
2060 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
2062         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
2064 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
2066         * nscd/connections.c (restart): Try to preserve the process name
2067         by reading the /proc/self/exe symlink and using the return name.
2068         Patch by Jeff Bastian <jbastian@redhat.com>.
2070 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
2072         [BZ #9733]
2073         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
2074         if we are not loading a new audit library.
2075         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
2076         Only use profiling trampoline for auditing if we are not relocating
2077         an audit library.
2078         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
2079         * elf/rtld.c: Likewise.
2080         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
2082         * elf/rtld.c (dl_main): Extend help message for --audit option.
2084         [BZ #9759]
2085         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
2086         alphasort64, versionsort, and versionsort64 to POSIX 2008.
2087         * dirent/alphasort.c: Adjust implementation to type change.
2088         * dirent/alphasort64.c: Likewise.
2089         * dirent/scandir.c: Likewise.
2090         * dirent/versionsort.c: Likewise.
2091         * dirent/versionsort64.c: Likewise.
2092         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
2093         declaration.
2094         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
2095         declaration.
2097         [BZ #9880]
2098         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
2099         correctly.  Set segleft member in output as required.
2100         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2101         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
2103         [BZ #9881]
2104         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
2105         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2106         * inet/Makefile (tests): Add tst-inet6_rth.
2107         * inet/tst-inet6_rth.c: New file.
2109         [BZ #5807]
2110         * string/strlen.c (strlen): Fix omission in the expression to test
2111         for NUL bytes.
2113 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
2115         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
2117         * elf/dl-runtime.c (reloc_offset): Define.
2118         (reloc_index): Define.
2119         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
2120         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
2121         computing index from reloc_offset.
2122         (_dl_call_pltexit): Likewise.
2123         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
2124         the relocation index to _dl_fixup.
2125         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
2126         _dl_call_pltexit.
2127         * sysdeps/x86_64/dl-runtime.c: New file.
2129         [BZ #9893]
2130         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
2131         alignment of La_x86_64_regs.  Store xmm parameters.
2132         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
2134         [BZ #9913]
2135         * string/strverscmp.c (__strverscmp): Fix case of different digits
2136         in fractional part of string.
2137         Patch by Jingyu Liu <jyliu@fortinet.com>.
2138         * string/Makefile (tests): Add tst-svc2.
2139         * string/tst-svc2.c: New file.
2141         * string/strverscmp.c (__strverscmp): Optimize size of tables.
2143         * locale/iso-639.def: Add Min Nan.
2145 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2147         [BZ #9948]
2148         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
2150 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
2152         * elf/dl-sysdep.c (auxvars): Compress data structure.
2154         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
2155         STT_GNU_IFUNC handling.
2156         (elf_machine_rela): Likewise.
2158 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
2160         * config.h.in (USE_MULTIARCH): Define.
2161         * configure.in: Handle --enable-multi-arch.
2162         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
2163         (_dl_fixup_profile): Likewise.
2164         * elf/do-lookup.c (dl_lookup_x): Likewise.
2165         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
2166         * elf/elf.h (STT_GNU_IFUNC): Define.
2167         * include/libc-symbols.h (libc_ifunc): Define.
2168         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
2169         framework in init-arch.h to get CPUID values.
2170         * sysdeps/x86_64/multiarch/Makefile: New file.
2171         * sysdeps/x86_64/multiarch/init-arch.c: New file.
2172         * sysdeps/x86_64/multiarch/init-arch.h: New file.
2173         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
2175         * config.make.in (experimental-malloc): Define.
2176         * configure.in: Handle --enable-experimental-malloc.
2177         * malloc/Makefile: Handle experimental-malloc flag.
2178         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
2179         * malloc/arena.c: Likewise.
2180         * malloc/hooks.c: Likewise.
2181         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
2183 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
2185         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
2186         prediction.  A few size optimizations.
2188 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2190         * time/tzset.c: Optimize a bit for size.
2192 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
2194         * include/stdio.h (fmemopen): Add libc_hidden_proto.
2195         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
2197         * elf/sprof.c: Avoid warning about multi-line comment.
2199 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2201         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
2202         DST name.
2203         * time/tst-posixtz.c: Add tests for quoted timezone names.
2205 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
2207         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
2208         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
2209         200809L instead of 200112L.
2210         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
2211         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
2213         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
2214         instead of __quick_exit_funcs to __run_exit_handlers.
2215         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
2216         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
2217         (__cxa_at_quick_exit): Remove attribute_hidden.
2218         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
2219         to __run_exit_handlers.
2220         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
2221         attribute_hidden.
2223 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2225         * po/id.po: Update from translation team.
2227 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
2229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
2230         .machine push; .machine "power6" and .machine pop around mtfsf
2231         insns outside of _ARCH_PWR6 define.
2232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
2234         Likewise.
2235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
2236         Likewise.
2237         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
2238         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
2239         relax_fenv_state): Likewise.
2241 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
2243         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
2244         cxa_at_quick_exit.
2245         (static-only-routines): Add at_quick_exit.
2246         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
2247         GLIBC_2.10.
2248         * stdlib/quick_exit.c: New file.
2249         * stdlib/at_quick_exit.c: New file.
2250         * stdlib/cxa_at_quick_exit.c: New file.
2251         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
2252         it appropriately.
2253         (__internal_atexit): New function.
2254         (__new_exitfn): Now takes parameter to point to the list to use.
2255         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
2256         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
2257         (exit): ...here.  Just call __run_exit_handlers appropriately.
2258         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
2259         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
2260         * stdlib/on_exit.c: Adjust call to __new_exitfn.
2261         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
2263         * po/id.po: Update from translation team.
2265 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
2267         * po/ru.po: Update from translation team.
2269 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
2271         * po/nl.po: Update from translation team.
2273 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
2275         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
2276         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2277         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2278         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2279         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2280         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2281         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2283         * po/pl.po: Update from translation team.
2285 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
2287         [BZ #7083]
2288         * sysdeps/unix/sysv/linux/fallocate.c: New file.
2289         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
2290         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
2291         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
2292         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
2293         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
2294         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
2295         for GLIBC_2.10.
2296         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2297         Add fallocate and fallocate64.
2299         * io/fcntl.h: Pretty printing.
2301 2009-03-02  Richard Guenther  <rguenther@suse.de>
2303         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
2304         attribute also for non-C99 inline semantics variant.
2306 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2308         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
2309         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
2310         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
2311         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
2312         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
2313         Likewise.
2314         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
2315         Likewise.
2317 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
2319         * po/cs.po: Update from translation team.
2321 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
2323         * po/bg.po: Update from translation team.
2324         * po/sv.po: Likewise.
2325         * po/fi.po: Likewise.
2326         * po/vi.po: Likewise.
2328 2009-02-27  Roland McGrath  <roland@redhat.com>
2330         * Makeconfig (%.v.i): Depend on Makeconfig.
2331         Exclude % lines from initial #-comment removal.
2333 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
2335         * po/ko.po: Update from translation team.
2337 2009-02-26  Roland McGrath  <roland@redhat.com>
2339         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
2340         avoids unused warning.
2342 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
2343             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
2345         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
2346         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
2347         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
2348         and asm/user.h.  Include asm/ptrace.h.
2349         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
2350         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2351         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
2352         Undefine.
2353         (start_thread): Don't undefine.
2354         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
2355         Define.
2357 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
2359         * wctype/wctype.h: The *_l functions are in POSIX 2008.
2360         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
2361         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
2362         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
2363         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
2364         200112L to 200809L.
2365         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
2366         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2367         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
2368         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2369         _SC_THREAD_ROBUST_PRIO_PROTECT.
2370         * posix/unistd.h: fexecve is in POSIX 2008.
2371         * time/time.h: strftime_l is in POSIX 2008.
2372         * io/sys/stat.h: futimens is in POSIX 2008.
2373         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
2374         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
2375         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
2376         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
2377         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
2378         open_memstream, and vdprintf are in POSIX 2008.
2380 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
2382         * include/features.h: Define macros for XPG7/POSIX 2008.
2383         * ctype/ctype.h: The *_l functions are in POSIX 2008.
2384         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
2385         POSIX 2008.
2386         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
2387         * locale/xlocale.h: Define locale_t type.
2388         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
2389         in POSIX 2008.  Don't define locale_t here.
2390         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
2391         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
2392         UTIME_OMIT only with __USE_ATFILE.
2393         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
2394         * stdio-common/psiginfo.c: New file.
2395         * stdio-common/psiginfo-data.h: New file.
2396         * stdio-common/psiginfo-define.h: New file.
2397         * stdio-common/Makefile (routines): Add psiginfo.
2398         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
2399         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2400         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2401         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2402         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2403         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2404         * io/sys/stat.h: Move mknodat definition into same conditional as
2405         mknod.
2406         * time/sys/time.h: futimesat is not among the functions accepted
2407         into the POSIX standard.
2409         * include/features.h: If no feature selection given and we select
2410         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
2411         * posix/Versions: Export __posix_getopt.
2412         * posix/getopt.c (_getopt_initialize): Take additional parameter.
2413         Use it to alternatively initialize __posixly_correct.
2414         (_getopt_internal_r): Take addition parameter.  Pass on to
2415         _getopt_initialize.
2416         (_getopt_internal): Take addition parameter.  Pass on to
2417         _getopt_internal_r.
2418         (getopt): Pass additional zero to _getopt_internal.
2419         (__posix_getopt): New function.
2420         * posix/getopt.h: Add redirection for getopt.
2421         * posix/getopt1.c (getopt_long): Pass additional zero to
2422         _getopt_internal.
2423         (getopt_long_only): Likewise.
2424         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
2425         (_getopt_long_only_r): Likewise.
2426         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
2427         _getopt_internal_r.
2429 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
2431         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
2432         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2433         * sysdeps/posix/sysconf.c (__sysconf): Handle
2434         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
2435         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2437 2009-02-24  Roland McGrath  <roland@redhat.com>
2439         [BZ #9895]
2440         * README.template: Reworded not to use substituted version number.
2441         Renamed to ...
2442         * README: ... here (no longer generated).
2443         * Makefile (README): Target removed.
2445 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
2447         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
2448         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
2449         instead.
2451         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
2453         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
2455 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
2457         * po/bg.po: Update from translation team.
2459 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
2461         * stdlib/monetary.h: Uglify function parameter names.
2462         * sunrpc/rpc/pmap_clnt.h: Likewise.
2463         * sunrpc/rpc/svc.h: Likewise.
2464         * sunrpc/rpc/xdr.h: Likewise.
2465         * sunrpc/rpc/clnt.h: Likewise.
2466         * resolv/netdb.h: Likewise.
2467         * resolv/arpa/nameser.h: Likewise.
2468         * resolv/resolv.h: Likewise.
2469         * argp/argp.h: Likewise.
2470         * locale/langinfo.h: Likewise.
2471         * io/sys/stat.h: Likewise.
2472         * posix/spawn.h: Likewise.
2473         * nis/rpcsvc/nislib.h: Likewise.
2474         * malloc/obstack.h: Likewise.
2475         * sysdeps/ia64/bits/link.h: Likewise.
2476         * sysdeps/i386/bits/link.h: Likewise.
2477         * sysdeps/s390/bits/link.h: Likewise.
2478         * sysdeps/powerpc/bits/link.h: Likewise.
2479         * sysdeps/x86_64/bits/link.h: Likewise.
2480         * sysdeps/sparc/bits/link.h: Likewise.
2481         * sysdeps/sh/bits/link.h: Likewise.
2482         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
2483         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
2484         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
2485         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
2487 2008-12-01  Fredrik Unger  <fred@tree.se>
2489         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
2490         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
2491         _FP_UNPACK_RAW_2, fix up first argument.
2493 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
2495         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
2496         (GET_NPROCS_PARSER): Change parameters and use next_line.
2497         (__get_nprocs): Rewrite to not use stdio routines.
2498         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
2499         Change parameters and use next_line.
2501 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
2503         [BZ #5381]
2504         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
2505         Change mempool_alloc prototype.
2506         * nscd/mem.c (gc): Don't handle mem_in_flight.
2507         (mempool_alloc): Third parameter now only indicates whether this is the
2508         first call (to allocate data) or not.  If it is, get db rdlock.
2509         Release it on error.  Don't handle mem_in_flight.
2510         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
2511         Adjust third parameter of mempool_alloc calls.
2512         Nothing to do here in case mempool_alloc fails.
2513         Avoid local variable shadowing parameter.  No need to get db rdlock
2514         before calling cache_add.
2515         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
2516         no mem_in_flight array anymore.
2517         * nscd/connections.c: Remove definition and handling of mem_in_flight.
2518         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
2519         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
2520         in case mempool_alloc fails. No need to get db rdlock before calling
2521         cache_add.
2522         * nscd/hstcache.c (cache_addhst): Likewise.
2523         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2524         * nscd/servicescache.c (cache_addserv): Likewise.
2525         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
2527 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
2529         * po/lt.po: Update from translation team.
2531 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
2533         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
2534         defined, allow additional data to be added using the optional
2535         MORE_ELF_HEADER_DATA macro.
2536         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
2537         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
2539 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
2541         * include/atomic.h: Define catomic_and if not already defined.
2542         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
2543         * sysdeps/i386/i486/bits/atomic.h: Likewise.
2545 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
2547         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
2548         Change all callers.
2549         (_int_realloc): Likewise.  Third argument is now padded size
2550         All _int_* functions are now static.
2552         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
2553         * malloc/arena.c: Likewise.
2554         * include/malloc.h: Remove now unnecessary declarations of the _int_*
2555         functions.
2557         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
2558         easily.
2560         * malloc/malloc.c: Add branch prediction for use of the hooks.
2562         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
2564 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
2566         [BZ #7095]
2567         * bits/confname.h: Add SUSv7 macros for getconf environments.
2568         * bits/environments.h: Likewise.
2569         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
2570         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
2571         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
2572         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
2573         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
2574         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
2575         * posix/getconf.c: Likewise.
2576         * posix/sysconf.c: Likewise.
2577         * sysdeps/posix/sysconf.c: Likewise.
2578         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
2579         environments.
2581 2009-01-16  Petr Baudis  <pasky@suse.cz>
2583         [BZ #9753]
2584         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
2585         even if we currently have zero nscount.
2587 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
2589         [BZ #9781]
2590         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
2591         the input line is too long.
2593         * po/Makefile (libc.pot): Add f_print as function taking c-format
2594         parameter.
2596         * debug/xtrace.sh: Unify translatable messages.
2597         * elf/ldd.bash.in: Likewise.
2598         * elf/sprof.c: Likewise.
2599         * locale/programs/locale.c: Likewise.
2600         * malloc/memusage.sh: Likewise.
2601         * nss/getent.c: Likewise.
2603 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
2605         * debug/pcprofiledump.c (print_version,
2606         argp_program_version_hook): New function.
2607         * elf/ldconfig.c (more_help): New function.
2608         (argp): Use it.
2609         * elf/sln.c (usage): New function.
2610         (main): Support --help and --version.
2611         * malloc/memusagestat.c (print_version): New function.
2612         (argp_program_version_hook): New variable.
2613         * nscd/nscd.c (more_help): New function.
2614         (argp): Use it.
2615         * posix/getconf.c (main): Send --version output to stdout.
2616         Support --help.
2617         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
2618         arguments.  All callers changed.
2619         (print_version): New function.
2620         (parseargs): Support --help and --version.
2621         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
2622         changed.
2623         (print_version): New function.
2624         (main): Use getopt_long.  Support --help and --version.
2625         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
2626         --version.
2628 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
2630         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
2631         (update_data): Fix handling of wrapping back
2632         to the beginning of the buffer.
2634         [BZ #9823]
2635         * stdio-common/psignal.c (psignal): Fix test for empty string.
2637 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
2639         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
2640         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
2641         move _null_auth to .rodata.
2643         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
2644         value of 24.
2646         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
2648         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
2649         today than when the original code was written.  Use larger
2650         buffers.  This also makes it unnecessary to have stat information,
2651         if this causes extra efforts.
2652         (__opendir): In case O_DIRECTORY works, don't call fstat just for
2653         __alloc_dir.
2655 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
2657         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
2658         is set.
2659         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
2660         * sysdeps/sh/sh4/__longjmp.S: Likewise.
2661         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
2662         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
2663         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
2664         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
2666 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
2668         * po/ru.po: Update from translation team.
2670 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
2672         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
2673         Add _tid slot to maintain consistency with kernel.
2675 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
2677         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
2678         incomplete characters at end of input buffer.
2679         * libio/Makefile (tests): Add tst-fgetwc.
2680         * libio/tst-fgetwc.c: New file.
2681         * libio/tst-fgetwc.input: New file.
2683 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
2685         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
2687 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
2689         [BZ #9793]
2690         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
2691         *OUTBUFSTART unless the whole output fit into the buffer.
2692         * iconv/Makefile (tests): Add tst-iconv4.
2693         * iconv/tst-iconv4.c: New file.
2695 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
2697         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
2698         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2700 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
2702         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
2703         newer linker scripts.
2705 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
2707         [BZ #7040]
2708         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
2709         inotify_rm_watch should have type int.
2711 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
2713         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
2714         Make aligned_restore_vmx a local symbol.
2715         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
2716         Likewise.
2718 2009-01-30  Andreas Jaeger  <aj@suse.de>
2720         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
2721         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
2722         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
2723         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
2724         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
2725         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
2726         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
2728 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
2730         [BZ #9726]
2731         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
2732         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
2734 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
2736         [BZ #9726]
2737         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2738         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
2739         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2740         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
2742 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
2744         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
2745         memcpy instead of memcmp.
2746         (_dl_setup_pointer_guard): Likewise.
2748 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
2750         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
2751         manipulated brk, use malloc_printerr.
2752         * misc/sbrk.c (__sbrk): Better error handling for nonsense
2753         requests.
2755 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
2757         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
2758         rindex): For C++ add inlines so that they can be recognized as
2759         builtins.
2760         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
2762 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
2763             Jakub Jelinek  <jakub@redhat.com>
2765         * string/string.h: Define correct C++ prototypes for gcc 4.4.
2766         * wcsmbs/wchar.h: Likewise.
2768 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
2770         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
2771         (stackinfo_sub_sp): Define.
2773 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
2775         [BZ #9750]
2776         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
2777         * include/alloca.h (alloca_account): Define.
2778         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
2779         (stackinfo_sub_sp): Define.
2781         * nscd/connections.c (nscd_init): If database file access fails
2782         check whether this is due to permission problems and bail in that
2783         case.
2785         [BZ #9741]
2786         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
2787         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
2789 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2791         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
2792         Add "t" to clobber list.
2793         (INTERNAL_SYSCALL_NCS): Likewise.
2795 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
2797         * nss/getent.c (print_networks): Don't print comma between aliases.
2799 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
2801         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
2803         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
2804         the hash table.
2805         * misc/Makefile (tests): Add bug-hsearch1.
2806         * misc/bug-hsearch1.c: New file.
2808 2009-01-22  Roland McGrath  <roland@redhat.com>
2810         * Makeconfig (%.v.i): Strip trailing # comments,
2811         not only whole-line comments.
2813 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
2815         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
2816         one parameter.  If non-NULL use it to initialize return value.
2817         (_dl_setup_pointer_guard): New function.
2818         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
2819         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
2820         * elf/rtld.c (security_init): Pass _dl_random to
2821         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
2822         pointer_chk_guard.
2823         * elf/dl-sysdep.c (_dl_random): New variable.
2824         (_dl_sysdep_start): Handle AT_RANDOM.
2825         (_dl_show_auxv): Likewise.
2826         * elf/dl-support.c (_dl_random): New variable.
2827         (_dl_aux_init): Handle AT_RANDOM.
2828         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
2829         to _dl_setup_stack_chk_guard.
2831         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
2833 2009-01-10  Roland McGrath  <roland@redhat.com>
2835         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
2837 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
2839         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
2841         [BZ #9706]
2842         * nss/nss_files/files-parse.c (strtou32): New function.
2843         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
2844         across 32-bit and 64-bit platforms.
2845         (INT_FIELD_MAYBE_NULL): Likewise.
2847 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
2849         [BZ #9720]
2850         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
2851         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
2852         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
2853         Likewise.
2855 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
2857         [BZ #697]
2858         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
2859         being NULL also if there are no backreferences.
2860         * posix/rxspencer/tests: Add testcases.
2862 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
2864         [BZ #9697]
2865         * posix/bug-regex17.c: Add testcases.
2866         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
2867         handling.
2869 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2871         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
2872         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
2873         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
2874         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
2875         for elf subdir.
2876         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
2877         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
2878         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
2879         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
2880         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2881         * sysdeps/unix/sysv/linux/s390/Versions: New file.
2883 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
2885         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
2886         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
2887         re_string_skip_chars, re_string_reconstruct): Likewise.
2888         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
2890 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
2892         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
2893         adjust the buffer alignment.
2895 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2897         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
2898         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
2899         net/route.h.
2901         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
2902         flavor to description only when flavor is not NULL.
2904         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
2905         mutex after SIGIO/SIGURG lookup loop.
2907 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2909         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
2911 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
2913         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
2914         handling.
2916 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
2918         * sysdeps/unix/sysv/linux/kernel-features.h
2919         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
2921         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
2922         if no output is written.
2924         * version.h: Bump to 2.10 development.
2926         * posix/getconf.c: Update copyright year.
2927         * nss/getent.c: Likewise.
2928         * iconv/iconvconfig.c: Likewise.
2929         * iconv/iconv_prog.c: Likewise.
2930         * elf/ldconfig.c: Likewise.
2931         * catgets/gencat.c: Likewise.
2932         * csu/version.c: Likewise.
2933         * elf/ldd.bash.in: Likewise.
2934         * elf/sprof.c (print_version): Likewise.
2935         * locale/programs/locale.c: Likewise.
2936         * locale/programs/localedef.c: Likewise.
2937         * nscd/nscd.c (print_version): Likewise.
2938         * debug/xtrace.sh: Likewise.
2939         * malloc/memusage.sh: Likewise.
2940         * malloc/mtrace.pl: Likewise.
2941         * debug/catchsegv.sh: Likewise.
2943 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
2945         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
2946         script.
2948 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
2950         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
2951         gethostbyname4_r function call succeeded, just leave the loop.
2953         [BZ #9694]
2954         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
2955         very end.
2956         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
2957         * wctype/Makefile (tests): Add bug-wctypeh.
2958         * wctype/bug-wctypeh.c: New file.
2960         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
2961         LOCALDOMAIN is defined.
2962         * nscd/nscd_getai.c (__nscd_getai): Likewise.
2964         * sysdeps/x86_64/bits/select.h: New file.
2966         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
2968 2008-12-21  Bruno Haible  <bruno@clisp.org>
2970         [BZ #9677]
2971         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
2972         if no output is written.
2974 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
2976         * login/utmp_file.c (pututline_file): Replace call to dup2 with
2977         libc internal symbol __dup2 to avoid access through the PLT.
2979 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
2981         [BZ #6545]
2982         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
2983         available only for __USE_GNU.
2985         * inet/Makefile (tests): Add tst-getni2.
2986         * inet/tst-getni2.c: New file.
2988         [BZ #7080]
2989         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
2990         NULL when NI_NAMEREQD is set.
2991         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2992         * inet/Makefile (tests): Add tst-getni1.
2993         * inet/tst-getni1.c: New file.
2995 2008-12-03  Petr Baudis  <pasky@suse.cz>
2997         [BZ #7067]
2998         * nscd/connections.c (invalidate_cache): Use prune_run_lock
2999         instead of prune_lock.
3000         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
3001         * nscd/nscd.h (database_dyn): Add prune_run_cache.
3003 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
3005         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
3006         use.
3008         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
3009         handling.
3011         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
3012         after reading name server list.
3014         [BZ #7058]
3015         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
3016         handling for host name aliases.
3018 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
3020         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
3021         instead of doing things manually.
3023 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
3025         * posix/regex_internal.h (build_wcs_upper_buffer):
3026         Return type is reg_error_t.
3028 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
3030         * posix/globtest.sh: Use mktemp to create temporary file and
3031         directory.
3033         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
3034         sets correctly.
3035         (__CPU_CLR_S): Likewise.
3036         (__CPU_ISSET_S): Likewise.
3038 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
3039             Ulrich Drepper  <drepper@redhat.com>
3041         * scripts/firstversion.awk: Use custom comparison function to compare
3042         version numbers.
3043         * scripts/versions.awk: Use sort invocation which can handle
3044         multi-digit sub-version numbers.
3046 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
3048         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
3049         * locale/iso-639.def: Add Chhattisgarhi entry.
3051 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
3053         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
3054         ESRCH return value.
3055         (_nss_dns_gethostbyname4_r): Likewise.
3056         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
3057         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
3058         gethostbyname4_r, we don't have a separate IPv6 status, so copy
3059         the no_data variable.
3061         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
3062         information at the correct index.
3064         * socket/sys/socket.h: Declare accept4.
3065         * socket/accept4.c: New file.
3066         * sysdeps/unix/sysv/linux/accept4.c: New file.
3067         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
3068         * socket/Makefile (routines): Add accept4.
3069         * socket/Versions: Export accept4 with version GLIBC_2.10.
3070         * socket/paccept.c: Removed.
3071         * sysdeps/unix/sysv/linux/paccept.c: Removed.
3072         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
3073         * Versions.def: Define GLIBC_2.10 for libc.
3074         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
3076         * nscd/connections.c: Use accept4.
3078         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
3080 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
3082         * resolv/res_send.c (send_dg): Create sockets with non-blocking
3083         flag already set.
3085         * stdlib/setenv.c (unsetenv): Don't search environment if it does
3086         not exist.
3087         * stdlib/Makefile (tests): Add tst-unsetenv1.
3088         * stdlib/tst-unsetenv1.c: New file.
3090 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
3092         * login/utmp_file.c (file_writable): New variable.
3093         (setutent_file): Don't try to open file for writing.
3094         (pututline_file): Before writing, make descriptor writable if
3095         necessary.
3097 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
3099         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
3100         to IPv4 or IPv6 if an interface has been found.
3102 2008-11-26  Roland McGrath  <roland@redhat.com>
3104         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
3105         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
3107         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
3108         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
3109         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
3111         * elf/elf.h (NT_386_IOPERM): New macro.
3112         (NT_PPC_VSX): New macro.
3114 2008-11-25  Roland McGrath  <roland@redhat.com>
3116         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
3117         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
3118         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
3119         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
3120         Subdirectories moved to ports repository.
3121         * configure.in (base_machine): Remove alpha case.
3123 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
3125         * sysdeps/mach/strerror_l.c: New file.
3127 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
3129         [BZ #6411]
3130         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
3131         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
3132         magic numbers.
3133         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
3134         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
3135         (relax_fenv_state): Same as above.
3136         (FPSCR_29): Reserve bit in ISA 2.05.
3137         (FPSCR_NI): Provide define for compat.
3138         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
3139         magic numbers.
3140         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
3141         magic numbers.
3142         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
3143         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
3144         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
3145         access to hwcap to account for hwcap size increase to uint64_t.
3146         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
3147         Likewise.
3148         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3149         (*setcontext): Likewise.
3150         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3151         New file.
3152         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3153         New file.
3154         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3155         (*setcontext): dynamically select mtfsf insn based on
3156         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
3157         increase to uint64_t.
3158         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3159         (*swapcontext): dynamically select mtfsf insn based on
3160         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
3161         increase to uint64_t.
3162         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3163         New file.
3164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3165         New file.
3166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3167         (*setcontext): dynamically select mtfsf insn based on
3168         PPC_FEATURE_HAS_DFP.
3169         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3170         (*swapcontext): dynamically select mtfsf insn based on
3171         PPC_FEATURE_HAS_DFP.
3173 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
3175         * version.h: Bump for 2.9 release.
3176         * include/features.h (__GLIBC_MINOR__): Bump to 9.
3178         [BZ #7029]
3179         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
3180         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
3181         all the rounding.
3183 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
3185         [BZ #7009]
3186         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
3187         unknown request types for now.
3189 2008-11-11  Roland McGrath  <roland@redhat.com>
3191         * sysdeps/x86_64/configure: New file.
3193         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
3194         * configure: Regenerated.
3196 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3198         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
3199         correct instruction to remove the stack frame.
3201 2008-11-03  Michael Matz  <matz@suse.de>
3203         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
3204         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
3206 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
3208         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
3209         Remove.
3211         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
3212         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
3213         of the thread variable instead of void *.
3214         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
3215         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
3216         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3217         __libc_tsd_define arguments.
3218         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
3219         __libc_tsd_address arguments.  Remove union hack.
3220         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
3221         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
3222         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
3223         Adjust __libc_tsd_{set,get} arguments.
3224         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3225         __libc_tsd_define arguments.
3226         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
3227         arguments.
3228         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3229         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
3230         (LOCALE): Adjust __libc_tsd_define arguments.
3231         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
3232         arguments.
3233         (LOCALE): Adjust __libc_tsd_define arguments.
3234         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
3235         arguments.
3236         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
3237         arguments.
3239 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
3241         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
3242         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3244 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
3246         [BZ #6966]
3247         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
3249 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
3250             Ulrich Drepper  <drepper@redhat.com>
3252         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
3253         definition for GCC 3.1 and later.
3255 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
3257         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
3258         refetch dtv, as it might have changed.
3259         * elf/Makefile: Add rules to build and run tst-tls18.
3260         * elf/tst-tls18.c: New test.
3261         * elf/tst-tlsmod18a.c: New file.
3263 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
3265         [BZ #6875]
3266         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
3268 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
3270         [BZ #6867]
3271         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
3273         [BZ #6919]
3274         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
3275         Fix length of copy operation.
3277 2008-10-02  Pierre Habouzit <madcoder@debian.org>
3279         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
3280         and fix its calling convention.
3282 2008-10-07  Andreas Schwab  <schwab@suse.de>
3284         [BZ #6942]
3285         * resolv/res_send.c (send_vc): Fix last change.
3286         (send_dg): Align here as well.
3288 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
3290         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
3291         return value in case rlimit is RLIM_INFINITY.
3293         [BZ #6947]
3294         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
3295         for UL_SETFSIZE.
3296         * resource/Makefile (tests): Add bug-ulimit1.
3297         * resource/bug-ulimit1.c: New file.
3299         [BZ #6974]
3300         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
3301         without dot.  Properly terminate the string with a null byte.
3302         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
3304         [BZ #6980]
3305         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
3306         negative sizees.
3307         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
3308         negative __size.
3310         [BZ #6995]
3311         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
3313 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
3315         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
3316         abort if there is no initgroups_dyn function.
3318         * resolv/res_send.c (send_dg): On timeout, only return nonzero
3319         result if any of the queries really provided an answer.
3321 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
3323         * po/lt.po: Update from translation team.
3325 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
3327         * po/id.po: Update from translation team.
3329 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
3331         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
3332         Fix tests for existence of second reply.
3334 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
3336         * po/id.po: New file.
3337         Contributed by the Indonesian translation team.
3339 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
3341         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
3342         initialization.
3344 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
3346         * elf/Makefile: Add rules to build and run tst-tls17.
3347         * elf/tst-tls17.c: New test.
3348         * elf/tst-tlsmod17a.c: New file.
3349         * elf/tst-tlsmod17b.c: Likewise.
3351 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
3353         * stdlib/divmod_1.c: Use correct type for dummy variable.
3354         * stdlib/mod_1.c: Likewise.
3356 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
3358         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
3360 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
3362         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
3363         __nonnull order for C++.
3364         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
3365         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
3367 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
3369         * stdlib/longlong.h: Update from GCC.
3371 2008-10-09  Jakub Jelinek <jakub@redhat.com>
3372             David S. Miller  <davem@davemloft.net>
3374         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
3375         make sure any registers used with 64-bit 'branch-on-register'
3376         instructions have their top 32-bits clear.
3377         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
3378         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
3380 2008-09-18  Andreas Schwab  <schwab@suse.de>
3382         [BZ #6942]
3383         * resolv/res_send.c (send_vc): Fix use of unaligned address.
3384         Properly handle partial reads.
3386 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
3388         * elf/elf.h (STO_MIPS_PLT): New.
3389         (R_MIPS_COPY): New.
3390         (R_MIPS_JUMP_SLOT): New.
3391         (R_MIPS_NUM): Redefine to 128.
3392         (DT_MIPS_PLTGOT): New.
3393         (DT_MIPS_RWPLT): New.
3394         (DT_MIPS_NUM): Redefine to 0x35.
3396 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
3398         * timezone/africa: Update from tzdata2008f.
3399         * timezone/asia: Likewise.
3400         * timezone/australasia: Likewise.
3401         * timezone/europe: Likewise.
3402         * timezone/leapseconds: Likewise.
3403         * timezone/northamerica: Likewise.
3404         * timezone/southamerica: Likewise.
3405         * timezone/zone.tab: Likewise.
3407 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
3409         * nscd/connections.c: Disable use of paccept for now.
3411 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
3413         * socket/Versions: Remove paccept export for GLIBC_2.9.
3414         * socket/Makefile (routines): Remove paccept.
3415         * socket/sys/socket.h: Remove paccept declaration.
3417         * po/sv.po: Update from translation team.
3419 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
3421         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
3422         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
3424 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
3426         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
3427         Patch by Olivier Fourdan <ofourdan@redhat.com>.
3429 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
3431         * sunrpc/rpc/svc.h: Declare svcfd_create.
3432         Patch by Michael Solberg <msolberg@redhat.com>.
3434 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
3435             Ulrich Drepper  <drepper@redhat.com>
3437         * malloc/malloc.c (public_vALLOc): Try other arenas in case
3438         _int_valloc fails.
3439         (public_pVALLOc): Likewise.
3441 2008-09-02  Andreas Jaeger  <aj@suse.de>
3443         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
3444         commit.
3446 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
3448         [BZ #6860]
3449         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
3451 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
3453         * Makefile (check-data): Check data directory in add-ons.
3454         * elf/Makefile (check-data): Likewise.
3456 2008-08-18  Roland McGrath  <roland@redhat.com>
3458         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
3459         * configure: Regenerated.
3460         * config.make.in (cflags-cpu): New substituted variable.
3461         (with-cpu): Variable removed.
3462         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
3464 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
3466         [BZ #6845]
3467         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
3468         __signbitl definition and __LONG_DOUBLE_128__ guard from:
3469         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
3470         redundant.  Functions which call floating point assembler operations
3471         should go into a sysdeps powerpc/fpu directory.
3473 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
3475         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
3476         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
3478 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
3480         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
3482         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
3483         change related to AT_EXECFN.  We cannot use that string.
3484         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
3485         _dl_execfn member.
3486         * elf/dl-support.c: Remove _dl_execfn variable.
3487         (_dl_aux_init): Remove handling of AT_EXECFN.
3488         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
3489         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
3491 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
3493         [BZ #6544]
3494         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
3495         byte gets added to writes and seeks from the end use the length of
3496         the buffer and not the currently terminating NUL byte.
3498         [BZ #6634]
3499         * login/utmp_file.c (getutent_r_file): Take additional parameter.
3500         Set to true if locking failed.
3501         (getutid_r_file): Adjust caller.
3502         (pututline_file): Likewise.  Return NULL in this case.
3503         Patch mostly by halesh.s@gmail.com.
3505 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
3507         [BZ #6589]
3508         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
3509         Define.
3510         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
3512 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
3514         [BZ #6839]
3515         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
3516         macro since it is now available in elf/dynamic-link.h.
3518 2008-08-12  Roland McGrath  <roland@frob.com>
3520         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
3521         in case used outside of libc.
3522         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
3524 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
3526         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
3527         directly instead of going through dn_comp.
3529 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
3531         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3532         Fix asm constraints.
3534 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
3536         [BZ #6790]
3537         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
3538         (IPV6_PMTUDISC_PROBE): Likewise.
3540 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
3542         [BZ #6791]
3543         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
3545 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
3546             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3548         [BZ #6817]
3549         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
3550         Added the members 'vsx' and 'arch_2_06'.
3551         (_dl_powerpc_platforms): Add the member 'power7'.
3552         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
3553         to reflect the changes required by VSX and ISA 2.06.
3554         Modify _DL_PLATFORMS_COUNT to reflect the addition of
3555         'power7'.
3556         Defined PPC_PLATFORM_POWER7.
3557         (_dl_string_platform): Add support for POWER7.
3558         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
3559         capability and ISA 2.06.
3561 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
3563         [BZ #6824]
3564         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
3565         macro to detect use of 128 bit long double.
3566         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
3568 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
3570         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
3572         [BZ #5794]
3573         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
3574         parameters.
3575         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3576         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3578 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
3580         * nscd/connections.c (main_loop_poll): Pass a buffer which is
3581         guaranteed to be large enough to read inotify event.  Ignore
3582         EAGAIN error.  Better error message.  Add branch predicition.
3583         (main_loop_epoll): Likewise.
3585 2008-08-02  Roland McGrath  <roland@frob.com>
3587         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3588         Add memory clobbers.
3590 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
3592         * manual/arith.texi: Avoid @strong{Note:}.
3593         * manual/creature.texi: Likewise.
3594         * manual/filesys.texi: Likewise.
3595         * manual/math.texi: Likewise.
3596         * manual/memory.texi: Likewise.
3597         * manual/resource.texi: Likewise.
3598         * manual/syslog.texi: Likewise.
3599         * manual/time.texi: Likewise.
3601         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
3602         to prevent warning.
3604 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
3606         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
3607         new epoll_create1 interface.
3608         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3609         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
3610         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
3612         * include/arpa/nameser.h (NS_GET16): Use const pointer.
3613         (NS_GET32): Likewise.
3615         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
3616         syscalls, too.
3618         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
3619         use the AT_EXECFN value if it is no absolute path.
3620         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
3621         __ASSUME_AT_EXECFN.
3623         * Versions.def: Add GLIBC_2.9 to libresolv.
3624         * include/resolv.h: Remove hidden proto declarations for __ns_*
3625         functions.  Add them for __dn_count_labels and __p_secstodate.
3626         * include/arpa/nameser.h: Add a number of hidden proto declarations.
3627         Define ns_msg_getflags macro here.
3628         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
3629         and __p_secstodate.
3630         * resolv/Versions: Export functions from <arpa/nameser.h> from
3631         libresolv in version GLIBC_2.9.
3632         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
3633         hidden definitions.
3634         * resolv/ns_netint.c: Likewise.
3635         * resolv/ns_parse.c: Likewise.
3636         * resolv/ns_print.c: Likewise.
3637         * resolv/ns_samedomain.c: Likewise.
3638         * resolv/ns_ttl.c: Likewise.
3639         * resolv/arpa/nameser_compat.h: Likewise.
3640         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
3641         function calls.
3642         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
3643         instead of ns_get16.
3644         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
3645         __ns_get32 instead of ns_get16 and ns_get32 respectively.
3646         (gaih_getanswer_slice): Likewise.
3647         * resolv/Makefile (libresolv-routines): Add ns_date.
3648         * resolv/ns_date.c: New file.
3650         * elf/Makefile (check-localplt.out): Also check libresolv and
3651         libcrypt.
3653 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
3655         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3656         __ASSUME_O_CLOEXEC.
3658 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
3660         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
3661         buffer passed to NSS functions.
3663         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
3665         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
3666         Define.
3668         * misc/syslog.c (openlog_internal): Fix compile problem.
3670 2008-07-28  Roland McGrath  <roland@redhat.com>
3672         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
3674 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
3676         * io/ftw.c (add_object): Remove inline to avoid warning.
3678         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
3680         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
3681         Use it instead of locally defined resplen2 variable.
3682         (res_nsend): Adjust for __libc_res_nsend interface change.
3683         (send_vc): Initialize *resplen2 if necessary.  Read length of
3684         package into an appropriately aligned variable.  Store converted length
3685         in new variable and use it appropriately.
3686         Add branch prediction help.
3687         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
3688         and pass it on to __libc_res_nsend.  Adjust all callers.
3689         (__libc_res_nsearch): Likewise.
3690         (__libc_res_nqeurydomain): Likewise.
3691         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
3692         change.
3693         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
3694         Define resplen2 variable and pass it to __libc_res_nsearch and then
3695         to gaih_getanswer.
3696         (getanswer_r): In case of incorrect DNS data don't overread buffer.
3697         Add branch prediction.
3698         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
3699         (gaih_getanswer): Don't decode second slice if first one failed due
3700         to a too small buffer.  Don't let not found status of second
3701         decoder shadow results of the first.
3702         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
3703         and __libc_res_nquery interface changes
3704         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
3705         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
3706         __libc_res_nsearch, and __libc_res_nsend.
3707         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
3708         change.
3709         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
3710         __libc_res_nsearch interface changes.
3712 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
3714         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
3716         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
3717         file descriptors with close-on-exec set.
3718         (exec_comm_child): Fix the case where the write end of the pipe is
3719         STDOUT_FILENO already.  In case it is, clear close-on-exec.
3721         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
3722         * io/pipe2.c: Likewise.
3723         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
3724         instead of __ASSUME_PACCEPT.
3725         * include/unistd.h: Declare __have_pipe2.
3726         * libio/iopopen.c: Implement "e" flag.
3727         * libio/Makefile (tests): Add tst-popen1.
3728         * libio/tst-popen1.c: New file.
3730         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
3731         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3733 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
3735         [BZ #6771]
3736         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
3737         success call of _IO_SEEKOFF or calls which failed because the
3738         descriptor is for a pipe.
3740         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
3741         magic number.
3743         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
3745         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
3746         F_SETFD use if we know fopen set the flag.
3748         * login/utmp_file.c (setutent_file): Minor optimization in case
3749         O_CLOEXEC is available.
3751 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
3753         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
3754         * elf/Makefile: Use pie-ccflag variable.
3755         * nscd/Makefile: Likewise.
3756         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
3758 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
3760         [BZ #6724]
3761         * Versions.def: Add GLIBC_2.9 version tag for libutil.
3762         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
3763         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
3764         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
3765         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
3766         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
3767         utmp32, utmpx32 and login32.
3768         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
3769         versions of struct utmp functions to libc and libutil.
3770         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
3771         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
3772         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
3773         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
3774         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
3775         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
3776         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
3777         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
3778         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
3779         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
3780         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
3781         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
3782         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
3783         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
3784         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
3785         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
3786         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
3787         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
3788         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
3789         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
3790         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
3791         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
3793 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
3795         * scripts/gen-as-const.awk: Generate more widely usable code by
3796         using 64-bit arithmetic.
3798         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3799         the same treatment as narrow output code in last patch.
3801         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
3803         [BZ #6763]
3804         * elf/dl-load.c (local_strdup): Remove inline.
3805         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
3806         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
3807         part of the object.
3809         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
3811 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
3813         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
3814         the new syscalls, too.
3816         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
3817         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
3819         [BZ #6698]
3820         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
3821         parameter for end of buffer.  If temporary copy is too large use
3822         malloc.
3823         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
3824         interface change.
3825         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
3826         string rewrite when allocating buffer.
3828         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
3829         syscalls, too.
3831         * nscd/connections.c (nscd_init): Clean up fcntl call.
3833         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
3834         SOCK_NONBLOCK if possible.
3836         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
3837         SOCK_CLOEXEC if available.
3839         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
3840         __libc_clntudp_bufcreate_internal.
3841         * include/sys/socket.h: Declare __have_sock_cloexec.
3842         * socket/Makefile (aux): Add have_sock_cloexec.
3843         * socket/have_sock_cloexec.c: New file.
3844         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
3845         __libc_clntudp_bufcreate.
3846         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
3847         which takes an additional parameter.  Create socket with non-blocking
3848         mode and close-on-exec flag set, if wanted.
3849         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
3850         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
3851         instead of clntudp_create.  The socket has already the close-on-exec
3852         flag set if SOCK_CLOEXEC is defined.
3854 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
3856         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3857         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
3858         appropriate.
3859         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
3860         non-blocking mode by using socket, paccept, and inotify_init1.
3862         * Versions.def (glibc): Add GLIBC_2.9.
3863         * io/Makefile (routines): Add dup3 and pipe2.
3864         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
3865         * io/dup3.c: New file.
3866         * io/pipe2.c: New file.
3867         * posix/unistd.h: Declare dup3 and pipe2.
3868         * socket/Makefile (routines): Add paccept.
3869         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
3870         * socket/paccept.c: New file.
3871         * socket/sys/socket.h: Declare paccept.
3872         * sysdeps/unix/syscalls.list: Add entry for dup3.
3873         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
3874         epoll_create2 and inotify_init1.
3875         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
3876         * sysdeps/unix/sysv/linux/paccept.c: New file.
3877         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
3878         possible.
3879         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
3880         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
3881         inotify_init1, and pipe2 entries.
3882         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
3883         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
3884         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
3885         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
3886         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
3887         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
3888         SOCK_NONBLOCK.
3889         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
3890         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
3891         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
3892         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
3893         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
3894         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
3895         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
3896         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
3897         EPOLL_NONBLOCK.  Declare epoll_create2.
3898         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
3899         EFD_NONBLOCK.
3900         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
3901         IN_NONBLOCK.  Declare inotify_init1.
3902         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
3903         SFD_NONBLOCK.
3904         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
3905         TFD_NONBLOCK.
3907         * elf/elf.h: Define AT_EXECFN.
3908         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
3909         LD_ORIGIN_PATH.
3910         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
3911         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
3912         if __ASSUME_AT_EXECFN is defined.
3913         (_dl_aux_init): Handle AT_EXECFN.
3914         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
3915         for 2.6.27 and up.
3916         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
3917         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
3918         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
3919         _dl_execfn if available and avoid compatibility code if
3920         __ASSUME_AT_EXECFN is defined.
3922         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
3923         _dl_discover_osversion only for older kernels.
3925 2008-07-22  Roland McGrath  <roland@frob.com>
3927         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
3929 2008-07-21  Roland McGrath  <roland@frob.com>
3931         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
3932         returned too much data out of line.
3934 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
3936         * locale/setlocale.c (setname): Remove inline to avoid compiler
3937         warning.
3939         [BZ #6712]
3940         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
3942 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
3944         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
3945         doesn't manage to write anything, fail.
3947         * malloc/hooks.c (__malloc_check_init): Remove printf.
3949 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3951         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
3953 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
3955         * nscd/connections.c (main_loop_poll): Fix handling of read errors
3956         from inotify.
3957         (main_loop_epoll): Likewise.
3959 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
3961         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
3963         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
3964         if DEBUG is defined.
3966         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
3967         query.  Adjust buffer size computation for padding.
3969 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
3971         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
3972         * stdio-common/tst-setvbuf1.c: New file.
3973         * stdio-common/tst-setvbuf1.expect: New file.
3975         [BZ #6719]
3976         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
3977         when selecting fully-buffered stream.
3978         Patch by Wang Xin <wxinee@gmail.com>.
3980 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3982         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
3983         (__open_2): New function.
3984         (__open64_2): New alias to __open_2.
3985         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
3986         (__openat_2): New function.
3987         (__openat64_2): New alias to __openat_2.
3989 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
3991         [BZ #6723]
3992         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
3994 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3996         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
3997         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
3998         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
3999         __hurd_dfail.
4000         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4001         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4002         * sysdeps/mach/hurd/send.c (__send): Likewise.
4003         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
4004         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
4006 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4008         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
4009         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4010         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4011         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
4012         * hurd/get-host.c (_hurd_get_host_config): Likewise.
4013         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
4015 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
4017         [BZ #6657]
4018         * time/strptime_l.c: Don't clear s.era_cnt after successful match
4019         of %EY.
4020         Patch by Petr Baudis.
4022 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
4024         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
4025         Patch by Peter Jones <pjones@redhat.com>.
4027 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
4029         [BZ #6654]
4030         * stdlib/canonicalize.c (__realpath): readlink can write too much
4031         into the buffer on platforms without PATH_MAX.
4033 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
4035         [BZ #6653]
4036         * posix/tst-regex.c (main): Rename to...
4037         (do_test): ... this. Remove cmdline option processing.
4038         (TIMEOUT): Define.
4039         (TEST_FUNCTION): Define.
4040         (CMDLINE_OPTIONS): Define.
4042 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
4044         [BZ #5210]
4045         * configure.in: Add -Werror to -fstack-protector test to catch
4046         unsupported architectures.
4047         Patch by Gilles Esponasse <g.esp@free.fr>.
4049 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
4051         * stdlib/tst-setcontext.c: Set back_in_main before exit if
4052         getcontext returns ENOSYS.
4054 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
4056         * nscd/connections.c (main_loop_poll): Fix test for read error.
4057         (main_loop_epoll): Likewise.
4059 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
4061         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
4062         better place so it is not called when nscd is used.
4064         * nscd/connections.c: Also recognize and handle changes to the
4065         resolver configuration file.
4067 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
4069         * time/strftime.c: Pass reference to tzset_called around to handle
4070         recursive calls.
4072         [BZ #6612]
4073         * time/strftime.c (__strftime_internal): Call tzset() only
4074         when printing timezone-dependent values.
4075         Based on a patch by Petr Baudis <pasky@suse.cz>.
4077         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
4078         unconditionally use second gaih_getanswer_slice result.
4080         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
4081         (getaddrinfo): RES must always be non-NULL.
4083 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
4085         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
4086         cr[34] registers.
4087         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4088         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4089         Likewise.
4090         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
4091         register.
4093 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
4095         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
4096         fields.
4097         * nscd/connections.c (inotify_fd): New variable.
4098         (nscd_init): Try to open an inotify descriptor.
4099         If successful, watch files for databases using inotify instead of
4100         having prune threads stat the files.
4101         (nscd_run_prune): Recognize clear_cache flag being set and call
4102         prune_cache appropriately.
4103         (main_loop_poll): Add inotify descriptor to wait set and handle the
4104         reported changes.
4105         (main_loop_epoll): Likewise.
4106         * nscd/cache.c (prune_cache): Don't stat files for databases if
4107         inotify is used.
4108         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
4109         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
4111         * nscd/grpcache.c (cache_addgr): Correctly compute size of
4112         fixed-size portion of the record.
4113         * nscd/servicescache.c (cache_addserv): Likewise.
4114         * nscd/pwdcache.c (cache_addpw): Likewise.
4115         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4117 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
4119         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
4120         out we don't use uninitialized memory.
4122         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
4123         the client.
4125 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
4127         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
4128         ignore T_DNAME messages.
4129         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
4131 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
4133         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
4134         Avoid segfault if first GETC returns eof/'\0'/'\n'.
4136 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
4138         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
4139         instead of portstr to nscd_getserv_r.  Patch by
4140         Roman Kagan <rkagan@mail.ru>.
4142 2008-05-26  Jim Meyering  <meyering@redhat.com>
4144         Remove more useless "if" tests before "free".
4145         * include/inline-hashtab.h (htab_delete): Likewise.
4146         * libio/freopen.c (freopen): Likewise.
4147         * libio/freopen64.c (freopen64): Likewise.
4148         * locale/programs/ld-collate.c (collate_read): Likewise.
4149         * misc/fstab.c (libc_freeres_fn): Likewise.
4150         * posix/glob.c (globfree): Likewise.
4152 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
4154         * string/Makefile (strop-tests): Add memmem.
4155         * string/test-memmem.c: New file.
4156         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
4157         (test_init): Size buf1 according to BUF1PAGES.
4159 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
4161         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
4162         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
4163         (CFLAGS-scanf17.c): New.
4164         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
4165         * stdio-common/scanf15.c (main): Likewise.
4166         * stdio-common/scanf16.c: New file.
4167         * stdio-common/scanf17.c: New file.
4169 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
4171         * resolv/res_send.c (send_dg): If we already have one of two
4172         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
4173         use the one answer insted of failing.
4175 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
4177         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
4178         being executed on PowerPC as the expected result exceeds IBM
4179         long double 128 __LDBL_MAX__.
4181 2008-05-21  Roland McGrath  <roland@redhat.com>
4183         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
4185         * Makefile (check-data): Use $(abi-name) before other guesses.
4186         Look in $(add-ons) dirs before scripts/data/.
4187         * elf/Makefile (check-data): Likewise.
4189         * scripts/soversions.awk: Grok ABI line.
4190         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
4191         Emit definition for abi-name variable.
4193 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
4195         * string/endian.h: Define new fixed-size hto* and *toh macros only
4196         if [__USE_BSD].
4198         * iconvdata/Depend: Add localedata.
4200 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4202         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
4204 2008-05-08  David S. Miller  <davem@davemloft.net>
4206         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
4207         HIDDEN_JUMPTARGET.
4208         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4209         (__SYSCALL_CLOBBERS): Remove %g* registers.
4210         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4211         (__SYSCALL_CLOBBERS): Likewise.
4212         * scripts/data/localplt-sparc-linux-gnu.data: New file.
4213         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
4215 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
4217         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4218         (CALL_ERRNO_LOCATION): Define.
4219         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4220         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4221         (CALL_ERRNO_LOCATION): Define.
4222         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4223         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
4224         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
4226 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
4228         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
4229         variable.
4231 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
4233         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
4234         (FIRST_FRAME_POINTER): Define.
4236 2008-05-09  David S. Miller  <davem@davemloft.net>
4238         * sysdeps/sparc/sparc64/backtrace.c: New file.
4240 2008-05-14  David S. Miller  <davem@davemloft.net>
4242         * sysdeps/sparc/machine-gmon.h: New file.
4243         * sysdeps/sparc/sparc-mcount.S: Likewise.
4244         * sysdeps/sparc/Makefile: Add sparc-mcount target to
4245         sysdep_routines in gmon directory.
4247 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
4249         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
4251 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
4253         * resolv/res_query.c (__libc_res_nquery): In case one of two
4254         answer was too short don't try to read that answer's header.
4256         * resolv/res_send.c (send_dg): In case of timeout and there are
4257         two queries and one has been answered, return value indicating
4258         success.
4260 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
4262         * nscd/cache.c (cache_add): Take additional parameter specifying
4263         whether this is in response of a cache refill.  Check alignment
4264         of package data.  Revamp waking of pruning thread.
4265         (prune_cache): Small optimization.
4266         * nscd/nscd.h: Adjust cache_add prototypes.
4267         * nscd/aicache.c: Adjust cache_add calls.
4268         * nscd/grpcache.c: Likewise.
4269         * nscd/hstcache.c: Likewise.
4270         * nscd/initgrcache.c: Likewise.
4271         * nscd/pwdcache.c: Likewise.
4272         * nscd/servicescache.c: Likewise.
4273         * nscd/connections.c (restart): Really disable cache use before
4274         exec attempt.  If it fails, reenable cache.
4275         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
4276         time to max to be able to notice concurrent cache additions.  Unlock
4277         prune_lock while performing gc.  Afterwards compute wakeup time with
4278         current wakeup_time value in mind.
4280 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
4282         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
4284         * nscd/mem.c (gc): Correctly determine highest used array element
4285         in mark.
4287         * nscd/mem.c (markrange): Add assert to check entries are all
4288         aligned.  Small cleanup in bitmap use.
4290         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
4291         blockoff of type nscd_ssize_t.
4292         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
4293         (mempoll_alloc): Record block offset and not address.
4295         * nscd/mem.c (gc): Fix test for stack overuse.
4297         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
4298         more asserts.
4300         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
4301         entry is available, believe it.
4303         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
4304         no answers return NSS_STATUS_NOTFOUND.
4305         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
4306         buffer does not have any content.
4308 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
4310         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
4312         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
4313         lookup, don't assign canon unconditionally.
4315 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
4317         * string/Makefile (distribute): Add str-two-way.h.
4319 2008-03-29  Eric Blake  <ebb9@byu.net>
4321         Rewrite string searches to O(n) rather than O(n^2).
4322         * string/str-two-way.h: New file.  For linear fixed-allocation
4323         string searching.
4324         * string/memmem.c: New implementation.
4325         * string/strstr.c: New implementation.
4326         * string/strcasestr.c: New implementation.
4328 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
4330         * posix/regcomp.c (optimize_utf8): Add a note on why we test
4331         opr.ctx_type.
4332         (calc_first): Initialize constraint field.
4333         (duplicate_node_closure): Use it instead of special casing ANCHORS.
4334         Use search_duplicated_node to avoid loops.  Fix grammar.
4335         (duplicate_node): Merge constraint field for all node types.
4336         (calc_eclosure_iter): Look at constraint field for all node types.
4337         * posix/regex_internal.c (create_cd_newstate): Don't look at
4338         create_cd_newstate.
4340 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
4342         [BZ #6428]
4343         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
4345         [BZ #6442]
4346         * string/endian.h: Add macros for fixed-size endian conversion.
4347         * bits/byteswap.h: Allow inclusion from <endian.h>.
4348         * sysdeps/i386/bits/byteswap.h: Likewise.
4349         * sysdeps/ia64/bits/byteswap.h: Likewise.
4350         * sysdeps/s390/bits/byteswap.h: Likewise.
4351         * sysdeps/x86_64/bits/byteswap.h: Likewise.
4352         * string/Makefile (tests): Add tst-endian.
4353         * string/tst-endian.c: New file.
4355         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
4356         Patch by Reuben Thomas.
4358 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
4360         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
4362 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
4364         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
4366         [BZ #6461]
4367         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
4368         Add missing braces.
4369         (BODY for __gconv_transform_internal_ascii): Likewise.
4371         [BZ #6472]
4372         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
4373         to be treated like link-local addresses.
4374         (match_prefix): Don't treat IPv4 loopback address special when
4375         converting to v4 mapped addressed.
4377         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
4378         if necessary.
4379         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
4380         * posix/tst-rfc3484-2.c: Likewise.
4381         * posix/tst-rfc3484-3.c: Likewise.
4383         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
4384         and SCTP.
4386         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
4388         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
4390         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
4392 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
4394         * po/lt.po: New file.  From Lituanian translation team.
4396 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
4398         Introduce TLS descriptors for i386 and x86_64.
4399         * include/inline-hashtab.h: New file, copied from 2005's
4400         libiberty, with fix for memory leak imported afterwards by
4401         Glauber de Oliveira Costa.
4402         * elf/tlsdeschtab.h: New file.
4403         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
4404         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
4405         (CHECK_STATIC_TLS): Move to...
4406         * elf/dynamic-link.h: ... this file.
4407         (TRY_STATIC_TLS): New macro.
4408         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
4409         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
4410         R_386_TLS_DESC): Define.
4411         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
4412         binutils.
4413         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
4414         R_X86_64_TLSDESC): Define.
4415         (R_386_NUM, R_X86_64_NUM): Adjust.
4416         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
4417         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4418         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4419         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
4420         release tlsdesc_table.
4421         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
4422         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
4423         (elf_machine_rel): Handle R_386_TLS_DESC.
4424         (elf_machine_rela): Likewise.
4425         (elf_machine_lazy_rel): Likewise.
4426         (elf_machine_lazy_rela): Likewise.
4427         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
4428         * sysdeps/i386/dl-tlsdesc.S: New file.
4429         * sysdeps/i386/dl-tlsdesc.h: New file.
4430         * sysdeps/i386/tlsdesc.c: New file.
4431         * sysdeps/i386/tlsdesc.sym: New file.
4432         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
4433         tlsdesc_table.
4434         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
4435         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4436         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4437         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
4438         release tlsdesc_table.
4439         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
4440         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
4441         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
4442         (elf_machine_rel): Handle R_X86_64_TLSDESC.
4443         (elf_machine_rela): Likewise.
4444         (elf_machine_lazy_rel): Likewise.
4445         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
4446         (__tls_get_addr): Do not declare for non-shared compiles.
4447         * sysdeps/x86_64/dl-tlsdesc.S: New file.
4448         * sysdeps/x86_64/dl-tlsdesc.h: New file.
4449         * sysdeps/x86_64/tlsdesc.c: New file.
4450         * sysdeps/x86_64/tlsdesc.sym: New file.
4451         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
4452         tlsdesc_table for both 32- and 64-bit structs.
4454 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
4456         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
4457         its own function.  This reduces the frame setup costs and more.
4459 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
4461         [BZ #3406]
4462         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
4463         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
4465 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
4467         * io/openat.c (__openat_2): Also pass fd to __openat.
4468         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
4469         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
4471         * string/tester.c (test_memcmp): Add a few more tests.
4472         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
4474 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
4476         * nscd/cache.c (cache_add): Before returning with failure and this
4477         is the first use of the record, mark it as unusable.
4478         * nscd/aicache.c: Don't touch the dataset after cache_add returns
4479         reporting a failure.
4480         * nscd/grpcache.c: Likewise
4481         * nscd/hstcache.c: Likewise.
4482         * nscd/initgrcache.c: Likewise.
4483         * nscd/pwdcache.c: Likewise.
4484         * nscd/servicescache.c: Likewise.
4486 2008-05-10  Roland McGrath  <roland@redhat.com>
4488         [BZ #6505]
4489         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
4491 2008-05-08  David S. Miller  <davem@davemloft.net>
4493         * misc/truncate64.c (truncate64): Use __truncate not truncate.
4495         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
4496         (__ieee754_y0l): Likewise.
4497         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
4498         (__ieee754_y1l): Likewise.
4499         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
4500         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
4501         frexpl and ldexpl.  math_private.h provides them and the latter
4502         is not even used.
4503         (__log1pl): Use __frexpl.
4505 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
4507         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
4508         prototypes.
4509         * include/arpa/nameser_compat.h: Define T_UNSPEC.
4510         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
4511         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
4512         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
4513         af==AF_UNSPEC.
4514         (_nss_nis_gethostbyname4_r): New function.
4515         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
4516         Change to also handle af==AF_UNSPEC.
4517         (get_tablename): New function.  Use it to avoid duplication.
4518         (_nss_nisplus_gethostbyname4_r): New function.
4519         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
4520         available.
4521         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
4522         * nss/nss.h: Define struct gaih_addrtuple.
4523         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
4524         af==AF_UNSPEC.
4525         (_nss_files_gethostbyname4_r): New function.
4526         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
4527         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
4528         calls.
4529         * resolv/res_query.c (__libc_res_nquery): Take two additional
4530         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
4531         look up IPv4 and IPv6.
4532         Change all callers.
4533         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
4534         for an additional query and answer buffer.  Pass to send_vc and
4535         send_dg.
4536         (send_vc): Send possibly two requests and receive two answers.
4537         (send_dg): Likewise.
4538         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
4539         __libc_res_nquery.
4540         (_nss_dns_gethostbyname4_r): New function.
4541         (gaih_getanswer_slice): Likewise.
4542         (gaih_getanswer): Likewise.
4543         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
4544         __libc_res_nquery call.
4545         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
4546         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
4547         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
4548         available.
4550 2008-05-05  David S. Miller  <davem@davemloft.net>
4552         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
4553         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
4555 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4557         Fix termios bit macros.
4558         Move *DLY definitions where they belong, in termios.h.
4559         Add *[0-3] definitions.
4560         Fixes confusion between VT and FF.
4561         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
4562         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
4563         are already defined to avoid collision with termios.h.
4564         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
4565         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
4566         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
4567         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
4568         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
4569         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
4570         VTDLY, VT0, VT1): New macros.
4571         [__USE_GNU] (OLCUC): Change value of macro.
4572         [__USE_XOPEN] (OFILL): New macro.
4573         [__USE_BSD] (CRTSCTS): Change value.
4574         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
4575         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
4576         (B7200, B14400, B28800, B76800): New macros.
4578 2008-05-01  David S. Miller  <davem@davemloft.net>
4580         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
4581         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
4582         (gen-as-const-headers): Add it.
4583         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
4584         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
4585         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
4586         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
4588         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
4589         six system call parameters.
4590         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
4592 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
4594         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
4595         RUSAGE_LWP.
4596         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
4597         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
4599 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
4601         * stdlib/tst-setcontext.c: Include unistd.h.
4603 2008-04-25  David S. Miller  <davem@davemloft.net>
4605         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
4606         Pass "union semun" properly in to sys_ipc, it must be passed
4607         by value, not by reference.
4609 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
4611         * nscd/Makefile (nscd-cflags): Set back to -fpie.
4612         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
4613         * nscd/connections.c (mem_in_flight): Likewise.
4615         * nscd/nscd.h (dbs): Make hidden.
4617         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
4618         Avoid returning -1, return 0 instead.
4620 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
4622         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
4624 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
4626         [BZ #5209]
4627         * sysdeps/unix/sysv/linux/times.c: New file.
4629         [BZ #5381]
4630         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
4631         mem_in_flight_list variables.  Add new parameter to mempool_alloc
4632         prototype.
4633         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
4634         appropriate mem_in_flight element.
4635         (gc): Take allocations which have not yet been committed to the
4636         database into account.
4637         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
4638         Reset mem_in_flight before returning.
4639         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
4640         cue it up in mem_in_flight_list.
4641         * nscd/aicache.c: Adjust mempool_alloc call.
4642         * nscd/grpcache.c: Likewise.
4643         * nscd/hstcache.c: Likewise.
4644         * nscd/initgrcache.c: Likewise.
4645         * nscd/pwdcache.c: Likewise.
4646         * nscd/servicescache.c: Likewise.
4647         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
4648         of -fpie.
4650         * nscd/connections.c (handle_request): Provide better error message
4651         in case SELinux forbids the service.
4653         * version.h (VERSION): Bump to 2.8.90.
4655 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
4657         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
4659 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
4661         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
4662         Also use for 32-bit.
4663         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
4664         __nextafter instead of nextafter to avoid local PLT.
4665         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
4666         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
4668         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
4670         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
4671         __fe_nomask_env.
4672         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
4673         <fenv_libc.h> instead of <fenv.h>.
4674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
4675         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
4677         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
4679         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
4680         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
4681         function from fegetexcept and make old name weak alias.
4682         * include/fenv.h: Declare __fegetexcept.
4683         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
4684         fegetexcept.
4685         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
4686         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
4687         to fetestexcept.
4688         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
4689         instead of frexpl to avoid local PLT.
4690         * math/s_significandl.c (__significandl): Use __ilogbl instead of
4691         ilogbl to avoid local PLT.
4692         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
4693         instead of ldexpl to avoid local PLT.
4694         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
4695         __roundl not roundl to avoid local PLT.
4696         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
4697         local PLTs.  Use __sincosl instead of separate sinl and cosl
4698         calls.
4699         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4701         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
4702         version for ppc64 to 2.4.21 since without it makecontext will fail.
4704         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
4705         to the ABI in use.
4706         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
4707         .__tls_get_addr.
4708         [__powerpc64__] (TLS_GD): Likewise.
4710 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
4712         [BZ #4997]
4713         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
4714         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
4715         mantissa.
4716         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4717         Likewise.  Also account for when x is an odd number between 2^52
4718         and 2^53-1.
4719         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
4720         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4721         * math/libm-test.inc (lround_test, llround_test): Added test cases to
4722         detect aforementioned erroneous conditions.
4724 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
4726         * configure.in: Check for -fno-section-anchors in addition to
4727         -fno-toplevel-reorder.
4729 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
4731         * include/features.h (__GLIBC_MINOR__): Bump to 8.
4733         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
4734         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
4735         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
4736         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
4737         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
4738         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
4740 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
4742         [BZ #5443]
4743         * time/era.c: Transform __libc_setlocale_lock into rwlock.
4744         * time/alt_digit.c: Likewise.
4745         * wcsmbs/wcsmbsload.c: Likewise.
4747 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
4749         * version.h (VERSION): Bump to 2.8.
4751         * timzeone/asia: Update from tzdata2008b.
4752         * timezone/backward: Likewise.
4753         * timezone/europe: Likewise.
4754         * timezone/northamerica: Likewise.
4755         * timezone/southamerica: Likewise.
4756         * timezone/iso3166.tab: Likewise.
4757         * timezone/leapseconds: Likewise.
4758         * timezone/zone.tab: Likewise.
4759         * timezone/private.h: Update from tzcode2008a.
4760         * timezone/zdump.c: Likewise.
4761         * timezone/zic.c: Likewise.
4763 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
4765         [BZ #5741]
4766         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
4767         Define additonal Data Cache Block instruction macros.
4768         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
4769         Replace dcbst with dcbf and sync with sync/isync.
4771 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
4773         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
4774         Always set ELF_RTYPE_CLASS_PLT.
4775         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
4777 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
4779         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
4780         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
4781         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
4782         For ISA 2.01 and later replace mftb with mfspr 268.
4784 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
4786         [BZ #5768]
4787         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
4788         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
4790 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
4792         [BZ #5768]
4793         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
4794         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
4795         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
4796         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
4798 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
4800         * stdlib/tst-makecontext.c (othervar): New variable.
4801         (cf): Test sign extending the argument to long.
4803 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
4805         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
4806         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
4807         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
4808         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
4809         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
4810         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
4811         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
4813 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
4815         * elf/Makefile (tests): Substitute tests-vis-yes here.
4816         (tests-vis-yes): Delete.
4817         (modules-name, modules-vis-yes): Similarly.
4819 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
4821         [BZ #4407]
4822         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
4823         Preserve sign in signgamp when x is zero.
4825 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
4827         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
4828         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
4829         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
4830         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
4831         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
4832         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
4834 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
4836         [BZ #4314]
4837         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
4838         buffers.
4840         [BZ #5209]
4841         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
4842         a reserved error value.
4844         * stdlib/tst-makecontext.c: Change parameter to cf to negative
4845         value to check for correct sign extension.
4847         [BZ #5436]
4848         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
4849         Copy 64-bit parameter values even though this is not required in
4850         the standard.
4852         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
4853         PC save.
4855 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
4857         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
4858         PC save.
4860 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
4862         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
4864 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
4866         [BZ #5998]
4867         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
4868         in line-buffered stream failed.
4869         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
4871 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
4873         [BZ #6024]
4874         * scripts/abi-versions.awk: If the version specified by
4875         --enable-oldest-abi is older than the first version for this
4876         architecture, use the default version.
4878         * locale/programs/ld-collate.c (collate_read): Ignore script lines
4879         as well when ignoring the whole category.
4881 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
4883         [BZ #6042]
4884         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
4885         ETHERTYPE_* definitions.
4886         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
4888 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
4890         * stdlib/mbtowc.c (__no_r_state): Remove.
4891         (mbtowc): New static state variable.  Use it instead of
4892         __no_r_state.
4893         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
4894         (__wctomb_state): New hidden variable.
4895         (wctomb): Use __wctomb_state instead of __no_r_state.
4896         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
4897         (__wctomb_state): New extern decl.
4898         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
4900 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
4902         [BZ #5475]
4903         * resolv/res_init.c: Handle scope IDs in resolv.conf.
4905 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
4907         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
4909 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
4911         * po/nl.po: Update from translation team.
4913 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
4915         [BZ #6007]
4916         * string/strfry.c: Handle empty strings again.
4918 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
4920         [BZ #5443]
4921         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
4922         before looking for translation.
4923         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
4924         * locale/freelocale.c: Likewise.
4925         * locale/newlocale.c: Likewise.
4926         * locale/setlocale.c: Likewise.
4927         Based partially on a patch by ryo@np.css.fujitsu.com.
4929 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
4931         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
4932         acquiring wrlock.  Do conv_tab allocation while holding lock.
4933         * intl/Makefile: Add rules to build and run tst-gettext6.
4934         * intl/tst-gettext6.c: New test.
4935         * intl/tst-gettext6.sh: New file.
4937 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
4939         * po/nl.po: Update from translation team.
4941         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
4942         provided through st_blksize, try the default size before giving up.
4944 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
4946         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
4948         [BZ #5939]
4949         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
4951         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
4952         error message.  POSIX today does not require the messages to be in
4953         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
4955         [BZ #5979]
4956         * sunrpc/auth_unix.c: Unify printed strings.
4957         * sunrpc/clnt_tcp.c: Likewise.
4958         * sunrpc/clnt_udp.c: Likewise.
4959         * sunrpc/clnt_unix.c: Likewise.
4960         * sunrpc/svc_tcp.c: Likewise.
4961         * sunrpc/svc_udp.c: Likewise.
4962         * sunrpc/svc_unix.c: Likewise.
4963         * sunrpc/xdr.c: Likewise.
4964         * sunrpc/xdr_array.c: Likewise.
4965         * sunrpc/xdr_rec.c: Likewise.
4966         * sunrpc/xdr_ref.c: Likewise.
4967         * locale/programs/ld-time.c (time_finish): Unify messages.
4968         * locale/programs/locfile.c (handle_copy): Fix typo.
4969         * nscd/nscd.c (options): Fix typo.
4971         [BZ #5995]
4972         * stdlib/strtod_l.c: Use correct sign for result in one more
4973         underflow case.
4974         Patch by Eric Blake <ebb9@byu.net>.
4976 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
4978         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
4979         and creat system calls.
4980         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
4981         call.
4982         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
4983         system calls.
4984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
4985         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4986         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4988 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
4990         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
4991         <linux/limits.h> has defined it.
4992         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
4993         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
4994         headers.
4995         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
4996         it instead of ARG_MAX.
4998 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
5000         * posix/gai.conf: Fix comment for scope nullbits.
5001         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
5002         default to 128 bits for v4 mapped addresses.
5004 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5006         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
5007         ptrace call to get the ieee_instruction_pointer from the kernel.
5008         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
5009         ptrace call to set the ieee_instructtion_pointer.
5010         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
5011         Add comment that ieee_instruction_pointer is always 0.
5013 2008-03-09  Andreas Jaeger  <aj@suse.de>
5015         [BZ #5857]
5016         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
5017         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
5018         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
5020         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
5021         (rint_test): Likewise.
5023 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
5025         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
5026         call.
5027         (__nisfind_server): Similar for open readColdStartFile call.
5028         Patch partially by Jim Meyering.
5029         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
5030         around internal_setent call.
5032         * po/vi.po: New Vietnamese translation.
5034         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
5035         ADJ_OFFSET_SS_READ.
5037         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
5038         remove CLONE_STOPPED.
5040 2008-02-10  Jim Meyering  <meyering@redhat.com>
5042         Remove useless "if" before "free":
5043         * elf/ldconfig.c (parse_conf_include): Likewise.
5044         * gmon/gmon.c (weak_alias): Likewise.
5045         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
5046         * inet/rcmd.c (__validuser2_sa): Likewise.
5047         * intl/bindtextdom.c (set_binding_values): Likewise.
5048         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
5049         * libio/genops.c (save_for_backup): Likewise.
5050         * libio/wgenops.c (save_for_wbackup): Likewise.
5051         * locale/programs/ld-collate.c (collate_read): Likewise.
5052         * locale/programs/linereader.c (get_string): Likewise.
5053         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
5054         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
5055         * resolv/res_debug.c (do_section): Likewise.
5056         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
5057         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
5058         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
5059         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
5060         * time/tzset.c (tzset_internal): Likewise.
5062 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
5064         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
5065         of ASSEMBLER.
5067 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
5069         [BZ #5903]
5070         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
5071         not stream for output file.  Open output file here.
5072         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
5073         and output file name.
5074         (process_fd): Likewise.
5075         (process_file): Likewise.
5076         (main): Adjust callers of changed functions.
5077         * iconv/iconv_prog.h: Adjust prototype.
5079 2008-03-09  Andreas Jaeger  <aj@suse.de>
5081         [BZ #5753]
5082         * sysdeps/ia64/ieee754.h: Use protected namespace
5083         __BIG_ENDIAN/__LITTLE_ENDIAN.
5084         * sysdeps/ieee754/ieee754.h: Likewise.
5085         Patch by Aurelien Jarno <aurelien@aurel32.net>.
5087 2008-03-08  Roland McGrath  <roland@frob.com>
5089         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
5090         ignore a signal that came from a machine exception, treat it as a
5091         fatal core-dump signal instead.
5092         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5094         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5095         Clear DF bit in thread state's eflags.
5096         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5098 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
5100         [BZ #5774]
5101         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
5102         of NAN(...) sequence.
5103         * stdlib/Makefile (tests): Add tst-strtod6.
5104         * stdlib/tst-strtod6.c: New file.
5106         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
5108         [BZ #5762]
5109         * posix/getopt.c (_getopt_internal_r): Clarify error message by
5110         putting offending option character in quotes.  Clean up error
5111         messages.
5112         * po/be.po: Adjust msgstr in translation file.
5113         * po/bg.po: Likewise.
5114         * po/ca.po: Likewise.
5115         * po/cs.po: Likewise.
5116         * po/da.po: Likewise.
5117         * po/de.po: Likewise.
5118         * po/es.po: Likewise.
5119         * po/fr.po: Likewise.
5120         * po/hr.po: Likewise.
5121         * po/ko.po: Likewise.
5122         * po/nl.po: Likewise.
5123         * po/rw.po: Likewise.
5124         * po/sk.po: Likewise.
5125         * po/sv.po: Likewise.
5126         * po/tr.po: Likewise.
5127         * po/zh_CN.po: Likewise.
5128         * po/zh_TW.po: Likewise.
5130         [BZ #5760]
5131         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
5132         Patch by Roland Bless <roland@bless.de>.
5134         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
5135         .o file.
5136         * elf/Makefile (routines): Add dl-sysdep.
5137         (elide-routines.os): Likewise.
5139 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
5141         [BZ #5786]
5142         * elf/dl-sysdep.c: Undefine ROUND after use.
5143         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
5144         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
5145         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
5146         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
5147         to ...
5148         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
5149         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
5150         if necessary.
5151         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
5153         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
5154         _dl_tls_get_addr_soft element.
5155         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
5156         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
5157         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
5158         GLRO.
5159         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5160         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
5161         of internal_function.
5163         * stdlib/Makefile (aux): Add tens_in_limb.
5164         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
5165         * stdlib/tens_in_limb.c: ...here.  New file.
5167         [BZ #5778]
5168         * sysdeps/unix/sysv/linux/pathconf.h: Declare
5169         __statfs_chown_restricted.
5170         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
5171         for _PC_CHOWN_RESTRICTED.
5172         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
5173         Implement __statfs_chown_restricted.
5174         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
5175         _POSIX_CHOWN_RESTRICTED value to zero.
5176         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
5177         defined to zero.
5179         * sysdeps/x86_64/rtld-memset.c: New file.
5181 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
5183         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
5185         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
5186         Barcelona machine.  Make default fall through branch of
5187         __x86_64_preferred_memory_instruction check as the integer code path.
5189 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
5191         * sysdeps/x86_64/cacheinfo.c
5192         (__x86_64_preferred_memory_instruction): New variable.
5193         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5195         * sysdeps/x86_64/memset.S: Rewrite.
5197 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
5199         * include/stdio.h (__asprintf_chk, __dprintf_chk,
5200         __obstack_printf_chk): New prototypes.
5201         (__vasprintf_chk, __vdprintf_chk,
5202         __obstack_vprintf_chk): Likewise.
5203         Add libc_hidden_proto.
5204         * libio/obprintf.c
5205         (_IO_obstack_jumps): No longer static, add attribute_hidden.
5206         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
5207         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5208         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
5209         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
5210         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5211         __obstack_vprintf_chk): New prototypes.
5212         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
5213         obstack_vprintf): New inlines.
5214         * debug/dprintf_chk.c: New file.
5215         * debug/vdprintf_chk.c: New file.
5216         * debug/asprintf_chk.c: New file.
5217         * debug/vasprintf_chk.c: New file.
5218         * debug/obprintf_chk.c: New file.
5219         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
5220         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
5221         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
5222         @@GLIBC_2.8.
5223         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
5224         vdprintf_chk and obprintf_chk, set CFLAGS for them.
5225         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
5226         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
5227         libc_hidden_proto.
5228         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
5229         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
5230         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
5231         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
5232         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
5233         @@GLIBC_2.8.
5234         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
5235         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
5236         obstack_vprintf_chk.
5237         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
5238         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
5239         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
5240         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
5241         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
5242         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
5244 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
5246         [BZ #5779]
5247         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
5248         Patch by Roy Marples <roy@marples.name>.
5250         [BZ #5736]
5251         * malloc/malloc.c: Fix typo in comment.
5253         [BZ #5627]
5254         * locale/iso-639.def: Add Shuswap.
5256 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
5258         [BZ #5790]
5259         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
5260         overwrite *h_errnop/*errnop values from getanswer_r in case of
5261         failure.
5263 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
5265         [BZ #5818]
5266         * nscd/connections.c (dbs): Add initializers for .suggested_module.
5267         (verify_persistent_db): Remove one unnecessary test and add a new one
5268         for bad configuration.
5269         (nscd_init): Improve error reported when persistent database cannot
5270         be reused.
5271         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
5272         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
5273         .suggested_module and .max_db_size and case config file says the
5274         values are zero.
5275         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
5277         [BZ #5854]
5278         * nis/ypclnt.c (yp_order): Fix handling of return value of
5279         do_ypcall_tr call.
5280         Patch by Jeff Moyer <jmoyer@redhat.com>.
5282         * po/fr.po: Update from translation team.
5284 2008-02-22  Andreas Jaeger  <aj@suse.de>,
5285             Carlos O'Donell <carlos@systemhalted.org>
5287         [BZ #5012]
5288         * FAQ.in: Describe why glibc needs to be compiled with
5289         optimization.
5291 2008-02-19  Roland McGrath  <roland@redhat.com>
5293         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
5295 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
5297         [BZ #5737]
5298         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
5299         __USE_MISC is defined.
5301 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
5303         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
5304         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
5305         sys/timerfd.h.
5306         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
5307         timerfd_gettime, timerfd_settime.
5308         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
5309         timerfd_gettime, timerfd_settime for GLIBC_2.8.
5311 2008-02-08  Roland McGrath  <roland@redhat.com>
5313         * elf/elf.h (NT_PPC_SPE): New macro.
5315 2008-02-06  Roland McGrath  <roland@redhat.com>
5317         * Makerules ($(common-objpfx)sysd-rules):
5318         Depend on $(sysdep-makeconfigs).
5320 2008-01-31  Roland McGrath  <roland@redhat.com>
5322         [BZ #5442]
5323         * configure.in: Use -print-file-name if it yields a directory,
5324         for each of include and include-fixed.
5325         * configure: Regenerated.
5327         * Makeconfig (sysd-rules-targets): New variable.
5328         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
5329         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
5331 2008-01-30  Roland McGrath  <roland@redhat.com>
5333         * manual/libc.texinfo: Update back-cover text.
5335         * elf/elf.h (NT_386_TLS): New macro.
5337 2008-01-29  Roland McGrath  <roland@redhat.com>
5339         * Makeconfig (sysd-rules-patterns): New variable.
5340         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
5341         (check-inhibit-asm): New canned sequence, replaces ...
5342         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
5343         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
5344         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
5345         (CFLAGS-rtld): Variable removed.
5347 2008-01-24  Roland McGrath  <roland@redhat.com>
5349         * configure.in: Let configure fragments set base_os.
5350         * configure: Regenerated.
5352 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
5354         * po/ko.po: Update from translation team.
5356 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
5358         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
5360 2008-01-12  Andreas Jaeger  <aj@suse.de>
5362         [BZ #5040]
5363         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
5364         Add EPOLLRDHUP.
5366 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5368         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
5369         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
5370         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
5372 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
5374         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
5375         * elf/dl-close.c (_dl_close): Check for it.
5376         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
5377         (_dl_allocate_static_tls): Likewise.
5378         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
5379         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
5380         to it.
5381         * elf/tst-tls16.c: New file.
5382         * elf/tst-tlsmod16a.c: New file.
5383         * elf/tst-tlsmod16b.c: New file.
5384         * elf/Makefile: Add rules to build and run tst-tls16.
5386 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
5388         [BZ #5628]
5389         * bits/shm.h: Fix comment describing shmid_ds.
5390         * sysdeps/gnu/bits/shm.h: Likewise.
5391         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
5392         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
5393         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5394         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5395         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5396         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5397         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5398         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
5399         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
5401         [BZ #5607]
5402         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
5403         prototypes.
5404         * conform/data/limits.h-data: Adjust limits changed in v6 and add
5405         additional suffixes.
5406         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
5407         Add optional functions mq_timedreceive and mq_timedsend.
5408         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
5409         * conform/data/pthread.h-data: Fix prototype of
5410         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
5411         * conform/data/semaphore.h-data: Allow time.h definitions.
5412         * conform/data/signal.h-data: Likewise.
5413         * conform/data/stdio.h-data: getw and putw are not required in v6.
5414         * conform/data/stdlib.h-data: Change setstate prototype.
5415         * conform/data/string.h-data: Fix strerror_r prototype.
5416         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
5417         * conform/data/unistd.h-data: pthread_atfork not required in v6.
5418         Fix readlink prototype.
5419         * conform/data/netinet/in.h-data: Add const to in6addr_any and
5420         in6addr_loopback.
5421         * inet/netinet/in.h: Cleanup namespace.
5422         * posix/regex.h: Likewise.
5423         * resolv/netdb.h: Likewise.
5424         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
5425         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
5426         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
5427         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
5428         of names of in in6_addr.
5429         (default_precedence): Likewise.
5430         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
5431         NULL definition.
5433 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
5435         * conform/data/fmtmsg.h-data: Add missing allows.
5436         * conform/data/ftw.h-data: Likewise.
5437         * conform/data/inttypes.h-data: Likewise.
5438         * conform/data/math.h-data: Likewise.
5439         * conform/data/signal.h-data: Likewise.
5440         * conform/data/net/if.h-data: Likewise.
5441         * conform/data/netinet/in.h-data: Likewise.
5442         * conform/data/sys/socket.h-data: Likewise.
5444         [BZ #5614]
5445         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
5446         (__strtok_r): Simplify.
5447         * string/tester.c (test_strtok_r): Add test case for futile search
5448         with single-character seach string.
5450 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
5452         * po/ko.po: Update from translation team.
5454 2008-01-11  Andreas Jaeger  <aj@suse.de>
5456         [BZ #5600]
5457         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
5458         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
5459         kernel header.
5461 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
5463         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
5464         native interface lookup in all the relevant places.
5466 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
5467             Ulrich Drepper  <drepper@redhat.com>
5469         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
5470         field.  Use sockaddr_in6 for source_addr.
5471         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
5472         (match_prefix): Likewise.
5473         (get_label): Likewise.
5474         (get_precedence): Likewise.
5475         (rfc3484_sort): Change to use indirect access to results array.
5476         Adjust to use of sockaddr_in6.  Replace service_order test with
5477         simple index comparison.
5478         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
5479         service_order field.  Adjust qsort_t calls.  Access sorted result
5480         array indirectly through order array.
5481         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
5482         * posix/tst-rfc3484-2.c: Likewise.
5483         * posix/tst-rfc3484-3.c: Likewise.
5485 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
5487         [BZ #5541]
5488         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
5489         pollfd structures.
5490         Patch by André Cruz.
5492         [BZ #5545]
5493         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
5494         (clnt_spcreateerror): Likewise.
5496         [BZ #5553]
5497         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
5498         (public_mEMALIGn): Likewise.
5499         Patch mostly by Daniel Jacobowitz.
5501 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
5503         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
5504         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
5505         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
5506         * stdlib/tst-makecontext2.c: New test.
5508 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
5510         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
5511         defined.
5512         (REINIT_PARAMS): Likewise.  Undefine before end of file.
5513         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
5514         transliteration hooks and REINIT_PARAMS afterwards.
5515         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
5516         status.
5517         (REINIT_PARAMS): Define.
5518         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
5519         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
5520         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
5521         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
5522         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
5523         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
5524         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
5525         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
5526         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
5527         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
5528         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
5529         * iconvdata/tst-iconv7.c: New test.
5531 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
5533         * libio/stdio.h (vscanf): Fix definition for loser compilers.
5535 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
5537         [BZ #5112]
5538         * nscd/connections.c (restart): Fix condition.
5540 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
5542         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
5543         __ctype_toupper_loc): Add __THROW.
5545 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
5547         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
5548         recognition of interface family.
5550         * posix/getconf.c: Update copyright year.
5551         * nss/getent.c: Likewise.
5552         * iconv/iconvconfig.c: Likewise.
5553         * iconv/iconv_prog.c: Likewise.
5554         * elf/ldconfig.c: Likewise.
5555         * catgets/gencat.c: Likewise.
5556         * csu/version.c: Likewise.
5557         * elf/ldd.bash.in: Likewise.
5558         * elf/sprof.c (print_version): Likewise.
5559         * locale/programs/locale.c: Likewise.
5560         * locale/programs/localedef.c: Likewise.
5561         * nscd/nscd.c (print_version): Likewise.
5562         * debug/xtrace.sh: Likewise.
5563         * malloc/memusage.sh: Likewise.
5564         * malloc/mtrace.pl: Likewise.
5565         * debug/catchsegv.sh: Likewise.
5567 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
5569         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
5570         second lookup.
5572 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
5574         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
5575         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5577 2007-12-17  Roland McGrath  <roland@redhat.com>
5579         * inet/ether_line.c (ether_line): Remove unused variable.
5581 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5583         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
5584         and winp.
5585         * login/openpty.c (openpty): Likewise.
5586         * login/pty.h (openpty, forkpty): Likewise.
5587         * manual/terminal.texi (openpty, forkpty): Likewise.
5589 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
5591         * malloc/malloc.c (public_cALLOc): For arenas other than
5592         main_arena, count all bytes inside the mprotect_size range of the
5593         heap as uninitialized.
5595 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
5597         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
5598         executable stacks.
5600         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
5601         mTRIm for all of them.
5602         (mTRIm): Additionally iterate over all free blocks and use madvise
5603         to free memory for all those blocks which contain at least one
5604         memory page.
5605         * malloc/tst-trim1.c: New file.
5606         * malloc/Makefile (tests): Add tst-trim1.
5608         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
5610 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
5612         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
5613         First cast argument to long
5614         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
5615         Return long.
5616         (__vdso_clock_gettime): Likewise.
5617         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
5618         return long.
5620 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
5622         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
5623         * locale/nl_langinfo_l.c: Real implementation, copied from
5624         nl_langinfo.c.
5625         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
5627 2007-12-01  Jim Meyering  <meyering@redhat.com>
5629         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
5630         that would inhibit utf8-optimization of a regexp containing line-
5631         or buffer-anchors, e.g., `^', `$'.
5633 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
5635         * time/bug-getdate1.c (do_test): Don't use century values which
5636         aren't valid on 32-bit systems.
5638 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
5640         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
5641         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
5642         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
5643         __strcat_g, __strncat_g): Add __asm__.
5645 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
5647         [BZ #5477]
5648         * io/fchmodat.c: Fix typo in stub_warning use.
5649         Patch by Petr Salinger.
5651 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
5653         * iconvdata/hp-thai8.c: New file.
5654         * iconvdata/Makefile: Add rules for hp-thai8.c.
5655         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
5656         * iconvdata/gconv-modules: Likewise.
5658         [BZ #5464]
5659         * iconvdata/hp-greek8.c: New file.
5660         * iconvdata/Makefile: Add rules for hp-greek8.c.
5661         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
5662         * iconvdata/gconv-modules: Likewise.
5664         [BZ #5463]
5665         * iconvdata/hp-turkish8.c: New file.
5666         * iconvdata/Makefile: Add rules for hp-turkish8.c.
5667         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
5668         * iconvdata/gconv-modules: Likewise.
5670         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
5671         (shrink_heap): ... this new function.
5672         (heap_trim): Call shrink_heap instead of grow_heap.
5674         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
5675         case don't call alloc_perturb.
5677 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
5679         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
5680         possible.
5681         * sysdeps/unix/sysv/linux/kernel-features.h
5682         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
5683         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
5685 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
5687         [BZ #5424]
5688         * stdio-common/vfprintf.c: Do not overflow when adding to done.
5689         * stdio-common/Makefile (tests): Add bug22.
5690         * stdio-common/bug22.c: New file.
5692         [BZ #5451]
5693         * time/getdate.c: Fix filling in default values.
5694         * time/bug-getdate1.c: New file.
5695         * time/Makefile: Add rules to build and run bug-getdate1.
5697         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
5698         * iconvdata/ebcdic-es.c: Likewise.
5699         * iconvdata/ebcdic-es-a.c: Likewise.
5700         * iconvdata/ebcdic-uk.c: Likewise.
5701         * iconvdata/iso8859-16.c: Likewise.
5702         * iconvdata/viscii.c: Likewise.
5703         * iconvdata/iso8859-9e.c: Likewise.
5704         * iconvdata/Makefile: Adjust appropriately.
5706         [BZ #5428]
5707         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
5708         __need_wint_t.
5710 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
5712         [BZ #5427]
5713         * iconvdata/hp-roman9.c: New file.
5714         * iconvdata/Makefile: Add rules for hp-roman9.c.
5715         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
5716         * iconvdata/gconv-modules: Likewise.
5718         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
5719         * iconvdata/Makefile: Adjust appropriately.
5721         [BZ #5441]
5722         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
5723         structure, it's allocated with alloca.
5724         * stdio-common/Makefile (tests): Add bug21.
5725         * stdio-common/bug21.c: New file.
5727 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
5729         [BZ #5452]
5730         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
5731         keyword for gcc's braced-groups.
5733 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
5735         [BZ #5454]
5736         * inet/ether_line.c: Strip hostname of whitespaces.
5737         * inet/Makefile (tests): Add tst-ether_line.
5738         * inet/tst-ether_line.c: New file.
5740 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
5742         [BZ #5439]
5743         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
5745         [BZ #5435]
5746         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
5748         * stdlib/tst-setcontext.c: Catch the case where the links gets
5749         messed up and we do not reach main again.
5751         * po/ca.po: Update from translation team.
5753 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
5755         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
5756         * posix/regex.h (REG_ENOSYS): Likewise.
5757         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
5759 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
5761         * nscd/nscd.h (MAX_STACK_USE): Define.
5762         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
5763         (gc): Initialize stack_used based on allocation in prune_cache.
5764         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
5765         Clear array before use.
5767         * nscd/aicache.c (addhstaiX): Update statistics counter in case
5768         memory allocation failed.
5769         * nscd/hstcache.c (cache_addhst): Likewise.
5770         * nscd/grpcache.c (cache_addgr): Likewise.
5771         * nscd/servicescache.c (cache_addserv): Likewise.
5772         * nscd/pwdcache.c (cache_addpw): Likewise.
5773         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5775 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
5777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
5778         and creat system calls.
5780         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
5782 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5784         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
5785         Add netiucv/iucv.h.
5786         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
5787         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
5788         protocol.
5789         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
5790         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
5791         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
5793 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5795         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
5796         strncat): Define as macros to avoid compile errors.
5798         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
5799         creat entries.
5801 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
5803         [BZ #5382]
5804         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
5805         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
5806         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
5807         overflow it.
5808         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
5810         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
5811         Return zero in case the thread library is not NPTL.
5813         [BZ #5375]
5814         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
5815         initializing interface list.
5817         [BZ #5378]
5818         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
5819         use result of nss_getgrgid_r if nothing was found.  For other
5820         error return with a failure.
5821         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
5823         * locale/programs/ld-collate.c (collate_read): Fix loop to match
5824         macro name.
5826 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
5828         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
5829         (get_scope): For IPv4 scope, use scopes table.
5830         (fini): Free scopes table if necessary.
5831         (free_scopelist): New function.
5832         (scopecmp): New function.
5833         (gaiconf_init): Also handle scopev4 entries.
5834         * posix/tst-rfc3484.c (do_test): Initialize scopes.
5835         * posix/tst-rfc3484-2.c (do_test): Likewise.
5836         * posix/gai.conf: Document scopev4 defaults.
5837         * posix/Makefile (tests): Add tst-rfc3484-3.
5838         * posix/tst-rfc3484-3.c: New file.
5840         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
5841         Teredo tunnels.
5842         * posix/gai.conf: Update for current default tables.
5844 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
5846         * po/tr.po: Update from translation team.
5848 2007-11-18  Roland McGrath  <roland@frob.com>
5850         * manual/arith.texi (Remainder Functions): Spelling fix.
5851         From Shaun Silk <genix@mysoul.com.au>.
5853         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
5855 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
5857         * po/zh_CN.po: Update from translation team.
5859         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
5860         Add sys/signalfd.h and sys/eventfd.h.
5862 2007-11-15  Bruno Haible  <bruno@clisp.org>
5864         [BZ #5346]
5865         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
5866         union.
5867         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
5868         (DCIGETTEXT): Change the allocation of the 'search' variable so that
5869         it needs only fixed stack space. Delay the initialization of
5870         msgid_len until it is needed.
5872 2007-11-15  Andreas Jaeger  <aj@suse.de>
5874         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
5875         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
5877 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
5879         * po/ko.po: Update from translation team.
5881 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
5883         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
5884         significantly.  The device type is also part of the ifinfomsg data.
5886         * po/sv.po: Update from translation team.
5887         * po/nl.po: Likewise.
5889         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
5890         to wake up in 24 hours.
5892         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
5894 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
5896         * po/cs.po: Update from translation team.
5897         * po/pl.po: Likewise.
5899         * include/ifaddrs.h: Remove in6ai_temporary.
5900         (struct in6addrinfo): Add index element.
5901         Declare __check_native.
5902         * inet/Makefile (aux): Add check_native.
5903         * sysdeps/unix/sysv/linux/check_native.c: New file.
5904         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
5905         IFA_F_TEMPORARY.  Pass back ifa_index.
5906         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
5907         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
5908         call __check_native if necessary.
5909         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
5910         to sort addresses.  Pass information about the results.
5911         * posix/tst-rfc3484.c: Adjust for addition of index field and change
5912         of rfc3484_sort interface.
5913         * posix/tst-rfc3484-2.c: Likewise.
5915         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
5916         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
5917         for _quicksort.
5918         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
5919         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
5920         on as third parameter to compare function and _quicksort.
5921         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
5922         to the compare function.
5923         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
5924         * Versions.def: Add GLIBC_2.8 for libc.
5926         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
5927         * posix/tst-rfc3484-2.c: Likewise.
5929         * include/kernel-features.h: Moved to...
5930         * sysdeps/mach/hurd/kernel-features.h: ...here.
5932 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
5934         * sysdeps/i386/i586/memcpy_chk.S: New file.
5935         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
5936         * sysdeps/i386/i586/memset_chk.S: Likewise.
5938 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
5940         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
5941         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
5942         list of interfaces.  Also store prefix length.
5943         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
5944         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
5945         prefix if source and destination address are in the same subnet.
5946         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
5947         Always look for matching record in in6ai list.
5948         Correct source_addr_len value for IPv6->IPv4 converted records.
5950 2007-11-11  Roland McGrath  <roland@frob.com>
5952         * include/kernel-features.h: New file.
5954 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
5956         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
5957         complications for 64-bit platforms.
5959         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
5960         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
5961         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
5962         open64_2.
5963         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
5964         entries.
5965         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5966         * sysdeps/wordsize-64/alphasort.c: New file.
5967         * sysdeps/wordsize-64/alphasort64.c: New file.
5968         * sysdeps/wordsize-64/fseeko.c: New file.
5969         * sysdeps/wordsize-64/fseeko64.c: New file.
5970         * sysdeps/wordsize-64/ftello.c: New file.
5971         * sysdeps/wordsize-64/ftello64.c: New file.
5972         * sysdeps/wordsize-64/ftw.c: New file.
5973         * sysdeps/wordsize-64/ftw64.c: New file.
5974         * sysdeps/wordsize-64/iofgetpos.c: New file.
5975         * sysdeps/wordsize-64/iofgetpos64.c: New file.
5976         * sysdeps/wordsize-64/iofopen.c: New file.
5977         * sysdeps/wordsize-64/iofopen64.c: New file.
5978         * sysdeps/wordsize-64/iofsetpos.c: New file.
5979         * sysdeps/wordsize-64/iofsetpos64.c: New file.
5980         * sysdeps/wordsize-64/lockf.c: New file.
5981         * sysdeps/wordsize-64/lockf64.c: New file.
5982         * sysdeps/wordsize-64/mkostemp.c: New file.
5983         * sysdeps/wordsize-64/mkostemp64.c: New file.
5984         * sysdeps/wordsize-64/mkstemp.c: New file.
5985         * sysdeps/wordsize-64/mkstemp64.c: New file.
5986         * sysdeps/wordsize-64/scandir.c: New file.
5987         * sysdeps/wordsize-64/scandir64.c: New file.
5988         * sysdeps/wordsize-64/tmpfile.c: New file.
5989         * sysdeps/wordsize-64/tmpfile64.c: New file.
5990         * sysdeps/wordsize-64/versionsort.c: New file.
5991         * sysdeps/wordsize-64/versionsort64.c: New file.
5992         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
5993         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
5994         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
5995         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
5996         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
5997         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
5998         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
5999         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
6000         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
6001         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
6002         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
6003         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
6005         * crypt/sha256-crypt.c: Fix a comment.
6006         * crypt/sha512-crypt.c: Likewise.
6008 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6010         * sysdeps/x86_64/memset.S: Add sfence after movnti.
6012 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
6014         [BZ #5277]
6015         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
6016         because output buffer is too small break, don't loop.
6017         * iconvdata/Makefile (tests): Add bug-iconv6.
6018         * iconvdata/bug-iconv6.c: New file.
6020 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
6022         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
6023         with size_t type.
6024         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
6025         size_t.  Add casts where needed.
6027         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
6028         old headers, don't call avc_has_perm if we don't have the
6029         permission information.
6031 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
6033         * elf/rtld.c (dl_main): Use the page size to find the map start.
6035 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
6037         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
6038         Patch by Szymon Siwek <sls@poczta.wp.pl>.
6040         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
6041         when the lookup call failed.
6043         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
6044         Add prune_cond and wakeup_time.
6045         (CACHE_PRUNE_INTERNAL): Define.
6046         Update declarations of prune_cache and setup_thread.
6047         * nscd/connections.c (dbs): Update initializers.
6048         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
6049         (nscd_init): Default number of threads is now 4.
6050         (invalidate_cache): Take lock before calling prune_cache.
6051         (handle_request): If SELinux forbids the request, say so.
6052         (readylist_cond): Use static initializer.
6053         (nscd_run_prune): New function.  Used only by pruning threads.
6054         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
6055         here.
6056         (fd_ready): Update nscd_run reference.
6057         (start_threads): No need to initialize readylist_cond.
6058         Start pruning threads separately.
6059         * nscd/nscd_setup_thread.c: Change return value type to int and always
6060         return 0.
6061         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
6062         to int and return nonzero value if we can use the TID address hack.
6063         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
6064         the database is later than the new entry's timeout, update the
6065         wakeup time and wake the cleanup thread.
6066         (prune_cache): Return seconds the next entry in the database is still
6067         valid.  Remove locking for pruning here.
6068         * nscd/nscd.conf: Document default number of threads.
6070 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
6072         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
6073         stack is properly aligned for the target function.
6074         Correct unwind info.
6076         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
6077         when using auditing libraries.
6079 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
6081         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
6082         _nss_dns_getnetbyaddr2_r.
6083         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
6084         extra parameter to getanswer_r.
6085         (_nss_dns_getnetbyaddr_r): Now a wrapper around
6086         _nss_dns_getnetbyaddr2_r.
6088         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
6089         gethstbynm3_r.
6090         * nscd/gethstbynm2_r.c: Remove.
6091         * nscd/gethstbynm3_r.c: New file.
6092         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
6093         __gethostbyaddr_r.
6094         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
6095         __gethostbyaddr_r compatibility wrapper.
6096         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
6097         determining timeout of entry.
6098         (lookup): Take new parameter and pass it to __gethostbyname3_r and
6099         __gethostbyaddr2_r.
6100         (addhstbyX): Pass reference to variable for TTL to lookup and
6101         cache_addhst.
6102         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
6103         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
6104         and __nss_next2.  Remove __nss_services_lookup.
6105         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
6106         Add compat wrapper.
6107         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
6108         __nss_next2.
6109         * nss/getXXent_r.c: Likewise.
6110         * nss/getnssent_r.c: Likewise.
6111         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
6112         does not exist in module, try the optional second name.
6113         (__nss_next2): New function.
6114         (__nss_next): Now wrapper around __nss_next2.
6115         * nss/nsswitch.h: Adjust __nss_lookup prototype.
6116         Declare __nss_next2.
6117         Adjust definition of db_lookup_function type.
6118         * nss/service-lookup.c: Define NO_COMPAT.
6119         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
6120         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
6121         * inet/ether_ntoh.c: Likewise.
6122         * sunrpc/netname.c: Likewise.
6123         * sunrpc/publickey.c: Likewise.
6124         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
6125         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
6126         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
6127         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
6128         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
6130         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
6132         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
6134 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
6136         [BZ #5204]
6137         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
6138         * crypt/sha512c-test.c: Likewise.
6140         [BZ #5225]
6141         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
6142         to keep track of end of %[ format string element.
6143         * stdio-common/Makefile (tests): Add bug20.
6144         * stdio-common/bug20.c: New file.
6146         [BZ #5222]
6147         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
6148         path elements in counting mode.
6150 2007-10-27  Andreas Jaeger  <aj@suse.de>
6152         [BZ #5040]
6153         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
6155         [BZ #3112]
6156         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
6157         (__cleanup): Free shared library when exiting.
6158         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
6159         (__cleanup): Free shared library when exiting.
6161 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
6163         [BZ #2549]
6164         * math/libm-test.inc (check_float_internal): Support
6165         denormalized return.
6167 2007-10-23  Andreas Jaeger  <aj@suse.de>
6169         [BZ #5208]
6170         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
6171         __LONG_LONG_PAIR to handle little endian byte order.
6172         Suggested by abhishekrai@google.com
6174 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
6176         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
6178 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
6180         * nscd/cache.c (prune_cache): Move test for modified file outside
6181         of locking.
6183 2007-10-21  Andreas Jaeger  <aj@suse.de>
6185         * manual/texinfo.tex: Update to latest version.
6187         * manual/sysinfo.texi (System Parameters): Fix Formatting.
6189         * manual/arith.texi (Status bit operations): Fix formatting.
6191         * manual/errno.texi (Error Messages): Fix formatting.
6193         * manual/sysinfo.texi (System Parameters): Fix formatting.
6195         * manual/libc.texinfo: Update VERSION and UPDATED.
6197 2007-10-19  Roland McGrath  <roland@redhat.com>
6199         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
6201 2007-10-06  David S. Miller  <davem@davemloft.net>
6203         * configure.in: Add sparcv9v2 and sparc64v2.
6204         * scripts/config.sub: Likewise.
6205         * configure: Regenerate.
6206         * elf/elf.h (HWCAP_SPARC_N2): New.
6207         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
6208         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
6209         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
6210         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
6211         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
6212         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
6213         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
6215 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
6217         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
6218         even if the poll result indicates there is data to read.
6219         Patch by Jeff Moyer <jmoyer@redhat.com>.
6221 2007-10-18  Roland McGrath  <roland@redhat.com>
6223         * elf/elf.h (NT_PPC_VMX): New macro.
6225 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6227         * version.h (VERSION): Set to 2.7.90.
6229 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
6231         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
6232         weak_alias.
6234 2007-10-17  Roland McGrath  <roland@frob.com>
6236         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
6237         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
6239 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6241         * version.h (VERSION): Bump to 2.7.
6242         * include/features.h (__GLIBC_MINOR__): Bump to 7.
6244         [BZ #5186]
6245         * time/tzset.c (__tz_convert): Don't force testing for a change of
6246         TZ if not called from localtime.  But then also see whether the
6247         file changed, in case __use_tzfile is set.
6249         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
6250         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6251         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6252         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6253         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6254         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6255         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
6256         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6258 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
6260         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
6261         and admin selects to be able to replace the gai.conf file, lock
6262         data structures around the qsort call.
6264 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6266         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
6267         new memset.
6268         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
6269         too high for the improvements.  Implement bzero unconditionally for
6270         use in libc.
6272 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6273             Jakub Jelinek  <jakub@redhat.com>
6275         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
6276         even when time_t is 32-bit.
6277         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
6278         timezone data read by __tzfile_default.  Ensure __tzname[0] is
6279         always set after the search.
6281 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
6283         * time/tzfile.c (__tzfile_read): Help the compiler recognize
6284         unreachable code on 32-bit machines.
6286 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
6288         [BZ #5184]
6289         * time/strftime_l.c: Include stdbool.h.
6290         (my_strftime): New wrapper, old function renamed to...
6291         (__strftime_internal): ... new function.  Add tzset_called
6292         argument, pass it down to recursive calls, don't call tzset ()
6293         if already true, set to true after call to tzset ().
6295 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
6297         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
6298         into account when copying TZ string.
6300 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
6302         * time/tzfile.c (__tzfile_compute): For use_last case set i to
6303         num_transition rather than num_transitions - 1.
6305 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
6307         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
6308         PIC indirect jump.
6310         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
6311         a local label rather than HIDDEN_JUMPTARGET.
6313 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
6315         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
6316         (init_cacheinfo): Initialize it.
6317         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
6318         Always define bzero.
6319         Remove non-glibc code.
6320         * sysdeps/x86_64/bzero.S: Make an empty file.
6322 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
6324         * sysdeps/x86_64/cacheinfo.c
6325         (__x86_64_preferred_memory_instruction): New.
6326         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6328         * sysdeps/x86_64/memset.S: Rewrite.
6330 2007-10-15  Roland McGrath  <roland@redhat.com>
6332         * po/libc.pot: Regenerated.
6334 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
6336         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
6337         pointers.
6339         [BZ #3425]
6340         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
6341         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
6342         address record to T_A/T_AAAA requests.
6344 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
6346         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
6348         * posix/glob.c: Add some branch prediction throughout.
6350         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
6351         read from nscd.
6353         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
6354         service_order.
6355         (rfc3484_sort): Make sure that even if qsort doesn't support
6356         stable sorting out sorting here is stable by comparing service_order.
6357         (getaddrinfo): Initialize service_order.
6358         * posix/tst-rfc3484.c (do_test): Adjust for addition of
6359         service_order field to sorting structure.
6360         * posix/tst-rfc3484-2.c (do_test): Likewise.
6362         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
6363         * time/tzset.c (tzset_internal): Break TZ string parsing out into
6364         __tzset_parse_tz and updating of daylight, timezone, tzname into
6365         update_vars.
6366         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
6367         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
6368         happens in __tz_compute.
6369         * time/tzfile.c (__tzfile_read): Also read TZ string.
6370         (find_transition): Fold into __tzfile_compute.
6371         (__tzfile_compute): For times beyond the last transition try to
6372         use the TZ string.
6373         * timezone/tst-timezone.c: Information in daylight and tzname does
6374         change for Asia/Tokyo timezone with more concrete information.
6375         Remove the test.
6377         * include/stdio.h: Add libc_hidden_proto for ftello.
6378         * libio/ftello.c: Add libc_hidden_def.
6380         [BZ #1140]
6381         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
6382         on the specified time and not the last entries in the file.  Move
6383         code to determine tzname[] to...
6384         (find_transition): ...here.  Add ugly guess for times before the
6385         first transition.
6387 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
6389         [BZ #3195]
6390         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
6391         no entry.
6392         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
6393         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6394         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6395         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6397         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
6398         read mechanism when there are no group members and avoid no-op
6399         read syscall in this case.
6401         [BZ #3242]
6402         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
6403         (__readall): If reading failed due to EAGAIN error wait a bit
6404         and possibly try again.
6405         (__readvall): Likewise.
6407 2007-10-13  Bruno Haible  <bruno@clisp.org>
6409         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
6410         when we cannot recode the message.
6412 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
6414         [BZ #4359]
6415         * libio/__freading.c (__freading): Don't return true for
6416         write-only streams.  For read/write streams, check whether we
6417         performed a read operation already.
6418         * libio/Makefile (tests): Add tst-ext2.
6419         * libio/tst-ext2.c: New file.
6421 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
6423         * locale/programs/repertoire.c (repertoire_read): Always free
6424         memory for repertoire file name [Coverity CID 270].
6426         * elf/cache.c (save_aux_cache): Free memory allocated for
6427         temporary file name [Coverity CID 267].
6429 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
6431         * misc/Makefile (headers): Add bits/error.h.
6433 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
6435         * posix/fnmatch_loop.c: Take rule index returned as part of
6436         findidx return value into account when accessing weights.
6437         * posix/regcomp.c: Likewise.
6438         * posix/regexec.c: Likewise.
6440         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
6441         (skip_to): Fix problems with parameter of elifdef/elifndef.
6443 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
6445         * iconv/gconv_simple.c: Add some branch prediction.
6447 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
6449         * locale/programs/ld-collate.c (collate_read): If ignore_content
6450         and nowtok is tok_define, eat any tok_eol tokens.
6452 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
6454         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
6455         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
6457         * inet/netinet/in.h: Don't include bits/socket.h.
6458         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
6459         macro.
6460         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6462 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
6464         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
6465         and tok_elifndef.
6466         * locale/programs/locfile-kw.gperf: Likewise.
6467         * locale/programs/ld-collate.c: Implement primitive preprocessor.
6469 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
6471         * stdio-common/printf-parse.h: Include string.h and wchar.h.
6472         (__find_specwc): Change into __extern_always_inline function.
6473         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
6474         (__parse_one_specmb): Remove ps argument.
6475         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
6476         Adjust __find_specmb and __parse_one_specmb callers.
6477         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
6478         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
6479         Removed.
6480         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
6481         caller.
6483 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
6485         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
6486         with some Pentium Ds.
6488 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
6490         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
6491         __read not read.
6492         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
6493         __write not write.
6495 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
6497         [BZ #181]
6498         * locale/C-time.c: Set week_1stday data to 19971201.
6499         * locale/programs/ld-time.c (time_finish): Default for
6500         first_workday is Monday.
6502         [BZ #2633]
6503         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
6505         [BZ #5103]
6506         * posix/glob.c (glob): Recognize patterns starting \/.
6507         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
6508         (main): Add test for pattern starting \/.
6510         * misc/error.h: Use __const instead of const.
6511         * misc/bits/error.h: Likewise.
6513 2007-10-07  Andreas Jaeger  <aj@suse.de>
6515         * include/bits/error.h: New file.
6517         * misc/bits/error.h (error_at_line): Fix prototype.
6519 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
6521         [BZ #3924]
6522         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
6523         more little bugs in creating the stack frame when pltexit has to
6524         be called.
6526         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
6527         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
6529         [BZ #4407]
6530         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
6531         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6532         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
6533         * math/libm-test.inc: Add test for this case.
6535         [BZ #5010]
6536         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
6537         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
6538         map service succeeded.
6539         (svc_is_mapped): New function.
6540         (svc_unregister): Use it before trying to unmap service.
6542 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
6544         * timezone/zic.c: Update from tzcode2007h.
6546         [BZ #5063]
6547         * timezone/africa: Update from tzdata2007h.
6548         * timezone/antarctica: Likewise.
6549         * timezone/asia: Likewise.
6550         * timezone/australasia: Likewise.
6551         * timezone/europe: Likewise.
6552         * timezone/leapseconds: Likewise.
6553         * timezone/northamerica: Likewise.
6554         * timezone/southamerica: Likewise.
6555         * timzeone/zone.tab: Likewise.
6557         [BZ #5104]
6558         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
6560         [BZ #5113]
6561         * string/bits/string2.h (__strdup): Cast parameters to calloc to
6562         avoid warning with -Wconversion.
6563         (__strndup): Likewise.
6564         Half the patch by Christian Iseli <christian.iseli@licr.org>.
6566         [BZ #5112]
6567         * nscd/connections.c (restart): Don't resync if database is
6568         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
6570         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
6571         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
6573         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
6574         evetnfd_read, eventfd_write.
6575         * sysdeps/unix/sysv/linux/eventfd.c: New file.
6576         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
6577         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
6578         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
6579         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
6580         eventfd_write for GLIBC_2.7.
6582         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
6583         * sysdeps/unix/sysv/linux/signalfd.c: New file.
6584         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
6585         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
6587 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
6589         * stdlib/msort.c: Include stdint.h.
6590         (struct msort_param): New type.
6591         (msort_with_tmp): Use struct msort_param pointer for unchanging
6592         parameters.  Add optimized handling for several common sizes
6593         and indirect sorting mode.
6594         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
6595         sorting.
6596         Suggested by Belazougui Djamel .
6598         * stdlib/Makefile (tests): Add tst-qsort2.
6599         * stdlib/tst-qsort2.c: New test.
6601 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
6603         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
6604         for dup2 in case another thread races with the current one.  Retry
6605         in this case.
6607         * misc/error.h: Remove support for use outside of libc.  We have to
6608         include <features.h> now.  Include <bits/error.h> if possible.
6609         * misc/bits/error.h: New file.
6611 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
6613         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
6614         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
6615         __extern_always_inline functions unconditionally, drop macros.
6617         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
6618         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
6619         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
6621         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
6622         add __artificial__ attribute.
6624 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
6626         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
6627         backward to forward direction.
6629         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
6631         [BZ #645]
6632         * locale/programs/ld-collate.c (collate_finish): Compare against last
6633         used section which is known to have rules defined.
6634         (collate_read): After order_start, correctly record order of sections
6635         and queue sections up.
6637 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
6639         [BZ #5071]
6640         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
6641         the same number of pages.
6642         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
6644         * locale/programs/ld-collate.c (collate_read): After initial copy
6645         statement, continue in state 0.
6647         * include/stdio_ext.h (__fsetlocking): Define as macro.
6649 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
6651         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
6652         of section order.
6654         * po/pt_BR.po: Fix typo.
6656 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
6658         * iconvdata/Makefile (modules): Add ISO8859-9E.
6659         (distribute): Add iso8859-9e.c.
6660         (gen-8bit-gap-modules): Add iso8859-9e.
6661         * iconvdata/iso8859-9e.c: New file.
6662         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
6663         * iconvdata/TESTS: Likewise.
6664         * iconvdata/tst-tables.sh: Likewise.
6666         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6668         * locale/iso-639.def: Add several new entries.
6670 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
6672         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
6673         void * pointers instead of struct link_map **.
6674         (_dl_scope_free): Change argument type to void *.
6675         * include/link.h (struct link_map): Change type of l_reldeps
6676         to struct link_map_reldeps, move l_reldepsact into that
6677         struct too.
6678         * elf/dl-deps.c: Include atomic.h.
6679         (_dl_map_object_deps): Only change l->l_initfini when it is
6680         fully populated, use _dl_scope_free for freeing it.  Optimize
6681         removal of libs from reldeps by using l_reserved flag, when
6682         some removal is needed, allocate a new list instead of
6683         reallocating and free the old with _dl_scope_free.  Adjust
6684         for l_reldeps and l_reldepsact changes.
6685         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
6686         searching in l_initfini and l_reldeps without holding dl_load_lock.
6687         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
6688         l_reldepsact changes.
6689         * elf/dl-close.c (_dl_close_worker): Likewise.
6690         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
6692 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
6694         * iconvdata/Makefile (modules): Add KOI8-RU.
6695         (distribute): Add koi8-ru.c.
6696         (gen-8bit-gap-modules): Add koi8-ru.
6697         * iconvdata/koi8-ru.c: New file.
6698         * iconvdata/gconv-modules: Add entries for KOI8-RU.
6699         * iconvdata/TESTS: Likewise.
6700         * iconvdata/tst-tables.sh: Likewise.
6702         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6704 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
6706         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
6707         with __warning__/__error__ attributes.
6708         (__warnattr): Define.
6709         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
6710         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
6711         __warnattr.
6712         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
6713         of __*_chk if compile time detectable overflow is found.
6714         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
6715         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
6716         with __warnattr.
6717         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
6718         instead of __*_chk if compile time detectable overflow is found.
6719         (__gets_alias): Rename to...
6720         (__gets_warn): ... this.  Add __warnattr.
6721         (gets): Call __gets_warn instead of __gets_alias.
6722         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
6723         aliases with __warnattr.
6724         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
6725         time detectable overflow is found.
6726         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
6727         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
6728         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
6729         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
6730         __getdomainname_chk_warn): New aliases with __warnattr.
6731         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
6732         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
6733         __*_chk_warn instead of __*_chk if compile time detectable overflow
6734         is found.
6735         (__getgroups_chk): Rename argument to __listlen from listlen.
6736         (__getwd_alias): Rename to...
6737         (__getwd_warn): ... this.  Add __warnattr.
6738         (getwd): Call __getwd_warn instead of __getwd_alias.
6739         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
6740         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
6741         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
6742         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
6743         __wcsnrtombs_chk_warn): New aliases with __warnattr.
6744         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
6745         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
6746         compile time detectable overflow is found.
6747         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
6748         to use __*_chk or not.
6749         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
6750         in comparisons which function should be called and in __*_chk*
6751         arguments.  Call __*_chk_warn instead of __*_chk if compile time
6752         detectable overflow is found.
6753         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
6754         __*_chk argument.
6755         * debug/tst-chk1.c (do_test): Add a few more tests.
6757 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
6759         [BZ #5058]
6760         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
6761         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
6762         (_nl_unload_domain): Finalize conversions_lock.
6763         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
6764         handling table of known conversions.
6766 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
6768         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
6769         close_not_cancel_no_status instead of close.
6771 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
6773         [BZ #5028]
6774         * posix/regcomp.c (lookup_collation_sequence_value): Check that
6775         nrules != 0 for multibyte chars.
6777 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
6779         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
6780         Provide better error message in case the type is unknown.
6782         [BZ #4963]
6783         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
6784         * string/stratcliff.c: Make usable to test wide char functions.
6785         * wcsmbs/wcsatcliff.c: New file.
6786         * wcsmbs/Makefiel (tests): Add wcsatcliff.
6788         [BZ #4972]
6789         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
6790         (distribute): Add mac-centraleurope.c.
6791         (gen-8bit-gap-modules): Add mac-centraleurope.
6792         * iconvdata/mac-centraleurope.c: New file.
6793         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
6794         * iconvdata/TESTS: Likewise.
6795         * iconvdata/tst-tables.sh: Likewise.
6797         [BZ #5043]
6798         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
6800 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
6802         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
6803         from __x86_64_core_cache_size_half.
6804         (init_cacheinfo): Compute shared cache size for AMD processors with
6805         shared L3 correctly.
6806         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
6807         name change.
6808         Patch in large parts by Evandro Menezes.
6810 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
6812         * elf/dl-lookup.c (add_dependency): Handle failing memory
6813         allocation for dependency list.  Remove unnecessary check.
6815         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
6816         open/close when determining source addresses.
6818         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
6819         sha512-crypt, and sha512.
6820         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
6821         (distribute): Add sha256.h and sha512.h.
6822         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
6823         and call the appropriate code.
6824         * crypt/sha256-crypt.c: New file.
6825         * crypt/sha256.c: New file.
6826         * crypt/sha256.h: New file.
6827         * crypt/sha256c-test.c: New file.
6828         * crypt/sha256test.c: New file.
6829         * crypt/sha512-crypt.c: New file.
6830         * crypt/sha512.c: New file.
6831         * crypt/sha512.h: New file.
6832         * crypt/sha512c-test.c: New file.
6833         * crypt/sha512test.c: New file.
6835 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
6837         * misc/bits/syslog.h (syslog): Remove extraneous argument from
6838         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
6839         __syslog_chk.
6841 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
6843         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
6844         %as in fscanf format strings.
6846         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
6847         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6848         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
6849         Likewise.
6850         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
6851         Likewise.
6853         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
6854         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
6855         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
6856         * elf/dl-sym.c (do_sym): Likewise.
6857         * include/link.h (struct link_map): Add l_serial field.
6858         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
6859         * elf/dl-lookup.c (add_dependency): Add flags argument.
6860         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
6861         flags, use THREAD_GSCOPE_RESET_FLAG before and
6862         THREAD_GSCOPE_SET_FLAG after
6863         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
6864         Don't dereference map until it has been found on some list.
6865         If map->l_serial changed, return -1.
6867 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
6869         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
6870         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
6871         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
6872         libc_hidden_proto.
6873         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
6874         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
6875         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
6876         add libc_hidden_proto.
6877         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
6878         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
6879         conformance requested.
6880         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
6881         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
6882         conformance requested.
6883         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
6884         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
6885         conformance requested.
6886         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
6887         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
6888         ISO C99 or POSIX conformance requested.
6889         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
6890         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
6891         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
6892         and __isoc99_vsscanf@@GLIBC_2.7.
6893         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
6894         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
6895         (tests): Add scanf14.
6896         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
6897         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
6898         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
6899         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
6900         CFLAGS-isoc99_scanf.c): Add $(exceptions).
6901         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
6902         from using internal headers.
6903         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
6904         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
6905         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
6906         and __isoc99_vswscanf@@GLIBC_2.7.
6907         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
6908         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
6909         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
6910         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
6911         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
6912         * stdio-common/isoc99_scanf.c: New file.
6913         * stdio-common/isoc99_vsscanf.c: New file.
6914         * stdio-common/isoc99_vscanf.c: New file.
6915         * stdio-common/isoc99_vfscanf.c: New file.
6916         * stdio-common/isoc99_fscanf.c: New file.
6917         * stdio-common/isoc99_sscanf.c: New file.
6918         * wcsmbs/isoc99_fwscanf.c: New file.
6919         * wcsmbs/isoc99_vswscanf.c: New file.
6920         * wcsmbs/isoc99_swscanf.c: New file.
6921         * wcsmbs/isoc99_wscanf.c: New file.
6922         * wcsmbs/isoc99_vwscanf.c: New file.
6923         * wcsmbs/isoc99_vfwscanf.c: New file.
6924         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
6925         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
6926         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
6927         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
6928         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
6929         * stdio-common/scanf14.c: New test.
6930         * stdio-common/scanf15.c: New test.
6931         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
6932         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
6933         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
6934         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
6935         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
6936         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
6937         __nldbl___isoc99_scanf@@GLIBC_2.7,
6938         __nldbl___isoc99_fscanf@@GLIBC_2.7,
6939         __nldbl___isoc99_sscanf@@GLIBC_2.7,
6940         __nldbl___isoc99_vscanf@@GLIBC_2.7,
6941         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
6942         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
6943         __nldbl___isoc99_wscanf@@GLIBC_2.7,
6944         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
6945         __nldbl___isoc99_swscanf@@GLIBC_2.7,
6946         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
6947         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
6948         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
6949         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
6950         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
6951         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
6952         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
6953         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
6954         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6955         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
6956         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
6957         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
6958         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
6959         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
6960         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
6961         functions.
6962         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
6963         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
6964         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
6965         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
6966         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
6967         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
6968         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
6969         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
6970         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
6971         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
6972         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
6973         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
6975         * stdio-common/Makefile (tests): Add scanf13.
6976         (scanf13-ENV): New.
6977         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
6978         m modifier followed by l.
6979         (STRING_ARG): Add width argument.
6980         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
6981         <case L_('C')>: Handle %mlc and %mC.
6982         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
6983         arguments.
6984         * stdio-common/scanf13.c: New test.
6986         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
6987         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
6989 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
6991         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
6992         type and __THROW marker of splice, vmsplice, and tee.
6993         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6994         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6995         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6996         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6997         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6998         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6999         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7000         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
7001         as cancellation points.
7003 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
7005         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
7006         parse more than three parts of the version number.
7008 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
7010         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
7011         modifier.  Patch by Jakub Jelinek.
7013 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
7015         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
7016         call_fallocate in misc subdir.
7017         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
7018         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
7019         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
7020         instead of __fallocate64.
7021         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
7023 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
7025         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
7026         * rt/Makefile (headers): Add bits/mqueue2.h.
7027         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
7028         optimizing with GCC and __va_arg_pack_len is defined.
7029         * rt/bits/mqueue2.h: New file.
7030         * rt/mq_open.c (__mq_open): Renamed from mq_open.
7031         (mq_open): New strong_alias.
7032         (__mq_open_2): New function.
7033         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
7034         (mq_open): New strong_alias.
7035         (__mq_open_2): New function.
7036         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
7037         * Versions.def (librt): Add GLIBC_2.7 version.
7038         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
7039         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
7041         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
7042         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
7043         is defined rather than when not C++.
7044         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
7045         __openat64_alias): New redirects.
7046         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
7047         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
7048         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
7049         (open, open64, openat, openat64): Rewrite as __extern_always_inline
7050         functions instead of function-like macros.
7052 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
7054         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
7055         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
7056         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
7058 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
7060         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
7061         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
7063 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
7065         * inet/tst-network.c: Increment ERRORS for failing tests.
7067 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
7069         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
7070         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
7071         implement as __extern_always_inline function.
7072         (vsyslog): Define as __extern_always_inline function unconditionally.
7073         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
7074         When __va_arg_pack is defined, implement as __extern_always_inline
7075         functions.
7076         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7077         __extern_always_inline functions unconditionally.
7078         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
7079         bits/stdio2.h will be included.
7080         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
7081         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
7082         implement as __extern_always_inline functions.
7083         (vswprintf, vwprintf, vfwprintf): Define as
7084         __extern_always_inline functions unconditionally.
7085         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
7087 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
7089         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
7090         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
7091         attribute.
7092         * include/features.h (__USE_EXTERN_INLINES): Define only when
7093         __extern_inline is defined.
7094         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
7095         is defined instead of when not __cplusplus.
7096         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
7097         is defined instead of when not __cplusplus.
7098         * socket/sys/socket.h: Include bits/socket2.h when
7099         __extern_always_inline is defined instead of when not __cplusplus.
7100         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
7101         is defined instead of when not __cplusplus.
7102         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
7103         is defined instead of when not __cplusplus.
7104         * string/string.h: Include bits/string3.h when __extern_always_inline
7105         is defined instead of when not __cplusplus.
7106         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
7107         is defined instead of when not __cplusplus.
7108         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
7109         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
7110         is not defined.
7111         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
7112         defined __extern_always_inline instead of !defined __cplusplus.
7113         * libio/bits/stdio-ldbl.h: Likewise.
7114         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7115         * misc/bits/syslog.h (syslog): Don't define for C++.
7116         (vsyslog): Use __extern_always_inline function for C++ instead of
7117         a macro.
7118         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
7119         whenever that macro is defined.
7120         (vprintf): Don't provide the inline for C++.
7121         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
7122         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
7123         define the macros for C++.
7124         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7125         __extern_always_inline functions for C++.
7126         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
7127         stat64, lstat64, fstat64, fstatat64): Don't define if not
7128         __USE_EXTERN_INLINES.
7129         * wcsmbs/bits/wchar2.h: Fix #error message.
7130         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
7131         (vswprintf, vwprintf, vfwprintf): Define using
7132         __extern_always_inline functions for C++.
7133         * string/bits/string3.h: Don't #undef macros if __cplusplus.
7134         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
7135         strncpy, strcat, strncat): Define as __extern_always_inline
7136         functions instead of macros for C++.
7137         * math/bits/cmathcalls.h: Guard __extern_inline routines with
7138         defined __extern_inline.
7139         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
7140         to __extern_inline whenever that macro is defined.
7141         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7142         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7143         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
7144         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
7145         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7146         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7147         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7148         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7149         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
7150         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
7151         prototypes.  Only provide __extern_inline routines if
7152         __USE_EXTERN_INLINES.
7153         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
7154         tests.
7155         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
7156         For now avoid some *printf tests in C++.  Skip all testing
7157         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
7158         is not.
7159         * debug/tst-chk4.cc: New file.
7160         * debug/tst-chk5.cc: New file.
7161         * debug/tst-chk6.cc: New file.
7162         * debug/tst-lfschk4.cc: New file.
7163         * debug/tst-lfschk5.cc: New file.
7164         * debug/tst-lfschk6.cc: New file.
7165         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
7166         prototypes in C++.
7167         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
7168         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
7169         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
7171 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
7173         * po/cs.po: Update from translation team.
7175 2007-09-11  Roland McGrath  <roland@redhat.com>
7177         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
7178         compiling.
7180 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7182         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
7184 2007-09-05  Roland McGrath  <roland@redhat.com>
7186         * manual/signal.texi (Signaling Another Process): Typo fix.
7187         From Karl Berry <karl@freefriends.org>.
7189 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
7191         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
7192         zero if not defined.
7193         (make_request): Recognize optimistic addresses and treat them like
7194         deprecated addresses.
7195         Reported by Neil Horman <nhorman@redhat.com>.
7197 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
7199         * nscd/connections.c (send_ro_fd): Also transfer file size.
7200         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
7201         file size don't call fstat.
7203         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
7204         ahead and map the file.  This should always be correct and we can
7205         catch problems later.
7207 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
7209         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
7210         prototypes.
7211         (__fread_alias, __fread_unlocked_alias): New aliases.
7212         (fread): New extern inline.
7213         (fread_unlocked): Likewise.  Undef macro before definition of
7214         the inline function.
7215         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
7216         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
7217         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
7218         and __fread_unlocked_chk@@GLIBC_2.7.
7219         * debug/fread_chk.c: New file.
7220         * debug/fread_u_chk.c: New file.
7221         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
7223 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
7225         * sysdeps/unix/sysv/linux/syscalls.list
7226         (personality): Change caller to EXTRA.
7228 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
7230         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
7231         to keep gcc quiet.
7232         * iconvdata/iso-2022-cn.c (BODY): Likewise.
7234         * locale/programs/ld-collate.c (collate_output): Avoid warning if
7235         NDEBUG is defined.
7237         * Makerules: Use -p option with mkdir.
7239         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
7240         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
7241         (_xdr_directory_obj): Likewise.
7242         (xdr_entry_obj): Likewise.
7243         (xdr_group_obj): Likewise.
7244         (xdr_link_obj): Likewise.
7245         (xdr_table_obj): Likewise.
7246         (_xdr_nis_result): Likewise.
7247         (_xdr_ns_request): Likewise.
7248         (_xdr_ib_request): Likewise.
7249         (_xdr_nis_taglist): Likewise.
7250         (xdr_cback_data): Likewise.
7251         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
7252         (xdr_ypresp_maplist): Likewise.
7254         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
7256         * posix/regex_internal.h: Prevent some declarations and definitions
7257         to be seen when used in tests.
7259         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
7260         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
7262         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
7264         * config.make.in (datarootdir): Add to shut up configure.
7266         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
7267         associativity for fully-associative caches.
7269         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
7270         requests.  Fill on more associativity values for L2.
7271         Patch mostly by Evandro Menezes.
7273 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
7275         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7276         (_libc_vdso_platform_setup): Avoid using exported variable by using
7277         alias.
7279         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
7281         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
7282         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
7283         defined.
7285 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
7287         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
7288         align stack for call if pltexit is to be used.
7290         [BZ #3924]
7291         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
7292         align for function call in case pltexit has to be called later.
7294         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
7295         implicit atomic operation when storing function pointer.
7296         (_dl_runtime_profile): Likewise.
7298 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
7300         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
7301         NIS_NOTFOUND.
7303 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
7305         [BZ #4566]
7306         * string/strtok.c: Fix typo in comment.
7308         [BZ #4582]
7309         * debug/segfault.c: Fix typos in comments.
7311         [BZ #4588]
7312         * stdio-common/tempnam.c: Fix comment, it is not checked that
7313         TMPDIR points to a writable directory.
7315         [BZ #4726]
7316         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
7317         memory allocated for the name server address.
7319         [BZ #4946]
7320         * nscd/connections.c (handle_request): Using sendfile always
7321         requires that mmap is used for the database.
7322         Patch by Petr Baudis <pasky@suse.cz>.
7324         [BZ #4905]
7325         * nscd/hstcache.c (cache_addhst): When reloading an entry which
7326         suddenly has two or more addresses, ignore it and remove the old
7327         entry.
7329         [BZ #4814]
7330         * resolv/res_hconf.c: Prepare for compiling outside libc.
7331         * nscd/res_hconf.c: New file.
7332         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
7333         the new file.
7334         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
7335         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
7337         * nscd/hstcache.c (cache_addhst): Minimal optimization.
7339         [BZ #4925]
7340         * debug/pcprofiledump.c: Turn on internationalization by calling
7341         setlocale.  Patch mostly by Benno Schulenberg.
7343         [BZ #4936]
7344         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
7345         the state.
7346         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
7347         * iconvdata/bug-iconv5.c: New file.
7349 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
7351         [BZ #4896]
7352         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
7353         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
7354         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
7355         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
7356         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
7357         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
7358         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
7359         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
7361 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
7363         [BZ #4937]
7364         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
7365         lookup loop.  Suggested by John Reiser.
7367 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
7369         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
7371 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
7373         * csu/libc-start.c: Don't handle VDSO_SETUP here.
7374         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
7375         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
7376         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
7377         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
7378         to...
7379         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
7381 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
7383         * po/nl.po: Update from translation team.
7385 2007-08-16  Andreas Jaeger  <aj@suse.de>
7387         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
7388         Reported by Peter Festner <peter.festner@ewetel.net>.
7390 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
7392         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
7394 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
7396         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
7397         to check for undefined symbols.
7399         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
7400         If the syscall fails, set errno to the actual returned error number
7401         rather than EINVAL.
7402         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
7403         arguments are incorrect, set errno to EINVAL, if the syscall
7404         fails, set errno to the actual returned error number.
7406         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
7407         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
7409         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
7410         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
7411         file.
7412         (ASI_PNF, ASI_BLK_P): Don't define.
7413         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
7414         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
7415         file.
7416         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
7417         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
7418         file.
7420 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
7422         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
7423         FE_UNDERFLOW on Niagara CPUs.
7425         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
7426         exceptions.
7428 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
7430         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
7431         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
7432         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
7433         flush should be used or not inside of the function.
7434         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
7436         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
7437         __thread_start): Use HIDDEN_JUMPTARGET.
7438         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
7439         __thread_start): Likewise.
7440         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
7442         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
7443         Add libc_hidden_proto.
7444         (STRTOF): Add libc_hidden_proto.
7445         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
7446         (strtold_l, wcstold_l): Use them as second argument for
7447         long_double_symbol.
7449 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
7451         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
7453 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7455         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
7457 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
7459         * po/bg.po: New file.  From the translation team.
7461 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
7463         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
7464         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
7465         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
7466         when each feature was introduced.
7468         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
7469         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
7470         (CHECK_HASH): New macro.
7471         (PREPARE_VERSION): Use it.
7473         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
7474         prototype if not __ASSUME_PSELECT.
7475         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
7476         prototype if not __ASSUME_PPOLL.
7478         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
7480         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
7481         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
7482         is defined.
7484 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
7486         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7487         (_libc_vdso_platform_setup): If vDSO is not available point
7488         __vdso_gettimeofday to the vsyscall.
7489         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
7490         __vdso_gettimeofday instead of vsyscall.
7492 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
7494         * nscd/servicescache.c: Include kernel-features.h.
7495         * nscd/gai.c: Likewise.
7496         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
7497         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
7498         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
7499         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
7500         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
7501         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
7502         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
7503         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
7504         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
7506 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
7508         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
7509         and _dl_get_origin defines anymore.
7511         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
7512         Build fix for systems which might lack POSIX timer support.
7514         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7515         (_libc_vdso_platform_setup): Mangle function pointers before storing
7516         them.
7517         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
7518         Demangle vdso pointer before use.
7519         (INTERNAL_VSYSCALL): Likewise.
7521         * elf/cache.c (primes): Mark as const.
7522         Noted by Roland McGrath.
7524 2007-08-01  Andreas Jaeger  <aj@suse.de>
7525             Jakub Jelinek  <jakub@redhat.com>
7527         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
7528         (options): Add option.
7529         (parse_opt): Handle option.
7530         (manual_link): Adjust process_file caller.  Call implicit_soname.
7531         (search_dir): Formatting.  Use and populate auxiliary cache.
7532         (main): Load and save auxiliary cache.
7533         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
7534         stat64 from fstat64 to caller.
7535         (implicit_soname): New function.
7536         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
7537         leave *soname as NULL.
7538         * elf/cache.c: Include libgen.h.
7539         (print_entry, print_cache, compare, save_cache, add_to_cache):
7540         Formatting and cleanups.
7541         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
7542         aux_cache_file): New structures.
7543         (AUX_CACHEMAGIC): Define.
7544         (primes): New array.
7545         (aux_hash_size, aux_hash): New variables.
7546         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
7547         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
7548         load_aux_cache, save_aux_cache): New functions.
7549         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
7550         (init_aux_cache, search_aux_cache, add_to_aux_cache,
7551         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
7552         (process_file): Adjust prototype.
7554 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
7556         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
7557         with __need_size_t.
7559 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
7561         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
7562         r_found_version structure as second parameter.
7563         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
7564         (_dl_vdso_vsym): Change type of second parameter accordingly.
7565         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
7566         (_libc_vdso_platform_setup): Adjust.
7567         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7568         (_libc_vdso_platform_setup): Likewise.
7570         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
7571         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
7572         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
7573         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
7574         * csu/libc-start.c: Pretty printing.
7575         Use VDSO_SETUP if defined.
7576         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
7577         and let generic code call into _libc_vdso_platform_setup.
7578         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
7579         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
7580         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
7581         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
7582         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
7583         for GLIBC_PRIVATE.
7584         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
7585         (sysdep_rountines): Add dl-vdso.
7587         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
7588         of routines.
7590         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
7591         attribute_hidden to __vdso_gettimeofday prototype.
7593 2007-08-12  Roland McGrath  <roland@redhat.com>
7595         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
7596         From: Karl Berry <karl@freefriends.org>.
7598 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
7600         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
7601         an atime update for the files we read.
7603 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
7605         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
7607         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
7608         instead of mkstemp.
7610         * misc/Makefile (routines): Add mkostemp and mkostemp64.
7611         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
7612         * misc/mkostemp.c: New file.
7613         * misc/mkostemp64.c: New file.
7614         * stdlib/stdlib.h: Declare the new functions.
7615         * sysdeps/posix/tempname.c: Add new parameter which is added to
7616         the flags for open.  Remove __GT_BIGFILE handling.
7617         * stdio-common/tempname.c: Likewise.
7618         * include/stdio.h: Adjust __gen_tempname prototype.
7619         Renumber __GT_* constants.
7620         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
7621         * misc/mkdtemp.c: Likewise.
7622         * misc/mkstemp.c: Likewise.
7623         * misc/mkstemp64.c: Likewise.
7624         * misc/mktemp.c: Likewise.
7625         * stdio-common/tempnam.c: Likewise.
7626         * stdio-common/tmpfile.c: Likewise.
7627         * stdio-common/tmpfile64.c: Likewise.
7628         * stdio-common/tmpnam.c: Likewise.
7629         * stdio-common/tmpnam_r.c: Likewise.
7631 2007-08-10  Roland McGrath  <roland@frob.com>
7633         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
7634         New macros.
7635         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
7636         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7638 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
7640         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
7641         possible.
7642         * nss/nss_files/files-alias.c (internal_setent): Likewise.
7643         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
7644         * nss/nss_files/files-have_o_cloexec.c: New file.
7646         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
7647         available.
7649 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
7651         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
7652         ___new_wcstold_l): New weak aliases.
7653         (strtold_l, wcstold_l): Use them as second argument for
7654         long_double_symbol.
7656 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
7658         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
7659         register in test for error.
7661         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
7662         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
7664         * po/sv.po: Update from translation team.
7666 2007-08-06  Roland McGrath  <roland@redhat.com>
7668         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
7669         Remove __strto*_l inlines.
7670         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
7671         * stdlib/strtod.c: Add libc_hidden_def.
7672         * stdlib/strtod_l.c: Likewise.
7673         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
7674         for __new_strtold and __new_wcstold.
7675         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
7676         __STRTOF, STRTOF.
7677         * stdlib/strtol.c: Add libc_hidden_def.
7678         * stdlib/strtol_l.c: Likewise.
7679         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
7680         strtoq.
7682         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
7684         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
7685         * scripts/data/localplt-generic.data: ... here.
7686         * elf/Makefile (check-data): Get generic file if no other.
7687         ($(objpfx)check-localplt.out): Make target unconditional.
7689         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
7690         Use ElfW(Nhdr).
7692 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
7694         * po/zh_CN.po: Updated translation from translation team.
7696 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
7698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
7699         Don't use CGOTSETUP and CGOTRESTORE macros.
7701 2007-08-04  Roland McGrath  <roland@redhat.com>
7703         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
7705 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
7707         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
7708         __extension__ around the whole statement expression.
7710 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
7712         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
7713         elements during initialization.
7715         * po/pl.po: Updated translation from translation team.
7716         * po/tr.po: Likewise.
7717         * po/nl.po: Likewise.
7719 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
7721         * rt/aio.h: Add __nonnull attributes.
7723 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
7725         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
7726         * stdlib/Makefile (tests): Add tst-strtod5.
7727         (tst-strtod5-ENV): New.
7728         * stdlib/tst-strtod5.c: New file.
7730         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
7731         failed.
7732         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
7733         on failure.
7735         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
7736         allocated.
7738 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
7740         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
7741         numbers.
7743 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
7745         * io/Makefile (aux): Add have_o_cloexec.
7746         * include/fcntl.h: Declare __have_o_cloexec.
7747         * io/have_o_cloexec.c: New file.
7748         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
7749         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
7750         fcntl call if not necessary.
7751         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
7752         of local variable.
7754         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
7755         Avoid memset, add explicit initialization.
7756         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
7757         to the end and change into zero-sized array.
7758         Move lock member to fill a hole on 64-bit platforms.
7760         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
7761         inline functions.
7762         * include/stdlib.h: Add __strto*_internal prototypes here.
7763         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
7764         inline functions.
7765         * include/wchar.h: Add __wcsto*_internal prototypes.
7766         * sysdeps/generic/inttypes.h: No need to protect the declaration
7767         of the __strto*_internal and __wcsto*_internal members here.
7769         * rt/mqueue.h: Change const to __const and add nonnull attributes.
7771 2007-08-02  Roland McGrath  <roland@redhat.com>
7773         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
7774         $(inst_bindir)/getconf if possible.
7776         * posix/Makefile ($(objpfx)getconf.speclist): New target.
7777         (generated): Add it.
7778         ($(inst_libexecdir)/getconf): Use it.
7780 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
7782         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
7783         /proc is faster and sufficient.  /sys is still needed for
7784         __get_nprocs_conf.
7786 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
7788         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
7789         syscall as __fallocate64.
7790         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
7791         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
7793 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
7795         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
7796         value.
7798         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
7799         if off_t is different rank from size_t.
7801         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
7802         uw_frame_state_for): Avoid type punning warnings.
7803         * sysdeps/generic/unwind-dw2-fde-glibc.c
7804         (_Unwind_IteratePhdrCallback): Likewise.
7805         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
7806         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
7807         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
7808         pointers.
7810 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
7812         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
7813         total processors using sysfs.
7814         (__get_nprocs): Use sysfs to determine which processors are online.
7816 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
7818         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
7819         syscall arguments count.
7821         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
7823 2007-07-30  Roland McGrath  <roland@redhat.com>
7825         * manual/libc.texinfo: Update copyrights, formatting magic, and
7826         @dircategory.  From Karl Berry <karl@freefriends.org>.
7828 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
7830         [BZ #4860]
7831         * io/Makefile (headers): Add bits/fcntl2.h.
7833         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
7834         using gcc builtin.
7835         (__CPU_EQUAL_S): Likewise.
7837         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
7838         (tests): Add tst-cpuset.
7839         * posix/sched_cpualloc.c: New file.
7840         * posix/sched_cpufree.c: New file.
7841         * posix/tst-cpuset.c: New file.
7842         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
7843         GLIBC_2.7.
7844         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
7845         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
7846         macros.  Define CPU_*_S macros.
7848 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
7850         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
7851         entry.
7853         [BZ #4858]
7854         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
7855         #.0g and value rounded to 1.0.
7856         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
7858 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
7860         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
7861         for int_frac_digits and frac_digits.
7863         * login/logout.c (logout): Avoid aliasing violation.
7864         * login/logwtmp.c (logwtmp): Likewise.
7866         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
7868         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
7869         to avoid warning.
7870         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
7871         warning.
7872         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
7873         warning.
7874         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
7875         to avoid warnings.
7877         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
7878         void **.
7879         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
7881         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
7882         char * to avoid warning.
7883         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
7885         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
7887         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
7888         allocate_arrays): Cast second argument to charmap_find_symbol
7889         to char * to avoid warnings.
7891         * locale/programs/repertoire.c (repertoire_new_char): Change
7892         from_nr, to_nr and cnt to unsigned long, adjust printf format
7893         string.
7895         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
7896         Cast second argument to new_element to char * to avoid warnings.
7898         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
7900         * intl/gettextP.h (struct loaded_domain): Change plural to const
7901         struct expression *.
7902         * intl/plural-eval.c (plural_eval): Change first argument to
7903         const struct expression *.
7904         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
7905         argument to const struct expression **.
7906         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
7907         prototypes.
7908         * intl/loadmsgcat (_nl_unload_domain): Cast away const
7909         in call to __gettext_free_exp.
7911         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
7912         unitialized wstring/wpattern var warnings.
7914         * posix/runtests.c (struct a_test): Make data field const char *.
7916         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
7917         vars if not LDBL_MANT_DIG >= 106.
7919         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
7921         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
7922         __find_specmb to avoid warning.
7924         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
7926         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
7927         to avoid warnings.
7929         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
7930         initializer.
7932         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
7933         tv var when it will be actually used.
7935         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
7936         to avoid warnings.
7938         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
7939         char array resp. pointer.
7940         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
7941         char array.
7942         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
7943         to const unsigned char **.
7944         (ucs4_to_cns11643): Change second argument to unsigned char *.
7945         * iconvdata/euc-tw.c (BODY): Change endp type to
7946         const unsigned char *.
7947         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
7948         to unsigned char *.
7949         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
7950         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
7951         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
7952         types to unsigned char pointers/arrays instead of char.
7953         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
7954         to unsigned char *.
7955         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
7956         * iconvdata/jis0212.h: Include assert.h.
7957         (ucs4_to_jisx0212): Change second argument to unsigned char *.
7958         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
7959         of trying to handle that.
7960         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
7961         shut up a warning.
7962         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
7963         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
7964         two dimensional const unsigned char arrays.
7965         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
7966         Initialize endp to inptr to shut up a warning.
7968 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
7970         [BZ #4772]
7971         * time/strptime_l.c (__strptime_internal): Silently ignore
7972         strftime modifiers and field width in recursive calls.
7974         * include/time.h (enum ptime_locale_status): Remove.
7975         (__strptime_internal): Remove decided and era_cnt arguments,
7976         add statep argument.
7977         * time/strptime_l.c (__strptime_internal): Remove decided
7978         and era_cnt arguments, add statep argument.  Don't recompute
7979         any fields in recursive calls, only update caller's tm
7980         and state, if recursive call fails, don't change tm nor
7981         any state.
7982         (get_alt_number): Adjust.
7983         (recursive): Adjust caller.
7984         (strptime): Likewise.
7985         * time/strptime.c (strptime): Likewise.
7987 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
7989         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
7990         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
7991         if from and to charsets are the same.
7992         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
7993         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
7994         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
7996 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
7998         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
7999         Don't define wint_t when __need_mbstate_t unless it
8000         is necessary.
8001         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
8002         in the typedef if possible.
8003         * wctype/wctype.h (wint_t): Define by including
8004         wchar.h with __need_wint_t instead of including stddef.h
8005         with __need_wint_t and as fallback definining it ourselves.
8006         * iconv/gconv.h (__need_wint_t): Define before including
8007         wchar.h.
8008         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
8009         or _GLIBCPP_USE_WCHAR_T.
8010         (__need_wchar_t): Don't define
8011         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8012         (__need_wint_t): Don't define before including stddef.h,
8013         define before including wchar.h only if _LIBC or
8014         _GLIBCPP_USE_WCHAR_T.
8015         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8016         * sysdeps/mach/hurd/_G_config.h: Likewise.
8017         * sysdeps/generic/_G_config.h: Likewise.
8018         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
8019         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
8020         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
8021         if _LIBC or _GLIBCPP_USE_WCHAR_T.
8023 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
8025         * sysdeps/posix/posix_fallocate64.c: Undefine
8026         __posix_fallocate64_l64 before alias handling.
8027         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
8028         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
8029         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
8030         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
8032         * io/tst-posix_fallocate.c: Include <fcntl.h>.
8034 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
8036         * locale/programs/ld-collate.c (atwc): New variable.
8037         (add_to_tablewc): New toplevel function, moved from collate_output.
8038         (collate_output): Remove add_to_tablewc nested function.
8040         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
8041         (name_insert): New function.
8042         (write_output): Remove hash_table and hash_size vars and name_insert
8043         nested function.
8045 2007-07-24  Roland McGrath  <roland@redhat.com>
8047         * Makerules (install-others-programs-nosubdir): New target.
8048         (install-no-libc.a-nosubdir): Depend on it.
8050         * iconv/Makefile (install-others-programs): Set this instead of
8051         install-others.
8052         * login/Makefile (install-others-programs): Likewise.
8053         * posix/Makefile (install-others-programs): Likewise.
8055         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
8056         dependencies.
8058 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
8060         * io/Makefile (tests): Add tst-posix_fallocate.
8061         * io/tst-posix_fallocate.c: New file.
8063         * sysdeps/unix/sysv/linux/kernel-features.h: Define
8064         __ASSUME_FALLOCATE.
8066 2007-07-22  Roland McGrath  <roland@frob.com>
8068         * hurd/getdport.c: Add missing copyright year update.
8070         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
8071         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
8073 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
8075         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
8077         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
8078         O_CLOEXEC is needed.
8079         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
8080         Avoid additional fcntl to set O_CLOEXEC if not needed.
8081         * nis/nss_compat/compat-initgroups.c: Likewise.
8082         * nis/nss_compat/compat-pwd.c: Likewise.
8083         * nis/nss_compat/compat-spwd.c: Likewise.
8085 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8087         [BZ #3665]
8088         * manual/errno.texi: Change ECANCELED value to 119.
8090         [BZ #4610]
8091         * mach/lock-intern.h: Include <sys/cdefs.h>.
8093         [BZ #4178]
8094         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
8095         reading A.
8097         [BZ #4126]
8098         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
8099         to __sigsuspend.
8101         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
8103 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
8105         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
8106         `__ASSEMBLER__'.
8107         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8109 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
8111         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
8112         descriptor received from nscd.
8114         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
8116         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
8117         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8118         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8119         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8120         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8121         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8123 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
8125         [BZ #4816]
8126         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
8128         [BZ #4813]
8129         * login/forkpty.c (forkpty): Close master and slave fds on
8130         fork failure.  Patch by
8131         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
8133 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
8135         * include/features.h (__USE_ISOC95): New define.
8136         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
8137         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
8138         for -std=iso9899:199409.
8139         * CONFORMANCE: Remove comments about unsupported AMD1.
8141 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
8143         * sysdeps/ia64/sched_cpucount.c: New file.
8144         * sysdeps/powerpc/sched_cpucount.c: New file.
8146         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
8147         __BEGIN_DECLS/__END_DECLS around the prototype.
8148         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
8149         pointer to const cpu_set_t.
8151         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
8152         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
8153         __need_size_t and include stddef.h.
8154         * sysvipc/sys/msg.h: Likewise.
8155         * posix/sched.h: Likewise.
8156         * hurd/hurd/signal.h (__need_size_t): Define.
8158         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
8159         neither does signal.h in pedantic ISO C namespaces.  stdio.h
8160         no longer defines wint_t or wchar_t.
8162         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
8163         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
8164         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
8165         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
8166         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
8167         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
8168         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
8169         * debug/printf_chk.c (__printf_chk): Likewise.
8170         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
8171         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
8173         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
8174         Define.
8176         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
8177         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
8179 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
8181         [BZ #4792]
8182         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
8183         * malloc/malloc.h (realloc): Likewise.
8185         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
8186         if one of proc_file_chain streams has that fileno.
8187         * stdio-common/Makefile (tests): Add tst-popen2.
8188         * stdio-common/tst-popen2.c: New test.
8190 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
8192         * elf/ldconfig.c: Allow GPLv2 or any later version.
8193         * elf/readlib.c: Likewise.
8194         * elf/chroot_canon.c: Likewise.
8195         * elf/cache.c: Likewise.
8196         * nscd/mem.c: Likewise.
8197         * nscd/getpwuid_r.c: Likewise.
8198         * nscd/grpcache.c: Likewise.
8199         * nscd/aicache.c: Likewise.
8200         * nscd/getsrvbynm_r.c: Likewise.
8201         * nscd/nscd.c: Likewise.
8202         * nscd/servicescache.c: Likewise.
8203         * nscd/getsrvbypt_r.c: Likewise.
8204         * nscd/initgrcache.c: Likewise.
8205         * nscd/gethstbyad_r.c: Likewise.
8206         * nscd/gethstbynm2_r.c: Likewise.
8207         * nscd/getgrnam_r.c: Likewise.
8208         * nscd/nscd_setup_thread.c: Likewise.
8209         * nscd/getpwnam_r.c: Likewise.
8210         * nscd/gai.c: Likewise.
8211         * nscd/connections.c: Likewise.
8212         * nscd/dbg_log.c: Likewise.
8213         * nscd/cache.c: Likewise.
8214         * nscd/hstcache.c: Likewise.
8215         * nscd/nscd_conf.c: Likewise.
8216         * nscd/getgrgid_r.c: Likewise.
8217         * nscd/pwdcache.c: Likewise.
8218         * catgets/gencat.c: Likewise.
8219         * locale/programs/linereader.h: Likewise.
8220         * locale/programs/locarchive.c: Likewise.
8221         * locale/programs/ld-paper.c: Likewise.
8222         * locale/programs/locfile-kw.h: Likewise.
8223         * locale/programs/ld-address.c: Likewise.
8224         * locale/programs/xmalloc.c: Likewise.
8225         * locale/programs/ld-time.c: Likewise.
8226         * locale/programs/localedef.c: Likewise.
8227         * locale/programs/simple-hash.c: Likewise.
8228         * locale/programs/xstrdup.c: Likewise.
8229         * locale/programs/ld-numeric.c: Likewise.
8230         * locale/programs/locfile-kw.gperf: Likewise.
8231         * locale/programs/ld-collate.c: Likewise.
8232         * locale/programs/charmap-kw.gperf: Likewise.
8233         * locale/programs/charmap.h: Likewise.
8234         * locale/programs/charmap-kw.h: Likewise.
8235         * locale/programs/config.h: Likewise.
8236         * locale/programs/locfile.c: Likewise.
8237         * locale/programs/ld-ctype.c: Likewise.
8238         * locale/programs/charmap.c: Likewise.
8239         * locale/programs/ld-messages.c: Likewise.
8240         * locale/programs/repertoire.h: Likewise.
8241         * locale/programs/locale.c: Likewise.
8242         * locale/programs/ld-name.c: Likewise.
8243         * locale/programs/linereader.c: Likewise.
8244         * locale/programs/locfile.h: Likewise.
8245         * locale/programs/3level.h: Likewise.
8246         * locale/programs/ld-monetary.c: Likewise.
8247         * locale/programs/ld-measurement.c: Likewise.
8248         * locale/programs/charmap-dir.c: Likewise.
8249         * locale/programs/ld-identification.c: Likewise.
8250         * locale/programs/localedef.h: Likewise.
8251         * locale/programs/charmap-dir.h: Likewise.
8252         * locale/programs/repertoire.c: Likewise.
8253         * locale/programs/simple-hash.h: Likewise.
8254         * locale/programs/ld-telephone.c: Likewise.
8255         * locale/programs/locale-spec.c: Likewise.
8256         * locale/programs/locfile-token.h: Likewise.
8257         * posix/getconf.c: Likewise.
8258         * iconv/dummy-repertoire.c: Likewise.
8259         * iconv/iconv_charmap.c: Likewise.
8260         * iconv/iconvconfig.c: Likewise.
8261         * iconv/iconv_prog.c: Likewise.
8262         * malloc/memusagestat.c: Likewise.
8263         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
8265 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8267         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
8268         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
8269         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
8270         check for the first argument.
8272 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
8274         [BZ #4775]
8275         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
8276         (__tgmath_real_type): Fix if expr is const int or other const
8277         qualified integral type.
8278         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
8279         expressions and handle const qualified arguments.
8280         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
8281         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
8282         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
8283         statement expressions.
8284         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
8285         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
8286         (__TGMATH_UNARY_IMAG): Define.
8287         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
8288         * math/Makefile (tests): Add test-tgmath2.
8289         (CFLAGS-test-tgmath2.c): Add.
8290         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
8291         count_cfloat, count_cldouble): New variables.
8292         (NCCALLS): Define.
8293         (main): Check number of complex calls as well.
8294         (F(compile_test)): Add complex tests and tests with const qualified
8295         arguments.
8296         (y, z, ccount): Define.
8297         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
8298         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
8299         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
8300         F(cproj)): New functions.
8301         * math/test-tgmath2.c: New test.
8303 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
8305         [BZ #4776]
8306         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
8307         RPATH etc. as "/" rather than "", don't segfault on empty paths,
8308         instead output ".".
8309         * dlfcn/Makefile (distribute): Add glreflib3.c.
8310         (module-names): Add glreflib3.
8311         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
8312         glreflib1.so.
8313         (LDFLAGS_glreflib3.so): New.
8314         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
8315         glreflib1.so.
8316         * dlfcn/glreflib3.c: New file.
8318         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
8319         returned -1, return NULL.
8320         * intl/explodename.c (_nl_explode_name): Return -1 if
8321         _nl_normalize_codeset failed.
8323 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
8325         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
8326         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
8327         and avoid branch misspredicts for > 31 bytes memset case.
8328         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
8329         Remove toc ref to __cache_line_size.
8331         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
8332         to get ISA-V2.0 branch hints.
8333         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
8334         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
8335         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
8336         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
8337         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
8338         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
8339         Remove toc ref to __cache_line_size.
8341         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
8342         Include math_ldbl_opt.h.
8344 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
8346         [BZ #4773]
8347         * time/strptime_l.c (__strptime_internal): Implement greedy
8348         matching of weekday and month names.
8350 2007-07-09  Roland McGrath  <roland@redhat.com>
8352         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
8353         (ELF_NOTE_ABI): Use it.
8354         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
8356 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
8358         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
8359         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
8361 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
8363         [BZ #4745]
8364         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
8365         in loop to look for conversion specifier to avoid testing of
8366         wrong errno value.
8367         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
8368         * stdio-common/bug18.c: New file.
8369         * stdio-common/bug18a.c: New file.
8370         * stdio-common/bug19.c: New file.
8371         * stdio-common/bug19a.c: New file.
8373 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
8375         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
8376         running awk script.
8378 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
8380         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
8381         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
8382         Return NULL if mmap failed instead of asserting it does not.
8383         (calloc): Check for integer overflow.
8385         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
8386         than LONG_MAX / 10.
8388 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
8390         [BZ #4702]
8391         * nis/nss-default.c: Include errno.h.
8392         (init): Preserve errno.
8394 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
8396         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
8398 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
8400         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
8402 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8404         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
8406 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8408         * sysdeps/s390/dl-procinfo.c: New file.
8409         * sysdeps/s390/dl-procinfo.h: New file.
8410         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
8412 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
8414         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
8415         in PT_NOTE segments with multiple notes.
8416         * elf/readelflib.c (process_elf_file): Likewise.
8418 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
8420         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
8421         ISO C compliant.
8423 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
8425         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
8427 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
8429         * include/link.h: Don't include rtld-lowlevel.h.
8430         (struct link_map): Remove l_scope_lock.
8431         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
8432         (_dl_scope_free_list): New field (variable) in _rtld_global.
8433         (DL_LOOKUP_SCOPE_LOCK): Remove.
8434         (_dl_scope_free): New prototype.
8435         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
8436         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
8437         (_dl_profile_fixup): Likewise.
8438         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
8439         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
8440         THREAD_GSCOPE_RESET_FLAG around it.
8441         * elf/dl-close.c (_dl_close_worker): Don't use
8442         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
8443         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
8444         scopes were queued or if l_scope_mem has been abandoned.
8445         * elf/dl-open.c (_dl_scope_free): New function.
8446         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
8447         * elf/dl-support.c (_dl_scope_free_list): New variable.
8448         * elf/dl-lookup.c (add_dependency): Remove flags argument.
8449         Remove DL_LOOKUP_SCOPE_LOCK handling.
8450         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
8451         handling.
8452         * elf/dl-object.c (_dl_new_object): Don't use
8453         __rtld_mrlock_initialize.
8455 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
8457         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
8458         to fill in holes
8459         (rtld_global_ro): Likewise.
8461 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
8463         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
8464         Move PT_LOAD checking to...
8465         (_dl_addr_inside_object): ... here, new function.
8466         * elf/dl-sym.c (do_sym): If not l_contiguous,
8467         call _dl_addr_inside_object.
8468         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
8469         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
8470         * elf/dl-open.c (dl_open_worker): Likewise.
8471         (_dl_addr_inside_object): New function if IS_IN_rtld.
8472         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
8473         holes are present or are PROT_NONE protected.
8474         * include/link.h (struct link_map): Add l_contiguous field.
8475         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
8477 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
8478             Tomas Janousek  <tjanouse@redhat.com>
8479             Ulrich Drepper  <drepper@redhat.com>
8481         [BZ #4647]
8482         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
8483         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
8484         socket.
8485         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
8486         unused member a bitmap.
8487         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
8488         servers are configured.
8490 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
8492         * elf/rtld.c (dl_main): Don't call init_tls more than once.
8494 2007-06-17  Andreas Schwab  <schwab@suse.de>
8496         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
8498 2007-06-16  Andreas Jaeger  <aj@suse.de>
8500         [BZ #4125]
8501         * sysdeps/unix/sysv/linux/sys/ptrace.h
8502         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
8503         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
8504         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
8505         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
8506         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
8507         Define.
8508         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8509         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8510         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8511         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8513 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
8515         [BZ #4599]
8516         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
8517         determining whether there are IPv4/IPv6 addresses, ignore loopback
8518         addresses.
8520 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
8522         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
8523         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
8524         as the return type.  Change type of "r" variable to CMPtype.
8525         * soft-fp/eqsf2.c (__eqsf2): Likewise.
8526         * soft-fp/eqtf2.c (__eqtf2): Likewise.
8527         * soft-fp/gedf2.c (__gedf2): Likewise.
8528         * soft-fp/gesf2.c (__gesf2): Likewise.
8529         * soft-fp/getf2.c (__getf2): Likewise.
8530         * soft-fp/ledf2.c (__ledf2): Likewise.
8531         * soft-fp/lesf2.c (__lesf2): Likewise.
8532         * soft-fp/letf2.c (__letf2): Likewise.
8533         * soft-fp/unorddf2 (__unorddf2): Likewise.
8534         * soft-fp/unordsf2 (__unordsf2): Likewise.
8535         * soft-fp/unordtf2 (__unordtf2): Likewise.
8537 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
8539         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
8540         make sure gcc doesn't mess around with this.
8542 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
8544         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
8546 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
8548         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
8549         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
8550         at most once per _dl_close_worker.
8552 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
8554         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
8555         __sched_cpucount as const.
8556         * posix/sched_cpucount.c: Adjust.
8558         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
8559         instruction for counting bits.
8560         * sysdeps/x86_64/sched_cpucount.c: New file.
8562 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
8564         * configure.in: Avoid variable named BASH.
8565         * config.make.in: Likewise.
8566         Patch in part by Mike Frysinger.
8568 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
8570         [BZ #4586]
8571         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
8572         pseudo-zeros as zero.
8573         * sysdeps/x86_64/ldbl2mpn.c: New file.
8574         * sysdeps/ia64/ldbl2mpn.c: New file.
8576 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
8578         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
8579         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
8580         Remove unreachable code at the end.
8582 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
8584         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
8585         ldbl-128ibm in comment.
8586         (fpclassifyl): Correct classification of denormals.
8587         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
8588         return value for MIN denormal. Rewrite using long double math too
8589         correctly handle denormals and canonicalize the results.
8591 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
8593         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
8594         (__mpn_construct_long_double): Fix conversion where result ought
8595         to be smaller than __LDBL_MIN__, or the low double should be
8596         denormal.  Fix decision where to negate low double - honor round
8597         to even rules.
8598         * stdio-common/tst-sprintf2.c: Include string.h.
8599         (COMPARE_LDBL): Define.
8600         (TEST): Also test whether a string hexadecimal float representation
8601         can be parsed back to the number.
8602         (main): Add a couple of further tests.
8604 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
8606         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
8607         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
8608         is non-zero, but smaller than 2 * __DBL_MIN__.
8609         * stdio-common/tst-sprintf2.c: New test.
8610         * stdio-common/Makefile (tests): Add tst-sprintf2.
8612         * math/test-misc.c (main): Don't run last batch of tests with
8613         IBM long double format.
8615 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
8617         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
8618         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
8619         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
8620         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
8621         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8622         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
8623         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
8624         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
8625         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
8626         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8627         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
8628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
8629         New file.
8630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
8631         New file.
8632         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
8633         New file.
8634         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
8635         New file.
8636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
8637         New file.
8638         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
8639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
8640         New file.
8641         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
8642         New file.
8643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
8644         New file.
8645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
8646         New file.
8647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
8648         New file.
8650 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
8652         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
8653         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
8654         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
8655         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
8656         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
8657         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
8658         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
8659         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
8661 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
8663         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
8664         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8665         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
8666         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8667         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
8668         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8669         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
8670         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8672 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
8674         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
8675         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
8676         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
8677         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
8679 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
8681         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
8682         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
8684 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
8686         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
8687         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
8688         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
8689         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
8691 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
8693         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
8694         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
8696 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
8698         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
8699         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
8701         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
8702         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
8703         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
8704         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
8706 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
8708         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
8709         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
8710         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
8711         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
8713 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
8715         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
8716         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
8717         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
8718         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8719         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
8720         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8722 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
8724         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
8725         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
8726         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
8727         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
8729 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
8731         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
8732         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
8733         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
8734         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
8735         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
8736         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
8737         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
8738         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
8739         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
8740         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
8741         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
8742         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
8743         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
8744         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
8745         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
8746         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
8748 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
8750         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
8751         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
8753 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
8755         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
8756         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
8758 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
8760         * sysdeps/powerpc/powerpc32/970/Implies: New file.
8761         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
8762         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
8763         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
8764         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
8765         * sysdeps/powerpc/powerpc64/970/Implies: New file.
8766         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
8767         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
8768         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
8769         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
8771 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
8773         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
8775 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
8777         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
8778         branch miss-predicts. Ensure that cache line crossing does not impact
8779         dispatch grouping.
8781 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
8783         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
8784         "../../powerpc32/power4/memcopy.h".
8785         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
8786         "../../powerpc32/power4/wordcopy.c".
8788 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
8790         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
8791         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
8792         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
8793         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
8794         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
8795         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
8797 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
8799         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
8801 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
8803         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
8804         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
8805         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
8806         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
8807         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
8808         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
8809         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
8810         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
8812 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
8814         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
8816 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
8818         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
8819         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
8820         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
8821         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
8822         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
8823         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
8824         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
8826 2007-05-29  Roland McGrath  <roland@redhat.com>
8828         * po/Makefile (po-sed-cmd): New variable.
8829         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
8831 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
8833         * crypt/md5-crypt.c: Fix comment.
8835         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
8836         of crashing.  When this is the case or if the reply is malformed,
8837         don't try to close the new file descriptor since it does not
8838         exist.
8839         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
8841 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
8843         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
8844         if __NR_utimensat is not defined.
8846 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
8848         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
8850 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
8852         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
8853         (open): Fix comment typos.  Don't call __open_2 if flags
8854         is a compile time constant without O_CREAT.
8855         (__open64_2): Add nonnull attribute.
8856         (open64): Fix comment typos.  Don't call __open64_2 if flags
8857         is a compile time constant without O_CREAT.
8858         (__openat_2): Add nonnull attribute, fix nonnull attribute
8859         on redirect.
8860         (openat): Fix comment typos.  Don't call __openat_2 if flags
8861         is a compile time constant without O_CREAT.
8862         (__openat64_2): Add nonnull attribute, fix nonnull attribute
8863         on redirect.
8864         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
8865         is a compile time constant without O_CREAT.
8867 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
8869         * Makerules (sysd-rules): Define PTW for ptw-* files.
8870         * Versions: Define GLIBC_2.7 for libc.
8871         * include/stdio.h: Declare __fortify_fail.
8872         * debug/fortify_fail.c: New file.
8873         * debug/Makefile (routines): Add fortify_fail.
8874         * debug/chk_fail.c: Use __fortify_fail.
8875         * debug/stack_chk_fail.c: Likewise.
8876         * io/Versions: Export __open_2, __open64_2, __openat_2, and
8877         __openat64_2 for GLIBC_2.7.
8878         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
8879         * io/open.c: Define *_2 variant of function which checks for O_CREAT
8880         and fails if necessary.
8881         * io/open64.c: Likewise.
8882         * io/openat.c: Likewise.
8883         * io/openat64.c: Likewise.
8884         * sysdeps/unix/sysv/linux/open64.c: Likewise.
8885         * sysdeps/unix/sysv/linux/openat.c: Likewise.
8886         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
8887         * io/bits/fcntl2.h: New file.
8888         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
8889         __openat64_2.
8890         * include/bits/fcntl2.h: New file.
8891         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8892         Add open_2.
8893         * sysdeps/unix/sysv/linux/open_2.c: New file.
8895 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
8897         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
8898         as second parameter to handle_intel.
8900         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
8901         the entry.
8903         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
8904         handling to ...
8905         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
8906         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
8907         cacheinfo.
8908         * sysdeps/x86_64/memcpy.S: Complete rewrite.
8909         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
8910         Patch by Evandro Menezes <evandro.menezes@amd.com>.
8912         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
8914 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
8916         [BZ #4525]
8917         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
8918         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
8919         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
8921         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
8923         [BZ #4514]
8924         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
8925         reinitialize workend at the start of each do_positional format spec
8926         loop, free workstart before do_positional loops.
8927         (printf_unknown): Fix size of work_buffer.
8928         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
8930         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
8931         (public_sET_STATe): If ms->version < 3, put all chunks into
8932         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
8933         chunks.
8935         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
8936         * malloc/hooks.c: Likewise.
8937         * malloc/arena.c: Likewise.
8938         * malloc/malloc.c (do_check_malloc_state): Don't assert
8939         n_mmaps is not greater than n_mmaps_max.  This removes the need
8940         for the previous change.
8942         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
8943         2007-05-07 commit.
8945 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
8947         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
8948         Define for kernel >= 2.6.22.
8950 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
8952         * elf/dl-close.c (_dl_close_worker): When removing object from
8953         global scope, wait for all lookups to finish afterwards.
8954         * elf/dl-open.c (add_to_global): When global scope array must
8955         grow, allocate a new one and free old array only after all
8956         lookups finish.
8957         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
8958         (_dl_lookup_symbol_x): Likewise.
8959         * elf/dl-support.c: Define _dl_wait_lookup_done.
8960         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
8961         _dl_wait_lookup_done.
8963         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
8964         not overlapping with arena.
8966         * malloc/mcheck.c (reallochook): If size==0, free the block.
8968         * rt/tst-shm.c: Use fstat64 instead of fstat.
8970         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
8971         __NR_sync_file_range is not defined.
8973 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
8975         Dummy files to prevent stub versions from being used.
8976         * sysdeps/x86_64/fpu/k_cosl.c: New file.
8977         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
8978         * sysdeps/x86_64/fpu/k_sinl.c: New file.
8979         * sysdeps/x86_64/fpu/k_tanl.c: New file.
8981         * version.h (VERSION): Set to 2.6.90.
8983 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
8985         * version.h (VERSION): Define to 2.6.
8986         * include/features.h (__GLIBC_MINOR__): Define to 6.
8988         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
8990         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
8991         sizes.
8993 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
8995         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
8996         number of mmaps.  n_mmaps_max is the target.
8997         * malloc/hooks.c: Likewise.
8998         * malloc/arena.c: Likewise.
9000 2007-05-12  Andreas Jaeger  <aj@suse.de>
9002         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
9003         getpid.
9005 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
9007         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
9008         adding new variables.
9010         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
9011         optimize.  Completely extend global scope array before making the
9012         new entries visible.
9014 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
9016         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
9017         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
9018         tst-getcpu.
9020         * include/link.h: Move l_version and l_nversion members around to
9021         fill gaps.
9023         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
9025         * sysdeps/unix/sysv/linux/sched_setaffinity.c
9026         (__sched_setaffinity_new): If syscall was successful and
9027         RESET_VGETCPU_CACHE is defined, use it before returning.
9028         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
9030         * io/sys/stat.h: Make sure struct timespec is defined for
9031         __USE_ATFILE.
9033         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
9034         UTIME_OMIT.
9035         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
9036         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
9037         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
9038         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
9039         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
9040         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
9041         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
9042         * io/sys/stat.h: Declare utimensat, futimens.
9043         * io/utimensat.c: New file.
9044         * io/futimens.c: New file.
9045         * sysdeps/unix/sysv/linux/utimensat.c: New file.
9046         * sysdeps/unix/sysv/linux/futimens.c: New file.
9047         * io/Makefile (routines): Add utimensat, futimens.
9048         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
9049         * sysdeps/unix/sysv/linux/lutimes.c: New file.
9050         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
9051         available.
9053         * include/sys/cdefs.h: Redefine __nonnull so that test for
9054         incorrect parameters in the libc code itself are not omitted.
9056 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
9058         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
9059         exception in addition to inexact when asked to raise only FE_INEXACT.
9061         [BZ #3427]
9062         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
9063         in *envp.
9065 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
9067         [BZ #4403]
9068         * string/strfry.c (strfry): Make result more random.
9070 2007-05-07  Richard Henderson  <rth@redhat.com>
9072         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
9073         if __NO_LONG_DOUBLE_MATH.
9074         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
9075         available in the compiler, add .arch directive to the assembly.
9077 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
9079         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
9080         compat_symbol to GLIBC_2_1.
9081         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
9082         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
9083         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
9084         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
9085         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
9086         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
9087         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
9088         libc, not libm.
9089         (__isnanl): New compat_symbol.
9091 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
9092             Jakub Jelinek  <jakub@redhat.com>
9094         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
9095         (new_heap): Initialize mprotect_size.
9096         (grow_heap): When growing, only mprotect from mprotect_size till
9097         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
9098         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
9100 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
9101             Peter Bergner  <bergner@us.ibm.com>
9103         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
9104         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
9105         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
9106         * sysdeps/powerpc/fpu/fe_mask.c: New file.
9107         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
9108         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
9109         Call __fe_mask_env() if all FP exceptions disabled.
9110         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
9111         from old FPSCR to new fenv to propagate DFP rounding modes.
9112         Call __fe_mask_env() if FP exceptions previously enabled.
9113         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
9114         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
9115         transitioning from all exceptions disabled to any exception enabled
9116         or visa versa.
9117         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
9118         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
9119         when transitioning from all exceptions disabled to any exception
9120         enabled or visa versa.
9121         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
9122         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
9123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
9124         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
9125         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
9126         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
9128 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
9130         [BZ #4465]
9131         * posix/unistd.h: Remove __THROW from fdatasync.
9133 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
9135         [BZ #4465]
9136         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
9138 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
9140         * stdio-common/vfprintf.c (process_string_arg): Optimize
9141         ridiculous precision in wide char code printing multi-byte string.
9142         Reported by Jim Meyering <jim@meyering.net>.
9144         [BZ #4131]
9145         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
9146         boundaries to work around systems with overlapping binary loading.
9147         Based on a patch by Suzuki <suzuki@in.ibm.com>.
9149 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
9151         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
9152         __mbsnrtowcs after last change.
9154         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
9155         (get_ident): Likewise.
9157 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
9159         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
9160         with setting the sticky bit.
9161         * math/test-misc.c (main): Add more truncation tests.
9163 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
9165         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
9166         double in the function declaration.
9167         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
9168         double in the function declaration.
9169         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9170         float in the function declaration.
9171         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9172         float in the function declaration.
9174         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
9175         denormal operands.  Do not generate FP_EX_DENORM exception.
9176         (FP_UNPACK_RAW_EP): Ditto.
9177         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
9178         undefined _FP_UNPACK_RAW_E.
9179         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
9180         undefined _FP_UNPACK_RAW_EP.
9181         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
9182         undefined _FP_PACK_RAW_E.
9183         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
9184         undefined _FP_PACK_RAW_EP.
9186         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
9187         _FP_FRAC_COPY_2.
9188         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
9189         _FP_FRAC_COPY_4.
9191 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
9192             Jakub Jelinek  <jakub@redhat.com>
9194         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
9195         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
9196         this case.
9197         * soft-fp/op-common.h (FP_TRUNC): Ditto.
9199 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
9201         * math/test-misc.c (main): Add tests for rounding long double
9202         values close to smallest double denormalized value to double.
9204 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
9206         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
9207         condition for truncating to 0.  Set sticky bit for such
9208         truncation.
9210 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
9212         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
9213         fixed length array for ignore.
9215 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
9217         [BZ #4438]
9218         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
9219         stack for large precisions.
9220         * stdio-common/test-vfprintf.c (main): Add test for large
9221         precision.
9223 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
9225         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
9226         for exponent 0.
9227         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
9229         [BZ #4439]
9230         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
9231         account in the size check.
9232         * resolv/tst-inet_ntop.c: New test.
9233         * resolv/Makefile (tests): Add tst-inet_ntop.
9235 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
9236             Jakub Jelinek  <jakub@redhat.com>
9238         [BZ #4349]
9239         * malloc/malloc.c: Keep separate list for first blocks on the bin
9240         lists with a given size.  This helps skipping over list elements
9241         we know won't fit in two places.
9242         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
9244 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
9246         [BZ #4102]
9247         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
9248         label to Teredo tunnel addresses 2001://32.
9250 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
9252         * locale/programs/ld-collate.c (collate_read): Allow order_start
9253         after copy.
9255         * locale/programs/ld-collate.c (collate_read): Fix printing of
9256         error message.
9258         [BZ #3213]
9259         * locale/C-translit.h.in: Add entry for U2044.
9261         [BZ #4342]
9262         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
9263         hexa-decimal floats without exponent.
9264         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
9266 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
9268         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
9269         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
9270         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
9271         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
9272         GLIBC_2.6.
9273         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
9274         Add sched_getcpu.
9276 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
9278         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
9279         of 0 after the out_fail label.
9281 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
9283         [BZ #4406]
9284         * iconv/gconv_charset.h (strip): Allow ':'.
9285         * iconv/iconv_open.c (iconv_open): Adjust comment.
9287 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
9289         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
9290         version.
9292 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
9294         [BZ #4381]
9295         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
9296         alignment of buffer and tmp_buffer.
9297         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
9298         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
9299         alignment of buffer.
9300         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
9301         bigger than INT_MAX.
9302         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
9303         h_errnop arguments.  Fail if buflen is too small.
9304         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
9306 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
9308         [BZ #4405]
9309         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
9310         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
9312 2007-04-22  Roland McGrath  <roland@redhat.com>
9314         * elf/elf.h (NT_PRXFPREG): New macro.
9316 2007-04-19  Andreas Jaeger  <aj@suse.de>
9318         [BZ #3905]
9319         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
9320         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
9321         Added.
9323 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
9325         * include/sys/mman.h: Mark madvise hidden.
9326         * misc/madvise.c: Add libc_hidden_def.
9328 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
9330         * nis/nis_domain_of.c (__nis_domain_of): New function.
9331         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
9332         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
9333         * nis/nis_call.c (rec_dirsearch): Likewise.
9334         (first_shoot): Likewise.  Remove search_parent_first argument.
9335         (struct nis_server_cache): Rename search_parent_first field
9336         to search_parent.
9337         (nis_server_cache_search, nis_server_cache_add): Rename
9338         search_parent_first argument to search_parent.
9339         (__nisfind_server): Likewise.  If search_parent, call
9340         __nis_domain_of.
9342 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
9344         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
9346 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
9348         [BZ #4368]
9349         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
9351 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
9353         [BZ #4364]
9354         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
9356 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
9358         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
9359         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
9360         current number of locales in SUPPORTED.
9361         (create_archive): Initialize serial.
9362         (enlarge_archive): Preserve aliases rather than duplicating
9363         their locrecs.
9365 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
9367         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
9368         after _IO_un_link, not before it.
9370         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
9371         special case handling when wcp == wstartp + 1.  Fix a comment typo.
9372         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
9374 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
9376         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
9377         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
9378         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
9379         Remove __THROW.
9380         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
9381         _IO_file_xsgetn_maybe_mmap): Likewise.
9382         * libio/oldfileops.c (old_do_write): Likewise.
9383         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
9384         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
9385         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
9386         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
9387         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
9388         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
9389         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
9390         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
9391         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
9392         _IO_file_underflow, _IO_file_underflow_mmap,
9393         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
9394         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
9395         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
9396         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
9397         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
9398         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
9399         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
9400         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
9401         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
9402         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
9403         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
9404         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
9405         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
9406         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
9407         _IO_adjust_column_internal, _IO_default_uflow_internal,
9408         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
9409         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
9410         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
9411         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
9412         _IO_file_close_it_internal, _IO_file_underflow_internal,
9413         _IO_file_overflow_internal, _IO_file_attach_internal,
9414         _IO_file_fopen_internal, _IO_file_sync_internal,
9415         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
9416         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
9417         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
9418         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
9419         _IO_seekpos_unlocked): Likewise.
9420         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
9421         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
9423 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
9425         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
9426         argument in xmalloc size computation.
9428 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
9430         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
9431         math_opt_barrier and math_force_eval macros.
9433 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
9435         [BZ #3306]
9436         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
9437         * sysdeps/i386/fpu/math_private.h: New file.
9438         * sysdeps/x86_64/fpu/math_private.h: New file.
9439         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
9440         math_force_eval macros.  Use "+m" constraint on asm rather than
9441         "=m" and "m".
9442         * math/s_nextafter.c (__nextafter): Likewise.
9443         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
9444         Likewise.
9445         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
9446         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
9447         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9448         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
9449         math_opt_barrier and math_force_eval macros.
9450         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
9451         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
9452         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
9453         (__nexttoward): Use math_opt_barrier and
9454         math_force_eval macros.  Use "+m" constraint on asm rather than
9455         "=m" and "m".  Only use asm to force double result if
9456         FLT_EVAL_METHOD is 2.
9457         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
9458         (__nexttowardf): Use math_opt_barrier and
9459         math_force_eval macros.  Use "+m" constraint on asm rather than
9460         "=m" and "m".  Only use asm to force double result if
9461         FLT_EVAL_METHOD is not 0.
9462         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
9463         (__nexttowardf): Use math_opt_barrier and
9464         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
9465         x to float using asm.
9466         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
9467         (__nldbl_nexttowardf): Use math_opt_barrier and
9468         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
9469         x to float using asm.
9470         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
9471         (__nexttowardf): Use math_opt_barrier and math_force_eval
9472         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
9473         * math/bug-nextafter.c (zero, inf): New variables.
9474         (main): Add new tests.
9475         * math/bug-nexttoward.c (zero, inf): New variables.
9476         (main): Add new tests.
9478 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
9480         [BZ #3427]
9481         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
9482         exceptions both in SW and MXCSR.
9483         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
9484         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
9485         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
9486         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9487         in MXCSR if SSE is available.
9488         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
9489         and ldsodefs.h.
9490         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
9491         Fix comment typo.
9492         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
9493         Return 0 rather than 1.
9494         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
9495         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
9496         * math/test-fenv.c (feholdexcept_tests): New function.
9497         (main): Call it.
9499 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
9501         [BZ #3427]
9502         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9503         in SW.
9505 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
9507         [BZ #4344]
9508         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
9509         Reported by David Anderson <davea42@earthlink.net>.
9511 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
9513         * posix/sys/wait.h: Remove unnecessary forward declaration.
9515 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
9517         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
9518         with obj->do_servers after first_shoot.
9520 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
9522         * posix/Makefile (routines): Add sched_cpucount.
9523         (tests): Add tst-cpucount.
9524         * posix/sched_cpucount.c: New file.
9525         * posix/tst-cpucount.c: New file.
9526         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
9527         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
9528         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
9529         * posix/sched.h: Define CPU_COUNT.
9531 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
9533         * posix/fnmatch.c (STRUCT): Define.
9534         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
9535         * posix/fnmatch_loop.c (struct STRUCT): New type.
9536         (FCT): Add ends argument.  If ends != NULL and normal * is
9537         seen in the pattern, store current pattern and string pointers
9538         and return.  Adjust recursive calls.
9539         (EXT): Adjust FCT callers.
9540         (STRUCT): Undef at the end of the file.
9541         * posix/Makefile (tests): Add tst-fnmatch2.
9542         * posix/tst-fnmatch2.c: New test.
9544 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
9546         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
9547         and 1 on failure.
9549         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
9550         Change last argument to unsigned int.
9552 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
9554         * scripts/check-local-headers.sh: Filter out sys/capability.h.
9556 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
9558         * config.h.in (HAVE_LIBCAP): Add.
9559         * nscd/selinux.h: Include sys/capability.h rather than non-existent
9560         sys/capabilities.h.
9561         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
9562         free_caps.  Cast away const from 4th cap_set_flag argument.
9564 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
9566         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
9567         GLIBC_2.6.
9568         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9569         Add sync_file_range.
9570         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
9572 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
9574         * sysdeps/powerpc/bits/atomic.h
9575         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
9576         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
9577         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9578         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
9579         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9580         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
9581         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
9582         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9583         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9584         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9585         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
9586         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9587         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9588         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9589         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9590         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
9591         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9592         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
9593         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9594         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
9596 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
9598         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9599         (__cache_line_size): Define the variable here.  Add
9600         attribute_hidden, remove weak_extern.
9601         (__libc_start_main): Set __cache_line_size
9602         unconditionally.
9603         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
9604         (__cache_line_size): Define the variable here.  Add
9605         attribute_hidden, remove weak_extern.
9606         (DL_PLATFORM_AUXV): Set __cache_line_size
9607         unconditionally.
9608         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
9609         weak_extern, add attribute_hidden.
9610         (__elf_machine_runtime_setup): Assume __cache_line_size is always
9611         defined in ld.so.
9612         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
9613         definition.
9614         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
9616 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
9618         [BZ #4276]
9619         * timezone/africa: Update from tzdata2007d.
9620         * timezone/asia: Likewise.
9621         * timezone/australasia: Likewise.
9622         * timezone/backward: Likewise.
9623         * timezone/europe: Likewise.
9624         * timezone/iso3166.tab: Likewise.
9625         * timezone/leapseconds: Likewise.
9626         * timezone/northamerica: Likewise.
9627         * timezone/southamerica: Likewise.
9628         * timezone/zone.tab: Likewise.
9630         * timezone/private.h: Update from tzcode2007d.
9631         * timezone/zdump.c: Likewise.
9632         * timezone/zic.c: Likewise.
9634 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
9636         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
9637         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
9638         variables.
9639         (nis_server_cache_search, nis_server_cache_add): New functions.
9640         (__nisfind_server): Use them.  Add dbp and flags argument, if
9641         call __nisbind_create.
9642         (__nisbind_create): Add server_used and current_ep arguments,
9643         only call __nis_findfastest if server_used is ~0.
9644         (__do_niscall2, __prepare_niscall): Adjust callers.
9645         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
9646         ckey_cache_euid, ckey_cache_lock): New variables.
9647         (get_ckey): New function.
9648         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
9649         __pmap_getnisport.  Save __pmap_getnisport result in
9650         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
9651         key.
9652         * nis/nis_lookup.c (nis_lookup): Likewise.
9653         * nis/nis_table.c (nis_list): Likewise.
9654         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
9655         prototypes.
9657         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
9658         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
9659         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
9660         _nss_nisplus_getservbyport_r): Likewise.
9661         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
9662         _nss_nisplus_getnetbyaddr_r): Likewise.
9663         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
9664         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
9665         _nss_nisplus_getntohost_r): Likewise.
9666         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
9667         _nss_nisplus_getrpcbynumber_r): Likewise.
9669 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
9671         * configure.in (libc_cv_gnu89_inline): Only do compile test.
9672         * configure: Rebuilt.
9674         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
9675         bit-fields.
9676         * soft-fp/extended.h (_FP_UNION_E): Likewise.
9678 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
9680         [BZ #2831]
9681         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
9682         bit-fields.
9684 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
9686         * nscd/gai.c: Include alloca.h.
9687         (__libc_use_alloca): Define.
9689 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
9691         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
9692         smaller scopes.
9693         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
9694         (DL_DST_REQUIRED): Adjust user.
9696         * include/dlfcn.h (struct link_map): New forward decl.
9698         * inet/getnameinfo.c: Include stddef.h.
9699         (getnameinfo): Use offsetof.
9701         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
9703         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
9705         * string/strerror_l.c: Include stdlib.h.
9707         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
9708         * config.make.in (gnu89-inline-CFLAGS): New variable.
9709         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
9710         -std=gnu99.
9711         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
9712         * argp/argp.h: Use it.
9713         * bits/mathinline.h: Likewise.
9714         * bits/sigset.h: Likewise.
9715         * bits/string.h: Likewise.
9716         * ctype/ctype.h: Likewise.
9717         * hurd/hurd.h: Likewise.
9718         * hurd/hurd/fd.h: Likewise.
9719         * hurd/hurd/port.h: Likewise.
9720         * hurd/hurd/signal.h: Likewise.
9721         * hurd/hurd/threadvar.h: Likewise.
9722         * hurd/hurd/userlink.h: Likewise.
9723         * io/sys/stat.h: Likewise.
9724         * libio/bits/stdio.h: Likewise.
9725         * libio/bits/stdio2.h: Likewise.
9726         * mach/lock-intern.h: Likewise.
9727         * mach/mach/mig_support.h: Likewise.
9728         * math/bits/cmathcalls.h: Likewise.
9729         * posix/bits/unistd.h: Likewise.
9730         * socket/bits/socket2.h: Likewise.
9731         * stdlib/bits/stdlib.h: Likewise.
9732         * stdlib/stdlib.h: Likewise.
9733         * string/argz.h: Likewise.
9734         * string/bits/string2.h: Likewise.
9735         * string/bits/string3.h: Likewise.
9736         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
9737         * sysdeps/generic/inttypes.h: Likewise.
9738         * sysdeps/generic/machine-lock.h: Likewise.
9739         * sysdeps/generic/machine-sp.h: Likewise.
9740         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
9741         * sysdeps/i386/i486/bits/string.h: Likewise.
9742         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
9743         * sysdeps/mach/alpha/machine-lock.h: Likewise.
9744         * sysdeps/mach/alpha/machine-sp.h: Likewise.
9745         * sysdeps/mach/i386/machine-lock.h: Likewise.
9746         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9747         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
9748         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
9749         * sysdeps/s390/bits/string.h: Likewise.
9750         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
9751         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
9752         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
9753         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
9754         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9755         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
9756         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
9757         * wcsmbs/bits/wchar2.h: Likewise.
9758         * wcsmbs/wchar.h: Likewise.
9759         * stdlib/gmp.h: Likewise.  Include <features.h> to get
9760         __extern_inline definition.
9762 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
9764         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
9765         NULL.
9767         [BZ #3919]
9768         * math/libm-test.inc (log_test): Test -Inf and NaN.
9769         (log10_test, log1p_test, log2_test): Test -Inf.
9770         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
9771         FE_INVALID when argument is qNaN.
9772         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
9773         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
9774         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
9775         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
9776         andb $1, %ah with testb $1, %ah, don't test for parity, instead
9777         testb $4, %ah and jump if non-zero.
9778         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
9779         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
9781         [BZ #4101]
9782         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
9783         ancestors with the same depths.
9784         Patch by Niels Moeller <nisse@lysator.liu.se>.
9785         (filter_doc): Don't crash if argp is NULL.
9786         * argp/Makefile (tests): Add tst-argp2.
9787         * argp/tst-argp2.c: New test.
9789         [BZ #4130]
9790         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
9791         open_not_cancel_2.
9792         (updwtmp_file): Likewise.
9794         [BZ #4181]
9795         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
9796         (inet6_opt_append): Don't check extlen is big enough if extbuf
9797         is NULL.
9798         (inet6_opt_finish): Likewise.
9799         * inet/Makefile (tests): Add test-inet6_opt.
9800         * inet/test-inet6_opt.c: New test.
9802         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
9803         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
9804         NLMSG_ERR.  Instead use a page sized buffer.
9805         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
9806         buffer.
9808 2007-03-14  Richard Henderson  <rth@redhat.com>
9810         * sysdeps/alpha/fpu/s_llround.c: New file.
9811         * sysdeps/alpha/fpu/s_llroundf.c: New file.
9812         * sysdeps/alpha/fpu/s_lround.c: New file.
9813         * sysdeps/alpha/fpu/s_lroundf.c: New file.
9814         * sysdeps/alpha/fpu/s_round.c: New file.
9815         * sysdeps/alpha/fpu/s_roundf.c: New file.
9816         * sysdeps/alpha/fpu/s_trunc.c: New file.
9817         * sysdeps/alpha/fpu/s_truncf.c: New file.
9819         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
9820         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
9821         * sysdeps/alpha/fpu/s_floor.c: Likewise.
9822         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
9823         * sysdeps/alpha/fpu/s_rint.c: Likewise.
9824         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
9826         * sysdeps/alpha/fpu/s_fmax.S: New file.
9827         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
9828         * sysdeps/alpha/fpu/s_fmin.S: New file.
9829         * sysdeps/alpha/fpu/s_fminf.S: New file.
9830         * sysdeps/alpha/fpu/s_isnan.c: New file.
9831         * sysdeps/alpha/fpu/s_isnanf.c: New file.
9832         * sysdeps/alpha/fpu/s_llrint.c: New file.
9833         * sysdeps/alpha/fpu/s_llrintf.c: New file.
9834         * sysdeps/alpha/fpu/s_lrint.c: New file.
9835         * sysdeps/alpha/fpu/s_lrintf.c: New file.
9836         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
9837         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
9839         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
9840         (__fdimf, fdimf, __fdim, fdim): Remove.
9841         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
9842         (__isnanf, __isnan, __isnanl): New.
9844 2007-03-13  Richard Henderson  <rth@redhat.com>
9846         * sysdeps/ieee754/ldbl-128/Makefile: New file.
9848 2007-03-13  Richard Henderson  <rth@redhat.com>
9850         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
9851         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
9852         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
9853         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
9854         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
9855         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
9857 2007-03-13  Richard Henderson  <rth@redhat.com>
9859         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
9860         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
9861         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
9862         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
9863         Move to dl-auxv.h; initialize instead of extern weak.
9864         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
9865         weak symbol.
9866         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
9867         Extern instead of initialized.
9869 2007-03-13  Richard Henderson  <rth@redhat.com>
9871         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
9872         __sigsuspend_nocancel.
9874 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
9876         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
9877         172.16/12 address range.
9879 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
9881         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
9882         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
9883         message.
9885 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
9887         [BZ #4069]
9888         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
9889         earlier.
9890         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
9892         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
9893         for x qNaN and y either +-inf or non-integer value.
9894         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
9895         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
9896         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9898 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
9900         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
9901         from sysdep_headers.
9903 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
9905         * time/tzfile.c (find_transition): Instead of a linear search try to
9906         guess the transition index, use a linear search if the result is at
9907         most 10 transitions away from the guess or binary search otherwise.
9909 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
9911         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
9912         memory reallocation.
9914 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
9916         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
9917         and fix some typos.
9918         Optimize use of TOLOWER.
9920         [BZ #3325]
9921         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
9922         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9923         * sysdeps/i386/fpu/e_fmod.S: Likewise.
9925         [BZ #3458]
9926         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
9927         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
9929         [BZ #4076]
9930         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
9931         (open_dir_stream): Likewise.
9932         * io/Makefile (tests): Add bug-ftw5.
9933         * io/bug-ftw5.c: New file.
9935         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
9936         * nscd/servicescache.c (cache_addserv): Likewise.
9938         * nscd/grpcache.c (cache_addgr): In case a record changed on
9939         refresh, adjust key_copy.
9941         [BZ #4074]
9942         * nscd/pwdcache.c (cache_addpw): In case a record changed on
9943         refresh, adjust key_copy.
9945         [BZ #4070]
9946         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
9947         special cases.
9948         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
9950 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
9952         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
9953         optimization.
9955         * stdio-common/vfscanf.c: Small cleanups throughout.
9957 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
9959         [BZ #3325]
9960         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
9961         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9962         * sysdeps/i386/fpu/e_fmod.S: Likewise.
9963         Patch by Jared Casper <jaredcasper@gmail.com>.
9965         * sysdeps/unix/closedir.c: Outside libc don't use locking.
9966         * sysdeps/unix/opendir.c: Likewise.
9967         * sysdeps/unix/readdir.c: Likewise.
9969         [BZ #2211]
9970         * stdio-common/vfscanf.c: Handle localized digits etc for floating
9971         point numbers.
9972         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
9974         * stdio-common/vfscanf.c: Fix problems in width accounting.
9975         * stdio-common/tst-sscanf.c (double_tests): New tests.
9976         (main): Hook them up.
9978         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
9979         More simplifications of floating-point reader.
9981         * stdio-common/Makefile (tests): Add tst-swscanf.
9982         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
9983         testing.
9984         * stdio-common/tst-swscanf.c: New file.
9986 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
9988         [BZ #2633]
9989         * libio/stdio.h: Define struct _IO_FILE in global namespace.
9990         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
9991         Remove using for __jmp_buf_tag.
9992         * locale/locale.h (struct lconv): Also define in std namespace.
9993         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
9995         [BZ #3842]
9996         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
9997         using __libc_enable_secure.
9999         [BZ #3818]
10000         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
10002         [BZ #3745]
10003         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
10004         of names for ellipsises.
10006         [BZ #3348]
10007         * malloc/memusage.sh: Cleanups.
10008         * debug/xtrace.sh: Quoting and trap changes.
10010 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
10012         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
10014         * locale/iso-3166.def: Update entry for Serbia.
10015         * locale/iso-4217.def: Define RSD, remove CSD.
10017         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
10018         and 64-bit operations.
10020         [BZ #4040]
10021         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
10022         16-bit operations.
10024         * nscd/nscd.c (parse_opt): One more conversion to use send instead
10025         of writev.
10027 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
10029         [BZ #3991]
10030         * assert/assert.h (assert): Simplify.
10031         (assert_perror): Likewise.
10032         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
10034         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
10035         reqdata.
10037         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
10038         change: don't pass NULL in place of an integer.
10040 2007-02-02  Bruno Haible  <bruno@clisp.org>
10042         [BZ #3954]
10043         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
10044         Add mapping for U+327E.
10045         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
10046         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10047         mapping of 0xD9 0xE8.
10048         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
10049         mapping of U+327E.
10050         Reported by Jungshik Shin <jungshik@google.com>.
10052         [BZ #3955]
10053         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10054         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
10055         Reported by Jungshik Shin <jungshik@google.com>.
10057 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
10059         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
10060         byte variants.
10062         [BZ #4040]
10063         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
10064         byte variants.  Patch mostly be tom@tommay.net.
10066 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
10068         [BZ #3996]
10069         * posix/glob.c (attribute_hidden): Define if not defined.
10070         (glob): Unescape dirname, filename or username when needed and not
10071         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
10072         is NULL.  Handle unescaped [ in pattern without closing ].
10073         Don't pass GLOB_CHECK down to recursive glob for directories.
10074         (__glob_pattern_type): New function.
10075         (__glob_pattern_p): Implement using __glob_pattern_type.
10076         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
10077         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
10078         Remove unreachable code.
10079         * posix/globtest.sh: Add a couple of new tests.
10081 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
10083         * po/ru.po: Update from translation team.
10085 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
10087         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
10088         to the list of i486+ CPUs.
10089         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10091 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
10093         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
10094         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
10095         references.
10097 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
10099         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
10101         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
10102         * resolv/res_mkquery.c: Define __res_nopt.
10103         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
10104         try adding EDNS0 record.
10105         * resolv/res_send.c (send_dg): If request failed with FORMERR and
10106         EDNS0 record was send make sure we don't try it again.
10107         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
10108         * include/resolv.h: Declare __res_nopt.
10110 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
10112         [BZ #3944]
10113         * time/strptime_l.c (__strptime_internal): Set have_mon for
10114         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
10115         have been computed from tm_yday and tm_year.  Don't crash
10116         in day_of_the_week or day_of_the_year if not have_mon
10117         and tm_mon contains bogus value.
10118         * time/Makefile (tests): Add tst-strptime3.
10119         * time/tst-strptime3.c: New test.
10121 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
10123         [BZ #3957]
10124         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
10125         bit for RE_HAT_LISTS_NOT_NEWLINE.
10126         (build_charclass_op): Remove bogus comment.
10127         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
10128         * posix/bug-regex27.c: New test.
10129         * posix/bug-regex28.c: New test.
10131 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
10133         * po/sv.po: Update from translation team.
10135 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
10137         * nscd/nscd_helper.c (open_socket): Minor size optimization.
10139 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
10141         * include/locale.h (__uselocale): Add libc_hidden_proto.
10142         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
10144         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
10145         gettimeofday.
10147 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
10149         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
10150         returning.
10151         (PTR_DEMANGLE): Real definition now that it's not the same as
10152         PRT_MANGLE anymore.
10153         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10155         * string/strerror_l.c: New file.
10156         * string/Makefile (routines): Add strerror_l.
10157         * string/string.h: Declare strerror_l.
10158         * string/Versions: Export strerror_l for GLIBC_2.6.
10160 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
10162         * nscd/nscd_helper.c (open_socket): Now takes request type and key
10163         as parameter.  Construct request record.  Try sending request
10164         before the first poll use, it usually succeeds.  Adjust all
10165         callers.
10166         * nscd/nscd-client.h: Define MAXKEYLEN.
10167         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
10169 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
10171         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
10172         from return value.
10173         * nscd/nscd_helper.c: Include string.h.
10174         (__nscd_cache_search): Remove const qualifier from return value.
10175         On strict alignment architectures check hash entry and data head
10176         alignment.
10177         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
10178         mmapped data during GC cycle contains garbage.  If
10179         __nscd_drop_map_ref fails, decrement mapped->counter when returning
10180         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
10181         dropped to 0.
10182         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
10183         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
10184         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
10185         * nscd/nscd_getai.c (__nscd_getai): Likewise.
10186         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
10188 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
10190         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
10192 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
10194         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
10195         names not numbers in cfi_*.
10197 2007-01-26  Andreas Jaeger  <aj@suse.de>
10199         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
10200         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
10201         Correct values of PER_HPUX and PER_OSF4.
10203 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
10205         * elf/dl-minimal.c: Undefine _itoa first.
10206         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
10207         * malloc/mtrace.c: Revert last change.
10208         * posix/wordexp.c: Likewise.
10210 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
10212         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
10213         and __geode__ to the list of i486+ CPUs.
10214         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10216 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
10218         * stdio-common/_itoa.c: Include <limits.h>.
10219         * stdio-common/_itowa.c: Likewise.
10221 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
10223         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
10224         platforms.
10225         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
10226         64-bit platforms.
10227         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
10228         possible.
10229         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
10230         if possible.
10232         [BZ #3902]
10233         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
10234         * stdio-common/Makefile (tests): Add bug17.
10235         * stdio-common/bug17.c: New file.
10237 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
10239         * iconvdata/brf.c: New file.
10240         * iconvdata/testdata/BRF: New file.
10241         * iconvdata/testdata/BRF..UTF8: New file.
10242         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
10243         * iconvdata/Makefile: Add rules to build BRF.
10244         * iconvdata/TESTS: Add BRF entry.
10245         * iconvdata/gconv-modules: Likewise.
10246         * iconvdata/tst-tables.sh: Likewise.
10248 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
10250         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
10251         type `long long int', not `long int'.
10252         (wcstoq): Likewise.
10254 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
10256         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
10257         of values on 64-bit platforms which are too large.
10259 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
10260             Joe Kerian  <jkerian@us.us.ibm.com>
10262         [BZ #2749]
10263         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
10264         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
10265         (__copysignl): Use signbit() for comparison.
10266         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
10267         SET_LDOUBLE_WORDS64.
10269         [BZ #2423, #2749]
10270         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
10271         (__ceill): Remove calls to fegetround(), fesetround().
10272         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
10273         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
10274         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
10276 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
10278         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
10280         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
10282 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
10284         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
10285         demangle pointer.
10286         * csu/libc-start.c: Likewise.
10288 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
10290         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
10291         really work anyway.
10293 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
10295         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
10296         users.
10297         (handle_request): Remove unnecessary tests.
10299         * nscd/cache.c (cache_add): Record the failure to add to the cache.
10301 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
10303         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
10304         workbits in semi-raw fraction.
10306         * math/test-misc.c: Add new tests.
10308 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
10310         * math/basic-test.c: Include test-skeleton.c.
10311         (TEST_TRUNC): Define.
10312         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
10313         (main): Rename to ...
10314         (do_test): ...this.  Run new tests.
10315         (TEST_FUNCTION): Define.
10317 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
10318             Joe Kerian  <jkerian@us.us.ibm.com>
10320         [BZ #2749]
10321         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
10322         handling for high words.
10323         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
10324         and overflow for infinity.
10326 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
10328         * nscd/connections.c (handle_request): Add a __builtin_expect.
10330         * nscd/connections.c (serv2db): Change type into structure which
10331         also says whether this is a request for data.  Renamed to
10332         servinfo.  All users changed.
10333         (handle_request): Much simpler test whether we should search the cache.
10335         * nscd/connections.c (handle_request): Fix thinko in selinux test
10336         invocation.
10338         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
10339         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
10340         it before getting dl_load_lock and then relock.
10341         (_dl_lookup_symbol_x): Pass flags to add_dependency.
10342         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
10343         case we unlocked the scope.
10344         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
10345         _dl_lookup_symbol_x in case we locked the scope.
10346         (_dl_profile_fixup): Likewise.
10347         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
10348         set DL_LOOKUP_SCOPE_LOCK.
10350 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
10352         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
10353         CFLAGS-getsrvbynpt_r.c.
10354         * nscd/getsrvbynm_r.c: New file.
10355         * nscd/getsrvbypt_r.c: New file.
10356         * nscd/nscd_getserv_r.c: New file.
10357         * nscd/servicescache.c: New file.
10358         * nscd/Makefile (routines): Add nscd_getserv_r.
10359         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
10360         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
10361         CFLAGS-getsrvbypt_r.c.
10362         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
10363         table.  Add entries for services database.
10364         * nscd/connections.c (serv2str): Mark as const.  Add entries for
10365         services database.
10366         (dbs): Add .reset_res and servdb initialization.
10367         (serv2db): Add entries for services database.
10368         (verify_persistent_db): Accept dbnr == servdb.
10369         (invalidate_cache): Rewrite database name recognition to use a table.
10370         Call res_init() if .reset_res is set for database.
10371         (handle_request): Add code to handle services database.
10372         * nscd/gai.c: Don't define __getservbyname_r.
10373         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
10374         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
10375         (serv_response_header): Define.
10376         (struct datahead): Add serv_response_header member.
10377         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
10378         using table.
10379         * nscd/nscd.conf: Add entries for services database.
10380         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
10381         Declare serv_iov_disabled.
10382         Declare addservbyname, readdservbyname, addservbyport, and
10383         readdservbyport.
10384         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
10385         (find_db): Fix error message.
10386         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
10387         __nscd_getservbyname_r, and __nscd_getservbyport_r.
10388         * nscd/selinux.c (perms): Add entries for services database.
10389         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
10390         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
10392         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
10393         * nscd/hstcache.c: Likewise.
10394         * nscd/pwdcache.c: Likewise.
10396         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
10397         computation of keylen.
10399         * include/string.h: Only redefine strndupa if this is really for
10400         libc code.
10402 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
10404         * nscd/nscd_gethst_r.c: Minor cleanups.
10406         * nscd/connections.c (handle_request): Check selinux permissions
10407         for all non-admin commands.
10409         * sysdeps/i386/i486/bits/atomic.h: Define
10410         atomic_compare_and_exchange_val_acq,
10411         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
10412         using __sync_* built-ins for gcc >= 4.1.
10413         * sysdeps/x86_64/bits/atomic.h: Likewise.
10415         [BZ #3840]
10416         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
10417         and .oS.d files.
10419 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
10421         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
10422         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
10423         (do_test): Check errno and exit(0) if ENOSYS.
10425 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
10427         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
10428         thousands separators.
10429         * stdlib/Makefile: Add rules to build and run tst-strtod4.
10430         * stdlib/tst-strtod4.c: New test.
10432         [BZ #3855]
10433         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
10434         hexadecimal digit should accept just the initial 0.
10435         * stdlib/tst-strtod2.c (tests): New variable.
10436         (do_test): Run several tests rather than just one.
10438 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
10440         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
10441         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
10443 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
10445         * io/fts.c: Make sure fts_cur is always valid after return from
10446         fts_read.
10447         Patch by Miloslav Trmac <mitr@redhat.com>.
10449 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
10451         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
10452         (R_MIPS_NUM): Bump by 1.
10454 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
10456         * posix/execvp.c: Include alloca.h.
10457         (allocate_scripts_argv): Renamed to...
10458         (scripts_argv): ... this.  Don't allocate buffer here nor count
10459         arguments.
10460         (execvp): Use alloca if possible.
10461         * posix/Makefile: Add rules to build and run tst-vfork3 test.
10462         * posix/tst-vfork3.c: New test.
10464 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
10466         * string/Makefile (tst-strxfrm2-ENV): Define.
10467         * stdlib/Makefile (tst-strtod3-ENV): Define.
10469 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
10471         * posix/getconf.c: Update copyright year.
10472         * nss/getent.c: Likewise.
10473         * iconv/iconvconfig.c: Likewise.
10474         * iconv/iconv_prog.c: Likewise.
10475         * elf/ldconfig.c: Likewise.
10476         * catgets/gencat.c: Likewise.
10477         * csu/version.c: Likewise.
10478         * elf/ldd.bash.in: Likewise.
10479         * elf/sprof.c (print_version): Likewise.
10480         * locale/programs/locale.c: Likewise.
10481         * locale/programs/localedef.c: Likewise.
10482         * nscd/nscd.c (print_version): Likewise.
10483         * debug/xtrace.sh: Likewise.
10484         * malloc/memusage.sh: Likewise.
10485         * malloc/mtrace.pl: Likewise.
10486         * debug/catchsegv.sh: Likewise.
10488 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
10490         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
10491         attempts.
10493 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
10495         * posix/wordexp.c: Remove some unnecessary tests.
10497 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
10499         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
10500         blacklist the group till after we look it up.
10502 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
10504         * include/atomic.h (atomic_forced_read): New macro.
10506 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
10508         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
10510 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
10512         * nss/getXXbyYY_r.c: Include atomic.h.
10513         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
10514         add atomic_write_barrier () in between.
10516         * stdlib/Makefile (tests): Add tst-makecontext.
10517         * stdlib/tst-makecontext.c: New test.
10519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
10520         (__makecontext): Don't realign uc_mcontext.uc_regs.
10522 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
10524         * elf/dl-support.c: Include dl-procinfo.h.
10525         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
10526         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
10527         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
10528         Define.
10529         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
10530         hardcoded constants.
10531         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
10532         PPC_PLATFORM_* macros for array designators.
10534 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
10536         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
10537         names to the beginning.
10538         (_dl_powerpc_platforms): Add "power6x".
10539         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10540         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
10541         (_DL_PLATFORMS_COUNT): Increase.
10542         (_dl_string_platform): Handle power6x case.
10543         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
10544         PPC_FEATURE_POWER6_EXT): Define.
10545         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
10547 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
10549         [BZ #3747]
10550         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
10551         [-2^31 .. 2^31) range.
10552         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
10553         targets.
10554         * stdlib/tst-rand48-2.c: New test.
10555         * stdlib/Makefile (tests): Add tst-rand48-2.
10557 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
10559         * misc/tst-pselect.c (do_test): Fix sigblock argument.
10561 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
10563         * misc/tst-pselect.c (do_test): Make sure the helper process is
10564         terminating when the test is aborted.
10566 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
10568         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
10569         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
10570         Handle relatime mount option.
10572         [BZ #2337]
10573         * libio/Makefile (tests): Add tst-setvbuf1.
10574         * libio/tst-setvbuf1.c: New file.
10576 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
10578         [BZ #2337]
10579         * libio/genops.c (__uflow): Fix a typo.
10580         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
10581         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
10582         the narrow buffer size.
10584 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
10586         [BZ #2337]
10587         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
10588         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
10589         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
10590         in _flags.
10591         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
10592         _IO_wstr_finish): Likewise.
10593         * libio/wmemstream.c (open_wmemstream): Likewise.
10594         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
10595         even for wide streams.
10597 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
10599         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
10600         kernel-features.h.
10602 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
10604         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
10605         separators also if no non-zero digits found.
10606         * stdlib/Makefile (tests): Add tst-strtod3.
10608 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
10610         [BZ #3632]
10611         * include/features.h: Fix comment about default value for
10612         _POSIX_C_SOURCE.
10614         [BZ #3664]
10615         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
10616         empty parsed strings.
10617         * stdlib/Makefile (tests): Add tst-strtod2.
10618         * stdlib/tst-strtod2.c: New file.
10620         [BZ #3673]
10621         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
10622         computation.
10623         * stdlib/Makefile (tests): Add tst-atof2.
10624         * stdlib/tst-atof2.c: New file.
10626         [BZ #3674]
10627         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
10628         correctly if removing trailing zero of hex-float.
10629         * stdlib/Makefile (tests): Add tst-atof1.
10630         * stdlib/tst-atof1.c: New file.
10632 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
10634         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
10635         Start searching for next comma at p rather than rest.
10636         * misc/Makefile (tests): Add tst-mntent2.
10637         * misc/tst-mntent2.c: New test.
10639         * misc/getusershell.c (initshells): Check for integer overflows.
10640         Make strings buffer one bigger as fgets always succeeds when second
10641         argument is 1.  Don't use calloc for shells array.  Disallow
10642         / as shell.
10644 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
10646         * malloc/memusage.c: Handle realloc with new size of zero and
10647         non-NULL pointer correctly.
10648         (me): Really write first record twice.
10649         (struct entry): Make format bi-arch safe.
10650         (dest): Write out more realloc statistics.
10651         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
10653 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
10655         * nis/nis_subr.c (nis_getnames): Revert last change.
10657 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
10659         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
10660         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
10661         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
10662         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
10663         ENOTTY.
10664         * io/Makefile: Add rules to build and run tst-ttyname_r test.
10665         * io/tst-ttyname_r.c: New test.
10667 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10669         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
10671 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
10673         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
10674         jump table entries.
10676 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
10678         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
10679         `clone' function to ensure proper unwinding stop of gdb.
10680         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
10682 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
10684         * nscd/nscd.init: Remove obsolete and commented-out -S option
10685         handling.
10687 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
10689         [BZ #3514]
10690         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
10692         [BZ #3515]
10693         * manual/string.texi (strtok): Remove duplicate paragraph.
10695 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10697         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
10698         libgcc not supporting `rflags' unwinding (register # >= 17).
10700 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
10702         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
10703         succeeded.
10705 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
10706             Jakub Jelinek  <jakub@redhat.com>
10707             Jan Kratochvil  <jan.kratochvil@redhat.com>
10709         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
10710         unwind information.
10711         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
10712         'restore_rt' even in the 'signal' directory.
10713         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
10715 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
10717         [BZ #3559]
10718         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
10719         malloc crashed.  Don't allocate memory unnecessarily in each
10720         loop.
10722 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
10724         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
10726 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
10728         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
10730 2006-11-18  Bruno Haible  <bruno@clisp.org>
10732         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
10733         __sysconf only after having tried to call getgroups32.
10735 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
10737         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
10738         addresses for IPv4 queries if they can be mapped.
10740 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
10742         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
10743         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
10744         (signmask): Add .size directive.
10745         (othermask): Add .type directive.
10747 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
10749         * po/nl.po: Update from translation team.
10751         * timezone/zdump.c: Redo fix for BZ #3137.
10753 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
10755         * nss/nss_files/files-alias.c (get_next_alias): Set line back
10756         to first_unused after parsing :include: file.
10758 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
10760         * timezone/africa: Update from tzdata2006o.
10761         * timezone/antarctica: Likewise.
10762         * timezone/asia: Likewise.
10763         * timezone/australasia: Likewise.
10764         * timezone/backward: Likewise.
10765         * timezone/europe: Likewise.
10766         * timezone/iso3166.tab: Likewise.
10767         * timezone/northamerica: Likewise.
10768         * timezone/southamerica: Likewise.
10769         * timezone/zone.tab: Likewise.
10771         * time/tzfile.c (__tzfile_read): Extend to handle new file format
10772         on machines with 64-bit time_t.
10774         * timezone/checktab.awk: Update from tzcode2006o.
10775         * timezone/ialloc.c: Likewise.
10776         * timezone/private.h: Likewise.
10777         * timezone/scheck.c: Likewise.
10778         * timezone/tzfile.h: Likewise.
10779         * timezone/tzselect.ksh: Likewise.
10780         * timezone/zdump.c: Likewise.
10781         * timezone/zic.c: Likewise.
10783         [BZ #3483]
10784         * elf/ldconfig.c (main): Call setlocale and textdomain.
10785         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
10787         [BZ #3480]
10788         * manual/argp.texi: Fix typos.
10789         * manual/charset.texi: Likewise.
10790         * manual/errno.texi: Likewise.
10791         * manual/filesys.texi: Likewise.
10792         * manual/lang.texi: Likewise.
10793         * manual/maint.texi: Likewise.
10794         * manual/memory.texi: Likewise.
10795         * manual/message.texi: Likewise.
10796         * manual/resource.texi: Likewise.
10797         * manual/search.texi: Likewise.
10798         * manual/signal.texi: Likewise.
10799         * manual/startup.texi: Likewise.
10800         * manual/stdio.texi: Likewise.
10801         * manual/sysinfo.texi: Likewise.
10802         * manual/syslog.texi: Likewise.
10803         * manual/time.texi: Likewise.
10804         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10806         [BZ #3465]
10807         * sunrpc/clnt_raw.c: Minimal message improvements.
10808         * sunrpc/pm_getmaps.c: Likewise.
10809         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
10810         * nis/nis_print_group_entry.c: Likewise.
10811         * locale/programs/repertoire.c: Likewise.
10812         * locale/programs/charmap.c: Likewise.
10813         * malloc/memusage.sh: Likewise.
10814         * elf/dl-deps.c: Likewise.
10815         * locale/programs/ld-collate.c: Likewise.
10816         * libio/vswprintf.c: Likewise.
10817         * malloc/memusagestat.c: Likewise.
10818         * sunrpc/auth_unix.c: Likewise.
10819         * sunrpc/rpc_main.c: Likewise.
10820         * nscd/cache.c: Likewise.
10821         * locale/programs/repertoire.c: Unify output messages.
10822         * locale/programs/charmap.c: Likewise.
10823         * locale/programs/ld-ctype.c: Likewise.
10824         * locale/programs/ld-monetary.c: Likewise.
10825         * locale/programs/ld-numeric.c: Likewise.
10826         * locale/programs/ld-time.c: Likewise.
10827         * elf/ldconfig.c: Likewise.
10828         * nscd/selinux.c: Likewise.
10829         * elf/cache.c: Likewise.
10830         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
10832         [BZ #3451]
10833         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
10834         change atomic.
10835         (ceil): Likewise.
10837 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
10839         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
10840         if N is one bigger than return value.
10841         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
10842         and l1 last arguments, if buf is defined, verify the return value
10843         equals to strlen (buf) and verify no byte beyond passed length
10844         is modified.
10846 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
10848         * po/sv.po: Update from translation team.
10850 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
10852         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
10853         noinline attribute.
10855 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
10857         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
10858         noinline attribute.
10860         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
10861         Use __new_sys_siglist instead of _sys_siglist_internal as
10862         second macro argument.
10863         (_old_sys_siglist): Use declare_symbol_alias macro instead of
10864         strong_alias.
10866 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
10868         [BZ #3493]
10869         * posix/unistd.h (sysconf): Remove const attribute.
10871         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
10872         temporary or deprecated addresses.
10873         Patch by Sridhar Samudrala <sri@us.ibm.com>.
10875         * string/Makefile (tests): Add tst-strxfrm2.
10876         * string/tst-strxfrm2.c: New file.
10878 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
10880         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
10881         rather than r->r_brk.
10883 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
10885         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
10886         optimization even if needed > n.
10888         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
10889         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
10890         return false, otherwise return true.
10891         (cache_rpath): Return decompose_rpath return value.
10893 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
10895         * include/libc-symbols.h (declare_symbol): Rename to...
10896         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
10897         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
10898         .size directive.
10899         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
10900         changes.
10901         * sysdeps/gnu/siglist.c: Likewise.
10903 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
10905         * sysdeps/powerpc/fpu/bits/mathinline.h
10906         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
10907         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
10909 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
10911         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
10912         Update handling of cache descriptor 0x49 for new models.
10913         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
10914         Likewise.
10916 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
10918         * malloc/memusage.c (dest): Reset not_me back to false after
10919         printing statistics.
10921 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
10923         * configure.in: Work around ld --help change and avoid -z relro
10924         test completely if the architecture doesn't care about security.
10926 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
10928         * po/sv.po: Update from translation team.
10930 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
10932         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
10933         generate compatibility version.
10935 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
10937         * configure.in: Relax -z relro requirement a bit.
10939         * po/sv.po: Update from translation team.
10941 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
10943         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
10944         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
10945         * elf/dl-close.c (_dl_close_worker): Likewise.
10946         * elf/dl-open.c (_dl_open_worker): Likewise.
10947         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
10949 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
10951         * configure.in: Require assembler support for visibility, compiler
10952         support for visibility and aliases, linker support for various -z
10953         options.
10954         * Makeconfig: Remove conditional code which now is unnecessary.
10955         * config.h.in: Likewise.
10956         * config.make.in: Likewise.
10957         * dlfcn/Makefile: Likewise.
10958         * elf/Makefile: Likewise.
10959         * elf/dl-load.c: Likewise.
10960         * elf/rtld.c: Likewise.
10961         * include/libc-symbols.h: Likewise.
10962         * include/stdio.h: Likewise.
10963         * io/Makefile: Likewise.
10964         * io/fstat.c: Likewise.
10965         * io/fstat64.c: Likewise.
10966         * io/fstatat.c: Likewise.
10967         * io/fstatat64.c: Likewise.
10968         * io/lstat.c: Likewise.
10969         * io/lstat64.c: Likewise.
10970         * io/mknod.c: Likewise.
10971         * io/mknodat.c: Likewise.
10972         * io/stat.c: Likewise.
10973         * io/stat64.c: Likewise.
10974         * libio/stdio.c: Likewise.
10975         * nscd/Makefile: Likewise.
10976         * stdlib/Makefile: Likewise.
10977         * stdlib/atexit.c: Likewise.
10978         * sysdeps/generic/ldsodefs.h: Likewise.
10979         * sysdeps/i386/dl-machine.h: Likewise.
10980         * sysdeps/i386/sysdep.h: Likewise.
10981         * sysdeps/i386/i686/memcmp.S: Likewise.
10982         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
10983         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10984         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
10986         * Makerules: USE_TLS support is now default.
10987         * tls.make.c: Likewise.
10988         * csu/Versions: Likewise.
10989         * csu/libc-start.c: Likewise.
10990         * csu/libc-tls.c: Likewise.
10991         * csu/version.c: Likewise.
10992         * dlfcn/dlinfo.c: Likewise.
10993         * elf/dl-addr.c: Likewise.
10994         * elf/dl-cache.c: Likewise.
10995         * elf/dl-close.c: Likewise.
10996         * elf/dl-iteratephdr.c: Likewise.
10997         * elf/dl-load.c: Likewise.
10998         * elf/dl-lookup.c: Likewise.
10999         * elf/dl-object.c: Likewise.
11000         * elf/dl-open.c: Likewise.
11001         * elf/dl-reloc.c: Likewise.
11002         * elf/dl-support.c: Likewise.
11003         * elf/dl-sym.c: Likewise.
11004         * elf/dl-sysdep.c: Likewise.
11005         * elf/dl-tls.c: Likewise.
11006         * elf/ldconfig.c: Likewise.
11007         * elf/rtld.c: Likewise.
11008         * elf/tst-tls-dlinfo.c: Likewise.
11009         * elf/tst-tls1.c: Likewise.
11010         * elf/tst-tls10.h: Likewise.
11011         * elf/tst-tls14.c: Likewise.
11012         * elf/tst-tls2.c: Likewise.
11013         * elf/tst-tls3.c: Likewise.
11014         * elf/tst-tls4.c: Likewise.
11015         * elf/tst-tls5.c: Likewise.
11016         * elf/tst-tls6.c: Likewise.
11017         * elf/tst-tls7.c: Likewise.
11018         * elf/tst-tls8.c: Likewise.
11019         * elf/tst-tls9.c: Likewise.
11020         * elf/tst-tlsmod1.c: Likewise.
11021         * elf/tst-tlsmod13.c: Likewise.
11022         * elf/tst-tlsmod13a.c: Likewise.
11023         * elf/tst-tlsmod14a.c: Likewise.
11024         * elf/tst-tlsmod2.c: Likewise.
11025         * elf/tst-tlsmod3.c: Likewise.
11026         * elf/tst-tlsmod4.c: Likewise.
11027         * elf/tst-tlsmod5.c: Likewise.
11028         * elf/tst-tlsmod6.c: Likewise.
11029         * include/errno.h: Likewise.
11030         * include/link.h: Likewise.
11031         * include/tls.h: Likewise.
11032         * locale/global-locale.c: Likewise.
11033         * locale/localeinfo.h: Likewise.
11034         * malloc/arena.c: Likewise.
11035         * malloc/hooks.c: Likewise.
11036         * malloc/malloc.c: Likewise.
11037         * resolv/Versions: Likewise.
11038         * sysdeps/alpha/dl-machine.h: Likewise.
11039         * sysdeps/alpha/libc-tls.c: Likewise.
11040         * sysdeps/generic/ldsodefs.h: Likewise.
11041         * sysdeps/generic/tls.h: Likewise.
11042         * sysdeps/i386/dl-machine.h: Likewise.
11043         * sysdeps/ia64/dl-machine.h: Likewise.
11044         * sysdeps/ia64/libc-tls.c: Likewise.
11045         * sysdeps/mach/hurd/fork.c: Likewise.
11046         * sysdeps/mach/hurd/i386/tls.h: Likewise.
11047         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
11048         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
11049         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
11050         * sysdeps/s390/libc-tls.c: Likewise.
11051         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11052         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11053         * sysdeps/sh/dl-machine.h: Likewise.
11054         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11055         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11056         * sysdeps/x86_64/dl-machine.h: Likewise.
11058         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
11059         split out locking and parameter checking.
11060         (_dl_close): Call _dl_close_worker after locking and checking.
11061         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
11062         _dl_close.
11063         * elf/Makefile: Add rules to build and run tst-thrlock.
11064         * elf/tst-thrlock.c:  New file.
11066         [BZ #3426]
11067         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
11068         reality.
11070         [BZ #3429]
11071         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
11072         we are sure we do not need it anymore for _dl_close.  Also move
11073         the asserts inside the lock region.
11074         Patch mostly by Suzuki <suzuki@in.ibm.com>.
11076 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
11078         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
11079         argument.
11080         (_dl_lookup_symbol_x): Adjust caller.
11082         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
11083         _ns_global_scope.
11084         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
11086         * elf/dl-libc.c: Revert l_scope name changes.
11087         * elf/dl-load.c: Likewise.
11088         * elf/dl-object.c: Likewise.
11089         * elf/rtld.c: Likewise.
11090         * elf/dl-close.c (_dl_close): Likewise.
11091         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
11092         always use __rtld_mrlock_{change,done}.  Always free old scope list
11093         here if not l_scope_mem.
11094         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
11095         change.  Never free scope list here.  Just __rtld_mrlock_lock before
11096         the lookup and __rtld_mrlock_unlock it after the lookup.
11097         * elf/dl-sym.c: Likewise.
11098         * include/link.h (struct r_scoperec): Remove.
11099         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
11100         with l_scope_mem and l_scoperec_lock with l_scope_lock.
11102 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
11104         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
11106 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11108         * configure.in: Disable building profile libraries by default.
11110 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11112         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
11113         as signed longs, check for x_base + pos overflow.
11114         * sunrpc/Makefile (tests): Add tst-xdrmem2.
11115         * sunrpc/tst-xdrmem2.c: New test.
11117 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11119         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
11120         _dl_lookup_symbol_x code.
11122 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11124         * elf/dl-runtime.c: Include sysdep-cancel.h.
11125         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
11126         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
11127         instead of catomic_* macros.
11128         * elf/dl-sym.c: Include sysdep-cancel.h.
11129         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
11130         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11131         * elf/dl-close.c: Include sysdep-cancel.h.
11132         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
11133         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11134         * elf/dl-open.c: Include sysdep-cancel.h.
11135         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
11136         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11138 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11140         [BZ #3313]
11141         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
11142         fastbin rather than end of fastbin array.
11144 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11146         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
11147         body macro.
11148         * sysdeps/x86_64/bits/atomic.h
11149         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
11150         (catomic_decrement): Use correct body macro.
11152 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11154         * include/atomic.h: Add a unique prefix to all local variables
11155         in macros.
11156         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
11158 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
11160         [BZ #3369]
11161         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
11162         and 7.
11164 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
11166         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
11168 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
11170         [BZ #3313]
11171         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
11172         determine highest fast bin to consolidate, always look into all of
11173         them.
11174         (do_check_malloc_state): Only require for empty bins for large
11175         sizes in main arena.
11177         * libio/stdio.h: Add more __wur attributes.
11179         * elf/dl-minimal.c (realloc): Optimize last patch.
11181 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
11183         [BZ #3352]
11184         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
11185         and use memcpy() if it does.
11187 2006-11-12  Andreas Jaeger  <aj@suse.de>
11189         [BZ #2510]
11190         * manual/search.texi (Hash Search Function): Clarify.
11191         (Array Search Function): Clarify.
11193 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
11195         [BZ #2830]
11196         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
11197         shifting.
11198         * math/atest-exp2.c (read_mpn_hex): Likewise.
11199         * math/atest-sincos.c (main): Likewise.
11201 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
11203         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
11204         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
11205         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
11206         version GLIBC_2.6.
11207         * Versions.def: Add GLIBC_2.6 for libc.
11209         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
11211         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
11213 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
11215         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
11217         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
11219         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
11220         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
11222 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
11224         * include/atomic.c: Define catomic_* operations.
11225         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
11226         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
11227         * malloc/memusage.c: Likewise.
11228         * gmon/mcount.c: Likewise.
11229         * elf/dl-close.c: Likewise.
11230         * elf/dl-open.c: Likewise.
11231         * elf/dl-profile.c: Likewise.
11232         * elf/dl-sym.c: Likewise.
11233         * elf/dl-runtime.c: Likewise.
11234         * elf/dl-fptr.c: Likewise.
11235         * resolv/res_libc.c: Likewise.
11237 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
11239         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
11240         components which lack them.
11242         * nis/nis_subr.c (nis_getnames): Make sure that we always return
11243         at least one entry consisting of the parameter concatenated with
11244         the domain.
11246 2006-10-10  Roland McGrath  <roland@frob.com>
11248         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
11249         * sysdeps/mach/hurd/futimes.c: Likewise.
11250         * sysdeps/mach/hurd/lutimes.c: Likewise.
11252 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
11253             Jakub Jelinek  <jakub@redhat.com>
11255         Implement reference counting of scope records.
11256         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
11257         from the list in objects which remain.  Always allocate new scope
11258         record.
11259         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
11260         don't resize, allocate a new one.
11261         * elf/dl-runtime.c: Update reference counters before using a scope
11262         array.
11263         * elf/dl-sym.c: Likewise.
11264         * elf/dl-libc.c: Adjust for l_scope name change.
11265         * elf/dl-load.c: Likewise.
11266         * elf/dl-object.c: Likewise.
11267         * elf/rtld.c: Likewise.
11268         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
11269         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
11270         Add l_scoperec_lock.
11271         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
11272         * sysdeps/generic/rtld-lowlevel.h: New file.
11274         * include/atomic.h: Rename atomic_and to atomic_and_val and
11275         atomic_or to atomic_or_val.  Define new macros atomic_and and
11276         atomic_or which do not return values.
11277         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
11278         Various cleanups.
11279         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11281         * po/sv.po: Update from translation team.
11283 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
11285         * Versions.def: Add GLIBC_2.6 to libpthread.
11287         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
11288         (versioned_symbol): Likewise.
11289         (compat_symbol): Likewise.
11291         * po/tr.po: Update from translation team.
11293 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
11295         * nis/Banner: Removed.  It's been integral part forever and the
11296         author info is incomplete anyway.
11297         * libio/Banner: Likewise.
11299         * nis/nis_table.c (nis_list): If __follow_path fails in the new
11300         code, make sure the nis_freeresult call doesn't crash and that the
11301         result is reported correctly.
11303 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
11305         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
11306         when callback is NULL.
11308         * nis/Versions (libnss_nisplus): Add
11309         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
11310         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
11311         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
11312         _nss_create_tablename): Rename to...
11313         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
11314         ... these.  No longer static.
11315         (internal_setgrent): Adjust users.
11316         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
11317         Don't use locking around _nss_grp_create_tablename call.
11318         * nis/nss_nisplus/nisplus-initgroups.c: New file.
11320 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
11322         * version.h (VERSION): Bump to 2.5.90 for new development tree.
11324 2006-10-06  Andreas Jaeger  <aj@suse.de>
11326         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
11328 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
11330         * po/pl.po: Update from translation team.
11332         * nscd/nscd.c (main): Fix typo in message.
11333         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
11335 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
11337         [BZ #3291]
11338         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
11339         errno.h, signal.h, unistd.h and sysdep-cancel.h.
11340         (__sigprocmask): Define.
11342 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
11344         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
11345         used.
11347 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
11349         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
11350         in oldtotal and newtotal calculation.
11351         * nscd/nscd-client.h (struct mapped_database): Add datasize
11352         field.
11353         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
11354         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
11355         increased.
11356         (__nscd_cache_search): Add checks to make sure we never reference
11357         data beyond the current mapping.
11359 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
11361         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
11362         variables const to avoid compiler warnings.
11364         * io/fts.c (fts_close): Remove redundant checks.
11365         (fts_build): Likewise.
11366         (fts_palloc): Likewise.
11368         * manual/message.texi (Advanced gettext functions,
11369         Using gettextized software): Fix typos.
11371 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
11373         * posix/glob.c (glob_in_dir): Add some comments and asserts to
11374         explain why there are no leaks.
11376 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
11378         * libio/wmemstream.c: Include <wchar.h>.
11379         * libio/bug-wmemstream1.c: Likewise.
11380         * libio/tst-wmemstream1.c: Likewise.
11381         * libio/tst-wmemstream2.c: Likewise.
11383         * version.h (RELEASE): Bump to 2.5.
11384         * README: Regenerated.
11386         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
11388         [BZ #3273]
11389         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
11390         found no group members.
11391         Patch by Petr Baudis.
11393 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
11395         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
11396         assert bootstrap_map.l_tls_modid is zero.
11397         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
11398         if USE___THREAD.
11400 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
11402         * libio/stdio.h: Move open_wmemstream prototype to ...
11403         * wcsmbs/wchar.h: ... here.
11405 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
11407         [BZ #3252]
11408         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
11409         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
11410         __{,l}chown to handle the rest.
11411         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
11412         fchownat syscall and __ASSUME_32BITUIDS case inline, call
11413         __{,l}chown to handle the rest.
11414         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
11415         i386/fchownat.c.
11416         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
11417         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
11419         [BZ #3253]
11420         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
11421         time, rather allocate increasingly bigger arrays of pointers, if
11422         possible with alloca, if too large with malloc.
11424 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
11426         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
11428         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
11430 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
11432         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
11433         home addresses.
11434         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
11435         IFA_F_HOMEADDRESS flag for interfaces.
11436         * include/ifaddrs.h (struct in6addrinfo): Define
11437         in6ai_homeaddress.
11439 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
11441         [BZ #3225]
11442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
11443         PTR_DEMANGLE3): Define.
11444         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
11445         PTR_DEMANGLE3): Likewise.
11446         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
11447         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
11448         Likewise.
11449         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
11451 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
11453         * po/libc.pot: Regenerated.
11454         * po/be.po: Updated.
11455         * po/ca.po: Likewise.
11456         * po/cs.po: Likewise.
11457         * po/da.po: Likewise.
11458         * po/de.po: Likewise.
11459         * po/el.po: Likewise.
11460         * po/en_GB.po: Likewise.
11461         * po/es.po: Likewise.
11462         * po/fi.po: Likewise.
11463         * po/fr.po: Likewise.
11464         * po/gl.po: Likewise.
11465         * po/hr.po: Likewise.
11466         * po/hu.po: Likewise.
11467         * po/ja.po: Likewise.
11468         * po/ko.po: Likewise.
11469         * po/nb.po: Likewise.
11470         * po/nl.po: Likewise.
11471         * po/pl.po: Likewise.
11472         * po/pt_BR.po: Likewise.
11473         * po/ru.po: Likewise.
11474         * po/rw.po: Likewise.
11475         * po/sk.po: Likewise.
11476         * po/sv.po: Likewise.
11477         * po/tr.po: Likewise.
11478         * po/zh_CN.po: Likewise.
11479         * po/zh_TW.po: Likewise.
11481         [BZ #3137]
11482         * iconv/iconv_prog.c (main): Fix spelling in error message.
11483         * iconv/iconvconfig.c (main): Likewise.
11484         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
11485         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
11486         * locale/programs/localedef.c (main): Likewise.
11487         * locale/programs/repertoire.c (repertoire_read): Likewise.
11488         * timezone/zdump.c (main): Likewise.
11489         * nscd/connections.c (handle_request): Fix spelling in log message.
11490         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
11492 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
11494         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
11495         interfaces.
11497 2006-09-20  Andreas Jaeger  <aj@suse.de>
11499         * math/libm-test.inc (lrint_test_upward): Fix typo.
11501 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
11503         [BZ #2592]
11504         * math/libm-test.inc (lrint_test_tonearest): New function.
11505         (lrint_test_towardzero): New function.
11506         (lrint_test_downward): New function.
11507         (lrint_test_upward): New function.
11508         (main): Run these new tests.
11509         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
11510         of values near to 0.
11511         (two52): Use double not long double.
11512         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11513         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11514         (two23): Use float not double.
11515         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11516         (two23): Use float not double.
11517         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
11518         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11519         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
11520         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11522 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11524         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
11525         Cast sp to unsigned long to avoid compiler warning.
11526         Use __makecontext_ret function instead of a trampoline on the stack.
11527         (__makecontext_ret): New function.
11528         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
11530 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
11532         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
11533         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
11534         bits.
11536 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
11538         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
11539         sure no reference to the unloaded map's search list remains in the
11540         dependency's scope.
11542 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
11544         * elf/Makefile: Add rules to build and run unload7 test.
11545         * elf/unload7.c: New test.
11546         * elf/unload7mod1.c: New file.
11547         * elf/unload7mod2.c: New file.
11549 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
11551         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
11552         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
11553         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11554         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
11555         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11556         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
11557         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11558         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
11559         PTRACE_GETEVENTMSG): Likewise.
11560         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
11561         values.
11563 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
11565         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
11566         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11567         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
11568         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
11570 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
11572         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
11573         write '\0' to the fd.
11574         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
11575         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
11576         Change regs to unsigned long pointer from unsigned int, fix fscr
11577         offset.
11579 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
11581         * io/Makefile (CFLAGS-fstatat.c): Set.
11582         (CFLAGS-fstatat64.c): Likewise.
11583         (CFLAGS-mknodat.c): Likewise.
11585         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
11586         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11587         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
11588         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
11590 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
11591             Steven Munroe  <sjmunroe@us.ibm.com>
11593         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
11594         names to the beginning.  Rename "cell" to "cellbe".
11595         (_dl_powerpc_platforms): New.
11596         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11597         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
11598         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
11599         (_DL_HWCAP_PLATFORM): Define to new mask.
11600         (_dl_platform_string, _dl_string_platform): New functions.
11601         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
11602         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
11604 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
11606         [BZ #2526]
11607         * README.libm: Fix a thinko in sqrt algorithm description.
11609         [BZ #3143]
11610         * manual/string.texi (argz_delete): Fix prototype.
11611         Patch by <alpt@freaknet.org>.
11613 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
11615         [BZ #3138]
11616         * io/test-lfs.c (do_prepare): Give name_len type size_t.
11617         * io/tst-fcntl.c (do_prepare): Likewise.
11618         * posix/tst-exec.c (do_prepare): Likewise.
11619         * posix/tst-preadwrite.c (do_prepare): Likewise.
11620         * posix/tst-spawn.c (do_prepare): Likewise.
11621         * posix/tst-truncate.c (do_prepare): Likewise.
11622         * rt/tst-aio.c (do_prepare): Likewise.
11623         * rt/tst-aio64.c (do_prepare): Likewise.
11624         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
11625         size_t.
11627 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
11629         [BZ #2821]
11630         * time/mktime.c (guess_time_tm): Fix overflow detection.
11631         * time/Makefile (tests): Add bug-mktime1.
11632         * time/bug-mktime1.c: New file.
11634         [BZ #3189, #3188]
11635         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
11636         (mremap): Likewise.
11638 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
11640         [BZ #1006]
11641         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
11642         Ensure relocation doesn't clobber any bits outside of the
11643         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
11644         R_SPARC_HI22 and R_SPARC_H44.
11646         [BZ #2775]
11647         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
11648         (long) (MINSIZE + nb - old_size) is positive.
11650         * malloc/arena.c (grow_heap): When growing bail even if new_size
11651         is negative.
11653         [BZ #3155]
11654         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
11655         stack below r1.
11657 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
11659         * posix/regex_internal.c (re_string_reconstruct): Handle
11660         offset < pstr->valid_raw_len && pstr->offsets_needed case.
11661         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
11662         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
11663         re_string_context_at.
11664         * posix/Makefile: Add rules to build and run bug-regex26 test.
11665         * posix/bug-regex26.c: New test.
11667         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
11668         rather than col_sym_free.  Move seqp declaration earlier.
11670         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
11672 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
11674         * nscd/initgrcache.c (addinitgroupsX): Move any_success
11675         decl before first goto out.
11677 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
11679         * Makerules (shlib.lds): If have-hash-style, put .hash section
11680         at the end of the RO segment.
11682 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
11684         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
11685         style hash table format is used.
11687 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
11689         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
11690         randomization rather than before.
11691         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
11693 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
11695         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
11697         * malloc/malloc.c (_int_malloc): Use full list insert and not
11698         shortcut which assumes the list is empty for large requests
11699         too.
11701         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
11703 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
11705         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
11706         and offout arguments to the prototype.
11707         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
11708         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
11709         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
11710         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
11711         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
11712         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
11713         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
11714         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
11716 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
11718         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
11720         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
11721         dlopen parameters.
11723 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
11725         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
11726         only if herrno is NETDB_INTERNAL.  Handle errors other than
11727         ERANGE outside of the loops, handle TRY_AGAIN.
11729         * locale/programs/ld-ctype.c (translit_flatten): Issue error
11730         if other's ctype category was missing.
11731         * locale/programs/ld-collate.c (collate_read): Return if
11732         copy_locale's collate category is missing.
11734 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
11736         [BZ #2684]
11737         * malloc/malloc.c (public_rEALLOc): Try harder by using other
11738         arenas if allocation failed.
11739         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
11741 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
11743         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
11744         waste bins[0..1].
11745         (malloc_state): Reduce bins size by 2.
11746         (_int_malloc): Fix test for large enough buffer for early termination.
11747         When no unsorted block matches perfectly and an exiting block has
11748         to be split, use full list insert and not shortcut which assumes
11749         the list is empty.
11751         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
11752         failure.
11754 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
11756         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
11757         do anything.
11759         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
11760         symbol require exact match (these are PLTs).
11761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
11762         (_dl_ppc64_addr_sym_match): Likewise.
11764         [BZ #2683]
11765         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
11766         If symbol has a value use it.
11767         * elf/tst-dladdr1.c: New file.
11768         * elf/Makefile: Add rules to build and run tst-addr1.
11770 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
11772         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
11773         keeps failing and heap growth or new heap creation isn't
11774         successful either.
11775         * malloc/tst-malloc.c (main): Add new tests.
11777 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
11779         [BZ #2734]
11780         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
11781         as in the x86-64 code to use bswap.
11783 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
11785         [BZ #2680]
11786         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
11787         __USE_UNIX98.
11788         * posix/bits/unistd.h: Likewise.
11790 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
11792         [BZ #2751]
11793         * string/strchr.c: Add cast to avoid warning.
11795 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
11797         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
11798         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
11799         limit is needed to avoid the exploding of the address space
11800         requirement for secondary heaps.
11801         * malloc/arena.c (HEAP_MAX_SIZE): Define using
11802         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
11804 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
11806         [BZ #3018]
11807         * Makerules (depfiles): Handle extra-test-objs the same as
11808         extra-objs.
11809         (common-mostlyclean): Likewise.
11810         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
11811         instead.
11812         * elf/Makefile (extra-objs): Likewise.
11813         * stdlib/Makefile (extra-objs): Likewise.
11815 2006-08-14  Eric Blake  <ebb9@byu.net>
11817         [BZ #3044]
11818         * misc/error.h: Assume C89 or better.
11819         * misc/error.c: Likewise.
11821 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
11823         [BZ #3040]
11824         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
11825         __ASSUME_ATFCTS is defined.
11827 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
11829         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
11830         to sort in each call.
11832         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
11833         is empty simply return and use next service.
11834         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
11836         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
11837         tells us when not finding a charmap file is an error.
11838         * locale/programs/charmap.h: Adjust charmap_read prototype.
11839         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
11840         cannot find a charmap.
11841         * locale/programs/localedef.c (main): Adjust charmap_read call.
11843 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
11845         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
11846         sysdeps/posix/pause.c implementation instead.
11848 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
11850         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
11851         to EPERM.
11853 2006-08-13  Andreas Schwab  <schwab@suse.de>
11855         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
11856         Don't clobber caller's LRSAVE.
11857         (_dl_prof_resolve): Likewise.
11859 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
11861         [BZ #1996]
11862         * libio/memstream.c (open_memstream): Allocate initial buffer with
11863         calloc.
11864         * libio/wmemstream.c (open_wmemstream): Likewise.
11865         * libio/strops.c: Pretty printing.
11866         (_IO_str_overflow): Clear uninitialized part of the new buffer.
11867         (enlarge_userbuf): New function.
11868         (_IO_str_seekoff): Call it if seek position is larger than current
11869         buffer.
11870         * libio/wstrops.c: Likewise.
11871         * libio/vasprintf.c: Add comment as to why we do not have to use
11872         calloc instead of malloc to allocate initial buffer.
11873         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
11874         * libio/bug-memstream1.c: New file.
11875         * libio/bug-wmemstream1.c: New file.
11877 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
11879         * libio/wstrops.c: Remove dead macro definitions and comments.
11880         * libio/strops.c: Likewise.
11882         [BZ #2764]
11883         * login/utmpname.c (__utmpname): Remove unnecessary test.
11885 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
11887         [BZ #2832]
11888         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
11889         0s from integers.
11891 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
11893         [BZ #2987]
11894         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
11895         for CPU clocks.
11896         * sysdeps/unix/clock_settime.c: Add support for platform-specific
11897         setting of CPU clocks.
11899 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11901         [BZ #2841]
11902         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
11903         since C99 requires the result to promote to 'int' when uint_least8_t
11904         and uint_least16_t promote to 'int'.
11906 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
11908         [BZ #3013]
11909         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
11910         lenght of one output field, correct bitmask creation.
11911         * locale/programs/ld-time.c: Add alignment.
11913         [BZ #2997]
11914         * misc/error.c: Add space between program name and message if file
11915         name is missing.
11917 2006-08-03  Eric Blake  <ebb9@byu.net>
11919         [BZ #2998]
11920         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
11922 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
11924         * malloc/memusagestat.c: Silence warnings.
11926         * malloc/malloc.c: Dynamically size mmap treshold if the program
11927         frees mmaped blocks.
11928         Patch by Valerie Henson and Arjan van de Ven.
11930 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
11932         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
11933         __USE_GNU.
11935         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
11936         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
11937         (DEF): Don't put the var into .gnu.linkonce.r.* section.
11938         Only provide var definitions in strtol_l (or for *ull*
11939         in strtoll_l).
11941         * stdio-common/bug16.c (tests): New array.
11942         (do_tests): Allow the first hexadecimal digit
11943         to be 1, 2, 4 or 8.  Do 3 additional tests.
11945         * sysdeps/s390/fpu/libm-test-ulps: Update.
11947         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
11948         fchownat syscall if available.
11949         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
11950         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
11951         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
11953 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
11955         * nis/nis_xdr.c: Avoid some function calls.
11957 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
11958             Ulrich Drepper  <drepper@redhat.com>
11960         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
11961         short cut if only one name component is stripped away.
11963 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
11965         * nis/nis_call.c: Minor cleanups throughout.
11966         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
11967         (first_shoot): Add search_parent_first parameter.  Only if it is set
11968         search parent server first.
11969         If directory for table found through cold start cache is not the same
11970         as referenced in the cache, don't use it.
11971         (__nisfind_server): Take additional parameter.  Pass it on to
11972         first_shoot.
11973         (__prepare_niscall): Adjust __nisfind_server call.
11974         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
11975         * nis/nis_table.c: Adjust __nisfind_server call.
11976         * nis/nis_lookup.c: Likewise.
11977         (nis_lookup): Don't loop endlessly if name is reduced to ".".
11979 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
11981         [BZ #2182]
11982         * math/s_cacosh.c: Return values from positive branch.
11983         * math/s_cacoshf.c: Likewise.
11984         * math/s_cacoshl.c: Likewise.
11986         [BZ #2883]
11987         * sysvipc/sys/msg.h: Change return value to ssize_t.
11988         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
11989         * sysvipc/msgrcv.c: Likewise.
11990         * include/sys/msg.h: Likewise.
11992         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
11993         test introduced in patch for bz #661.
11994         (getgrouplist): Simplify code a bit.  Don't allocate one additional
11995         element for NEWGROUPS.
11997         [BZ #2908]
11998         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
11999         'f', use '1' as leading digit not '\1'.
12000         * stdio-common/Makefile (tests): Add bug16.
12001         * stdio-common/bug16.c: New file.
12003         [BZ #2914]
12004         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
12005         and don't try to open it.  The patch introducing the macro
12006         contained a bug and used the same file name as the new file
12007         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
12008         this out completely.
12010         [BZ #2926]
12011         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
12012         Patch by Jerry James <Jerry.James@usu.edu>.
12014         * rt/Makefile (tests): Add tst-clock2.
12015         * rt/tst-clock2.c: New file.
12017         [BZ #2978]
12018         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
12019         function and its parameters and pass it to new thread.
12020         (__gai_notify): Add support for alternative waiting for completion.
12021         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
12022         waiting for completion.
12023         * resolv/getaddrinfo_a.c: Likewise.
12024         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
12025         waiting for completion is used.
12026         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
12027         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
12028         * resolv/gai_error.c: Likewise.
12029         * resolv/gai_sigqueue.c: Likewise.
12031 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
12033         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
12034         errno to EBADF and return MACH_PORT_NULL.
12036 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
12038         [BZ #2980]
12039         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
12041 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
12043         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
12044         walk them instead of the symbol table.
12046 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
12048         [BZ #2098]
12049         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
12050         status of NSS calls, not the number of returned entries.
12052         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
12053         request_key, keyctl.
12055 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12057         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
12059 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
12061         * elf/tst-auditmod1.c: Fix typo in #error.
12063 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12065         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
12067         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
12069 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
12071         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
12072         that the directory is empty even on non-POSIX filesystems.
12074 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12076         * elf/dl-open.c (dl_open_worker): Add branch prediction.
12078         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
12079         the backend NSS module.  If backend setgrent call failed, don't have
12080         internal_setgrent fail.  Just remember this until it is needed.
12081         * nis/nss_compat/compat-pwd.c: Likewise.
12082         * nis/nss_compat/compat-spwd.c: Likewise.
12084 2006-07-30  Roland McGrath  <roland@redhat.com>
12086         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
12087         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
12088         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
12089         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
12091         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
12092         (nanosleep_not_cancel): New macro.
12093         (sigsuspend_not_cancel): new macro.
12094         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
12095         (do_sigsuspend): Define as inline.
12096         (__sigsuspend): Always use do_sigsuspend.
12097         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
12098         * include/signal.h: Declare __sigsuspend_nocancel.
12099         * sysdeps/posix/pause.c
12100         [! NO_CANCELLATION] (__pause_nocancel): New function.
12102         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
12103         * include/time.h (__nanosleep_nocancel): Likewise.
12105 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
12107         * locale/programs/localedef.c (add_to_readlist): Rename local
12108         variables to avoid confusion.
12110         * locale/programs/charmap.c (charmap_read): Emit error message if
12111         charmap couldn't be found or read.
12113 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
12115         * sysdeps/unix/sysv/linux/kernel-features.h: Define
12116         __ASSUME_FUTEX_LOCK_PI.
12117         * include/time.h: Declare __nanosleep_nocancel.
12118         * include/unistd.h: Declare __pause_nocancel.
12120         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
12121         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
12122         get the __stack_chk_fail_local definition when it's needed.
12124 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
12126         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
12127         * dlfcn/bug-atexit3.c: New file.
12128         * dlfcn/bug-atexit3-lib.cc: New file.
12130         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
12131         used when the namespace is not the base namespace.
12133 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
12135         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
12136         (__new_exitfn): Bump it in every successful call.
12137         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
12138         more exit handlers, call them right away.
12139         * stdlib/exit.h: Declare __new_exitfn_called.
12141 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
12143         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
12144         calling registered handler.
12146         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
12147         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12148         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12149         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12150         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12151         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12152         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12153         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12155 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
12157         * elf/dl-lookup.c (dl_new_hash): New functions.
12158         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
12159         value here.  Compute new-style hash value.  Pass new hash value
12160         and reference to variable with the old value to do_lookup_x.
12161         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
12162         old-style hash table.
12163         (_dl_debug_bindings): Pass new hash value and reference to variable
12164         with the old value to do_lookup_x.
12165         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
12166         new-style hash value and change old-style hash value parameter to
12167         be a reference.  Reoganize functions to determine whether
12168         new-style hash table is available.  Only fall back on old-style
12169         table.  If old-style hash value is needed, compute it here.
12170         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
12171         entry.
12172         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
12173         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
12174         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
12175         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
12176         * Makeconfig: If linker supports --hash-style option add it to all
12177         linker command lines to build DSOs.
12178         * config.make.in: Define have-hash-style.
12179         * configure.in: Test whether linker supports --hash-style option.
12181         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
12182         * sysdeps/generic/ldsodefs.h: Adjust prototype.
12184 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
12186         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
12187         auditing.
12189         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
12190         RPATH of main map twice.
12192 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
12194         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
12195         look further, return original strings.
12196         (_nl_find_msg): Do not return found translation if the conversion
12197         failed.  Either signal the string is unusable or that something went
12198         wrong and the original should be used.
12200 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
12202         * string/_strerror.c (__strerror_r): Add __builtin_expect.
12204 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
12206         [BZ #2766]
12207         * misc/insremque.c (insque): Handle prev == NULL.
12208         * misc/Makefile (tests): Add tst-insremque.
12209         * misc/tst-insremque.c: New test.
12211 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
12213         [BZ #2792]
12214         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
12215         conflict with DL_DST_REQUIRED.
12217 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
12219         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
12220         match what Solaris does.
12222 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
12224         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
12225         local_setegid instead of seteuid and setegid.
12226         * sysdeps/generic/local-setxid.h: New file.
12227         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
12229         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
12231         * string/Makefile (tests): Add bug-envz1.
12232         * string/bug-envz1.c: New file.
12234 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
12236         * posix/regex_internal.c (re_string_skip_chars): If no character has
12237         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
12238         to the byte which couldn't be converted.
12239         (re_string_reconstruct): Don't clear valid_raw_len before calling
12240         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
12241         tip_context using re_string_context_at.
12242         * posix/Makefile: Add rules to build and run bug-regex25 test.
12243         * posix/bug-regex25.c: New test.
12245 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
12247         [BZ #2703]
12248         * string/envz.c (envz_strip): Correct erroneously reversed src
12249         and dest parameters to memmove() invocation.
12251 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
12253         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
12254         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
12255         to make sure the database has been already invalidated.
12256         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
12257         after the cache has been invalidated.  Use pthread_mutex_lock rather
12258         than pthread_mutex_trylock if fd != -1.
12259         * nscd/connections.c (invalidate_cache): Add fd argument, write
12260         response to fd if not calling prune_cache, pass fd to prune_cache.
12261         (handle_request): Adjust invalidate_cache caller.
12262         (nscd_run): Pass -1 as fd to prune_cache.
12264 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
12266         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
12267         the correct place.
12269 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
12271         * nscd/nscd.h (struct database_dyn): Add prunelock field.
12272         * nscd/cache.c (prune_cache): Take prunelock before starting the
12273         work.  Just return in case it is already taken.
12274         * nscd/connections.c (dbs): Initialize .prunelock.
12276 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
12278         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
12279         copying.  No need to allocate new array for group members.  Just
12280         move the pointers and update the size.
12282         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
12283         Avoid memory leak in case realloc fails.  Simplification for
12284         better code generation.
12286         Avoid deprecation warning because of libc_hidden_proto for
12287         inet6_option_alloc.
12288         * inet/inet6_option.c (option_alloc): Renamed from
12289         inet6_option_alloc.  Made static.
12290         (inet6_option_alloc): Now a simple wrapper around option_alloc.
12291         (inet6_option_append): Call option_alloc.
12292         * include/netinet/in.h: Remove libc_hidden_proto for
12293         inet6_option_alloc.
12295         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
12296         for cleanup when cb!=NULL [Coverity CID 233].
12298 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
12300         [BZ #2693]
12301         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
12302         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
12303         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
12304         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
12305         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
12306         and inet6_rth_getaddr.
12307         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
12308         array.
12309         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
12310         Mark inet6_option_* interfaces as deprecated.
12311         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
12312         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
12313         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
12314         inet6_rth_segments, and inet6_rth_getaddr.
12315         * inet/inet6_opt.c: New file.
12316         * inet/inet6_rth.c: New file.
12318         * inet/netinet/icmp6.h: Pretty printing.
12320         [BZ #2683]
12321         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
12323 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
12325         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
12326         doing it all here.  When server does not know the answer do not
12327         fail immediate, try parent first.
12329         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
12330         overflow test.
12332 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
12334         * nis/nis_call.c (__prepare_niscall): New function.  Split out
12335         from __do_niscall.
12336         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
12337         and exported.
12338         (__follow_path): New function.  Split out from nis_list.
12339         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
12340         _xdr_nis_result.
12341         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
12342         _xdr_nis_result.
12343         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
12344         and __follow_path.
12345         * nis/Versions: Export __prepare_niscall, __create_ib_request,
12346         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
12347         from libnsl for version GLIBC_PRIVATE.
12348         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
12349         Remove entry parameter from _nss_nisplus_parse_pwent and
12350         _nss_nisplus_parse_grent.
12351         * nis/nss_nisplus/nisplus-parser.c: Likewise.
12352         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
12353         again.  Rewrite getpwent handling to not use nis_first_entry and
12354         nis_next_entry.  Roll out own niscall handling.
12355         * nis/nss_nisplus/nisplus-grp.c: Likewise.
12357         * sunrpc/xdr_rec.c: Fix typo in comment.
12359 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
12361         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
12362         handling.
12364         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
12365         to allocate memory for my_pollfd.  Better initialization of
12366         cb_is_running.  Use TEMP_FAILURE_RETRY.
12368         * malloc/memusage.sh (memusageso): Add quotes.
12369         (memusagestat): Likewise.
12370         * debug/xtrace.sh (pcprofileso): Likewise.
12371         (pcprofiledump): Likewise.
12372         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
12373         replacement.
12374         * malloc/Makefile ($(objpfx)memusage): Likewise.
12376         * nis/nis_callback.c (__nis_create_callback): Calls to
12377         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
12378         asprintf call fails.
12380         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
12381         no uninitialized memory is passed to sendto.
12383 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
12385         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
12386         of snprintf+strdup.  Handle OOM.
12387         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
12388         cb->serv together.  Remove now obsolete free calls.
12389         (__nis_destroy_callback): Remove now obsolete free call.
12391 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
12393         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
12394         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
12395         and ULA respectively). Set precedence for IPv4 address to 10 as
12396         defined in RFC3484 for preferring IPv6.
12397         * posix/gai.conf: Update to match the new default tables.
12399 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
12401         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
12402         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
12403         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
12404         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
12406         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
12407         Removed.
12408         (init_nss_interface): Remove initialization of these variables.
12410 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
12412         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
12413         nis_free_directory forward to avoid duplication.
12415 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
12417         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
12418         rec_dirsearch returning NULL.
12419         (first_shoot): Handle __nis_finddirectory returning NULL.
12420         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
12422         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
12423         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
12425 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
12427         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
12428         pid changed.
12430 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
12432         * include/rpc/pmap_prot.h: Mark all functions as hidden.
12434         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
12435         * nscd/nscd_getgr_r.c: Likewise.
12437         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
12439         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
12440         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
12442         * stdlib/longlong.h (__clz_tab): Mark as hidden.
12444         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
12446         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
12448         * include/rpc/auth.h: Mark xdr_des_block_internal and
12449         xdr_opaque_auth_internal as hidden.
12451         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
12452         hidden.
12454         * include/rpc/xdr.h: Mark all _internal functions as hidden.
12456         * misc/getusershell.c (okshells): Don't use static initializers,
12457         do it dynamically.
12459         * stdlib/fmtmsg.c (keywords): Change type of len element to
12460         uint32_t to not waste space on 64bit machines.
12462         * locale/setlocale.c: Change _nl_category_names into a string.
12463         Add new _nl_category_name_idxs.  Change all users.
12464         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
12465         Declare _nl_category_name_idxs.
12466         * locale/findlocale.c: Adjust for _nl_category_names change.
12467         * locale/loadlocale.c: Likewise.
12468         * locale/newlocale.c: Likewise.
12469         * intl/dcigettext.c: Likewise.
12471         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
12472         (add_alias2): ...here.  New function.
12473         (__gconv_read_conf): Simplify builtin alias handling.
12474         (builtin_aliases): Convert to string to avoid relocations.
12475         * iconv/gconv_builtin.h: Add comment about correct formatting.
12477 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
12479         * resolv/res_debug.c (loc_ntoa): Make error const.
12481 2006-05-14  Andreas Schwab  <schwab@suse.de>
12483         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
12485 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
12487         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
12488         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
12489         sizeof (cpu_set_t).
12491 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
12493         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
12495         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
12497         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
12498         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
12500         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
12501         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
12503         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
12504         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
12505         xdr_cback_data.
12507         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
12508         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12509         xdr_ypupdate_args.
12511         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
12512         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
12514         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
12515         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
12517         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
12518         * include/rpcsvc/nis_callback.h: New file.
12520         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
12521         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
12523         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12524         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12526         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
12527         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
12529         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12530         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12532         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
12533         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12534         xdr_ypdelete_args.
12536         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
12537         __BEGIN_DECLS and __END_DECLS, the header is not installed.
12539         * nis/nis_error.c: Remove table of strings.  Use position
12540         independent mechanism.
12541         * nis/nis_error.h: New file.
12543 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
12545         * locale/programs/ld-time.c (time_finish): If wide era name or
12546         format aren't provided, set both wname and wformat to L"".
12548 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
12550         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
12551         results if the call was succesful.
12553         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
12555         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
12556         as hidden.
12558 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
12560         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
12562 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
12564         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
12565         caller makes sure this is not the case.
12566         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
12568 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
12570         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
12571         calls.
12573         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
12574         [Coverity CID 229, 230]
12576         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
12577         DGETTEXT calls.
12578         (hol_help): Likewise.  [Coverity CID 226, 227]
12580         * string/argz-replace.c (__argz_replace): Unconditionally call
12581         free on SRC.  [Coverity CID 225]
12583         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
12584         the return value of __nis_default_owner and __nis_default_group,
12585         it has been especially allocated.  [Coverity CID 224]
12587         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
12588         searchgroup and searchowner.  Significantly simplified.
12589         (__nis_default_owner): Remove duplication.  Do not locally copy the
12590         string before duplicating it.
12591         (__nis_default_group): Likewise.
12593         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
12594         we must clear the variable before calling __nisfind_server.
12596         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
12597         nis_getnames.  [Coverity CID 223]
12599         * locale/programs/locfile.c (locfile_read): Use alloca instead of
12600         xmalloc to allocate local repertoire name.  [Coverity CID 222]
12602         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
12603         allocate memory for the input to add_bytes.  [Coverity CID 221]
12605         * posix/wordexp.c (w_addword): Free word if realloc fails and it
12606         was allocated here.  [Coverity CID 219, 220]
12608         * posix/getconf.c (print_all): Free confstr data after printing.
12609         [Coverity CID 218]
12611         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
12612         list allocation fails.  [Coverity CID 215]
12614         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
12615         [Coverity CID 213]
12617         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
12618         string is NULL.  [Coverity CID 212]
12619         * argp/Makefile: Add rules to build and run bug-argp1.
12620         * argp/bug-argp1.c: New file.
12622         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
12623         end of string.
12624         * stdlib/canonicalize.c (__realpath): Likewise.
12626         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
12627         pointer.  [Coverity CID 206]
12629         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
12630         in statically linked code.
12631         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
12632         statically built code, be prepared to have no link map.
12633         [Coverity CID 205]
12635         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
12636         dgettext calls. [Coverity CID 204]
12638         * argp/argp-help.c (struct uparams): Remove valid member.  Change
12639         the one user.
12640         (uparam_names): Reduce size.  Avoid relative relocations.
12641         Moved to read-only segment.
12642         (fill_in_uparams): Update for new layout.
12644         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
12645         assumed to always be != NULL. [Coverity CID 202]
12647         * argp/argp-help.c (hol_entry_help): Remove some dead code
12648         [Coverity CID 200].
12650         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
12651         away a few more unconditional yperr2nss calls.
12652         (_nss_nis_getservbyname_r): Likewise.
12654 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
12656         * sysdeps/generic/ldsodefs.h: Remove support for non-core
12657         architectures.
12659         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
12660         that unused memory passed to sendto is nevertheless initialized.
12662         [BZ #2499]
12663         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
12664         possibly unaligned memory accesses.
12666         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
12667         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
12668         and __putlong respectively.  Correct buffer overflow check for
12669         NS_NOTIFY_OP.
12671         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
12673         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
12674         (send_dg): Rewrite error handling to be more compact and avoid
12675         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
12677         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
12679         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
12680         instead of ns_get16.
12681         (res_queriesmatch): Likewise.  Minor optimization.
12683         [BZ #2499]
12684         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
12685         __libc_res_nsend might reallocate the buffer for the answer.  In
12686         this case we have to reload the HP pointer.
12688 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
12690         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
12691         some branch prediction hints.
12693         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
12694         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12695         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12696         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12697         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12698         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12699         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12700         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12702 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12704         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
12705         by a GOT relocation to make Scrt1.o position independent.
12706         * sysdeps/s390/s390-64/elf/start.S: Likewise.
12708         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
12709         six system call parameters.
12710         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
12712 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
12714         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
12715         malloc&bzero.
12717         * sunrpc/svc_udp.c (BZERO): Remove definition.
12718         (CALLOC): Define.
12719         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
12721         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
12722         (des_SPtrans): Use uint32_t type.
12723         (des_skb): Likewise.
12725         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
12727 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
12729         [BZ #2509]
12730         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
12731         on 32-bit arches.
12733 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
12735         * locale/programs/ld-address.c (address_finish): Fix one more
12736         place where the iso639 array might be accessed beyond the limits.
12738 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
12740         * nis/nis_table.c (nis_list): Avoid clearing res twice before
12741         filling it for the first time.
12743         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
12744         Adjust all callers.
12745         Free res object content before returning.
12747         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
12749         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
12750         client->cl_auth.
12752         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
12753         cleanup for initial thread, just the free call on TVP.
12755         * nscd/gai.c (__getline): Define.
12758 See ChangeLog.16 for earlier changes.