1 2009-08-25 Ulrich Drepper <drepper@redhat.com>
3 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
5 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
6 leftover YMM_SIZE definition.
8 2009-08-24 Ulrich Drepper <drepper@redhat.com>
10 * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
12 (EXTRACT_WORDS64, INSERT_WORDS64): Define.
13 * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
15 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
17 * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
18 and SET_FLOAT_WORD definitions.
20 2009-08-24 Roland McGrath <roland@redhat.com>
22 * sysdeps/unix/syscall-template.S: New file.
23 * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
24 * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
25 (compile-syscall): Pass mkdep and -g options as normal.
26 (s-proto.d, s-proto-cancel.d): Don't "-include" these.
27 (common-generated): Don't add them here.
29 2009-08-24 Ulrich Drepper <drepper@redhat.com>
31 * math/s_fdim.c: In case of overflows set errno.
32 * math/s_fdimf.c: Likewise.
33 * math/s_fdiml.c: Likewise.
35 * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
36 * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
37 are using the inline optimizations.
39 * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
40 (__signbitf): Likewise.
42 2009-08-23 Ulrich Drepper <drepper@redhat.com>
44 * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
46 * posix/Makefile (tests): Add bug-regex29.
47 * posix/bug-regex29.c: New file.
49 * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
50 older POSIX versions are selected.
52 * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
54 * stdio-common/printf_fphex.c: Likewise.
55 * stdio-common/tstdiomisc.c: Add more tests.
57 * locale/locale.h: Include xlocale.h and the thread-local locale
58 declarations for XPG7, not XPG6.
60 2009-08-21 Andreas Schwab <schwab@redhat.com>
62 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
63 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
64 * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
65 * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
66 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
67 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
69 2009-08-20 Roland McGrath <roland@redhat.com>
71 * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
72 Use l_addr instead of l_map_start (dli_fbase).
73 Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
74 address when there is no proximate symbol.
75 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
78 2009-08-16 Ulrich Drepper <drepper@redhat.com>
80 * scripts/gen-as-const.awk: Fix test for 64-bit platform.
82 2009-08-14 Ulrich Drepper <drepper@redhat.com>
84 * test-skeleton.c (signal_handler): Renamed from timeout_handler.
85 Also handle SIGINT. In that case only do the cleanup and then
87 (main): Install handler for SIGINT.
89 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
91 * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
94 2009-08-01 H.J. Lu <hongjiu.lu@intel.com>
96 * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
97 tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
99 (tests): Add tst-audit6 tst-audit7.
100 (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
101 tst-auditmod7a tst-auditmod7b.
102 ($(objpfx)tst-audit6): New.
103 ($(objpfx)tst-audit6.out): Likewise.
104 ($(objpfx)tst-audit7): Likewise.
105 ($(objpfx)tst-audit7.out): Likewise.
106 (tst-audit6-ENV): Likewise.
107 (tst-audit7-ENV): Likewise.
108 (CFLAGS-tst-auditmod6b.c): Likewise.
109 (CFLAGS-tst-auditmod6c.c): Likewise.
110 (CFLAGS-tst-auditmod7b.c): Likewise.
111 * elf/tst-audit6.c: New file.
112 * elf/tst-audit7.c: New file.
113 * elf/tst-auditmod6a.c: New file.
114 * elf/tst-auditmod6b.c: New file.
115 * elf/tst-auditmod6c.c: New file.
116 * elf/tst-auditmod7a.c: New file.
117 * elf/tst-auditmod7b.c: New file.
118 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
119 saving and restoring SSE/AVX registers to ...
120 * sysdeps/x86_64/dl-trampoline.h: This. New file.
122 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
124 * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
125 only if SHARED is defined.
126 * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
128 2009-08-03 Jim Meyering <meyering@redhat.com>
130 * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
132 2009-08-08 Ulrich Drepper <drepper@redhat.com>
134 * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
135 section as the other functions for this architecture.
136 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
138 2009-08-07 Ulrich Drepper <drepper@redhat.com>
140 * sysdeps/x86_64/strcmp.S: Add support to compile with
141 USE_SSSE3. In this case palignr is used.
142 * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
143 available but SSSE3 is, pick __str{,n}cmp_ssse3.
144 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
145 Add strcmp-ssse3 and strncmp-ssse3.
146 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
147 * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
149 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
150 warning through fake initialization.
152 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
154 * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
156 2009-08-07 Andreas Schwab <schwab@redhat.com>
158 * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
161 2009-08-05 H.J. Lu <hongjiu.lu@intel.com>
163 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
164 EBX from EAX = 1. Handle EAX = 11.
166 2009-08-07 Andreas Schwab <schwab@redhat.com>
168 * Makefile (TAGS): Use separate sed -e expressions to avoid \
171 2009-08-03 H.J. Lu <hongjiu.lu@intel.com>
173 * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
174 hidden IFUNC functions.
175 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
177 * sysdeps/i386/i686/multiarch/strlen.S: New file.
179 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
180 (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
182 (CFLAGS-strcspn-c.c): Define.
183 (CFLAGS-strpbrk-c.c): Define.
184 (CFLAGS-strspn-c.c): Define.
185 (CFLAGS-strstr.c): Define.
186 (CFLAGS-strcasestr.c): Define.
187 * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
188 * sysdeps/i386/i686/multiarch/strcspn.S: New file.
189 * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
190 * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
191 * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
192 * sysdeps/i386/i686/multiarch/strspn.S: New file.
193 * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
194 * sysdeps/i386/i686/multiarch/strstr.c: New file.
195 * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
196 * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
197 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
198 -16L instead of 0xfffffffffffffff0L.
199 * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
201 2009-08-02 Ulrich Drepper <drepper@redhat.com>
203 * sysdeps/i386/configure.in: Add test for <cpuid.h>.
205 2009-07-31 Ulrich Drepper <drepper@redhat.com>
207 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
208 another rewrite. Much smaller and faster.
209 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
211 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
212 ss_flags from the correct location.
214 2009-07-31 H.J. Lu <hongjiu.lu@intel.com>
216 * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
217 * sysdeps/i386/i686/cacheinfo.c: New file.
218 * sysdeps/i386/i686/multiarch/Makefile: New file.
219 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
220 * sysdeps/i386/i686/multiarch/init-arch.c: New file.
221 * sysdeps/i386/i686/multiarch/init-arch.h: New file.
222 * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
223 * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
224 * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
225 (__cpuid_count): New. Provide the default.
226 (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
227 (__x86_64_preferred_memory_instruction): Define only if
228 DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
229 (intel_check_word): Use __cpuid.
230 (handle_intel): Likewise.
231 (handle_amd): Likewise.
232 (__cache_sysconf): Likewise.
233 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
234 (__cache_sysconf): Likewise.
235 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
236 * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
237 (get_common_indeces): Use __cpuid.
238 (__init_cpu_features): Likewise. Disable SSSE3 on Atom only
239 if ENABLE_SSSE3_ON_ATOM is not defined.
240 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
241 * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
242 popcnt instead of popcntq.
244 2009-07-31 Jakub Jelinek <jakub@redhat.com>
246 * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
248 2009-07-30 Ulrich Drepper <drepper@redhat.com>
250 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
251 * sysdeps/i386/____longjmp_chk.S: Remove all code. This is now a file
252 which always causes a compile error.
254 * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
256 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file. Content
258 * sysdeps/x86_64/____longjmp_chk.S: ...here. This is now a file
259 which always causes a compile error.
261 * debug/Makefile (tests): Add tst-longjmp_chk2.
262 * debug/tst-longjmp_chk2.c: New file.
264 * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling. Fix CFI.
265 Remove incorrect use of BP_SYM.
266 * sysdeps/x86_64/____longjmp_chk.S: Rewrite. Complete implementation
267 here now since it is more complex than just a simple check.
269 * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
270 we make no more progress.
272 2009-07-29 Ulrich Drepper <drepper@redhat.com>
274 * math/s_fma.c: Don't define alias if __fma is a macro.
275 * math/s_fmaf.c: Likewise.
276 * sysdeps/x86_64/multiarch/s_fma.c: New file.
277 * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
278 Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
280 * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
281 (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
283 * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
285 * include/libc-symbols.h (libm_ifunc): Define.
286 * sysdeps/x86_64/multiarch/Versions: New file.
288 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
290 2009-07-28 H.J. Lu <hongjiu.lu@intel.com>
292 * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
294 2009-07-29 Ulrich Drepper <drepper@redhat.com>
296 * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
297 call that registers used in calling conventions need to be preserved.
298 * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
299 to preserve register content if necessary.
300 * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
301 (_dl_x86_64_restore_sse): New function.
302 * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
303 is allowed to modify xmm/ymm registers.
305 * stdio-common/scanf15.c: Undefine _LIBC. We want to test from an
306 application's perspective.
307 * stdio-common/scanf17.c: Likewise.
309 2009-07-28 Ulrich Drepper <drepper@redhat.com>
311 * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
313 (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
315 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
316 two steps to catch bugs.
318 2009-07-27 Ulrich Drepper <drepper@redhat.com>
320 * sysdeps/x86_64/tst-xmmymm.sh: Refine testing. The script now
321 determines which files are used in runtime lookups and only checks
323 * sysdeps/x86_64/rtld-memchr.c: Removed. Not needed with refined
325 * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
326 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
327 * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
330 * elf/dl-open.c: Move _dl_scope_free to...
331 * elf/dl-scope.c: ...here. New file.
332 * elf/Makefile (dl-routines): Add scope.
334 * resolv/resolv.h (RES_USE_DNSSEC): Define.
335 * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
337 * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
338 * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
339 all the places we handled RES_USE_EDNS0 only before.
340 Patch by Adam Tkac <atkac@redhat.com>.
342 2009-07-27 Jakub Jelinek <jakub@redhat.com>
344 * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
345 3/4 full. Pass size + 1 rather than size to _dl_higher_prime_number.
346 Update size when reallocating.
348 2009-07-26 Ulrich Drepper <drepper@redhat.com>
350 * sysdeps/x86_64/tst-xmmymm.sh: New file. Check whether any of the
351 functions used in ld.so modify xmm/ymm registers.
352 * sysdeps/x86_64/Makefile: Hook new test up.
353 * sysdeps/x86_64/rtld-memchr.c: New file.
354 * sysdeps/x86_64/rtld-memcmp.c: New file.
355 * sysdeps/x86_64/rtld-rawmemchr.c: New file.
356 * sysdeps/x86_64/rtld-strchr.S: New file.
357 * sysdeps/x86_64/rtld-strlen.S: New file.
358 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
359 * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
361 2009-07-26 H.J. Lu <hongjiu.lu@intel.com>
363 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
365 * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
373 (next_8_bytes): Likewise.
374 (Byte0): Remove commented out codes.
375 (unaligned_table): Align jump table at 8 bytes.
376 Add _sse4_2 to all labels. Always include "../strcmp.S".
377 * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
378 * sysdeps/x86_64/strcmp.S: Add SSE2 support.
379 * sysdeps/x86_64/strncmp.S: New file.
381 2009-07-26 Ulrich Drepper <drepper@redhat.com>
384 * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
385 kernels, dropped when eventfd2 support was added.
386 * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
387 kernels, dropped when signalfd4 support was added.
388 * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
392 * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
395 * elf/elf.h: Define NT_GNU_GOLD_VERSION.
397 2009-07-25 Ulrich Drepper <drepper@redhat.com>
399 * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
400 modern processor versions. Patch by H.J. Lu <hongjiu.lu@intel.com>.
403 * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
404 callback we must touch the status to avoid using stale value.
406 * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
409 2009-07-24 Ulrich Drepper <drepper@redhat.com>
411 * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
412 /lib/modules/* headers anymore. We have sane headers in the standard
415 2009-06-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
417 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
418 "etf3enh" and "highgprs" added.
419 (_dl_s390_platforms): "z10" added.
420 * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
421 Increased for the new entries.
422 (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
423 HWCAP_S390_HIGH_GPRS added.
425 * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
426 * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
427 * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
428 * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
429 * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
431 2009-07-23 Ulrich Drepper <drepper@redhat.com>
433 * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
434 avoid additional cpuid instructions. Most of the information is
437 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
439 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
441 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
443 * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
446 * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
447 structure before copying it to avoid warning.
448 * posix/tst-rfc3484-2.c (do_test): Likewise.
449 * posix/tst-rfc3484-3.c (do_test): Likewise.
452 * include/unistd.h: Make header file suitable for C++ test cases.
453 Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
455 * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
456 stack alignment in the exit code.
458 * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
461 * elf/tst-unique1.c: Extend test to check for unloading DSO with
462 unique symbol definition.
463 Patch by Jakub Jelinek.
464 * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
465 make sure the object with the definition cannot be unloaded. Adjust
467 * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
468 the unique symbol hash table should not be const.
470 2009-07-21 Ulrich Drepper <drepper@redhat.com>
472 * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups. Remove
473 unnecesary variables. Comment fixes.
475 2009-07-20 Ulrich Drepper <drepper@redhat.com>
477 * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
478 Use NONASCII_CASE information provided by the locale to determine
479 whether optimized string load function can be used. Minor cleanups.
481 2009-07-20 H.J. Lu <hongjiu.lu@intel.com>
483 * string/strcasestr.c (STRCASESTR): New macro.
484 (__strcasestr): Renamed to ..
485 (STRCASESTR): ...this.
486 * string/strstr.c (STRSTR): New macro.
487 (strstr): Renamed to ..
489 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
490 strstr-c strcasestr-c
491 (CFLAGS-strstr.c): New.
492 (CFLAGS-strcasestr.c): Likewise.
493 * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
494 * sysdeps/x86_64/multiarch/strcasestr.c: New file.
495 * sysdeps/x86_64/multiarch/strstr-c.c: New file.
496 * sysdeps/x86_64/multiarch/strstr.c: New file.
498 2009-07-20 Ulrich Drepper <drepper@redhat.com>
500 * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
501 * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
502 * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
503 _NL_CTYPE_NONASCII_CASE.
504 * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
506 (ctype_finish): Check whether there are any 8-bit characters outside
507 the range ASCII has or whether the mapping isn't the same as for
508 ASCII (±0x20). Set nonascii_case appropriately.
509 (ctype_output): Add output handler for nonascii_case.
511 2009-07-17 Ulrich Drepper <drepper@redhat.com>
513 * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
514 CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
516 2009-07-16 Ulrich Drepper <drepper@redhat.com>
519 * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
520 0xffff in the EDNS0 record.
522 2009-07-16 Ulrich Drepper <drepper@redhat.com>
524 * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
525 instead of atomic_compare_and_exchange_bool_acq to ensure pointer
526 is written before the list head update.
527 Patch by Andreas Schwab <aschwab@redhat.com>.
529 2009-07-16 Ulrich Drepper <drepper@redhat.com>
530 Jakub Jelinek <jakub@redhat.com>
532 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
533 corruption thread-safe.
535 2009-07-13 Jakub Jelinek <jakub@redhat.com>
537 * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
538 overrides atomic_compare_and_exchange_val_rel, define to
539 atomic_compare_and_exchange_val_rel by default, otherwise default
540 to catomic_compare_and_exchange_val_acq.
541 (catomic_compare_and_exchange_bool_rel): If arch overrides
542 atomic_compare_and_exchange_bool_rel, define to
543 atomic_compare_and_exchange_bool_rel by default.
544 * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
545 Use catomic_compare_and_exchange_val_rel instead of
546 catomic_compare_and_exchange_val_acq.
548 2009-07-16 Ulrich Drepper <drepper@redhat.com>
550 * sysdeps/generic/ldsodefs.h: Add prototype for
551 _dl_higher_prime_number.
552 * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
554 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
555 restoring of ymm registers a bit.
557 2009-07-15 H.J. Lu <hongjiu.lu@intel.com>
559 * sysdeps/x86_64/memcmp.S: New file.
561 2009-07-15 Ulrich Drepper <drepper@redhat.com>
563 * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
564 * sysdeps/x86-64/dl-trampoline.S: ...here. Rewrite to avoid function
565 pointers in writable memory.
567 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
569 * config.h.in: Add HAVE_AVX_SUPPORT entry.
570 * config.make.in: Add config-cflags-avx entry.
571 * configure.in: Substitute libc_cv_cc_avx.
572 * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
573 * elf/tst-audit4.c: New file.
574 * elf/tst-audit5.c: New file.
575 * elf/tst-auditmod4a.c: New file.
576 * elf/tst-auditmod4b.c: New file.
577 * elf/tst-auditmod5a.c: New file.
578 * elf/tst-auditmod5b.c: New file.
579 * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
581 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
582 (La_x86_64_vector): Likewise.
583 (La_x86_64_regs): Append lr_vector.
584 (La_x86_64_retval): Append lr_vector0/lrv_vector1.
585 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
586 saving and restoring SSE registers to ...
587 * sysdeps/x86_64/dl-trampoline.h: This. New file.
588 * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
590 (_dl_runtime_profile): Use LR_SIZE to allocate space for
591 La_x86_64_regs. Allocate extra space and jump to memory at
592 save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
593 (save_and_restore_vector_sse): New.
594 (save_and_restore_vector_avx): Likewise.
595 (check_avx): Likewise.
596 (save_and_restore_vector): Likewise.
597 * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
599 * sysdeps/x86_64/link-defines.sym: New file.
601 2009-07-10 Ulrich Drepper <drepper@redhat.com>
603 * elf/do-lookup.h: Removed after folding content into...
604 * elf/dl-lookup.c: ...here.
606 * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
608 2009-07-09 Ulrich Drepper <drepper@redhat.com>
610 * configure.in: Check for gnu_unique_symbol symbol type.
611 * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
612 * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
613 the undefined symbol. Handle STB_GNU_UNIQUE binding of found symbol.
614 * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
616 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
618 * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
620 * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
621 unique symbol hash table.
622 * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
623 * elf/tst-unique1.c: New file.
624 * elf/tst-unique1mod1.c: New file.
625 * elf/tst-unique1mod2.c: New file.
626 * elf/tst-unique2.c: New file.
627 * elf/tst-unique2mod1.c: New file.
628 * elf/tst-unique2mod2.c: New file.
630 2009-07-07 Ulrich Drepper <drepper@redhat.com>
632 * elf/elf.h (STB_GNU_UNIQUE): Define.
634 * elf/dl-misc.c (_dl_higher_prime_number): New function. Moved here
636 * include/inline-hashtab.h: ...here.
637 (htab_expand): Adjust for renamed function. Correct memory handling.
639 2009-07-06 Ulrich Drepper <drepper@redhat.com>
641 * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
643 2009-07-03 Andreas Schwab <aschwab@redhat.com>
645 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
646 (PPC_FEATURE_HAS_VSX): Likewise.
648 2009-07-03 Ulrich Drepper <drepper@redhat.com>
650 * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
651 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
653 * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
654 aligned to 16 byte boundaries.
655 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
656 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
657 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
659 2009-07-02 H.J. Lu <hongjiu.lu@intel.com>
661 * config.h.in (HAVE_SSE4_SUPPORT): New macro.
662 * config.make.in (config-cflags-sse4): New variable.
663 * configure.in: Substitute libc_cv_cc_sse4.
664 * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
666 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
667 strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
668 * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
669 * sysdeps/x86_64/multiarch/strcspn.S: New file.
670 * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
671 * sysdeps/x86_64/multiarch/strpbrk.S: New file.
672 * sysdeps/x86_64/multiarch/strspn-c.c: New file.
673 * sysdeps/x86_64/multiarch/strspn.S: New file.
675 2009-06-30 H.J. Lu <hongjiu.lu@intel.com>
677 * elf/Makefile (distribute): Remove tst-audit.sh. Add
678 tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
679 (tests): Add tst-audit3 for x86_64.
680 (modules-names): Add tst-auditmod3a, tst-auditmod3b.
681 ($(objpfx)tst-audit3): Define.
682 ($(objpfx)tst-audit3.out): Define.
683 (tst-audit3-ENV): Define.
684 * elf/tst-audit3.c: New file.
685 * elf/tst-auditmod3a.c: New file.
686 * elf/tst-auditmod3b.c: New file.
687 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
690 * string/stpncpy.c (STPNCPY): New. Defined if not defined.
691 (__stpncpy): Renamed to ...
693 (stpncpy): Create alias only if STPNCPY is not defined.
694 * string/strncpy.c (STRNCPY): New. Defined to strncpy if not
696 (strncpy): Renamed to ...
698 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
699 stpncpy-c strncpy-c for string.
700 * sysdeps/x86_64/multiarch/stpcpy.S: New file.
701 * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
702 * sysdeps/x86_64/multiarch/stpncpy.S: New file.
703 * sysdeps/x86_64/multiarch/strcpy.S: New file.
704 * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
705 * sysdeps/x86_64/multiarch/strncpy.S: New file.
707 2009-07-02 Ulrich Drepper <drepper@redhat.com>
709 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
710 adding to fast bin list.
712 2009-07-01 Ulrich Drepper <drepper@redhat.com>
714 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
715 inet_makeaddr. This worked only with class-based networks.
716 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
719 * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
721 * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
722 to getnetbyaddr. Fix network parameter to getnetbyaddr. It must
723 be in host byte order.
725 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
727 * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
728 (MODEL_OFFSET): Define.
729 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
731 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
732 out common code into new function get_common_indeces. Determine
733 extended family and model for Intel processors.
735 2009-06-26 Ulrich Drepper <drepper@redhat.com>
737 * resolv/resolv.h: Define RES_SNGLKUPREOP.
738 * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
740 * resolv/res_send.c (reopen): New function. Broken out of...
741 (send_dg): ... here. Recognize RES_SNGLKUPREOP. Implement second
742 fallback mechanism. If single-request fails switch to
743 single-request-reopen mode which opens a new socket for the second
746 2009-06-25 Andreas Schwab <aschwab@redhat.com>
748 * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
751 2009-06-24 Andreas Schwab <aschwab@redhat.com>
753 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
755 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
756 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
757 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
759 2009-06-23 Andreas Schwab <aschwab@redhat.com>
761 * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
763 2009-06-22 Ulrich Drepper <drepper@redhat.com>
765 * po/id.po: Update from translation team.
767 * po/bg.po: Update from translation team.
769 2009-06-22 H.J. Lu <hongjiu.lu@intel.com>
771 * string/strncmp.c (STRNCMP): New. Defined to strncmp if not
773 (strncmp): Renamed to STRNCMP.
774 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
775 strncmp-c for string.
776 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
777 * sysdeps/x86_64/multiarch/strcmp.S: New file.
778 * sysdeps/x86_64/multiarch/strncmp.S: New file.
779 * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
781 2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
783 * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
784 ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
785 ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
786 ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
787 ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
789 (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
790 ifuncmain7static, and ifuncmain7picstatic.
791 (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
792 $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
793 $(objpfx)ifuncmain7pie.out.
794 (modules-names): Add ifuncmod5 ifuncmod6
795 (ifuncmod5.so-no-z-defs): Define.
796 (ifuncmod6.so-no-z-defs): Define.
797 (CFLAGS-ifuncmain5pic.c): Define.
798 (CFLAGS-ifuncmain5picstatic.c): Define.
799 (CFLAGS-ifuncmain5staticpic.c): Define.
800 (CFLAGS-ifuncdep5pic.c): Define.
801 (CFLAGS-ifuncmain7pic.c): Define.
802 (CFLAGS-ifuncmain7picstatic.c): Define.
803 (CFLAGS-ifuncmain1staticpie.c): Define.
804 (CFLAGS-ifuncmain5pie.c): Define.
805 (CFLAGS-ifuncmain6pie.c): Define.
806 (CFLAGS-ifuncmain7pie.c): Define.
807 ($(objpfx)ifuncmain1staticpie.out): Define.
808 ($(objpfx)ifuncmain1staticpie): Define.
809 ($(objpfx)ifuncmain5pie.out): Define.
810 ($(objpfx)ifuncmain5pie): Define.
811 ($(objpfx)ifuncmain6pie.out): Define.
812 ($(objpfx)ifuncmain6pie): Define.
813 ($(objpfx)ifuncmain5): Define.
814 ($(objpfx)ifuncmain5pic): Define.
815 ($(objpfx)ifuncmain5static): Define.
816 ($(objpfx)ifuncmain5staticpic): Define.
817 ($(objpfx)ifuncmain5picstatic): Define.
818 (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
819 ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
821 * elf/b/elf/ifuncmain1staticpie.c: New file.
822 * elf/ifuncdep5.c: New file.
823 * elf/ifuncdep5pic.c: New file.
824 * elf/ifuncmain5.c: New file.
825 * elf/ifuncmain5pic.c: New file.
826 * elf/ifuncmain5picstatic.c: New file.
827 * elf/ifuncmain5pie.c: New file.
828 * elf/ifuncmain5static.c: New file.
829 * elf/ifuncmain5staticpic.c: New file.
830 * elf/ifuncmain6pie.c: New file.
831 * elf/ifuncmain7.c: New file.
832 * elf/ifuncmain7pic.c: New file.
833 * elf/ifuncmain7picstatic.c: New file.
834 * elf/ifuncmain7pie.c: New file.
835 * elf/ifuncmain7static.c: New file.
836 * elf/ifuncmod5.c: New file.
837 * elf/ifuncmod6.c: New file.
839 2009-06-20 Ulrich Drepper <drepper@redhat.com>
842 * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
843 (nss_endgrent): New variable.
844 (struct ent_t): Add need_endgrent and skip_initgroups_dyn
845 fields. Change type of files to bool and adjust all users.
846 (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
847 (internal_endgrent): Call nss_endgrent if necessary.
848 (add_group): New function. Broken out of...
849 (check_and_add_group): ...here.
850 (getgrent_next_nss): Remove test that any callback is available.
851 Use skip_initgroups_dyn to determine whether to use initgroups_dyn
852 callback. If there is no blacklist we can trust the results returned
853 by the initgroups_dyn callback. In case there is a callback and we
854 find a group entry for the group ID but it doesn't contain the
855 correct member, switch to the slow mode and use getgrent_r.
856 (internal_getgrent_r): When we see a +: entry, determine whether
857 there is any callback and which we can use the initgroups_dyn
860 2009-06-18 Ulrich Drepper <drepper@redhat.com>
862 * malloc/malloc.c (_int_malloc): Add some consistency checks.
863 (_int_free): Likewise.
865 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
867 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
868 * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
869 and ARPHRD_IEEE802154_PHY.
871 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
872 relative to generic Linux version.
874 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
876 * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
877 ($(objpfx)ifuncmain1vispie): Likewise.
879 2009-06-16 Ulrich Drepper <drepper@redhat.com>
881 * login/Makefile: Build pt_chown as PIE.
883 2009-06-15 Andreas Schwab <aschwab@redhat.com>
885 * debug/xtrace.sh (do_help): Don't treat bug reporting message as
887 * elf/sln.c (usage): Likewise.
888 * malloc/memusage.sh (do_help): Likewise.
889 * nss/getent.c (more_help): Likewise.
890 * posix/getconf.c (main): Likewise.
891 * sunrpc/rpcinfo.c (usage): Likewise.
892 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
894 2009-06-16 Ulrich Drepper <drepper@redhat.com>
896 * login/programs/pt_chown.c: Use libcap to drop privileges other than
898 * login/Makefile: If necessary link pt_chown with -lcap.
899 * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
900 * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
902 2009-06-16 Jakub Jelinek <jakub@redhat.com>
904 * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
906 * string/test-memchr.c (do_random_tests): Test very large lengths
909 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
911 * Makeconfig (+link-pie): Define.
913 (+postctorS): Define.
914 * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
915 * nscd/Makefile ($(objpfx)nscd): Likewise.
917 2009-04-22 Ryan S. Arnold <rsa@us.ibm.com>
920 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
922 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
924 2009-06-16 Ulrich Drepper <drepper@redhat.com>
926 * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
928 * sysdeps/unix/grantpt.c: ...here.
930 2009-06-15 Ulrich Drepper <drepper@redhat.com>
932 * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
933 chmod if it is necessary.
936 * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
937 when the slave device is in devpts or devfs.
940 * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
943 * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
944 of nd_opt_home_agent_info_preference to uint16_t.
945 Patch by Arnaud Ebalard <arno@natisbad.org>.
948 * nss/getent.c: Add support for printing gshadow data.
951 * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
952 not just the currently used one and those which follow.
953 Patch by Joe Landers <jlanders@vmware.com>.
956 * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
957 * libio/Makefile: Run tst-fgetwc with necessary envvar.
958 Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
961 * stdlib/abort.c: Define variable __abort_msg.
962 * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
963 * include/stdlib.h: Declare __abort_msg.
964 * assert/assert-perr.c: Don't free buffer for message immediately.
965 Store atomically in __abort_msg and free old buffer if necessary.
966 * assert/assert.c: Likewise.
967 * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
968 store pointer in __abort_msg, and possibly free old string.
969 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
971 * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
974 * time/tzfile.c (__tzfile_compute): If we use the envvar format still
975 handle leap seconds if they are available.
976 Patch by Akinori Hattori <hattya@gentoo.org>.
978 * timezone/tzselect.ksh: Update from tzcode2009i.
979 * timezone/zdump.c: Likewise.
980 * timezone/zic.c: Likewise.
982 * timezone/africa: Update from tzdata2009i.
983 * timezone/antarctica: Likewise.
984 * timezone/asia: Likewise.
985 * timezone/australasia: Likewise.
986 * timezone/backward: Likewise.
987 * timezone/etcetera: Likewise.
988 * timezone/europe: Likewise.
989 * timezone/factory: Likewise.
990 * timezone/iso3166.tab: Likewise.
991 * timezone/leapseconds: Likewise.
992 * timezone/northamerica: Likewise.
993 * timezone/pacificnew: Likewise.
994 * timezone/solar87: Likewise.
995 * timezone/solar88: Likewise.
996 * timezone/solar89: Likewise.
997 * timezone/southamerica: Likewise.
998 * timezone/systemv: Likewise.
999 * timezone/yearistype: Likewise.
1000 * timezone/zone.tab: Likewise.
1002 2009-06-15 Jakub Jelinek <jakub@redhat.com>
1004 * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
1005 STT_GNU_IFUNC symbol or in 8 into type_class.
1007 * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
1008 instead of Elf64_Addr.
1010 2009-06-14 Ulrich Drepper <drepper@redhat.com>
1012 * po/sv.po: Update from translation team.
1015 * misc/sys/select.h (__NFDBITS): Expression should have type int.
1016 * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
1017 __FD_CLR, and __FD_ISSET. gcc nowadays generates better code from
1020 2009-06-12 Ulrich Drepper <drepper@redhat.com>
1022 * Versions.def: Add GLIBC_2.11 for libpthread.
1024 2009-06-11 Ulrich Drepper <drepper@redhat.com>
1026 * resolv/res_send.c (send_dg): Remember we switched to
1027 single-request mode.
1029 2009-06-09 Ulrich Drepper <drepper@redhat.com>
1031 * dlfcn/dlfcn.h: Remove comma at end of enum.
1032 Patch by J.H.M. Dassen <rdassen@redhat.com>.
1034 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
1035 parsing mode string.
1037 2009-06-05 Ulrich Drepper <drepper@redhat.com>
1039 * sysdeps/x86_64/rawmemchr.S: Minor optimization.
1041 * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
1043 * sysdeps/x86_64/multiarch/strlen.S: New file.
1044 * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
1045 * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
1046 * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
1049 * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
1052 2009-06-04 Ulrich Drepper <drepper@redhat.com>
1054 * sysdeps/x86_64/strlen.S: Minor optimizations.
1056 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
1058 * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
1059 ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
1060 ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
1061 ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
1062 ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
1063 funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
1064 ifuncmain3.c, ifuncmod3.c,.
1065 ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
1066 (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
1067 ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
1068 ifuncmain4picstatic.
1069 (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
1070 ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
1071 ifuncmain3, ifuncmain4.
1072 (tests): Depend on $(objpfx)ifuncmain1pie.out and
1073 $(objpfx)ifuncmain1vispie.out.
1074 (modules-names): Add ifuncmod1 ifuncmod3.
1075 (generated): Add ifuncmain1pie ifuncmain1pie.out
1076 ifuncmain1vispie ifuncmain1vispie.out.
1077 Define rules to build and run the tests.
1078 * elf/ifuncdep1.c: New file.
1079 * elf/ifuncdep1pic.c: New file.
1080 * elf/ifuncdep2.c: New file.
1081 * elf/ifuncdep2pic.c: New file.
1082 * elf/ifuncmain1.c: New file.
1083 * elf/ifuncmain1pic.c: New file.
1084 * elf/ifuncmain1picstatic.c: New file.
1085 * elf/ifuncmain1pie.c: New file.
1086 * elf/ifuncmain1static.c: New file.
1087 * elf/ifuncmain1staticpic.c: New file.
1088 * elf/ifuncmain1vis.c: New file..
1089 * elf/ifuncmain1vispic.c: New file..
1090 * elf/ifuncmain1vispie.c: New file.
1091 * elf/ifuncmain2.c: New file.
1092 * elf/ifuncmain2pic.c: New file.
1093 * elf/ifuncmain2picstatic.c: New file.
1094 * elf/ifuncmain2static.c: New file.
1095 * elf/ifuncmain3.c: New file.
1096 * elf/ifuncmain4.c: New file.
1097 * elf/ifuncmain4picstatic.c: New file.
1098 * elf/ifuncmain4static.c: New file.
1099 * elf/ifuncmod1.c: New file.
1100 * elf/ifuncmod3.c: New file.
1102 2009-06-03 Ulrich Drepper <drepper@redhat.com>
1104 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
1106 2009-06-02 Ulrich Drepper <drepper@redhat.com>
1109 * posix/Makefile (routines): Add execvpe.
1110 * posix/Versions: Export execvpe for GLIBC_2.11.
1111 * posix/execvp.c: Now only a wrapper. Move code to...
1112 * posix/execvpe.c: ...here. New file.
1113 * posix/unistd.h: Declare execvpe.
1115 2009-06-01 Ulrich Drepper <drepper@redhat.com>
1117 * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
1118 for STT_GNU_IFUNC handling for efficiency.
1119 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1121 * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
1123 * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
1125 2009-05-31 Ulrich Drepper <drepper@redhat.com>
1127 * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
1130 2009-05-29 H.J. Lu <hongjiu.lu@intel.com>
1132 * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
1134 (__rela_iplt_start): New declaration.
1135 (__rela_iplt_end): Likewise.
1136 (__rel_iplt_start): Likewise.
1137 (__rel_iplt_end): Likewise.
1138 (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
1139 * elf/elf.h (R_386_IRELATIVE): New macro.
1140 (R_X86_64_IRELATIVE): New macro.
1141 (R_386_NUM): Updated.
1142 (R_X86_64_NUM): Likewise.
1143 * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
1144 (libc_ifunc_hidden_def): New macro.
1145 * sysdeps/generic/dl-irel.h: New file.
1146 * sysdeps/i386/dl-irel.h: New file.
1147 * sysdeps/x86_64/dl-irel.h: New file.
1148 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
1149 (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
1150 Handle R_386_IRELATIVE.
1151 (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
1152 (elf_machine_lazy_rela): Likewise.
1153 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1155 (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
1157 2009-05-31 Ulrich Drepper <drepper@redhat.com>
1159 * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
1160 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. So far there
1161 are no differences. If an architecture has bits in CPUID index 1
1162 meaning different things the values for the COMMON_CPUID_INDEX_1
1163 index must not be set.
1164 (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
1165 (HAS_POPCOUNT): ...this. New macro.
1166 * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
1167 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. Unify code
1168 to set the value for Intel and AMD architectures.
1169 * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
1170 INTEL_CPUID_INDEX_1.
1171 * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
1174 2009-05-30 Andreas Schwab <schwab@linux-m68k.org>
1176 * configure.in: Move AC_CANONICAL_HOST before first use of $host
1179 2009-05-29 Jakub Jelinek <jakub@redhat.com>
1181 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
1182 (__expm1l): Set errno to ERANGE on overflow.
1183 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
1184 (__tanl): Set errno to EDOM for ±Inf.
1185 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
1186 (__cosl): Set errno to EDOM for ±Inf.
1187 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
1188 (__sinl): Set errno to EDOM for ±Inf.
1190 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
1192 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
1193 * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
1194 * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
1196 2009-05-29 Ulrich Drepper <drepper@redhat.com>
1198 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
1200 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
1202 2009-05-22 Andreas Schwab <schwab@linux-m68k.org>
1204 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
1205 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
1206 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
1207 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
1209 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
1210 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
1211 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
1213 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1214 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
1216 2009-05-22 Jakub Jelinek <jakub@redhat.com>
1218 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
1219 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
1220 is, either do nothing at all if __ASSUME_ACCEPT4, or
1221 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
1222 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
1223 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
1225 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
1226 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
1227 internal_accept4 in socket directory.
1229 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
1231 * sysdeps/ia64/configure.in: New file.
1233 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
1236 * sysdeps/ia64/memchr.S: Use speculative load.
1238 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
1239 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
1242 * sysdeps/i386/__longjmp.S: Add .text.
1243 * sysdeps/x86_64/__longjmp.S: Likewise.
1245 2009-05-21 Ulrich Drepper <drepper@redhat.com>
1247 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
1248 __ASSUME_ACCEPT4 for IA-64.
1250 2009-05-21 Jakub Jelinek <jakub@redhat.com>
1252 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
1254 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
1255 (SOCKOP_accept4): Define.
1257 2009-05-20 Ulrich Drepper <drepper@redhat.com>
1259 Sun approved the change of the license.
1260 * sunrpc/auth_des.c: Replace license text.
1261 * sunrpc/auth_none.c: Likewise.
1262 * sunrpc/auth_unix.c: Likewise.
1263 * sunrpc/authdes_prot.c: Likewise.
1264 * sunrpc/authuxprot.c: Likewise.
1265 * sunrpc/bindrsvprt.c: Likewise.
1266 * sunrpc/clnt_gen.c: Likewise.
1267 * sunrpc/clnt_perr.c: Likewise.
1268 * sunrpc/clnt_raw.c: Likewise.
1269 * sunrpc/clnt_simp.c: Likewise.
1270 * sunrpc/clnt_tcp.c: Likewise.
1271 * sunrpc/clnt_udp.c: Likewise.
1272 * sunrpc/clnt_unix.c: Likewise.
1273 * sunrpc/des_crypt.c: Likewise.
1274 * sunrpc/des_soft.c: Likewise.
1275 * sunrpc/get_myaddr.c: Likewise.
1276 * sunrpc/getrpcport.c: Likewise.
1277 * sunrpc/key_call.c: Likewise.
1278 * sunrpc/key_prot.c: Likewise.
1279 * sunrpc/openchild.c: Likewise.
1280 * sunrpc/pm_getmaps.c: Likewise.
1281 * sunrpc/pm_getport.c: Likewise.
1282 * sunrpc/pmap_clnt.c: Likewise.
1283 * sunrpc/pmap_prot.c: Likewise.
1284 * sunrpc/pmap_prot2.c: Likewise.
1285 * sunrpc/pmap_rmt.c: Likewise.
1286 * sunrpc/rpc/auth.h: Likewise.
1287 * sunrpc/rpc/auth_unix.h: Likewise.
1288 * sunrpc/rpc/clnt.h: Likewise.
1289 * sunrpc/rpc/des_crypt.h: Likewise.
1290 * sunrpc/rpc/key_prot.h: Likewise.
1291 * sunrpc/rpc/netdb.h: Likewise.
1292 * sunrpc/rpc/pmap_clnt.h: Likewise.
1293 * sunrpc/rpc/pmap_prot.h: Likewise.
1294 * sunrpc/rpc/pmap_rmt.h: Likewise.
1295 * sunrpc/rpc/rpc.h: Likewise.
1296 * sunrpc/rpc/rpc_des.h: Likewise.
1297 * sunrpc/rpc/rpc_msg.h: Likewise.
1298 * sunrpc/rpc/svc.h: Likewise.
1299 * sunrpc/rpc/svc_auth.h: Likewise.
1300 * sunrpc/rpc/types.h: Likewise.
1301 * sunrpc/rpc/xdr.h: Likewise.
1302 * sunrpc/rpc_clntout.c: Likewise.
1303 * sunrpc/rpc_cmsg.c: Likewise.
1304 * sunrpc/rpc_common.c: Likewise.
1305 * sunrpc/rpc_cout.c: Likewise.
1306 * sunrpc/rpc_dtable.c: Likewise.
1307 * sunrpc/rpc_hout.c: Likewise.
1308 * sunrpc/rpc_main.c: Likewise.
1309 * sunrpc/rpc_parse.c: Likewise.
1310 * sunrpc/rpc_parse.h: Likewise.
1311 * sunrpc/rpc_prot.c: Likewise.
1312 * sunrpc/rpc_sample.c: Likewise.
1313 * sunrpc/rpc_scan.c: Likewise.
1314 * sunrpc/rpc_scan.h: Likewise.
1315 * sunrpc/rpc_svcout.c: Likewise.
1316 * sunrpc/rpc_tblout.c: Likewise.
1317 * sunrpc/rpc_util.c: Likewise.
1318 * sunrpc/rpc_util.h: Likewise.
1319 * sunrpc/rpcinfo.c: Likewise.
1320 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
1321 * sunrpc/rpcsvc/key_prot.x: Likewise.
1322 * sunrpc/rpcsvc/klm_prot.x: Likewise.
1323 * sunrpc/rpcsvc/mount.x: Likewise.
1324 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
1325 * sunrpc/rpcsvc/rex.x: Likewise.
1326 * sunrpc/rpcsvc/rstat.x: Likewise.
1327 * sunrpc/rpcsvc/rusers.x: Likewise.
1328 * sunrpc/rpcsvc/sm_inter.x: Likewise.
1329 * sunrpc/rpcsvc/spray.x: Likewise.
1330 * sunrpc/rpcsvc/yppasswd.x: Likewise.
1331 * sunrpc/rtime.c: Likewise.
1332 * sunrpc/svc.c: Likewise.
1333 * sunrpc/svc_auth.c: Likewise.
1334 * sunrpc/svc_authux.c: Likewise.
1335 * sunrpc/svc_raw.c: Likewise.
1336 * sunrpc/svc_run.c: Likewise.
1337 * sunrpc/svc_simple.c: Likewise.
1338 * sunrpc/svc_tcp.c: Likewise.
1339 * sunrpc/svc_udp.c: Likewise.
1340 * sunrpc/svc_unix.c: Likewise.
1341 * sunrpc/svcauth_des.c: Likewise.
1342 * sunrpc/xcrypt.c: Likewise.
1343 * sunrpc/xdr.c: Likewise.
1344 * sunrpc/xdr_array.c: Likewise.
1345 * sunrpc/xdr_float.c: Likewise.
1346 * sunrpc/xdr_mem.c: Likewise.
1347 * sunrpc/xdr_rec.c: Likewise.
1348 * sunrpc/xdr_ref.c: Likewise.
1349 * sunrpc/xdr_sizeof.c: Likewise.
1350 * sunrpc/xdr_stdio.c: Likewise.
1352 * po/da.po: Update from translation team.
1354 2009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1356 * sysdeps/sh/____longjmp_chk.S: New file.
1357 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
1358 * sysdeps/sh/sh4/__longjmp.S: Likewise.
1360 2009-05-18 Jakub Jelinek <jakub@redhat.com>
1361 Ulrich Drepper <drepper@redhat.com>
1363 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
1364 (__nscd_cache_search): Assume each entry in the
1365 hash chain needs one hashentry and half of datahead. Use
1366 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
1368 2009-05-16 Ulrich Drepper <drepper@redhat.com>
1370 * posix/sys/wait.h: Fix typos. Pretty printing.
1371 * stdlib/stdlib.h: Likewise. Correct comments.
1374 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
1376 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
1379 2009-05-15 Ulrich Drepper <drepper@redhat.com>
1381 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
1382 Use it if we absolutely cannot reach any more correct list elements
1383 because that many do not fit into the currently mapped database.
1385 2009-05-14 Jakub Jelinek <jakub@redhat.com>
1387 * nscd/nscd_helper.c: Include stddef.h.
1388 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
1389 in a couple of places. Return NULL if trail is not less than
1390 datasize, don't consider dataheads with length smaller than
1391 offsetof (struct datahead, data) + datalen.
1392 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
1393 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
1394 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
1395 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1396 * nscd/nscd_getai.c (__nscd_getai): Likewise.
1397 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
1398 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
1400 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
1402 (fallocate64): ... to this.
1403 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
1405 (fallocate64): ... to this.
1406 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
1407 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
1408 fallocate64@@GLIBC_2.10.
1409 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
1410 fallocate64@@GLIBC_2.11.
1411 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
1412 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
1413 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
1414 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
1416 * nscd/selinux.c (nscd_avc_destroy): Removed.
1417 * nscd/selinux.h (nscd_avc_destroy): Likewise.
1418 * nscd/nscd.c (termination_handler): Don't call
1421 2009-05-12 Jakub Jelinek <jakub@redhat.com>
1423 * include/atomic.h: Formatting.
1424 (catomic_compare_and_exchange_val_acq): Don't define if already
1425 defined by bits/atomic.h.
1427 2009-05-15 Ulrich Drepper <drepper@redhat.com>
1429 * math/libm-test.inc (expm1_test): Add test for range error.
1431 * Versions.def: Add GLIBC_2.11 for libc.
1432 * debug/Makefile (routines): Add longjmp_chk.
1433 Add rules to build and run tst-longjmp_chk.
1434 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
1435 * debug/longjmp_chk.c: New file.
1436 * debug/tst-longjmp_chk.c: New file.
1437 * include/bits/setjmp2.: New file.
1438 * include/stdio.h: Mark __fortify_fail as internal_function.
1439 * setjmp/Makefile (headers): Add bits/setjmp2.h.
1440 * setjmp/bits/setjmp2.h: New file.
1441 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
1443 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
1445 * sysdeps/i386/____longjmp_chk.S: New file.
1446 * sysdeps/x86_64/____longjmp_chk.S: New file.
1447 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
1448 * sysdeps/x86_64/__longjmp.S: Likewise.
1450 * version.h: Bump for 2.11 development.
1452 * elf/check-execstack.c: New file.
1453 * elf/Makefile: Add rules to build and run check-execstack.
1455 2009-05-10 Ulrich Drepper <drepper@redhat.com>
1457 * version.h (VERSION): Bump to 2.10.1.
1459 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
1460 compatibility functions.
1461 * nss/getXXent_r.c: Likewise.
1462 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
1463 * gshadow/getsgnam_r.c: Likewise.
1464 * gshadow/Version: Remove duplicate entries.
1466 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
1467 for recent processor.
1468 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
1471 2009-05-09 Ulrich Drepper <drepper@redhat.com>
1473 * version.h (VERSION): Bump for 2.10 release.
1474 * include/features.h (__GLIBC_MINOR__): Bump to 10.
1476 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
1477 same place we add ASFLAGS-config.
1479 2009-05-05 Aurelien Jarno <aurelien@aurel32.net>
1482 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
1483 or FORMERR and the other NOERROR, don't raise an error.
1485 2009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
1488 * Makeconfig (+asflags): New variable based upon ASFLAG or
1490 (ASFLAGS): Add override to set ASFLAGS to +asflags.
1491 * config.make.in (asflags-cpu): Add variable based upon
1492 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
1494 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1495 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
1496 recognizes power6 instruction set due to passing -mcpu=power6 from
1497 --with-cpu=power6 when compiling .S files.
1498 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1500 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1502 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1505 2009-05-09 Jakub Jelinek <jakub@redhat.com>
1507 * string/stratcliff.c (do_test): Test for zero length
1508 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
1509 at the end of the page.
1511 2009-05-08 Ulrich Drepper <drepper@redhat.com>
1513 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
1515 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
1518 * po/da.po: Update from translation team.
1520 2009-05-05 Jakub Jelinek <jakub@redhat.com>
1522 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
1523 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
1525 2009-05-05 Ulrich Drepper <drepper@redhat.com>
1527 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
1528 and READ_IMPLIES_EXEC.
1530 2009-05-04 Ulrich Drepper <drepper@redhat.com>
1532 * po/da.po: Update from translation team.
1534 2009-04-29 Jakub Jelinek <jakub@redhat.com>
1536 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
1539 2009-04-27 Jakub Jelinek <jakub@redhat.com>
1541 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
1542 to MAP_ANON in PROT_NONE mmap64 call.
1543 (open_archive): Likewise.
1544 (file_data_available_p): Use mmap64 instead of mremap.
1545 (enlarge_archive): Likewise. Update head if ah->addr changed.
1546 Attempt to reserve address space after mmap64 region.
1548 2009-04-26 Ulrich Drepper <drepper@redhat.com>
1550 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
1551 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
1552 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1554 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
1555 atanh should set ERANGE.
1558 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
1559 result of lookup to make call to implement STT_GNU_IFUNC.
1560 (_dl_profile_fixup): Likewise.
1561 Patch by H.J. Lu <hjl.tools@gmail.com>.
1563 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
1566 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
1569 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
1570 label if it is not used.
1572 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
1573 of gmon_hist_hdr and gmon_hdr structures and use them.
1574 * elf/sprof.c: Likewise.
1576 * elf/dl-load.c (open_verify): Add temporary variable to avoid
1579 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
1581 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
1584 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
1585 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
1587 (iruserok_af): Use ss_family instead of casts.
1589 * gmon/gmon.c (write_hist): Define real-type variant of
1590 gmon_hist_hdr structure and use it.
1591 (write_gmon): Likewise for gmon_hdr.
1593 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
1594 function if we are not going to define it.
1595 * sysdeps/unix/sysv/linux/writev.c: Likewise.
1597 * inet/inet6_option.c (option_alloc): Add temporary variable to
1600 * libio/strfile.h (struct _IO_streambuf): Use correct type and
1601 name of VTable element.
1602 * libio/iovsprintf.c: Avoid casts to avoid warnings.
1603 * libio/iovsscanf.c: Likewise.
1604 * libio/vasprintf.c: Likewise.
1605 * libio/vsnprintf.c: Likewise.
1606 * stdio-common/isoc99_vsscanf.c: Likewise.
1607 * stdlib/strfmon_l.c: Likewise.
1608 * debug/vasprintf_chk.c: Likewise.
1609 * debug/vsnprintf_chk.c: Likewise.
1610 * debug/vsprintf_chk.c: Likewise.
1612 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
1615 2009-04-26 Jakub Jelinek <jakub@redhat.com>
1617 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
1619 2009-04-25 Ulrich Drepper <drepper@redhat.com>
1621 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
1623 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
1624 * sysdeps/i386/fpu/s_tanf.S: Likewise.
1625 * sysdeps/i386/fpu/s_tanl.S: Likewise.
1626 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1627 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
1628 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
1629 * math/libm-test.inc: Add tests for errno after tan calls with
1632 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
1633 errno value vor pow(+-0,neg).
1634 * math/libm-test.inc (pow_test): Add tests for errno value for
1637 * math/w_fmod.c: Also handle x=±Inf as error.
1638 * math/w_fmodf.c: Likewise.
1639 * math/w_fmodl.c: Likewise.
1640 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
1643 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
1644 * sysdeps/i386/fpu/s_cosf.S: Likewise.
1645 * sysdeps/i386/fpu/s_cosl.S: Likewise.
1646 * sysdeps/i386/fpu/s_sin.S: Likewise.
1647 * sysdeps/i386/fpu/s_sinf.S: Likewise.
1648 * sysdeps/i386/fpu/s_sinl.S: Likewise.
1649 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1650 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
1651 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
1652 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
1653 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
1654 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
1655 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
1656 * math/libm-test.inc: Add tests for errno after sin/cos calls with
1659 * stdlib/strtod_l.c (round_and_return): We have to set errno to
1660 ERANGE for underflows.
1661 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
1663 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
1666 * libio/tst-widetext.input: Remove surrogates.
1668 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
1670 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
1671 for lgamma should set errno to ERANGE, not EDOM.
1672 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
1674 2009-04-24 Ulrich Drepper <drepper@redhat.com>
1677 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
1680 * locale/programs/locarchive.c (enlarge_archive): Conserve address
1681 space when temporarily mapping the whole content of the old file.
1684 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
1687 2009-04-24 Jakub Jelinek <jakub@redhat.com>
1689 * iconvdata/sjis.c (BODY): Don't advance inptr before
1690 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
1691 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
1694 2009-04-24 Ulrich Drepper <drepper@redhat.com>
1696 * locale/locarchive.h (struct locarhandle): Rename len field to
1697 mmaped and add new reserved field.
1698 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
1699 (create_archive): Reserve address space and then map file into it.
1700 (open_archive): Likewise.
1701 (file_data_available_p): New function.
1702 (compare_from_file): New function.
1703 (close_archive): Adjust to member name changes.
1704 (add_locale): Before comparing locale data, check it is mapped.
1705 Otherwise fall back to reading from the file.
1707 2009-04-23 H.J. Lu <hongjiu.lu@intel.com>
1709 * stdio-common/psiginfo.c: Include <errno.h>.
1711 2009-04-23 Ulrich Drepper <drepper@redhat.com>
1714 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
1715 to get consistency between 32 and 64 bit architectures.
1718 * sysdeps/unix/make-syscalls.sh: Add rule to create target
1719 directory for dummy syscall rules.
1720 Patch by Chris Steinbroner <hesh@pobox.com>.
1722 2009-04-23 Aurelien Jarno <aurelien@aurel32.net>
1725 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
1728 2009-04-23 Ulrich Drepper <drepper@redhat.com>
1730 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
1731 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1733 2009-04-23 Jakub Jelinek <jakub@redhat.com>
1735 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
1736 data from vector to temporary buffer and call PWRITEV after it
1737 instead of vice versa.
1738 * sysdeps/posix/preadv.c: Fix up comment.
1739 * misc/preadv.c: Likewise.
1740 * misc/preadv64.c: Likewise.
1741 * misc/pwritev.c: Likewise.
1742 * misc/pwritev64.c: Likewise.
1743 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
1745 2009-04-23 Ulrich Drepper <drepper@redhat.com>
1747 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
1749 * shadow/Makefile (tests): Add tst-shadow.
1750 * shadow/tst-shadow.c: New file.
1753 * gshadow/Makefile: New file.
1754 * gshadow/Versions: New file.
1755 * gshadow/fgetsgent.c: New file.
1756 * gshadow/fgetsgent_r.c: New file.
1757 * gshadow/getsgent.c: New file.
1758 * gshadow/getsgent_r.c: New file.
1759 * gshadow/getsgnam.c: New file.
1760 * gshadow/getsgnam_r.c: New file.
1761 * gshadow/gshadow.h: New file.
1762 * gshadow/putsgent.c: New file.
1763 * gshadow/sgetsgent.c: New file.
1764 * gshadow/sgetsgent_r.c: New file.
1765 * gshadow/tst-gshadow.c: New file.
1766 * include/gshadow.h: New file.
1767 * Makeconfig (all-subdirs): Add gshadow.
1768 * Makefile (installed-headers): Add gshadow/gshadow.h.
1769 * nss/Makefile (databases): Add sgrp.
1770 * nss/Versions: Add gshadow functions as private exports.
1771 * nss/nsswitch.conf: Add gshadow entry.
1772 * nss/sgrp-lookup.c: New file.
1773 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
1774 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
1775 * nss/nss_files/files-sgrp.c: New file.
1776 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
1777 * sysdeps/unix/sysv/linux/paths.h: Likewise.
1779 2009-04-22 Ulrich Drepper <drepper@redhat.com>
1781 * stdio-common/printf.h: Add missing const to register_printf_modifier.
1782 * stdio-common/reg-modifier.c: Likewise.
1784 2009-04-22 Andrew Stubbs <ams@codesourcery.com>
1786 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
1789 2009-04-20 Ulrich Drepper <drepper@redhat.com>
1792 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
1793 headers up to 2.6.30.
1795 * po/ca.po: Update from translation team.
1797 2009-04-19 Ulrich Drepper <drepper@redhat.com>
1800 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
1801 an object that uses static TLS if the TLS modid is higher than the
1802 reserve we always allocate. At least for multi-threaded code.
1804 2009-04-18 Ulrich Drepper <drepper@redhat.com>
1806 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
1807 Numerically stable check for valid width.
1809 * locale/programs/locarchive.c (open_archive): Map the entire file
1810 and not just the administrative data.
1811 (add_locale): When we find a hash sum match compare the content
1814 * malloc/malloc.c (malloc_info): Output address space information.
1816 2009-04-17 Ulrich Drepper <drepper@redhat.com>
1818 * malloc/malloc.c (malloc_info): Also output system memory information.
1820 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
1821 architectures have preadv/pwritev in 2.6.30.
1823 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
1824 * sysdeps/posix/readv.c: Likewise.
1825 Reported by Markus Armbruster <armbru@redhat.com>.
1827 * malloc/hooks.c (top_check): Force hook value into register.
1829 2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1831 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
1832 calls to _dl_relocate_object.
1834 2009-04-16 Ulrich Drepper <drepper@redhat.com>
1837 * malloc/malloc.c (force_reg): Define.
1838 (sYSMALLOc): Load hook variable into variable
1839 before test and force into register.
1840 (sYSTRIm): Likewise.
1841 (public_mALLOc): Force hook value into register.
1842 (public_fREe): Likewise.
1843 (public_rEALLOc): Likewise.
1844 (public_mEMALIGn): Likewise.
1845 (public_vALLOc): Likewise.
1846 (public_pVALLOc): Likewise.
1847 (public_cALLOc): Likewise.
1848 (__posix_memalign): Likewise.
1849 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
1850 before test and force into register.
1851 * malloc/hooks.c (top_check): Likewise.
1852 (public_sET_STATe): Pretty printing.
1854 * resolv/res_send.c (send_dg): Don't just ignore the result we got
1855 in case we only receive one reply in single-request mode.
1857 2009-04-16 Jakub Jelinek <jakub@redhat.com>
1859 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
1860 are dlopened in statically linked program even for __LM_ID_CALLER.
1862 2009-04-16 Ulrich Drepper <drepper@redhat.com>
1864 * resolv/res_send.c (send_dg): Don't switch into single-request
1865 mode if we already are in it.
1867 2009-04-15 Ulrich Drepper <drepper@redhat.com>
1869 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
1870 are always at least 4 bytes in the returned line.
1872 2009-04-15 Jakub Jelinek <jakub@redhat.com>
1874 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
1875 __libc_use_alloca (8192), if the stack is too small use 512 bytes
1876 instead of 8K. Stop searching in /proc/stat after hitting first
1877 line not starting with cpu.
1878 (next_line): Truncate too long
1879 lines at buffer size * 3/4 instead of pretending there were line
1880 breaks inside of large lines.
1882 2009-04-14 Ulrich Drepper <drepper@redhat.com>
1884 * sysdeps/x86_64/mp_clz_tab.c: New file.
1886 2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
1887 Ulrich Drepper <drepper@redhat.com>
1889 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
1890 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
1891 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
1893 2009-03-25 Andrew Stubbs <ams@codesourcery.com>
1895 * sysdeps/sh/libc-tls.c: New file.
1897 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
1899 2009-04-14 Roland McGrath <roland@redhat.com>
1901 * elf/elf.h: Add various missing ARM constants, to match binutils.
1903 2009-04-14 Ulrich Drepper <drepper@redhat.com>
1905 Optimizations from GMP.
1906 * sysdeps/x86_64/add_n.S: New file.
1907 * sysdeps/x86_64/addmul_1.S: New file.
1908 * sysdeps/x86_64/lshift.S: New file.
1909 * sysdeps/x86_64/mul_1.S: New file.
1910 * sysdeps/x86_64/rshift.S: New file.
1911 * sysdeps/x86_64/sub_n.S: New file.
1912 * sysdeps/x86_64/submul_1.S: New file.
1914 2009-04-14 Jakub Jelinek <jakub@redhat.com>
1916 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
1917 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
1918 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
1919 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
1921 2009-04-14 Ulrich Drepper <drepper@redhat.com>
1923 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
1926 2009-04-13 Ulrich Drepper <drepper@redhat.com>
1928 * sysdeps/x86-64/strrchr.S: New file.
1930 2009-04-10 Ulrich Drepper <drepper@redhat.com>
1932 * stdio-common/printf.h (struct printf_info): Add user element.
1933 New types printf_arginfo_size_function, printf_va_arg_function.
1934 Declare register_printf_specifier, register_printf_modifier,
1935 register_printf_type.
1936 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
1937 (union printf_arg): Add pa_user element.
1938 Adjust __printf_arginfo_table type.
1939 Add __printf_va_arg_table, __printf_modifier_table,
1940 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
1942 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
1943 If registered arginfo call failed try normal specifier.
1944 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
1946 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
1947 * stdio-common/Versions: Export register_printf_modifier,
1948 register_printf_type, and register_printf_specifier for GLIBC_2.10.
1949 * stdio-common/reg-modifier.c: New file.
1950 * stdio-common/reg-type.c: New file.
1951 * stdio-common/reg-printf.c (__register_printf_specifier): New
1952 function. Mostly the old __register_printf_function function but
1953 uses locking and type of third parameter changed.
1954 (__register_printf_function): Implement using
1955 __register_printf_specifier.
1956 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
1957 calls to arginfo functions. Allocate enough memory for user-defined
1958 types. Call new va_arg functions to get user-defined types.
1959 Try installed handlers even for existing format specifiers first.
1961 2009-04-09 Ulrich Drepper <drepper@redhat.com>
1963 * sysdeps/x86_64/rawmemchr.S: New file.
1965 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
1966 Simplified code and possible copy problem fixed.
1968 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
1969 function if it is not defined. Add some necessary casts.
1970 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1972 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
1973 have preadv/pwritev in 2.6.30.
1975 2009-04-08 Ulrich Drepper <drepper@redhat.com>
1977 * malloc/malloc.c (malloc_info): New function.
1978 * malloc/malloc.h: Declare it.
1979 * malloc/Versions: Export malloc_info for GLIBC_2.10.
1981 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
1984 * malloc/malloc.c (_int_realloc): Add parameter with old block
1985 size. Remove duplicated test. Don't handle mmap'ed blocks here.
1987 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
1989 2009-04-07 Ulrich Drepper <drepper@redhat.com>
1991 * sysdeps/x86_64/strchrnul.S: New file.
1993 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
1994 depending libcrypt on -lfreebl3.
1996 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
1997 preadv/pwritev in 2.6.30.
1999 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
2000 instead of __strcasecmp.
2002 * string/stratcliff.c (do_test): Add memchr tests..
2003 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
2004 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
2005 first read quad word.
2007 2009-04-06 Ulrich Drepper <drepper@redhat.com>
2009 * string/strverscmp.c (__strverscmp): Fix last cleanups.
2010 * string/tst-svc.input: Add new test case.
2011 * string/tst-svc.expect: Adjust.
2012 * string/Makefile: Don't ignore tst-svc error.
2014 * sysdeps/x86_64/memchr.S: New file.
2016 * resolv/resolv.h (RES_SNGLKUP): Define.
2017 * resolv/res_init.c (res_setoptions): Recognize single-request option.
2018 * resolv/res_send.c (send_dg): If we sent two requests at once and
2019 only get one reply before timeout switch to mode where we send the
2020 second request only after the first answer has been received.
2022 2009-04-05 Ulrich Drepper <drepper@redhat.com>
2024 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
2025 * sysdeps/x86_64/strchr.S: Likewise.
2027 2009-04-03 Ulrich Drepper <drepper@redhat.com>
2029 * configure.in: We need to test for the compiler earlier.
2031 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
2032 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
2034 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
2035 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
2037 * misc/preadv.c: New file.
2038 * misc/preadv64.c: New file.
2039 * misc/pwritev.c: New file.
2040 * misc/pwritev64.c: New file.
2041 * sysdeps/posx/preadv.c: New file.
2042 * sysdeps/posx/preadv64.c: New file.
2043 * sysdeps/posx/pwritev.c: New file.
2044 * sysdeps/posx/pwritev64.c: New file.
2045 * sysdeps/unix/sysv/linux/preadv.c: New file.
2046 * sysdeps/unix/sysv/linux/preadv64.c: New file.
2047 * sysdeps/unix/sysv/linux/pwritev.c: New file.
2048 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
2049 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
2050 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
2052 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
2054 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
2056 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2057 __ASSUME_COMPLETE_READV_WRITEV.
2058 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
2059 with modern kernels.
2060 * sysdeps/unix/sysv/linux/writev.c: Likewise.
2062 * sysdeps/posix/readv.c: Since read is a cancellation point we have
2063 to free a possible malloced buffer in case of cancellation.
2064 * sysdeps/posix/writev.c: Likewise for write.
2066 2009-04-02 Ulrich Drepper <drepper@redhat.com>
2068 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
2070 * configure.in: Recognize --enable-nss-crypt.
2071 * config.make.in: Add nss-crypt entry.
2072 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
2073 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
2074 and include path for NSS directory to compiler for md5-crypt,
2075 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
2076 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
2077 function implementation, use NSS. Introduce wrappers around the
2078 hash function calls. Little code size optimization.
2079 * crypt/sha256-crypt.c: Likewise.
2080 * crypt/sha512-crypt.c: Likewise.
2081 * scripts/check-local-headers.sh: Ignore nss3 directory.
2083 * configure.in: Rename pic_default to libc_cv_pic_default.
2084 * config.make.in: Likewise.
2086 2009-04-01 Roland McGrath <roland@redhat.com>
2088 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
2089 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
2090 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
2091 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
2092 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
2093 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
2094 (R_SPARC_NUM): Update.
2095 From Dave Miller <davem@davemloft.net>.
2097 2009-04-01 Ulrich Drepper <drepper@redhat.com>
2099 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
2101 2009-03-31 Ulrich Drepper <drepper@redhat.com>
2103 * elf/dl-open.c: Keep track of used name spaces and only iterate over
2104 those which are used.
2105 * elf/dl-addr.c: Likewise.
2106 * elf/dl-caller.c: Likewise.
2107 * elf/dl-fini.c: Likewise.
2108 * elf/dl-iteratephdr.c: Likewise.
2109 * elf/dl-libc.c: Likewise.
2110 * elf/dl-load.c: Likewise.
2111 * elf/dl-support.c: Likewise.
2112 * elf/dl-sym.c: Likewise.
2113 * elf/rtld.c: Likewise.
2114 * sysdeps/generic/ldsodefs.h: Likewise.
2116 * elf/dl-load.c: Remove support for systems without MAP_ANON.
2117 * elf/dl-minimal.c: Likewise.
2118 * elf/dl-misc.c: Likewise.
2119 * elf/rtld.c: Likewise.
2120 * sysdeps/generic/ldsodefs.h: Likewise.
2122 2009-03-30 Ulrich Drepper <drepper@redhat.com>
2124 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
2125 Avoid reuse of complex expression.
2127 * po/fr.po: Update from translation team.
2129 2009-03-16 Ulrich Drepper <drepper@redhat.com>
2131 * include/dirent.h: Yet more changes to match sort function type
2133 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
2134 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
2135 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
2137 2009-03-16 Thomas Schwinge <tschwinge@gnu.org>
2139 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
2141 2009-03-16 Ulrich Drepper <drepper@redhat.com>
2143 * nscd/connections.c (restart): Try to preserve the process name
2144 by reading the /proc/self/exe symlink and using the return name.
2145 Patch by Jeff Bastian <jbastian@redhat.com>.
2147 2009-03-15 Ulrich Drepper <drepper@redhat.com>
2150 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
2151 if we are not loading a new audit library.
2152 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
2153 Only use profiling trampoline for auditing if we are not relocating
2155 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
2156 * elf/rtld.c: Likewise.
2157 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
2159 * elf/rtld.c (dl_main): Extend help message for --audit option.
2162 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
2163 alphasort64, versionsort, and versionsort64 to POSIX 2008.
2164 * dirent/alphasort.c: Adjust implementation to type change.
2165 * dirent/alphasort64.c: Likewise.
2166 * dirent/scandir.c: Likewise.
2167 * dirent/versionsort.c: Likewise.
2168 * dirent/versionsort64.c: Likewise.
2169 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
2171 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
2175 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
2176 correctly. Set segleft member in output as required.
2177 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2178 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
2181 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
2182 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2183 * inet/Makefile (tests): Add tst-inet6_rth.
2184 * inet/tst-inet6_rth.c: New file.
2187 * string/strlen.c (strlen): Fix omission in the expression to test
2190 2009-03-14 Ulrich Drepper <drepper@redhat.com>
2192 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
2194 * elf/dl-runtime.c (reloc_offset): Define.
2195 (reloc_index): Define.
2196 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
2197 (_dl_fixup_profile): Likewise. Use reloc_index instead of
2198 computing index from reloc_offset.
2199 (_dl_call_pltexit): Likewise.
2200 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
2201 the relocation index to _dl_fixup.
2202 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
2204 * sysdeps/x86_64/dl-runtime.c: New file.
2207 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
2208 alignment of La_x86_64_regs. Store xmm parameters.
2209 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
2212 * string/strverscmp.c (__strverscmp): Fix case of different digits
2213 in fractional part of string.
2214 Patch by Jingyu Liu <jyliu@fortinet.com>.
2215 * string/Makefile (tests): Add tst-svc2.
2216 * string/tst-svc2.c: New file.
2218 * string/strverscmp.c (__strverscmp): Optimize size of tables.
2220 * locale/iso-639.def: Add Min Nan.
2222 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2225 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
2227 2009-03-14 Ulrich Drepper <drepper@redhat.com>
2229 * elf/dl-sysdep.c (auxvars): Compress data structure.
2231 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
2232 STT_GNU_IFUNC handling.
2233 (elf_machine_rela): Likewise.
2235 2009-03-13 Ulrich Drepper <drepper@redhat.com>
2237 * config.h.in (USE_MULTIARCH): Define.
2238 * configure.in: Handle --enable-multi-arch.
2239 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
2240 (_dl_fixup_profile): Likewise.
2241 * elf/do-lookup.c (dl_lookup_x): Likewise.
2242 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
2243 * elf/elf.h (STT_GNU_IFUNC): Define.
2244 * include/libc-symbols.h (libc_ifunc): Define.
2245 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
2246 framework in init-arch.h to get CPUID values.
2247 * sysdeps/x86_64/multiarch/Makefile: New file.
2248 * sysdeps/x86_64/multiarch/init-arch.c: New file.
2249 * sysdeps/x86_64/multiarch/init-arch.h: New file.
2250 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
2252 * config.make.in (experimental-malloc): Define.
2253 * configure.in: Handle --enable-experimental-malloc.
2254 * malloc/Makefile: Handle experimental-malloc flag.
2255 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
2256 * malloc/arena.c: Likewise.
2257 * malloc/hooks.c: Likewise.
2258 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
2260 2009-03-11 Ulrich Drepper <drepper@redhat.com>
2262 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
2263 prediction. A few size optimizations.
2265 2009-03-10 Ulrich Drepper <drepper@redhat.com>
2267 * time/tzset.c: Optimize a bit for size.
2269 2009-03-10 Jakub Jelinek <jakub@redhat.com>
2271 * include/stdio.h (fmemopen): Add libc_hidden_proto.
2272 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
2274 * elf/sprof.c: Avoid warning about multi-line comment.
2276 2009-03-10 Ulrich Drepper <drepper@redhat.com>
2278 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
2280 * time/tst-posixtz.c: Add tests for quoted timezone names.
2282 2009-03-10 Jakub Jelinek <jakub@redhat.com>
2284 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
2285 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
2286 200809L instead of 200112L.
2287 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
2288 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
2290 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
2291 instead of __quick_exit_funcs to __run_exit_handlers.
2292 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
2293 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
2294 (__cxa_at_quick_exit): Remove attribute_hidden.
2295 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
2296 to __run_exit_handlers.
2297 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
2300 2009-03-10 Ulrich Drepper <drepper@redhat.com>
2302 * po/id.po: Update from translation team.
2304 2009-02-18 Jakub Jelinek <jakub@redhat.com>
2306 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
2307 .machine push; .machine "power6" and .machine pop around mtfsf
2308 insns outside of _ARCH_PWR6 define.
2309 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2310 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
2312 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
2314 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
2315 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
2316 relax_fenv_state): Likewise.
2318 2009-03-08 Ulrich Drepper <drepper@redhat.com>
2320 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
2322 (static-only-routines): Add at_quick_exit.
2323 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
2325 * stdlib/quick_exit.c: New file.
2326 * stdlib/at_quick_exit.c: New file.
2327 * stdlib/cxa_at_quick_exit.c: New file.
2328 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
2330 (__internal_atexit): New function.
2331 (__new_exitfn): Now takes parameter to point to the list to use.
2332 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
2333 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
2334 (exit): ...here. Just call __run_exit_handlers appropriately.
2335 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
2336 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
2337 * stdlib/on_exit.c: Adjust call to __new_exitfn.
2338 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
2340 * po/id.po: Update from translation team.
2342 2009-03-07 Ulrich Drepper <drepper@redhat.com>
2344 * po/ru.po: Update from translation team.
2346 2009-03-04 Ulrich Drepper <drepper@redhat.com>
2348 * po/nl.po: Update from translation team.
2350 2009-03-03 Ulrich Drepper <drepper@redhat.com>
2352 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
2353 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2354 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2355 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2356 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2357 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2358 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2360 * po/pl.po: Update from translation team.
2362 2009-03-02 Ulrich Drepper <drepper@redhat.com>
2365 * sysdeps/unix/sysv/linux/fallocate.c: New file.
2366 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
2367 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
2368 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
2369 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
2370 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
2371 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
2373 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2374 Add fallocate and fallocate64.
2376 * io/fcntl.h: Pretty printing.
2378 2009-03-02 Richard Guenther <rguenther@suse.de>
2380 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
2381 attribute also for non-C99 inline semantics variant.
2383 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2385 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
2386 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
2387 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
2388 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
2389 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
2391 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
2394 2009-03-02 Ulrich Drepper <drepper@redhat.com>
2396 * po/cs.po: Update from translation team.
2398 2009-02-28 Ulrich Drepper <drepper@redhat.com>
2400 * po/bg.po: Update from translation team.
2401 * po/sv.po: Likewise.
2402 * po/fi.po: Likewise.
2403 * po/vi.po: Likewise.
2405 2009-02-27 Roland McGrath <roland@redhat.com>
2407 * Makeconfig (%.v.i): Depend on Makeconfig.
2408 Exclude % lines from initial #-comment removal.
2410 2009-02-27 Ulrich Drepper <drepper@redhat.com>
2412 * po/ko.po: Update from translation team.
2414 2009-02-26 Roland McGrath <roland@redhat.com>
2416 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
2417 avoids unused warning.
2419 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
2420 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
2422 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
2423 sys/ucontext.h and asm/elf.h. Include sys/user.h.
2424 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
2425 and asm/user.h. Include asm/ptrace.h.
2426 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
2427 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2428 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
2430 (start_thread): Don't undefine.
2431 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
2434 2009-02-26 Ulrich Drepper <drepper@redhat.com>
2436 * wctype/wctype.h: The *_l functions are in POSIX 2008.
2437 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
2438 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
2439 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
2440 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
2442 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
2443 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2444 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
2445 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2446 _SC_THREAD_ROBUST_PRIO_PROTECT.
2447 * posix/unistd.h: fexecve is in POSIX 2008.
2448 * time/time.h: strftime_l is in POSIX 2008.
2449 * io/sys/stat.h: futimens is in POSIX 2008.
2450 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
2451 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
2452 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
2453 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
2454 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
2455 open_memstream, and vdprintf are in POSIX 2008.
2457 2009-02-25 Ulrich Drepper <drepper@redhat.com>
2459 * include/features.h: Define macros for XPG7/POSIX 2008.
2460 * ctype/ctype.h: The *_l functions are in POSIX 2008.
2461 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
2463 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
2464 * locale/xlocale.h: Define locale_t type.
2465 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
2466 in POSIX 2008. Don't define locale_t here.
2467 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
2468 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
2469 UTIME_OMIT only with __USE_ATFILE.
2470 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
2471 * stdio-common/psiginfo.c: New file.
2472 * stdio-common/psiginfo-data.h: New file.
2473 * stdio-common/psiginfo-define.h: New file.
2474 * stdio-common/Makefile (routines): Add psiginfo.
2475 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
2476 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2477 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2478 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2479 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2480 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2481 * io/sys/stat.h: Move mknodat definition into same conditional as
2483 * time/sys/time.h: futimesat is not among the functions accepted
2484 into the POSIX standard.
2486 * include/features.h: If no feature selection given and we select
2487 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
2488 * posix/Versions: Export __posix_getopt.
2489 * posix/getopt.c (_getopt_initialize): Take additional parameter.
2490 Use it to alternatively initialize __posixly_correct.
2491 (_getopt_internal_r): Take addition parameter. Pass on to
2493 (_getopt_internal): Take addition parameter. Pass on to
2495 (getopt): Pass additional zero to _getopt_internal.
2496 (__posix_getopt): New function.
2497 * posix/getopt.h: Add redirection for getopt.
2498 * posix/getopt1.c (getopt_long): Pass additional zero to
2500 (getopt_long_only): Likewise.
2501 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
2502 (_getopt_long_only_r): Likewise.
2503 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
2506 2009-02-24 Ulrich Drepper <drepper@redhat.com>
2508 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
2509 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2510 * sysdeps/posix/sysconf.c (__sysconf): Handle
2511 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
2512 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2514 2009-02-24 Roland McGrath <roland@redhat.com>
2517 * README.template: Reworded not to use substituted version number.
2519 * README: ... here (no longer generated).
2520 * Makefile (README): Target removed.
2522 2009-02-24 Ulrich Drepper <drepper@redhat.com>
2524 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
2525 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
2528 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
2530 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
2532 2009-02-22 Ulrich Drepper <drepper@redhat.com>
2534 * po/bg.po: Update from translation team.
2536 2009-02-16 Jakub Jelinek <jakub@redhat.com>
2538 * stdlib/monetary.h: Uglify function parameter names.
2539 * sunrpc/rpc/pmap_clnt.h: Likewise.
2540 * sunrpc/rpc/svc.h: Likewise.
2541 * sunrpc/rpc/xdr.h: Likewise.
2542 * sunrpc/rpc/clnt.h: Likewise.
2543 * resolv/netdb.h: Likewise.
2544 * resolv/arpa/nameser.h: Likewise.
2545 * resolv/resolv.h: Likewise.
2546 * argp/argp.h: Likewise.
2547 * locale/langinfo.h: Likewise.
2548 * io/sys/stat.h: Likewise.
2549 * posix/spawn.h: Likewise.
2550 * nis/rpcsvc/nislib.h: Likewise.
2551 * malloc/obstack.h: Likewise.
2552 * sysdeps/ia64/bits/link.h: Likewise.
2553 * sysdeps/i386/bits/link.h: Likewise.
2554 * sysdeps/s390/bits/link.h: Likewise.
2555 * sysdeps/powerpc/bits/link.h: Likewise.
2556 * sysdeps/x86_64/bits/link.h: Likewise.
2557 * sysdeps/sparc/bits/link.h: Likewise.
2558 * sysdeps/sh/bits/link.h: Likewise.
2559 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
2560 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
2561 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
2562 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
2564 2008-12-01 Fredrik Unger <fred@tree.se>
2566 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
2567 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
2568 _FP_UNPACK_RAW_2, fix up first argument.
2570 2009-02-15 Ulrich Drepper <drepper@redhat.com>
2572 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
2573 (GET_NPROCS_PARSER): Change parameters and use next_line.
2574 (__get_nprocs): Rewrite to not use stdio routines.
2575 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
2576 Change parameters and use next_line.
2578 2009-02-13 Ulrich Drepper <drepper@redhat.com>
2581 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
2582 Change mempool_alloc prototype.
2583 * nscd/mem.c (gc): Don't handle mem_in_flight.
2584 (mempool_alloc): Third parameter now only indicates whether this is the
2585 first call (to allocate data) or not. If it is, get db rdlock.
2586 Release it on error. Don't handle mem_in_flight.
2587 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
2588 Adjust third parameter of mempool_alloc calls.
2589 Nothing to do here in case mempool_alloc fails.
2590 Avoid local variable shadowing parameter. No need to get db rdlock
2591 before calling cache_add.
2592 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
2593 no mem_in_flight array anymore.
2594 * nscd/connections.c: Remove definition and handling of mem_in_flight.
2595 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
2596 mempool_alloc calls. Mark he parameter as const. Nothing to do here
2597 in case mempool_alloc fails. No need to get db rdlock before calling
2599 * nscd/hstcache.c (cache_addhst): Likewise.
2600 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2601 * nscd/servicescache.c (cache_addserv): Likewise.
2602 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
2604 2009-02-11 Ulrich Drepper <drepper@redhat.com>
2606 * po/lt.po: Update from translation team.
2608 2009-02-10 Ulrich Drepper <drepper@redhat.com>
2610 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
2611 defined, allow additional data to be added using the optional
2612 MORE_ELF_HEADER_DATA macro.
2613 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
2614 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
2616 2009-02-08 Ulrich Drepper <drepper@redhat.com>
2618 * include/atomic.h: Define catomic_and if not already defined.
2619 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
2620 * sysdeps/i386/i486/bits/atomic.h: Likewise.
2622 2009-02-07 Ulrich Drepper <drepper@redhat.com>
2624 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
2626 (_int_realloc): Likewise. Third argument is now padded size
2627 All _int_* functions are now static.
2629 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
2630 * malloc/arena.c: Likewise.
2631 * include/malloc.h: Remove now unnecessary declarations of the _int_*
2634 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
2637 * malloc/malloc.c: Add branch prediction for use of the hooks.
2639 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
2641 2009-02-06 Ulrich Drepper <drepper@redhat.com>
2644 * bits/confname.h: Add SUSv7 macros for getconf environments.
2645 * bits/environments.h: Likewise.
2646 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
2647 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
2648 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
2649 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
2650 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
2651 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
2652 * posix/getconf.c: Likewise.
2653 * posix/sysconf.c: Likewise.
2654 * sysdeps/posix/sysconf.c: Likewise.
2655 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
2658 2009-01-16 Petr Baudis <pasky@suse.cz>
2661 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
2662 even if we currently have zero nscount.
2664 2009-02-06 Ulrich Drepper <drepper@redhat.com>
2667 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
2668 the input line is too long.
2670 * po/Makefile (libc.pot): Add f_print as function taking c-format
2673 * debug/xtrace.sh: Unify translatable messages.
2674 * elf/ldd.bash.in: Likewise.
2675 * elf/sprof.c: Likewise.
2676 * locale/programs/locale.c: Likewise.
2677 * malloc/memusage.sh: Likewise.
2678 * nss/getent.c: Likewise.
2680 2009-02-06 Joseph Myers <joseph@codesourcery.com>
2682 * debug/pcprofiledump.c (print_version,
2683 argp_program_version_hook): New function.
2684 * elf/ldconfig.c (more_help): New function.
2686 * elf/sln.c (usage): New function.
2687 (main): Support --help and --version.
2688 * malloc/memusagestat.c (print_version): New function.
2689 (argp_program_version_hook): New variable.
2690 * nscd/nscd.c (more_help): New function.
2692 * posix/getconf.c (main): Send --version output to stdout.
2694 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
2695 arguments. All callers changed.
2696 (print_version): New function.
2697 (parseargs): Support --help and --version.
2698 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
2700 (print_version): New function.
2701 (main): Use getopt_long. Support --help and --version.
2702 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
2705 2009-02-06 Ulrich Drepper <drepper@redhat.com>
2707 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
2708 (update_data): Fix handling of wrapping back
2709 to the beginning of the buffer.
2712 * stdio-common/psignal.c (psignal): Fix test for empty string.
2714 2009-02-05 Ulrich Drepper <drepper@redhat.com>
2716 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
2717 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
2718 move _null_auth to .rodata.
2720 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
2723 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
2725 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
2726 today than when the original code was written. Use larger
2727 buffers. This also makes it unnecessary to have stat information,
2728 if this causes extra efforts.
2729 (__opendir): In case O_DIRECTORY works, don't call fstat just for
2732 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
2734 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
2736 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
2737 * sysdeps/sh/sh4/__longjmp.S: Likewise.
2738 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
2739 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
2740 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
2741 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
2743 2009-02-04 Ulrich Drepper <drepper@redhat.com>
2745 * po/ru.po: Update from translation team.
2747 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
2749 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
2750 Add _tid slot to maintain consistency with kernel.
2752 2009-02-04 Ulrich Drepper <drepper@redhat.com>
2754 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
2755 incomplete characters at end of input buffer.
2756 * libio/Makefile (tests): Add tst-fgetwc.
2757 * libio/tst-fgetwc.c: New file.
2758 * libio/tst-fgetwc.input: New file.
2760 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
2762 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
2764 2009-02-02 Ulrich Drepper <drepper@redhat.com>
2767 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
2768 *OUTBUFSTART unless the whole output fit into the buffer.
2769 * iconv/Makefile (tests): Add tst-iconv4.
2770 * iconv/tst-iconv4.c: New file.
2772 2009-02-01 Ulrich Drepper <drepper@redhat.com>
2774 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
2775 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2777 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
2779 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
2780 newer linker scripts.
2782 2009-01-30 Ulrich Drepper <drepper@redhat.com>
2785 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
2786 inotify_rm_watch should have type int.
2788 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
2790 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
2791 Make aligned_restore_vmx a local symbol.
2792 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
2795 2009-01-30 Andreas Jaeger <aj@suse.de>
2797 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
2798 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
2799 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
2800 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
2801 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
2802 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
2803 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
2805 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
2808 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
2809 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
2811 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
2814 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2815 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
2816 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2817 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
2819 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
2821 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
2822 memcpy instead of memcmp.
2823 (_dl_setup_pointer_guard): Likewise.
2825 2009-01-30 Ulrich Drepper <drepper@redhat.com>
2827 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
2828 manipulated brk, use malloc_printerr.
2829 * misc/sbrk.c (__sbrk): Better error handling for nonsense
2832 2009-01-30 Jakub Jelinek <jakub@redhat.com>
2834 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
2835 rindex): For C++ add inlines so that they can be recognized as
2837 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
2839 2009-01-29 Ulrich Drepper <drepper@redhat.com>
2840 Jakub Jelinek <jakub@redhat.com>
2842 * string/string.h: Define correct C++ prototypes for gcc 4.4.
2843 * wcsmbs/wchar.h: Likewise.
2845 2009-01-29 Ulrich Drepper <drepper@redhat.com>
2847 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
2848 (stackinfo_sub_sp): Define.
2850 2009-01-28 Ulrich Drepper <drepper@redhat.com>
2853 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
2854 * include/alloca.h (alloca_account): Define.
2855 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
2856 (stackinfo_sub_sp): Define.
2858 * nscd/connections.c (nscd_init): If database file access fails
2859 check whether this is due to permission problems and bail in that
2863 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
2864 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
2866 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2868 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
2869 Add "t" to clobber list.
2870 (INTERNAL_SYSCALL_NCS): Likewise.
2872 2009-01-28 Ulrich Drepper <drepper@redhat.com>
2874 * nss/getent.c (print_networks): Don't print comma between aliases.
2876 2009-01-23 Ulrich Drepper <drepper@redhat.com>
2878 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
2880 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
2882 * misc/Makefile (tests): Add bug-hsearch1.
2883 * misc/bug-hsearch1.c: New file.
2885 2009-01-22 Roland McGrath <roland@redhat.com>
2887 * Makeconfig (%.v.i): Strip trailing # comments,
2888 not only whole-line comments.
2890 2009-01-10 Ulrich Drepper <drepper@redhat.com>
2892 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
2893 one parameter. If non-NULL use it to initialize return value.
2894 (_dl_setup_pointer_guard): New function.
2895 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
2896 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
2897 * elf/rtld.c (security_init): Pass _dl_random to
2898 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
2900 * elf/dl-sysdep.c (_dl_random): New variable.
2901 (_dl_sysdep_start): Handle AT_RANDOM.
2902 (_dl_show_auxv): Likewise.
2903 * elf/dl-support.c (_dl_random): New variable.
2904 (_dl_aux_init): Handle AT_RANDOM.
2905 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
2906 to _dl_setup_stack_chk_guard.
2908 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
2910 2009-01-10 Roland McGrath <roland@redhat.com>
2912 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
2914 2009-01-08 Ulrich Drepper <drepper@redhat.com>
2916 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
2919 * nss/nss_files/files-parse.c (strtou32): New function.
2920 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
2921 across 32-bit and 64-bit platforms.
2922 (INT_FIELD_MAYBE_NULL): Likewise.
2924 2009-01-08 Jakub Jelinek <jakub@redhat.com>
2927 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
2928 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
2929 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
2932 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
2935 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
2936 being NULL also if there are no backreferences.
2937 * posix/rxspencer/tests: Add testcases.
2939 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
2942 * posix/bug-regex17.c: Add testcases.
2943 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
2946 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
2948 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
2949 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
2950 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
2951 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
2953 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
2954 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
2955 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
2956 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
2957 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2958 * sysdeps/unix/sysv/linux/s390/Versions: New file.
2960 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
2962 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
2963 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
2964 re_string_skip_chars, re_string_reconstruct): Likewise.
2965 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
2967 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
2969 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
2970 adjust the buffer alignment.
2972 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
2974 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
2975 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
2978 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
2979 flavor to description only when flavor is not NULL.
2981 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
2982 mutex after SIGIO/SIGURG lookup loop.
2984 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
2986 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
2988 2009-01-03 Ulrich Drepper <drepper@redhat.com>
2990 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
2993 2009-01-02 Ulrich Drepper <drepper@redhat.com>
2995 * sysdeps/unix/sysv/linux/kernel-features.h
2996 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
2998 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
2999 if no output is written.
3001 * version.h: Bump to 2.10 development.
3003 * posix/getconf.c: Update copyright year.
3004 * nss/getent.c: Likewise.
3005 * iconv/iconvconfig.c: Likewise.
3006 * iconv/iconv_prog.c: Likewise.
3007 * elf/ldconfig.c: Likewise.
3008 * catgets/gencat.c: Likewise.
3009 * csu/version.c: Likewise.
3010 * elf/ldd.bash.in: Likewise.
3011 * elf/sprof.c (print_version): Likewise.
3012 * locale/programs/locale.c: Likewise.
3013 * locale/programs/localedef.c: Likewise.
3014 * nscd/nscd.c (print_version): Likewise.
3015 * debug/xtrace.sh: Likewise.
3016 * malloc/memusage.sh: Likewise.
3017 * malloc/mtrace.pl: Likewise.
3018 * debug/catchsegv.sh: Likewise.
3020 2008-12-29 Mike Frysinger <vapier@gentoo.org>
3022 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
3025 2008-12-29 Ulrich Drepper <drepper@redhat.com>
3027 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
3028 gethostbyname4_r function call succeeded, just leave the loop.
3031 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
3033 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
3034 * wctype/Makefile (tests): Add bug-wctypeh.
3035 * wctype/bug-wctypeh.c: New file.
3037 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
3038 LOCALDOMAIN is defined.
3039 * nscd/nscd_getai.c (__nscd_getai): Likewise.
3041 * sysdeps/x86_64/bits/select.h: New file.
3043 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
3045 2008-12-21 Bruno Haible <bruno@clisp.org>
3048 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
3049 if no output is written.
3051 2008-12-13 Klaus Dittrich <kladit@arcor.de>
3053 * login/utmp_file.c (pututline_file): Replace call to dup2 with
3054 libc internal symbol __dup2 to avoid access through the PLT.
3056 2008-12-08 Ulrich Drepper <drepper@redhat.com>
3059 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
3060 available only for __USE_GNU.
3062 * inet/Makefile (tests): Add tst-getni2.
3063 * inet/tst-getni2.c: New file.
3066 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
3067 NULL when NI_NAMEREQD is set.
3068 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3069 * inet/Makefile (tests): Add tst-getni1.
3070 * inet/tst-getni1.c: New file.
3072 2008-12-03 Petr Baudis <pasky@suse.cz>
3075 * nscd/connections.c (invalidate_cache): Use prune_run_lock
3076 instead of prune_lock.
3077 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
3078 * nscd/nscd.h (database_dyn): Add prune_run_cache.
3080 2008-12-07 Ulrich Drepper <drepper@redhat.com>
3082 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
3085 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
3088 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
3089 after reading name server list.
3092 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
3093 handling for host name aliases.
3095 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
3097 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
3098 instead of doing things manually.
3100 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
3102 * posix/regex_internal.h (build_wcs_upper_buffer):
3103 Return type is reg_error_t.
3105 2008-12-05 Ulrich Drepper <drepper@redhat.com>
3107 * posix/globtest.sh: Use mktemp to create temporary file and
3110 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
3112 (__CPU_CLR_S): Likewise.
3113 (__CPU_ISSET_S): Likewise.
3115 2008-12-05 Joseph Myers <joseph@codesourcery.com>
3116 Ulrich Drepper <drepper@redhat.com>
3118 * scripts/firstversion.awk: Use custom comparison function to compare
3120 * scripts/versions.awk: Use sort invocation which can handle
3121 multi-digit sub-version numbers.
3123 2008-12-04 Ulrich Drepper <drepper@redhat.com>
3125 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
3126 * locale/iso-639.def: Add Chhattisgarhi entry.
3128 2008-12-02 Ulrich Drepper <drepper@redhat.com>
3130 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
3132 (_nss_dns_gethostbyname4_r): Likewise.
3133 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
3134 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
3135 gethostbyname4_r, we don't have a separate IPv6 status, so copy
3136 the no_data variable.
3138 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
3139 information at the correct index.
3141 * socket/sys/socket.h: Declare accept4.
3142 * socket/accept4.c: New file.
3143 * sysdeps/unix/sysv/linux/accept4.c: New file.
3144 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
3145 * socket/Makefile (routines): Add accept4.
3146 * socket/Versions: Export accept4 with version GLIBC_2.10.
3147 * socket/paccept.c: Removed.
3148 * sysdeps/unix/sysv/linux/paccept.c: Removed.
3149 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
3150 * Versions.def: Define GLIBC_2.10 for libc.
3151 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
3153 * nscd/connections.c: Use accept4.
3155 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
3157 2008-12-01 Ulrich Drepper <drepper@redhat.com>
3159 * resolv/res_send.c (send_dg): Create sockets with non-blocking
3162 * stdlib/setenv.c (unsetenv): Don't search environment if it does
3164 * stdlib/Makefile (tests): Add tst-unsetenv1.
3165 * stdlib/tst-unsetenv1.c: New file.
3167 2008-11-29 Ulrich Drepper <drepper@redhat.com>
3169 * login/utmp_file.c (file_writable): New variable.
3170 (setutent_file): Don't try to open file for writing.
3171 (pututline_file): Before writing, make descriptor writable if
3174 2008-11-26 Ulrich Drepper <drepper@redhat.com>
3176 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
3177 to IPv4 or IPv6 if an interface has been found.
3179 2008-11-26 Roland McGrath <roland@redhat.com>
3181 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
3182 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
3184 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
3185 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
3186 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
3188 * elf/elf.h (NT_386_IOPERM): New macro.
3189 (NT_PPC_VSX): New macro.
3191 2008-11-25 Roland McGrath <roland@redhat.com>
3193 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
3194 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
3195 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
3196 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
3197 Subdirectories moved to ports repository.
3198 * configure.in (base_machine): Remove alpha case.
3200 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
3202 * sysdeps/mach/strerror_l.c: New file.
3204 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
3207 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
3208 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
3210 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
3211 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
3212 (relax_fenv_state): Same as above.
3213 (FPSCR_29): Reserve bit in ISA 2.05.
3214 (FPSCR_NI): Provide define for compat.
3215 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
3217 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
3219 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
3220 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
3221 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
3222 access to hwcap to account for hwcap size increase to uint64_t.
3223 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
3225 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3226 (*setcontext): Likewise.
3227 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3229 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3231 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3232 (*setcontext): dynamically select mtfsf insn based on
3233 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
3234 increase to uint64_t.
3235 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3236 (*swapcontext): dynamically select mtfsf insn based on
3237 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
3238 increase to uint64_t.
3239 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3241 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3243 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3244 (*setcontext): dynamically select mtfsf insn based on
3245 PPC_FEATURE_HAS_DFP.
3246 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3247 (*swapcontext): dynamically select mtfsf insn based on
3248 PPC_FEATURE_HAS_DFP.
3250 2008-11-13 Ulrich Drepper <drepper@redhat.com>
3252 * version.h: Bump for 2.9 release.
3253 * include/features.h (__GLIBC_MINOR__): Bump to 9.
3256 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
3257 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
3260 2008-11-11 Ulrich Drepper <drepper@redhat.com>
3263 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
3264 unknown request types for now.
3266 2008-11-11 Roland McGrath <roland@redhat.com>
3268 * sysdeps/x86_64/configure: New file.
3270 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
3271 * configure: Regenerated.
3273 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
3275 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
3276 correct instruction to remove the stack frame.
3278 2008-11-03 Michael Matz <matz@suse.de>
3280 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
3281 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
3283 2008-11-07 Jakub Jelinek <jakub@redhat.com>
3285 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
3288 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
3289 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
3290 of the thread variable instead of void *.
3291 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
3292 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
3293 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3294 __libc_tsd_define arguments.
3295 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
3296 __libc_tsd_address arguments. Remove union hack.
3297 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
3298 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
3299 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
3300 Adjust __libc_tsd_{set,get} arguments.
3301 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3302 __libc_tsd_define arguments.
3303 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
3305 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3306 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
3307 (LOCALE): Adjust __libc_tsd_define arguments.
3308 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
3310 (LOCALE): Adjust __libc_tsd_define arguments.
3311 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
3313 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
3316 2008-11-02 Ulrich Drepper <drepper@redhat.com>
3318 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
3319 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3321 2008-11-01 Ulrich Drepper <drepper@redhat.com>
3324 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
3326 2008-10-24 Joseph Myers <joseph@codesourcery.com>
3327 Ulrich Drepper <drepper@redhat.com>
3329 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
3330 definition for GCC 3.1 and later.
3332 2008-10-31 Jakub Jelinek <jakub@redhat.com>
3334 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
3335 refetch dtv, as it might have changed.
3336 * elf/Makefile: Add rules to build and run tst-tls18.
3337 * elf/tst-tls18.c: New test.
3338 * elf/tst-tlsmod18a.c: New file.
3340 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
3343 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
3345 2008-10-31 Ulrich Drepper <drepper@redhat.com>
3348 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
3351 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
3352 Fix length of copy operation.
3354 2008-10-02 Pierre Habouzit <madcoder@debian.org>
3356 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
3357 and fix its calling convention.
3359 2008-10-07 Andreas Schwab <schwab@suse.de>
3362 * resolv/res_send.c (send_vc): Fix last change.
3363 (send_dg): Align here as well.
3365 2008-10-31 Ulrich Drepper <drepper@redhat.com>
3367 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
3368 return value in case rlimit is RLIM_INFINITY.
3371 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
3373 * resource/Makefile (tests): Add bug-ulimit1.
3374 * resource/bug-ulimit1.c: New file.
3377 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
3378 without dot. Properly terminate the string with a null byte.
3379 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
3382 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
3384 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
3388 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
3390 2008-10-30 Ulrich Drepper <drepper@redhat.com>
3392 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
3393 abort if there is no initgroups_dyn function.
3395 * resolv/res_send.c (send_dg): On timeout, only return nonzero
3396 result if any of the queries really provided an answer.
3398 2008-10-28 Ulrich Drepper <drepper@redhat.com>
3400 * po/lt.po: Update from translation team.
3402 2008-10-26 Ulrich Drepper <drepper@redhat.com>
3404 * po/id.po: Update from translation team.
3406 2008-10-24 Ulrich Drepper <drepper@redhat.com>
3408 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
3409 Fix tests for existence of second reply.
3411 2008-10-23 Ulrich Drepper <drepper@redhat.com>
3413 * po/id.po: New file.
3414 Contributed by the Indonesian translation team.
3416 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
3418 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
3421 2008-10-17 Jakub Jelinek <jakub@redhat.com>
3423 * elf/Makefile: Add rules to build and run tst-tls17.
3424 * elf/tst-tls17.c: New test.
3425 * elf/tst-tlsmod17a.c: New file.
3426 * elf/tst-tlsmod17b.c: Likewise.
3428 2008-10-17 Ulrich Drepper <drepper@redhat.com>
3430 * stdlib/divmod_1.c: Use correct type for dummy variable.
3431 * stdlib/mod_1.c: Likewise.
3433 2008-10-16 Ulrich Drepper <drepper@redhat.com>
3435 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
3437 2008-10-16 Jakub Jelinek <jakub@redhat.com>
3439 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
3440 __nonnull order for C++.
3441 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
3442 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
3444 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
3446 * stdlib/longlong.h: Update from GCC.
3448 2008-10-09 Jakub Jelinek <jakub@redhat.com>
3449 David S. Miller <davem@davemloft.net>
3451 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
3452 make sure any registers used with 64-bit 'branch-on-register'
3453 instructions have their top 32-bits clear.
3454 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
3455 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
3457 2008-09-18 Andreas Schwab <schwab@suse.de>
3460 * resolv/res_send.c (send_vc): Fix use of unaligned address.
3461 Properly handle partial reads.
3463 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
3465 * elf/elf.h (STO_MIPS_PLT): New.
3467 (R_MIPS_JUMP_SLOT): New.
3468 (R_MIPS_NUM): Redefine to 128.
3469 (DT_MIPS_PLTGOT): New.
3470 (DT_MIPS_RWPLT): New.
3471 (DT_MIPS_NUM): Redefine to 0x35.
3473 2008-10-01 Ulrich Drepper <drepper@redhat.com>
3475 * timezone/africa: Update from tzdata2008f.
3476 * timezone/asia: Likewise.
3477 * timezone/australasia: Likewise.
3478 * timezone/europe: Likewise.
3479 * timezone/leapseconds: Likewise.
3480 * timezone/northamerica: Likewise.
3481 * timezone/southamerica: Likewise.
3482 * timezone/zone.tab: Likewise.
3484 2008-09-30 Ulrich Drepper <drepper@redhat.com>
3486 * nscd/connections.c: Disable use of paccept for now.
3488 2008-09-29 Ulrich Drepper <drepper@redhat.com>
3490 * socket/Versions: Remove paccept export for GLIBC_2.9.
3491 * socket/Makefile (routines): Remove paccept.
3492 * socket/sys/socket.h: Remove paccept declaration.
3494 * po/sv.po: Update from translation team.
3496 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
3498 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
3499 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
3501 2008-09-16 Ulrich Drepper <drepper@redhat.com>
3503 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
3504 Patch by Olivier Fourdan <ofourdan@redhat.com>.
3506 2008-09-15 Ulrich Drepper <drepper@redhat.com>
3508 * sunrpc/rpc/svc.h: Declare svcfd_create.
3509 Patch by Michael Solberg <msolberg@redhat.com>.
3511 2008-09-12 Flavio Leitner <fleitner@redhat.com>
3512 Ulrich Drepper <drepper@redhat.com>
3514 * malloc/malloc.c (public_vALLOc): Try other arenas in case
3516 (public_pVALLOc): Likewise.
3518 2008-09-02 Andreas Jaeger <aj@suse.de>
3520 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
3523 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
3526 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
3528 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
3530 * Makefile (check-data): Check data directory in add-ons.
3531 * elf/Makefile (check-data): Likewise.
3533 2008-08-18 Roland McGrath <roland@redhat.com>
3535 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
3536 * configure: Regenerated.
3537 * config.make.in (cflags-cpu): New substituted variable.
3538 (with-cpu): Variable removed.
3539 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
3541 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
3544 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
3545 __signbitl definition and __LONG_DOUBLE_128__ guard from:
3546 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
3547 redundant. Functions which call floating point assembler operations
3548 should go into a sysdeps powerpc/fpu directory.
3550 2008-08-15 Ulrich Drepper <drepper@redhat.com>
3552 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
3553 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
3555 2008-08-14 Ulrich Drepper <drepper@redhat.com>
3557 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
3559 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
3560 change related to AT_EXECFN. We cannot use that string.
3561 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
3563 * elf/dl-support.c: Remove _dl_execfn variable.
3564 (_dl_aux_init): Remove handling of AT_EXECFN.
3565 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
3566 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
3568 2008-08-13 Ulrich Drepper <drepper@redhat.com>
3571 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
3572 byte gets added to writes and seeks from the end use the length of
3573 the buffer and not the currently terminating NUL byte.
3576 * login/utmp_file.c (getutent_r_file): Take additional parameter.
3577 Set to true if locking failed.
3578 (getutid_r_file): Adjust caller.
3579 (pututline_file): Likewise. Return NULL in this case.
3580 Patch mostly by halesh.s@gmail.com.
3582 2008-08-12 Ulrich Drepper <drepper@redhat.com>
3585 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
3587 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
3589 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
3592 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
3593 macro since it is now available in elf/dynamic-link.h.
3595 2008-08-12 Roland McGrath <roland@frob.com>
3597 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
3598 in case used outside of libc.
3599 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
3601 2008-08-11 Ulrich Drepper <drepper@redhat.com>
3603 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
3604 directly instead of going through dn_comp.
3606 2008-08-11 Aurelien Jarno <aurel32@debian.org>
3608 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3609 Fix asm constraints.
3611 2008-08-07 Ulrich Drepper <drepper@redhat.com>
3614 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
3615 (IPV6_PMTUDISC_PROBE): Likewise.
3617 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
3620 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
3622 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
3623 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3626 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
3627 Added the members 'vsx' and 'arch_2_06'.
3628 (_dl_powerpc_platforms): Add the member 'power7'.
3629 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
3630 to reflect the changes required by VSX and ISA 2.06.
3631 Modify _DL_PLATFORMS_COUNT to reflect the addition of
3633 Defined PPC_PLATFORM_POWER7.
3634 (_dl_string_platform): Add support for POWER7.
3635 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
3636 capability and ISA 2.06.
3638 2008-08-07 Ulrich Drepper <drepper@redhat.com>
3641 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
3642 macro to detect use of 128 bit long double.
3643 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
3645 2008-08-05 Ulrich Drepper <drepper@redhat.com>
3647 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
3650 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
3652 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3653 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3655 2008-08-03 Ulrich Drepper <drepper@redhat.com>
3657 * nscd/connections.c (main_loop_poll): Pass a buffer which is
3658 guaranteed to be large enough to read inotify event. Ignore
3659 EAGAIN error. Better error message. Add branch predicition.
3660 (main_loop_epoll): Likewise.
3662 2008-08-02 Roland McGrath <roland@frob.com>
3664 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3665 Add memory clobbers.
3667 2008-08-02 Ulrich Drepper <drepper@redhat.com>
3669 * manual/arith.texi: Avoid @strong{Note:}.
3670 * manual/creature.texi: Likewise.
3671 * manual/filesys.texi: Likewise.
3672 * manual/math.texi: Likewise.
3673 * manual/memory.texi: Likewise.
3674 * manual/resource.texi: Likewise.
3675 * manual/syslog.texi: Likewise.
3676 * manual/time.texi: Likewise.
3678 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
3681 2008-08-01 Ulrich Drepper <drepper@redhat.com>
3683 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
3684 new epoll_create1 interface.
3685 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3686 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
3687 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
3689 * include/arpa/nameser.h (NS_GET16): Use const pointer.
3690 (NS_GET32): Likewise.
3692 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
3695 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
3696 use the AT_EXECFN value if it is no absolute path.
3697 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
3700 * Versions.def: Add GLIBC_2.9 to libresolv.
3701 * include/resolv.h: Remove hidden proto declarations for __ns_*
3702 functions. Add them for __dn_count_labels and __p_secstodate.
3703 * include/arpa/nameser.h: Add a number of hidden proto declarations.
3704 Define ns_msg_getflags macro here.
3705 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
3707 * resolv/Versions: Export functions from <arpa/nameser.h> from
3708 libresolv in version GLIBC_2.9.
3709 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
3711 * resolv/ns_netint.c: Likewise.
3712 * resolv/ns_parse.c: Likewise.
3713 * resolv/ns_print.c: Likewise.
3714 * resolv/ns_samedomain.c: Likewise.
3715 * resolv/ns_ttl.c: Likewise.
3716 * resolv/arpa/nameser_compat.h: Likewise.
3717 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
3719 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
3720 instead of ns_get16.
3721 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
3722 __ns_get32 instead of ns_get16 and ns_get32 respectively.
3723 (gaih_getanswer_slice): Likewise.
3724 * resolv/Makefile (libresolv-routines): Add ns_date.
3725 * resolv/ns_date.c: New file.
3727 * elf/Makefile (check-localplt.out): Also check libresolv and
3730 2008-07-31 Ulrich Drepper <drepper@redhat.com>
3732 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3735 2008-07-30 Ulrich Drepper <drepper@redhat.com>
3737 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
3738 buffer passed to NSS functions.
3740 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
3742 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
3745 * misc/syslog.c (openlog_internal): Fix compile problem.
3747 2008-07-28 Roland McGrath <roland@redhat.com>
3749 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
3751 2008-07-28 Ulrich Drepper <drepper@redhat.com>
3753 * io/ftw.c (add_object): Remove inline to avoid warning.
3755 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
3757 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
3758 Use it instead of locally defined resplen2 variable.
3759 (res_nsend): Adjust for __libc_res_nsend interface change.
3760 (send_vc): Initialize *resplen2 if necessary. Read length of
3761 package into an appropriately aligned variable. Store converted length
3762 in new variable and use it appropriately.
3763 Add branch prediction help.
3764 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
3765 and pass it on to __libc_res_nsend. Adjust all callers.
3766 (__libc_res_nsearch): Likewise.
3767 (__libc_res_nqeurydomain): Likewise.
3768 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
3770 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
3771 Define resplen2 variable and pass it to __libc_res_nsearch and then
3773 (getanswer_r): In case of incorrect DNS data don't overread buffer.
3774 Add branch prediction.
3775 (gaih_getanswer_slice): Likewise. Check for invalid data types.
3776 (gaih_getanswer): Don't decode second slice if first one failed due
3777 to a too small buffer. Don't let not found status of second
3778 decoder shadow results of the first.
3779 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
3780 and __libc_res_nquery interface changes
3781 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
3782 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
3783 __libc_res_nsearch, and __libc_res_nsend.
3784 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
3786 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
3787 __libc_res_nsearch interface changes.
3789 2008-07-27 Ulrich Drepper <drepper@redhat.com>
3791 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
3793 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
3794 file descriptors with close-on-exec set.
3795 (exec_comm_child): Fix the case where the write end of the pipe is
3796 STDOUT_FILENO already. In case it is, clear close-on-exec.
3798 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
3799 * io/pipe2.c: Likewise.
3800 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
3801 instead of __ASSUME_PACCEPT.
3802 * include/unistd.h: Declare __have_pipe2.
3803 * libio/iopopen.c: Implement "e" flag.
3804 * libio/Makefile (tests): Add tst-popen1.
3805 * libio/tst-popen1.c: New file.
3807 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
3808 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3810 2008-07-26 Ulrich Drepper <drepper@redhat.com>
3813 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
3814 success call of _IO_SEEKOFF or calls which failed because the
3815 descriptor is for a pipe.
3817 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
3820 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
3822 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
3823 F_SETFD use if we know fopen set the flag.
3825 * login/utmp_file.c (setutent_file): Minor optimization in case
3826 O_CLOEXEC is available.
3828 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
3830 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
3831 * elf/Makefile: Use pie-ccflag variable.
3832 * nscd/Makefile: Likewise.
3833 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
3835 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
3838 * Versions.def: Add GLIBC_2.9 version tag for libutil.
3839 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
3840 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
3841 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
3842 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
3843 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
3844 utmp32, utmpx32 and login32.
3845 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
3846 versions of struct utmp functions to libc and libutil.
3847 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
3848 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
3849 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
3850 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
3851 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
3852 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
3853 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
3854 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
3855 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
3856 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
3857 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
3858 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
3859 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
3860 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
3861 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
3862 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
3863 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
3864 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
3865 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
3866 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
3867 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
3868 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
3870 2008-07-26 Ulrich Drepper <drepper@redhat.com>
3872 * scripts/gen-as-const.awk: Generate more widely usable code by
3873 using 64-bit arithmetic.
3875 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3876 the same treatment as narrow output code in last patch.
3878 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
3881 * elf/dl-load.c (local_strdup): Remove inline.
3882 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
3883 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
3886 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
3888 2008-07-25 Ulrich Drepper <drepper@redhat.com>
3890 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
3891 the new syscalls, too.
3893 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
3894 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
3897 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
3898 parameter for end of buffer. If temporary copy is too large use
3900 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
3902 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
3903 string rewrite when allocating buffer.
3905 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
3908 * nscd/connections.c (nscd_init): Clean up fcntl call.
3910 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
3911 SOCK_NONBLOCK if possible.
3913 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
3914 SOCK_CLOEXEC if available.
3916 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
3917 __libc_clntudp_bufcreate_internal.
3918 * include/sys/socket.h: Declare __have_sock_cloexec.
3919 * socket/Makefile (aux): Add have_sock_cloexec.
3920 * socket/have_sock_cloexec.c: New file.
3921 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
3922 __libc_clntudp_bufcreate.
3923 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
3924 which takes an additional parameter. Create socket with non-blocking
3925 mode and close-on-exec flag set, if wanted.
3926 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
3927 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
3928 instead of clntudp_create. The socket has already the close-on-exec
3929 flag set if SOCK_CLOEXEC is defined.
3931 2008-07-24 Ulrich Drepper <drepper@redhat.com>
3933 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3934 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
3936 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
3937 non-blocking mode by using socket, paccept, and inotify_init1.
3939 * Versions.def (glibc): Add GLIBC_2.9.
3940 * io/Makefile (routines): Add dup3 and pipe2.
3941 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
3942 * io/dup3.c: New file.
3943 * io/pipe2.c: New file.
3944 * posix/unistd.h: Declare dup3 and pipe2.
3945 * socket/Makefile (routines): Add paccept.
3946 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
3947 * socket/paccept.c: New file.
3948 * socket/sys/socket.h: Declare paccept.
3949 * sysdeps/unix/syscalls.list: Add entry for dup3.
3950 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
3951 epoll_create2 and inotify_init1.
3952 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
3953 * sysdeps/unix/sysv/linux/paccept.c: New file.
3954 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
3956 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
3957 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
3958 inotify_init1, and pipe2 entries.
3959 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
3960 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
3961 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
3962 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
3963 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
3964 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
3966 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
3967 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
3968 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
3969 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
3970 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
3971 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
3972 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
3973 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
3974 EPOLL_NONBLOCK. Declare epoll_create2.
3975 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
3977 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
3978 IN_NONBLOCK. Declare inotify_init1.
3979 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
3981 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
3984 * elf/elf.h: Define AT_EXECFN.
3985 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
3987 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
3988 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
3989 if __ASSUME_AT_EXECFN is defined.
3990 (_dl_aux_init): Handle AT_EXECFN.
3991 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
3993 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
3994 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
3995 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
3996 _dl_execfn if available and avoid compatibility code if
3997 __ASSUME_AT_EXECFN is defined.
3999 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
4000 _dl_discover_osversion only for older kernels.
4002 2008-07-22 Roland McGrath <roland@frob.com>
4004 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
4006 2008-07-21 Roland McGrath <roland@frob.com>
4008 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
4009 returned too much data out of line.
4011 2008-07-20 Ulrich Drepper <drepper@redhat.com>
4013 * locale/setlocale.c (setname): Remove inline to avoid compiler
4017 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
4019 2008-07-15 Ulrich Drepper <drepper@redhat.com>
4021 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
4022 doesn't manage to write anything, fail.
4024 * malloc/hooks.c (__malloc_check_init): Remove printf.
4026 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4028 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
4030 2008-07-12 Ulrich Drepper <drepper@redhat.com>
4032 * nscd/connections.c (main_loop_poll): Fix handling of read errors
4034 (main_loop_epoll): Likewise.
4036 2008-07-09 Ulrich Drepper <drepper@redhat.com>
4038 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
4040 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
4041 if DEBUG is defined.
4043 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
4044 query. Adjust buffer size computation for padding.
4046 2008-07-08 Ulrich Drepper <drepper@redhat.com>
4048 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
4049 * stdio-common/tst-setvbuf1.c: New file.
4050 * stdio-common/tst-setvbuf1.expect: New file.
4053 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
4054 when selecting fully-buffered stream.
4055 Patch by Wang Xin <wxinee@gmail.com>.
4057 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
4059 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
4060 (__open_2): New function.
4061 (__open64_2): New alias to __open_2.
4062 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
4063 (__openat_2): New function.
4064 (__openat64_2): New alias to __openat_2.
4066 2008-07-06 Ulrich Drepper <drepper@redhat.com>
4069 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
4071 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4073 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
4074 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
4075 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
4077 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4078 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4079 * sysdeps/mach/hurd/send.c (__send): Likewise.
4080 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
4081 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
4083 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4085 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
4086 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4087 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4088 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
4089 * hurd/get-host.c (_hurd_get_host_config): Likewise.
4090 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
4092 2008-06-27 Ulrich Drepper <drepper@redhat.com>
4095 * time/strptime_l.c: Don't clear s.era_cnt after successful match
4097 Patch by Petr Baudis.
4099 2008-06-26 Ulrich Drepper <drepper@redhat.com>
4101 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
4102 Patch by Peter Jones <pjones@redhat.com>.
4104 2008-06-25 Ulrich Drepper <drepper@redhat.com>
4107 * stdlib/canonicalize.c (__realpath): readlink can write too much
4108 into the buffer on platforms without PATH_MAX.
4110 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
4113 * posix/tst-regex.c (main): Rename to...
4114 (do_test): ... this. Remove cmdline option processing.
4116 (TEST_FUNCTION): Define.
4117 (CMDLINE_OPTIONS): Define.
4119 2008-06-25 Ulrich Drepper <drepper@redhat.com>
4122 * configure.in: Add -Werror to -fstack-protector test to catch
4123 unsupported architectures.
4124 Patch by Gilles Esponasse <g.esp@free.fr>.
4126 2008-06-17 Joseph Myers <joseph@codesourcery.com>
4128 * stdlib/tst-setcontext.c: Set back_in_main before exit if
4129 getcontext returns ENOSYS.
4131 2008-06-18 Ulrich Drepper <drepper@redhat.com>
4133 * nscd/connections.c (main_loop_poll): Fix test for read error.
4134 (main_loop_epoll): Likewise.
4136 2008-06-13 Ulrich Drepper <drepper@redhat.com>
4138 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
4139 better place so it is not called when nscd is used.
4141 * nscd/connections.c: Also recognize and handle changes to the
4142 resolver configuration file.
4144 2008-06-12 Ulrich Drepper <drepper@redhat.com>
4146 * time/strftime.c: Pass reference to tzset_called around to handle
4150 * time/strftime.c (__strftime_internal): Call tzset() only
4151 when printing timezone-dependent values.
4152 Based on a patch by Petr Baudis <pasky@suse.cz>.
4154 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
4155 unconditionally use second gaih_getanswer_slice result.
4157 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
4158 (getaddrinfo): RES must always be non-NULL.
4160 2008-06-12 Jakub Jelinek <jakub@redhat.com>
4162 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
4164 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4165 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4167 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
4170 2008-06-12 Ulrich Drepper <drepper@redhat.com>
4172 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
4174 * nscd/connections.c (inotify_fd): New variable.
4175 (nscd_init): Try to open an inotify descriptor.
4176 If successful, watch files for databases using inotify instead of
4177 having prune threads stat the files.
4178 (nscd_run_prune): Recognize clear_cache flag being set and call
4179 prune_cache appropriately.
4180 (main_loop_poll): Add inotify descriptor to wait set and handle the
4182 (main_loop_epoll): Likewise.
4183 * nscd/cache.c (prune_cache): Don't stat files for databases if
4185 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
4186 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
4188 * nscd/grpcache.c (cache_addgr): Correctly compute size of
4189 fixed-size portion of the record.
4190 * nscd/servicescache.c (cache_addserv): Likewise.
4191 * nscd/pwdcache.c (cache_addpw): Likewise.
4192 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4194 2008-06-11 Ulrich Drepper <drepper@redhat.com>
4196 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
4197 out we don't use uninitialized memory.
4199 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
4202 2008-06-10 Ulrich Drepper <drepper@redhat.com>
4204 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
4205 ignore T_DNAME messages.
4206 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
4208 2008-06-05 Jakub Jelinek <jakub@redhat.com>
4210 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
4211 Avoid segfault if first GETC returns eof/'\0'/'\n'.
4213 2008-06-03 Jakub Jelinek <jakub@redhat.com>
4215 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
4216 instead of portstr to nscd_getserv_r. Patch by
4217 Roman Kagan <rkagan@mail.ru>.
4219 2008-05-26 Jim Meyering <meyering@redhat.com>
4221 Remove more useless "if" tests before "free".
4222 * include/inline-hashtab.h (htab_delete): Likewise.
4223 * libio/freopen.c (freopen): Likewise.
4224 * libio/freopen64.c (freopen64): Likewise.
4225 * locale/programs/ld-collate.c (collate_read): Likewise.
4226 * misc/fstab.c (libc_freeres_fn): Likewise.
4227 * posix/glob.c (globfree): Likewise.
4229 2008-05-24 Ulrich Drepper <drepper@redhat.com>
4231 * string/Makefile (strop-tests): Add memmem.
4232 * string/test-memmem.c: New file.
4233 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
4234 (test_init): Size buf1 according to BUF1PAGES.
4236 2008-05-24 Jakub Jelinek <jakub@redhat.com>
4238 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
4239 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
4240 (CFLAGS-scanf17.c): New.
4241 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
4242 * stdio-common/scanf15.c (main): Likewise.
4243 * stdio-common/scanf16.c: New file.
4244 * stdio-common/scanf17.c: New file.
4246 2008-05-24 Ulrich Drepper <drepper@redhat.com>
4248 * resolv/res_send.c (send_dg): If we already have one of two
4249 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
4250 use the one answer insted of failing.
4252 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
4254 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
4255 being executed on PowerPC as the expected result exceeds IBM
4256 long double 128 __LDBL_MAX__.
4258 2008-05-21 Roland McGrath <roland@redhat.com>
4260 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
4262 * Makefile (check-data): Use $(abi-name) before other guesses.
4263 Look in $(add-ons) dirs before scripts/data/.
4264 * elf/Makefile (check-data): Likewise.
4266 * scripts/soversions.awk: Grok ABI line.
4267 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
4268 Emit definition for abi-name variable.
4270 2008-05-21 Ulrich Drepper <drepper@redhat.com>
4272 * string/endian.h: Define new fixed-size hto* and *toh macros only
4275 * iconvdata/Depend: Add localedata.
4277 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
4279 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
4281 2008-05-08 David S. Miller <davem@davemloft.net>
4283 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
4285 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4286 (__SYSCALL_CLOBBERS): Remove %g* registers.
4287 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4288 (__SYSCALL_CLOBBERS): Likewise.
4289 * scripts/data/localplt-sparc-linux-gnu.data: New file.
4290 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
4292 2008-05-21 Jakub Jelinek <jakub@redhat.com>
4294 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4295 (CALL_ERRNO_LOCATION): Define.
4296 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4297 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4298 (CALL_ERRNO_LOCATION): Define.
4299 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4300 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
4301 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
4303 2008-05-20 Ulrich Drepper <drepper@redhat.com>
4305 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
4308 2008-05-20 Jakub Jelinek <jakub@redhat.com>
4310 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
4311 (FIRST_FRAME_POINTER): Define.
4313 2008-05-09 David S. Miller <davem@davemloft.net>
4315 * sysdeps/sparc/sparc64/backtrace.c: New file.
4317 2008-05-14 David S. Miller <davem@davemloft.net>
4319 * sysdeps/sparc/machine-gmon.h: New file.
4320 * sysdeps/sparc/sparc-mcount.S: Likewise.
4321 * sysdeps/sparc/Makefile: Add sparc-mcount target to
4322 sysdep_routines in gmon directory.
4324 2008-05-19 Jakub Jelinek <jakub@redhat.com>
4326 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
4328 2008-05-19 Ulrich Drepper <drepper@redhat.com>
4330 * resolv/res_query.c (__libc_res_nquery): In case one of two
4331 answer was too short don't try to read that answer's header.
4333 * resolv/res_send.c (send_dg): In case of timeout and there are
4334 two queries and one has been answered, return value indicating
4337 2008-05-18 Ulrich Drepper <drepper@redhat.com>
4339 * nscd/cache.c (cache_add): Take additional parameter specifying
4340 whether this is in response of a cache refill. Check alignment
4341 of package data. Revamp waking of pruning thread.
4342 (prune_cache): Small optimization.
4343 * nscd/nscd.h: Adjust cache_add prototypes.
4344 * nscd/aicache.c: Adjust cache_add calls.
4345 * nscd/grpcache.c: Likewise.
4346 * nscd/hstcache.c: Likewise.
4347 * nscd/initgrcache.c: Likewise.
4348 * nscd/pwdcache.c: Likewise.
4349 * nscd/servicescache.c: Likewise.
4350 * nscd/connections.c (restart): Really disable cache use before
4351 exec attempt. If it fails, reenable cache.
4352 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
4353 time to max to be able to notice concurrent cache additions. Unlock
4354 prune_lock while performing gc. Afterwards compute wakeup time with
4355 current wakeup_time value in mind.
4357 2008-05-17 Ulrich Drepper <drepper@redhat.com>
4359 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
4361 * nscd/mem.c (gc): Correctly determine highest used array element
4364 * nscd/mem.c (markrange): Add assert to check entries are all
4365 aligned. Small cleanup in bitmap use.
4367 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
4368 blockoff of type nscd_ssize_t.
4369 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
4370 (mempoll_alloc): Record block offset and not address.
4372 * nscd/mem.c (gc): Fix test for stack overuse.
4374 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
4377 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
4378 entry is available, believe it.
4380 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
4381 no answers return NSS_STATUS_NOTFOUND.
4382 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
4383 buffer does not have any content.
4385 2008-05-16 Ulrich Drepper <drepper@redhat.com>
4387 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
4389 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
4390 lookup, don't assign canon unconditionally.
4392 2008-05-14 Ulrich Drepper <drepper@redhat.com>
4394 * string/Makefile (distribute): Add str-two-way.h.
4396 2008-03-29 Eric Blake <ebb9@byu.net>
4398 Rewrite string searches to O(n) rather than O(n^2).
4399 * string/str-two-way.h: New file. For linear fixed-allocation
4401 * string/memmem.c: New implementation.
4402 * string/strstr.c: New implementation.
4403 * string/strcasestr.c: New implementation.
4405 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
4407 * posix/regcomp.c (optimize_utf8): Add a note on why we test
4409 (calc_first): Initialize constraint field.
4410 (duplicate_node_closure): Use it instead of special casing ANCHORS.
4411 Use search_duplicated_node to avoid loops. Fix grammar.
4412 (duplicate_node): Merge constraint field for all node types.
4413 (calc_eclosure_iter): Look at constraint field for all node types.
4414 * posix/regex_internal.c (create_cd_newstate): Don't look at
4417 2008-05-14 Ulrich Drepper <drepper@redhat.com>
4420 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
4423 * string/endian.h: Add macros for fixed-size endian conversion.
4424 * bits/byteswap.h: Allow inclusion from <endian.h>.
4425 * sysdeps/i386/bits/byteswap.h: Likewise.
4426 * sysdeps/ia64/bits/byteswap.h: Likewise.
4427 * sysdeps/s390/bits/byteswap.h: Likewise.
4428 * sysdeps/x86_64/bits/byteswap.h: Likewise.
4429 * string/Makefile (tests): Add tst-endian.
4430 * string/tst-endian.c: New file.
4432 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
4433 Patch by Reuben Thomas.
4435 2008-05-14 Joseph Myers <joseph@codesourcery.com>
4437 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
4439 2008-05-14 Ulrich Drepper <drepper@redhat.com>
4441 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
4444 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
4446 (BODY for __gconv_transform_internal_ascii): Likewise.
4449 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
4450 to be treated like link-local addresses.
4451 (match_prefix): Don't treat IPv4 loopback address special when
4452 converting to v4 mapped addressed.
4454 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
4456 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
4457 * posix/tst-rfc3484-2.c: Likewise.
4458 * posix/tst-rfc3484-3.c: Likewise.
4460 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
4463 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
4465 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
4467 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
4469 2008-05-13 Ulrich Drepper <drepper@redhat.com>
4471 * po/lt.po: New file. From Lituanian translation team.
4473 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
4475 Introduce TLS descriptors for i386 and x86_64.
4476 * include/inline-hashtab.h: New file, copied from 2005's
4477 libiberty, with fix for memory leak imported afterwards by
4478 Glauber de Oliveira Costa.
4479 * elf/tlsdeschtab.h: New file.
4480 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
4481 (_dl_allocate_static_tls): ... here. Rearrange failure path.
4482 (CHECK_STATIC_TLS): Move to...
4483 * elf/dynamic-link.h: ... this file.
4484 (TRY_STATIC_TLS): New macro.
4485 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
4486 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
4487 R_386_TLS_DESC): Define.
4488 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
4490 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
4491 R_X86_64_TLSDESC): Define.
4492 (R_386_NUM, R_X86_64_NUM): Adjust.
4493 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
4494 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4495 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4496 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
4497 release tlsdesc_table.
4498 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
4499 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
4500 (elf_machine_rel): Handle R_386_TLS_DESC.
4501 (elf_machine_rela): Likewise.
4502 (elf_machine_lazy_rel): Likewise.
4503 (elf_machine_lazy_rela): Likewise.
4504 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
4505 * sysdeps/i386/dl-tlsdesc.S: New file.
4506 * sysdeps/i386/dl-tlsdesc.h: New file.
4507 * sysdeps/i386/tlsdesc.c: New file.
4508 * sysdeps/i386/tlsdesc.sym: New file.
4509 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
4511 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
4512 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4513 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4514 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
4515 release tlsdesc_table.
4516 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
4517 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
4518 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
4519 (elf_machine_rel): Handle R_X86_64_TLSDESC.
4520 (elf_machine_rela): Likewise.
4521 (elf_machine_lazy_rel): Likewise.
4522 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
4523 (__tls_get_addr): Do not declare for non-shared compiles.
4524 * sysdeps/x86_64/dl-tlsdesc.S: New file.
4525 * sysdeps/x86_64/dl-tlsdesc.h: New file.
4526 * sysdeps/x86_64/tlsdesc.c: New file.
4527 * sysdeps/x86_64/tlsdesc.sym: New file.
4528 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
4529 tlsdesc_table for both 32- and 64-bit structs.
4531 2008-05-11 Ulrich Drepper <drepper@redhat.com>
4533 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
4534 its own function. This reduces the frame setup costs and more.
4536 2008-02-11 Joseph Myers <joseph@codesourcery.com>
4539 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
4540 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
4542 2008-05-11 Ulrich Drepper <drepper@redhat.com>
4544 * io/openat.c (__openat_2): Also pass fd to __openat.
4545 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
4546 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
4548 * string/tester.c (test_memcmp): Add a few more tests.
4549 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
4551 2008-05-10 Ulrich Drepper <drepper@redhat.com>
4553 * nscd/cache.c (cache_add): Before returning with failure and this
4554 is the first use of the record, mark it as unusable.
4555 * nscd/aicache.c: Don't touch the dataset after cache_add returns
4556 reporting a failure.
4557 * nscd/grpcache.c: Likewise
4558 * nscd/hstcache.c: Likewise.
4559 * nscd/initgrcache.c: Likewise.
4560 * nscd/pwdcache.c: Likewise.
4561 * nscd/servicescache.c: Likewise.
4563 2008-05-10 Roland McGrath <roland@redhat.com>
4566 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
4568 2008-05-08 David S. Miller <davem@davemloft.net>
4570 * misc/truncate64.c (truncate64): Use __truncate not truncate.
4572 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
4573 (__ieee754_y0l): Likewise.
4574 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
4575 (__ieee754_y1l): Likewise.
4576 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
4577 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
4578 frexpl and ldexpl. math_private.h provides them and the latter
4580 (__log1pl): Use __frexpl.
4582 2008-05-10 Ulrich Drepper <drepper@redhat.com>
4584 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
4586 * include/arpa/nameser_compat.h: Define T_UNSPEC.
4587 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
4588 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
4589 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
4591 (_nss_nis_gethostbyname4_r): New function.
4592 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
4593 Change to also handle af==AF_UNSPEC.
4594 (get_tablename): New function. Use it to avoid duplication.
4595 (_nss_nisplus_gethostbyname4_r): New function.
4596 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
4598 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
4599 * nss/nss.h: Define struct gaih_addrtuple.
4600 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
4602 (_nss_files_gethostbyname4_r): New function.
4603 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
4604 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
4606 * resolv/res_query.c (__libc_res_nquery): Take two additional
4607 parameters for second answer buffer. Handle type=T_UNSPEC to mean
4608 look up IPv4 and IPv6.
4610 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
4611 for an additional query and answer buffer. Pass to send_vc and
4613 (send_vc): Send possibly two requests and receive two answers.
4614 (send_dg): Likewise.
4615 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
4617 (_nss_dns_gethostbyname4_r): New function.
4618 (gaih_getanswer_slice): Likewise.
4619 (gaih_getanswer): Likewise.
4620 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
4621 __libc_res_nquery call.
4622 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
4623 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
4624 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
4627 2008-05-05 David S. Miller <davem@davemloft.net>
4629 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
4630 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
4632 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4634 Fix termios bit macros.
4635 Move *DLY definitions where they belong, in termios.h.
4636 Add *[0-3] definitions.
4637 Fixes confusion between VT and FF.
4638 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
4639 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
4640 are already defined to avoid collision with termios.h.
4641 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
4642 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
4643 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
4644 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
4645 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
4646 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
4647 VTDLY, VT0, VT1): New macros.
4648 [__USE_GNU] (OLCUC): Change value of macro.
4649 [__USE_XOPEN] (OFILL): New macro.
4650 [__USE_BSD] (CRTSCTS): Change value.
4651 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
4652 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
4653 (B7200, B14400, B28800, B76800): New macros.
4655 2008-05-01 David S. Miller <davem@davemloft.net>
4657 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
4658 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
4659 (gen-as-const-headers): Add it.
4660 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
4661 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
4662 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
4663 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
4665 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
4666 six system call parameters.
4667 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
4669 2008-04-30 Ulrich Drepper <drepper@redhat.com>
4671 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
4673 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
4674 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
4676 2008-04-30 Jakub Jelinek <jakub@redhat.com>
4678 * stdlib/tst-setcontext.c: Include unistd.h.
4680 2008-04-25 David S. Miller <davem@davemloft.net>
4682 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
4683 Pass "union semun" properly in to sys_ipc, it must be passed
4684 by value, not by reference.
4686 2008-04-22 Jakub Jelinek <jakub@redhat.com>
4688 * nscd/Makefile (nscd-cflags): Set back to -fpie.
4689 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
4690 * nscd/connections.c (mem_in_flight): Likewise.
4692 * nscd/nscd.h (dbs): Make hidden.
4694 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
4695 Avoid returning -1, return 0 instead.
4697 2008-04-19 Ulrich Drepper <drepper@redhat.com>
4699 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
4701 2008-04-15 Ulrich Drepper <drepper@redhat.com>
4704 * sysdeps/unix/sysv/linux/times.c: New file.
4707 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
4708 mem_in_flight_list variables. Add new parameter to mempool_alloc
4710 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
4711 appropriate mem_in_flight element.
4712 (gc): Take allocations which have not yet been committed to the
4713 database into account.
4714 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
4715 Reset mem_in_flight before returning.
4716 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
4717 cue it up in mem_in_flight_list.
4718 * nscd/aicache.c: Adjust mempool_alloc call.
4719 * nscd/grpcache.c: Likewise.
4720 * nscd/hstcache.c: Likewise.
4721 * nscd/initgrcache.c: Likewise.
4722 * nscd/pwdcache.c: Likewise.
4723 * nscd/servicescache.c: Likewise.
4724 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
4727 * nscd/connections.c (handle_request): Provide better error message
4728 in case SELinux forbids the service.
4730 * version.h (VERSION): Bump to 2.8.90.
4732 2008-04-17 Jakub Jelinek <jakub@redhat.com>
4734 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
4736 2008-04-11 Ulrich Drepper <drepper@redhat.com>
4738 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
4739 Also use for 32-bit.
4740 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
4741 __nextafter instead of nextafter to avoid local PLT.
4742 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
4743 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
4745 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
4747 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
4749 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
4750 <fenv_libc.h> instead of <fenv.h>.
4751 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
4752 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
4754 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
4756 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
4757 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
4758 function from fegetexcept and make old name weak alias.
4759 * include/fenv.h: Declare __fegetexcept.
4760 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
4762 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
4763 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
4765 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
4766 instead of frexpl to avoid local PLT.
4767 * math/s_significandl.c (__significandl): Use __ilogbl instead of
4768 ilogbl to avoid local PLT.
4769 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
4770 instead of ldexpl to avoid local PLT.
4771 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
4772 __roundl not roundl to avoid local PLT.
4773 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
4774 local PLTs. Use __sincosl instead of separate sinl and cosl
4776 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4778 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
4779 version for ppc64 to 2.4.21 since without it makecontext will fail.
4781 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
4783 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
4785 [__powerpc64__] (TLS_GD): Likewise.
4787 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
4790 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
4791 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
4793 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4794 Likewise. Also account for when x is an odd number between 2^52
4796 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
4797 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4798 * math/libm-test.inc (lround_test, llround_test): Added test cases to
4799 detect aforementioned erroneous conditions.
4801 2008-04-11 Jakub Jelinek <jakub@redhat.com>
4803 * configure.in: Check for -fno-section-anchors in addition to
4804 -fno-toplevel-reorder.
4806 2008-04-11 Ulrich Drepper <drepper@redhat.com>
4808 * include/features.h (__GLIBC_MINOR__): Bump to 8.
4810 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
4811 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
4812 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
4813 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
4814 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
4815 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
4817 2008-04-11 Jakub Jelinek <jakub@redhat.com>
4820 * time/era.c: Transform __libc_setlocale_lock into rwlock.
4821 * time/alt_digit.c: Likewise.
4822 * wcsmbs/wcsmbsload.c: Likewise.
4824 2008-04-10 Ulrich Drepper <drepper@redhat.com>
4826 * version.h (VERSION): Bump to 2.8.
4828 * timzeone/asia: Update from tzdata2008b.
4829 * timezone/backward: Likewise.
4830 * timezone/europe: Likewise.
4831 * timezone/northamerica: Likewise.
4832 * timezone/southamerica: Likewise.
4833 * timezone/iso3166.tab: Likewise.
4834 * timezone/leapseconds: Likewise.
4835 * timezone/zone.tab: Likewise.
4836 * timezone/private.h: Update from tzcode2008a.
4837 * timezone/zdump.c: Likewise.
4838 * timezone/zic.c: Likewise.
4840 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
4843 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
4844 Define additonal Data Cache Block instruction macros.
4845 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
4846 Replace dcbst with dcbf and sync with sync/isync.
4848 2008-02-21 Alan Modra <amodra@bigpond.net.au>
4850 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
4851 Always set ELF_RTYPE_CLASS_PLT.
4852 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
4854 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
4856 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
4857 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
4858 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
4859 For ISA 2.01 and later replace mftb with mfspr 268.
4861 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
4864 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
4865 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
4867 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
4870 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
4871 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
4872 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
4873 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
4875 2008-04-10 Jakub Jelinek <jakub@redhat.com>
4877 * stdlib/tst-makecontext.c (othervar): New variable.
4878 (cf): Test sign extending the argument to long.
4880 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
4882 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
4883 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
4884 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
4885 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
4886 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
4887 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
4888 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
4890 2008-02-22 Alan Modra <amodra@bigpond.net.au>
4892 * elf/Makefile (tests): Substitute tests-vis-yes here.
4893 (tests-vis-yes): Delete.
4894 (modules-name, modules-vis-yes): Similarly.
4896 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
4899 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
4900 Preserve sign in signgamp when x is zero.
4902 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
4904 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
4905 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
4906 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
4907 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
4908 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
4909 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
4911 2008-04-09 Ulrich Drepper <drepper@redhat.com>
4914 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
4918 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
4919 a reserved error value.
4921 * stdlib/tst-makecontext.c: Change parameter to cf to negative
4922 value to check for correct sign extension.
4925 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
4926 Copy 64-bit parameter values even though this is not required in
4929 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
4932 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
4934 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
4937 2008-04-09 Jakub Jelinek <jakub@redhat.com>
4939 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
4941 2008-04-09 Ulrich Drepper <drepper@redhat.com>
4944 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
4945 in line-buffered stream failed.
4946 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
4948 2008-04-08 Ulrich Drepper <drepper@redhat.com>
4951 * scripts/abi-versions.awk: If the version specified by
4952 --enable-oldest-abi is older than the first version for this
4953 architecture, use the default version.
4955 * locale/programs/ld-collate.c (collate_read): Ignore script lines
4956 as well when ignoring the whole category.
4958 2008-04-07 Ulrich Drepper <drepper@redhat.com>
4961 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
4962 ETHERTYPE_* definitions.
4963 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
4965 2008-04-07 Jakub Jelinek <jakub@redhat.com>
4967 * stdlib/mbtowc.c (__no_r_state): Remove.
4968 (mbtowc): New static state variable. Use it instead of
4970 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
4971 (__wctomb_state): New hidden variable.
4972 (wctomb): Use __wctomb_state instead of __no_r_state.
4973 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
4974 (__wctomb_state): New extern decl.
4975 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
4977 2008-04-07 Ulrich Drepper <drepper@redhat.com>
4980 * resolv/res_init.c: Handle scope IDs in resolv.conf.
4982 2008-04-07 Jakub Jelinek <jakub@redhat.com>
4984 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
4986 2008-04-06 Ulrich Drepper <drepper@redhat.com>
4988 * po/nl.po: Update from translation team.
4990 2008-03-31 Ulrich Drepper <drepper@redhat.com>
4993 * string/strfry.c: Handle empty strings again.
4995 2008-03-30 Ulrich Drepper <drepper@redhat.com>
4998 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
4999 before looking for translation.
5000 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
5001 * locale/freelocale.c: Likewise.
5002 * locale/newlocale.c: Likewise.
5003 * locale/setlocale.c: Likewise.
5004 Based partially on a patch by ryo@np.css.fujitsu.com.
5006 2008-03-30 Jakub Jelinek <jakub@redhat.com>
5008 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
5009 acquiring wrlock. Do conv_tab allocation while holding lock.
5010 * intl/Makefile: Add rules to build and run tst-gettext6.
5011 * intl/tst-gettext6.c: New test.
5012 * intl/tst-gettext6.sh: New file.
5014 2008-03-30 Ulrich Drepper <drepper@redhat.com>
5016 * po/nl.po: Update from translation team.
5018 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
5019 provided through st_blksize, try the default size before giving up.
5021 2008-03-29 Ulrich Drepper <drepper@redhat.com>
5023 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
5026 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
5028 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
5029 error message. POSIX today does not require the messages to be in
5030 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
5033 * sunrpc/auth_unix.c: Unify printed strings.
5034 * sunrpc/clnt_tcp.c: Likewise.
5035 * sunrpc/clnt_udp.c: Likewise.
5036 * sunrpc/clnt_unix.c: Likewise.
5037 * sunrpc/svc_tcp.c: Likewise.
5038 * sunrpc/svc_udp.c: Likewise.
5039 * sunrpc/svc_unix.c: Likewise.
5040 * sunrpc/xdr.c: Likewise.
5041 * sunrpc/xdr_array.c: Likewise.
5042 * sunrpc/xdr_rec.c: Likewise.
5043 * sunrpc/xdr_ref.c: Likewise.
5044 * locale/programs/ld-time.c (time_finish): Unify messages.
5045 * locale/programs/locfile.c (handle_copy): Fix typo.
5046 * nscd/nscd.c (options): Fix typo.
5049 * stdlib/strtod_l.c: Use correct sign for result in one more
5051 Patch by Eric Blake <ebb9@byu.net>.
5053 2008-03-27 Jakub Jelinek <jakub@redhat.com>
5055 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
5056 and creat system calls.
5057 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
5059 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
5061 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
5062 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5063 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5065 2008-03-27 Ulrich Drepper <drepper@redhat.com>
5067 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
5068 <linux/limits.h> has defined it.
5069 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
5070 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
5072 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
5073 it instead of ARG_MAX.
5075 2008-03-25 Jakub Jelinek <jakub@redhat.com>
5077 * posix/gai.conf: Fix comment for scope nullbits.
5078 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
5079 default to 128 bits for v4 mapped addresses.
5081 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
5083 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
5084 ptrace call to get the ieee_instruction_pointer from the kernel.
5085 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
5086 ptrace call to set the ieee_instructtion_pointer.
5087 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
5088 Add comment that ieee_instruction_pointer is always 0.
5090 2008-03-09 Andreas Jaeger <aj@suse.de>
5093 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
5094 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
5095 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
5097 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
5098 (rint_test): Likewise.
5100 2008-03-24 Ulrich Drepper <drepper@redhat.com>
5102 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
5104 (__nisfind_server): Similar for open readColdStartFile call.
5105 Patch partially by Jim Meyering.
5106 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
5107 around internal_setent call.
5109 * po/vi.po: New Vietnamese translation.
5111 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
5114 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
5115 remove CLONE_STOPPED.
5117 2008-02-10 Jim Meyering <meyering@redhat.com>
5119 Remove useless "if" before "free":
5120 * elf/ldconfig.c (parse_conf_include): Likewise.
5121 * gmon/gmon.c (weak_alias): Likewise.
5122 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
5123 * inet/rcmd.c (__validuser2_sa): Likewise.
5124 * intl/bindtextdom.c (set_binding_values): Likewise.
5125 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
5126 * libio/genops.c (save_for_backup): Likewise.
5127 * libio/wgenops.c (save_for_wbackup): Likewise.
5128 * locale/programs/ld-collate.c (collate_read): Likewise.
5129 * locale/programs/linereader.c (get_string): Likewise.
5130 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
5131 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
5132 * resolv/res_debug.c (do_section): Likewise.
5133 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
5134 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
5135 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
5136 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
5137 * time/tzset.c (tzset_internal): Likewise.
5139 2008-03-18 Jakub Jelinek <jakub@redhat.com>
5141 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
5144 2008-03-11 Ulrich Drepper <drepper@redhat.com>
5147 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
5148 not stream for output file. Open output file here.
5149 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
5150 and output file name.
5151 (process_fd): Likewise.
5152 (process_file): Likewise.
5153 (main): Adjust callers of changed functions.
5154 * iconv/iconv_prog.h: Adjust prototype.
5156 2008-03-09 Andreas Jaeger <aj@suse.de>
5159 * sysdeps/ia64/ieee754.h: Use protected namespace
5160 __BIG_ENDIAN/__LITTLE_ENDIAN.
5161 * sysdeps/ieee754/ieee754.h: Likewise.
5162 Patch by Aurelien Jarno <aurelien@aurel32.net>.
5164 2008-03-08 Roland McGrath <roland@frob.com>
5166 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
5167 ignore a signal that came from a machine exception, treat it as a
5168 fatal core-dump signal instead.
5169 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5171 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5172 Clear DF bit in thread state's eflags.
5173 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5175 2008-03-08 Ulrich Drepper <drepper@redhat.com>
5178 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
5179 of NAN(...) sequence.
5180 * stdlib/Makefile (tests): Add tst-strtod6.
5181 * stdlib/tst-strtod6.c: New file.
5183 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
5186 * posix/getopt.c (_getopt_internal_r): Clarify error message by
5187 putting offending option character in quotes. Clean up error
5189 * po/be.po: Adjust msgstr in translation file.
5190 * po/bg.po: Likewise.
5191 * po/ca.po: Likewise.
5192 * po/cs.po: Likewise.
5193 * po/da.po: Likewise.
5194 * po/de.po: Likewise.
5195 * po/es.po: Likewise.
5196 * po/fr.po: Likewise.
5197 * po/hr.po: Likewise.
5198 * po/ko.po: Likewise.
5199 * po/nl.po: Likewise.
5200 * po/rw.po: Likewise.
5201 * po/sk.po: Likewise.
5202 * po/sv.po: Likewise.
5203 * po/tr.po: Likewise.
5204 * po/zh_CN.po: Likewise.
5205 * po/zh_TW.po: Likewise.
5208 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
5209 Patch by Roland Bless <roland@bless.de>.
5211 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
5213 * elf/Makefile (routines): Add dl-sysdep.
5214 (elide-routines.os): Likewise.
5216 2008-03-07 Ulrich Drepper <drepper@redhat.com>
5219 * elf/dl-sysdep.c: Undefine ROUND after use.
5220 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
5221 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
5222 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
5223 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
5225 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
5226 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
5228 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
5230 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
5231 _dl_tls_get_addr_soft element.
5232 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
5233 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
5234 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
5236 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5237 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
5238 of internal_function.
5240 * stdlib/Makefile (aux): Add tens_in_limb.
5241 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
5242 * stdlib/tens_in_limb.c: ...here. New file.
5245 * sysdeps/unix/sysv/linux/pathconf.h: Declare
5246 __statfs_chown_restricted.
5247 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
5248 for _PC_CHOWN_RESTRICTED.
5249 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
5250 Implement __statfs_chown_restricted.
5251 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
5252 _POSIX_CHOWN_RESTRICTED value to zero.
5253 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
5256 * sysdeps/x86_64/rtld-memset.c: New file.
5258 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
5260 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
5262 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
5263 Barcelona machine. Make default fall through branch of
5264 __x86_64_preferred_memory_instruction check as the integer code path.
5266 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
5268 * sysdeps/x86_64/cacheinfo.c
5269 (__x86_64_preferred_memory_instruction): New variable.
5270 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5272 * sysdeps/x86_64/memset.S: Rewrite.
5274 2008-03-04 Jakub Jelinek <jakub@redhat.com>
5276 * include/stdio.h (__asprintf_chk, __dprintf_chk,
5277 __obstack_printf_chk): New prototypes.
5278 (__vasprintf_chk, __vdprintf_chk,
5279 __obstack_vprintf_chk): Likewise.
5280 Add libc_hidden_proto.
5282 (_IO_obstack_jumps): No longer static, add attribute_hidden.
5283 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
5284 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5285 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
5286 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
5287 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5288 __obstack_vprintf_chk): New prototypes.
5289 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
5290 obstack_vprintf): New inlines.
5291 * debug/dprintf_chk.c: New file.
5292 * debug/vdprintf_chk.c: New file.
5293 * debug/asprintf_chk.c: New file.
5294 * debug/vasprintf_chk.c: New file.
5295 * debug/obprintf_chk.c: New file.
5296 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
5297 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
5298 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
5300 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
5301 vdprintf_chk and obprintf_chk, set CFLAGS for them.
5302 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
5303 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
5305 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
5306 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
5307 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
5308 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
5309 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
5311 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
5312 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
5313 obstack_vprintf_chk.
5314 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
5315 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
5316 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
5317 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
5318 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
5319 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
5321 2008-03-04 Ulrich Drepper <drepper@redhat.com>
5324 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
5325 Patch by Roy Marples <roy@marples.name>.
5328 * malloc/malloc.c: Fix typo in comment.
5331 * locale/iso-639.def: Add Shuswap.
5333 2008-02-25 Jakub Jelinek <jakub@redhat.com>
5336 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
5337 overwrite *h_errnop/*errnop values from getanswer_r in case of
5340 2008-03-03 Ulrich Drepper <drepper@redhat.com>
5343 * nscd/connections.c (dbs): Add initializers for .suggested_module.
5344 (verify_persistent_db): Remove one unnecessary test and add a new one
5345 for bad configuration.
5346 (nscd_init): Improve error reported when persistent database cannot
5348 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
5349 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
5350 .suggested_module and .max_db_size and case config file says the
5352 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
5355 * nis/ypclnt.c (yp_order): Fix handling of return value of
5357 Patch by Jeff Moyer <jmoyer@redhat.com>.
5359 * po/fr.po: Update from translation team.
5361 2008-02-22 Andreas Jaeger <aj@suse.de>,
5362 Carlos O'Donell <carlos@systemhalted.org>
5365 * FAQ.in: Describe why glibc needs to be compiled with
5368 2008-02-19 Roland McGrath <roland@redhat.com>
5370 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
5372 2008-02-15 Ulrich Drepper <drepper@redhat.com>
5375 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
5376 __USE_MISC is defined.
5378 2008-02-10 Ulrich Drepper <drepper@redhat.com>
5380 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
5381 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
5383 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
5384 timerfd_gettime, timerfd_settime.
5385 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
5386 timerfd_gettime, timerfd_settime for GLIBC_2.8.
5388 2008-02-08 Roland McGrath <roland@redhat.com>
5390 * elf/elf.h (NT_PPC_SPE): New macro.
5392 2008-02-06 Roland McGrath <roland@redhat.com>
5394 * Makerules ($(common-objpfx)sysd-rules):
5395 Depend on $(sysdep-makeconfigs).
5397 2008-01-31 Roland McGrath <roland@redhat.com>
5400 * configure.in: Use -print-file-name if it yields a directory,
5401 for each of include and include-fixed.
5402 * configure: Regenerated.
5404 * Makeconfig (sysd-rules-targets): New variable.
5405 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
5406 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
5408 2008-01-30 Roland McGrath <roland@redhat.com>
5410 * manual/libc.texinfo: Update back-cover text.
5412 * elf/elf.h (NT_386_TLS): New macro.
5414 2008-01-29 Roland McGrath <roland@redhat.com>
5416 * Makeconfig (sysd-rules-patterns): New variable.
5417 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
5418 (check-inhibit-asm): New canned sequence, replaces ...
5419 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
5420 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
5421 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
5422 (CFLAGS-rtld): Variable removed.
5424 2008-01-24 Roland McGrath <roland@redhat.com>
5426 * configure.in: Let configure fragments set base_os.
5427 * configure: Regenerated.
5429 2008-01-22 Ulrich Drepper <drepper@redhat.com>
5431 * po/ko.po: Update from translation team.
5433 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
5435 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
5437 2008-01-12 Andreas Jaeger <aj@suse.de>
5440 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
5443 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
5445 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
5446 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
5447 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
5449 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
5451 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
5452 * elf/dl-close.c (_dl_close): Check for it.
5453 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
5454 (_dl_allocate_static_tls): Likewise.
5455 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
5456 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
5458 * elf/tst-tls16.c: New file.
5459 * elf/tst-tlsmod16a.c: New file.
5460 * elf/tst-tlsmod16b.c: New file.
5461 * elf/Makefile: Add rules to build and run tst-tls16.
5463 2008-01-16 Ulrich Drepper <drepper@redhat.com>
5466 * bits/shm.h: Fix comment describing shmid_ds.
5467 * sysdeps/gnu/bits/shm.h: Likewise.
5468 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
5469 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
5470 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5471 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5472 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5473 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5474 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5475 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
5476 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
5479 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
5481 * conform/data/limits.h-data: Adjust limits changed in v6 and add
5482 additional suffixes.
5483 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
5484 Add optional functions mq_timedreceive and mq_timedsend.
5485 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
5486 * conform/data/pthread.h-data: Fix prototype of
5487 pthread_condattr_setclock. pthread_sigmask is not required in v6.
5488 * conform/data/semaphore.h-data: Allow time.h definitions.
5489 * conform/data/signal.h-data: Likewise.
5490 * conform/data/stdio.h-data: getw and putw are not required in v6.
5491 * conform/data/stdlib.h-data: Change setstate prototype.
5492 * conform/data/string.h-data: Fix strerror_r prototype.
5493 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
5494 * conform/data/unistd.h-data: pthread_atfork not required in v6.
5495 Fix readlink prototype.
5496 * conform/data/netinet/in.h-data: Add const to in6addr_any and
5498 * inet/netinet/in.h: Cleanup namespace.
5499 * posix/regex.h: Likewise.
5500 * resolv/netdb.h: Likewise.
5501 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
5502 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
5503 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
5504 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
5505 of names of in in6_addr.
5506 (default_precedence): Likewise.
5507 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
5510 2008-01-15 Ulrich Drepper <drepper@redhat.com>
5512 * conform/data/fmtmsg.h-data: Add missing allows.
5513 * conform/data/ftw.h-data: Likewise.
5514 * conform/data/inttypes.h-data: Likewise.
5515 * conform/data/math.h-data: Likewise.
5516 * conform/data/signal.h-data: Likewise.
5517 * conform/data/net/if.h-data: Likewise.
5518 * conform/data/netinet/in.h-data: Likewise.
5519 * conform/data/sys/socket.h-data: Likewise.
5522 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
5523 (__strtok_r): Simplify.
5524 * string/tester.c (test_strtok_r): Add test case for futile search
5525 with single-character seach string.
5527 2008-01-12 Ulrich Drepper <drepper@redhat.com>
5529 * po/ko.po: Update from translation team.
5531 2008-01-11 Andreas Jaeger <aj@suse.de>
5534 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
5535 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
5538 2008-01-10 Ulrich Drepper <drepper@redhat.com>
5540 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
5541 native interface lookup in all the relevant places.
5543 2008-01-10 Jakub Jelinek <jakub@redhat.com>
5544 Ulrich Drepper <drepper@redhat.com>
5546 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
5547 field. Use sockaddr_in6 for source_addr.
5548 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
5549 (match_prefix): Likewise.
5550 (get_label): Likewise.
5551 (get_precedence): Likewise.
5552 (rfc3484_sort): Change to use indirect access to results array.
5553 Adjust to use of sockaddr_in6. Replace service_order test with
5554 simple index comparison.
5555 (getaddrinfo): Define order array. Initialize it. Don't initialize
5556 service_order field. Adjust qsort_t calls. Access sorted result
5557 array indirectly through order array.
5558 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
5559 * posix/tst-rfc3484-2.c: Likewise.
5560 * posix/tst-rfc3484-3.c: Likewise.
5562 2008-01-09 Ulrich Drepper <drepper@redhat.com>
5565 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
5567 Patch by André Cruz.
5570 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
5571 (clnt_spcreateerror): Likewise.
5574 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
5575 (public_mEMALIGn): Likewise.
5576 Patch mostly by Daniel Jacobowitz.
5578 2008-01-09 Jakub Jelinek <jakub@redhat.com>
5580 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
5581 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
5582 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
5583 * stdlib/tst-makecontext2.c: New test.
5585 2008-01-08 Jakub Jelinek <jakub@redhat.com>
5587 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
5589 (REINIT_PARAMS): Likewise. Undefine before end of file.
5590 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
5591 transliteration hooks and REINIT_PARAMS afterwards.
5592 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
5594 (REINIT_PARAMS): Define.
5595 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
5596 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
5597 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
5598 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
5599 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
5600 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
5601 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
5602 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
5603 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
5604 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
5605 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
5606 * iconvdata/tst-iconv7.c: New test.
5608 2008-01-07 Ulrich Drepper <drepper@redhat.com>
5610 * libio/stdio.h (vscanf): Fix definition for loser compilers.
5612 2008-01-05 Jakub Jelinek <jakub@redhat.com>
5615 * nscd/connections.c (restart): Fix condition.
5617 2008-01-03 Jakub Jelinek <jakub@redhat.com>
5619 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
5620 __ctype_toupper_loc): Add __THROW.
5622 2008-01-02 Ulrich Drepper <drepper@redhat.com>
5624 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
5625 recognition of interface family.
5627 * posix/getconf.c: Update copyright year.
5628 * nss/getent.c: Likewise.
5629 * iconv/iconvconfig.c: Likewise.
5630 * iconv/iconv_prog.c: Likewise.
5631 * elf/ldconfig.c: Likewise.
5632 * catgets/gencat.c: Likewise.
5633 * csu/version.c: Likewise.
5634 * elf/ldd.bash.in: Likewise.
5635 * elf/sprof.c (print_version): Likewise.
5636 * locale/programs/locale.c: Likewise.
5637 * locale/programs/localedef.c: Likewise.
5638 * nscd/nscd.c (print_version): Likewise.
5639 * debug/xtrace.sh: Likewise.
5640 * malloc/memusage.sh: Likewise.
5641 * malloc/mtrace.pl: Likewise.
5642 * debug/catchsegv.sh: Likewise.
5644 2007-12-26 Ulrich Drepper <drepper@redhat.com>
5646 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
5649 2007-12-23 Ulrich Drepper <drepper@redhat.com>
5651 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
5652 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5654 2007-12-17 Roland McGrath <roland@redhat.com>
5656 * inet/ether_line.c (ether_line): Remove unused variable.
5658 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
5660 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
5662 * login/openpty.c (openpty): Likewise.
5663 * login/pty.h (openpty, forkpty): Likewise.
5664 * manual/terminal.texi (openpty, forkpty): Likewise.
5666 2007-12-17 Ulrich Drepper <drepper@redhat.com>
5668 * malloc/malloc.c (public_cALLOc): For arenas other than
5669 main_arena, count all bytes inside the mprotect_size range of the
5670 heap as uninitialized.
5672 2007-12-16 Ulrich Drepper <drepper@redhat.com>
5674 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
5677 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
5678 mTRIm for all of them.
5679 (mTRIm): Additionally iterate over all free blocks and use madvise
5680 to free memory for all those blocks which contain at least one
5682 * malloc/tst-trim1.c: New file.
5683 * malloc/Makefile (tests): Add tst-trim1.
5685 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
5687 2007-12-14 Ulrich Drepper <drepper@redhat.com>
5689 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
5690 First cast argument to long
5691 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
5693 (__vdso_clock_gettime): Likewise.
5694 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
5697 2007-12-13 Ulrich Drepper <drepper@redhat.com>
5699 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
5700 * locale/nl_langinfo_l.c: Real implementation, copied from
5702 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
5704 2007-12-01 Jim Meyering <meyering@redhat.com>
5706 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
5707 that would inhibit utf8-optimization of a regexp containing line-
5708 or buffer-anchors, e.g., `^', `$'.
5710 2007-12-12 Ulrich Drepper <drepper@redhat.com>
5712 * time/bug-getdate1.c (do_test): Don't use century values which
5713 aren't valid on 32-bit systems.
5715 2007-12-12 Jakub Jelinek <jakub@redhat.com>
5717 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
5718 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
5719 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
5720 __strcat_g, __strncat_g): Add __asm__.
5722 2007-12-12 Ulrich Drepper <drepper@redhat.com>
5725 * io/fchmodat.c: Fix typo in stub_warning use.
5726 Patch by Petr Salinger.
5728 2007-12-11 Ulrich Drepper <drepper@redhat.com>
5730 * iconvdata/hp-thai8.c: New file.
5731 * iconvdata/Makefile: Add rules for hp-thai8.c.
5732 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
5733 * iconvdata/gconv-modules: Likewise.
5736 * iconvdata/hp-greek8.c: New file.
5737 * iconvdata/Makefile: Add rules for hp-greek8.c.
5738 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
5739 * iconvdata/gconv-modules: Likewise.
5742 * iconvdata/hp-turkish8.c: New file.
5743 * iconvdata/Makefile: Add rules for hp-turkish8.c.
5744 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
5745 * iconvdata/gconv-modules: Likewise.
5747 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
5748 (shrink_heap): ... this new function.
5749 (heap_trim): Call shrink_heap instead of grow_heap.
5751 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
5752 case don't call alloc_perturb.
5754 2007-12-10 Ulrich Drepper <drepper@redhat.com>
5756 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
5758 * sysdeps/unix/sysv/linux/kernel-features.h
5759 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
5760 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
5762 2007-12-08 Ulrich Drepper <drepper@redhat.com>
5765 * stdio-common/vfprintf.c: Do not overflow when adding to done.
5766 * stdio-common/Makefile (tests): Add bug22.
5767 * stdio-common/bug22.c: New file.
5770 * time/getdate.c: Fix filling in default values.
5771 * time/bug-getdate1.c: New file.
5772 * time/Makefile: Add rules to build and run bug-getdate1.
5774 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
5775 * iconvdata/ebcdic-es.c: Likewise.
5776 * iconvdata/ebcdic-es-a.c: Likewise.
5777 * iconvdata/ebcdic-uk.c: Likewise.
5778 * iconvdata/iso8859-16.c: Likewise.
5779 * iconvdata/viscii.c: Likewise.
5780 * iconvdata/iso8859-9e.c: Likewise.
5781 * iconvdata/Makefile: Adjust appropriately.
5784 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
5787 2007-12-07 Ulrich Drepper <drepper@redhat.com>
5790 * iconvdata/hp-roman9.c: New file.
5791 * iconvdata/Makefile: Add rules for hp-roman9.c.
5792 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
5793 * iconvdata/gconv-modules: Likewise.
5795 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
5796 * iconvdata/Makefile: Adjust appropriately.
5799 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
5800 structure, it's allocated with alloca.
5801 * stdio-common/Makefile (tests): Add bug21.
5802 * stdio-common/bug21.c: New file.
5804 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
5807 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
5808 keyword for gcc's braced-groups.
5810 2007-12-07 Ulrich Drepper <drepper@redhat.com>
5813 * inet/ether_line.c: Strip hostname of whitespaces.
5814 * inet/Makefile (tests): Add tst-ether_line.
5815 * inet/tst-ether_line.c: New file.
5817 2007-12-03 Ulrich Drepper <drepper@redhat.com>
5820 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
5823 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
5825 * stdlib/tst-setcontext.c: Catch the case where the links gets
5826 messed up and we do not reach main again.
5828 * po/ca.po: Update from translation team.
5830 2007-11-26 Ulrich Drepper <drepper@redhat.com>
5832 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
5833 * posix/regex.h (REG_ENOSYS): Likewise.
5834 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
5836 2007-11-25 Ulrich Drepper <drepper@redhat.com>
5838 * nscd/nscd.h (MAX_STACK_USE): Define.
5839 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
5840 (gc): Initialize stack_used based on allocation in prune_cache.
5841 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
5842 Clear array before use.
5844 * nscd/aicache.c (addhstaiX): Update statistics counter in case
5845 memory allocation failed.
5846 * nscd/hstcache.c (cache_addhst): Likewise.
5847 * nscd/grpcache.c (cache_addgr): Likewise.
5848 * nscd/servicescache.c (cache_addserv): Likewise.
5849 * nscd/pwdcache.c (cache_addpw): Likewise.
5850 * nscd/initgrcache.c (addinitgroupsX): Likewise.
5852 2007-11-23 Ulrich Drepper <drepper@redhat.com>
5854 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
5855 and creat system calls.
5857 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
5859 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
5861 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
5863 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
5864 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
5866 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
5867 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
5868 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
5870 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
5872 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
5873 strncat): Define as macros to avoid compile errors.
5875 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
5878 2007-11-22 Ulrich Drepper <drepper@redhat.com>
5881 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
5882 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
5883 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
5885 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
5887 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
5888 Return zero in case the thread library is not NPTL.
5891 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
5892 initializing interface list.
5895 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
5896 use result of nss_getgrgid_r if nothing was found. For other
5897 error return with a failure.
5898 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
5900 * locale/programs/ld-collate.c (collate_read): Fix loop to match
5903 2007-11-19 Ulrich Drepper <drepper@redhat.com>
5905 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
5906 (get_scope): For IPv4 scope, use scopes table.
5907 (fini): Free scopes table if necessary.
5908 (free_scopelist): New function.
5909 (scopecmp): New function.
5910 (gaiconf_init): Also handle scopev4 entries.
5911 * posix/tst-rfc3484.c (do_test): Initialize scopes.
5912 * posix/tst-rfc3484-2.c (do_test): Likewise.
5913 * posix/gai.conf: Document scopev4 defaults.
5914 * posix/Makefile (tests): Add tst-rfc3484-3.
5915 * posix/tst-rfc3484-3.c: New file.
5917 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
5919 * posix/gai.conf: Update for current default tables.
5921 2007-11-19 Ulrich Drepper <drepper@redhat.com>
5923 * po/tr.po: Update from translation team.
5925 2007-11-18 Roland McGrath <roland@frob.com>
5927 * manual/arith.texi (Remainder Functions): Spelling fix.
5928 From Shaun Silk <genix@mysoul.com.au>.
5930 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
5932 2007-11-17 Ulrich Drepper <drepper@redhat.com>
5934 * po/zh_CN.po: Update from translation team.
5936 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
5937 Add sys/signalfd.h and sys/eventfd.h.
5939 2007-11-15 Bruno Haible <bruno@clisp.org>
5942 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
5944 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
5945 (DCIGETTEXT): Change the allocation of the 'search' variable so that
5946 it needs only fixed stack space. Delay the initialization of
5947 msgid_len until it is needed.
5949 2007-11-15 Andreas Jaeger <aj@suse.de>
5951 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
5952 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
5954 2007-11-15 Ulrich Drepper <drepper@redhat.com>
5956 * po/ko.po: Update from translation team.
5958 2007-11-14 Ulrich Drepper <drepper@redhat.com>
5960 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
5961 significantly. The device type is also part of the ifinfomsg data.
5963 * po/sv.po: Update from translation team.
5964 * po/nl.po: Likewise.
5966 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
5967 to wake up in 24 hours.
5969 * nscd/gai.c (__ioctl): Define. Include check_native.c.
5971 2007-11-13 Ulrich Drepper <drepper@redhat.com>
5973 * po/cs.po: Update from translation team.
5974 * po/pl.po: Likewise.
5976 * include/ifaddrs.h: Remove in6ai_temporary.
5977 (struct in6addrinfo): Add index element.
5978 Declare __check_native.
5979 * inet/Makefile (aux): Add check_native.
5980 * sysdeps/unix/sysv/linux/check_native.c: New file.
5981 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
5982 IFA_F_TEMPORARY. Pass back ifa_index.
5983 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
5984 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
5985 call __check_native if necessary.
5986 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
5987 to sort addresses. Pass information about the results.
5988 * posix/tst-rfc3484.c: Adjust for addition of index field and change
5989 of rfc3484_sort interface.
5990 * posix/tst-rfc3484-2.c: Likewise.
5992 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
5993 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
5995 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
5996 (qsort_r): Renamed from qsort. Take additional parameter and pass it
5997 on as third parameter to compare function and _quicksort.
5998 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
5999 to the compare function.
6000 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
6001 * Versions.def: Add GLIBC_2.8 for libc.
6003 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
6004 * posix/tst-rfc3484-2.c: Likewise.
6006 * include/kernel-features.h: Moved to...
6007 * sysdeps/mach/hurd/kernel-features.h: ...here.
6009 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
6011 * sysdeps/i386/i586/memcpy_chk.S: New file.
6012 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
6013 * sysdeps/i386/i586/memset_chk.S: Likewise.
6015 2007-11-12 Ulrich Drepper <drepper@redhat.com>
6017 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
6018 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
6019 list of interfaces. Also store prefix length.
6020 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
6021 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
6022 prefix if source and destination address are in the same subnet.
6023 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
6024 Always look for matching record in in6ai list.
6025 Correct source_addr_len value for IPv6->IPv4 converted records.
6027 2007-11-11 Roland McGrath <roland@frob.com>
6029 * include/kernel-features.h: New file.
6031 2007-11-10 Ulrich Drepper <drepper@redhat.com>
6033 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
6034 complications for 64-bit platforms.
6036 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
6037 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
6038 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
6040 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
6042 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6043 * sysdeps/wordsize-64/alphasort.c: New file.
6044 * sysdeps/wordsize-64/alphasort64.c: New file.
6045 * sysdeps/wordsize-64/fseeko.c: New file.
6046 * sysdeps/wordsize-64/fseeko64.c: New file.
6047 * sysdeps/wordsize-64/ftello.c: New file.
6048 * sysdeps/wordsize-64/ftello64.c: New file.
6049 * sysdeps/wordsize-64/ftw.c: New file.
6050 * sysdeps/wordsize-64/ftw64.c: New file.
6051 * sysdeps/wordsize-64/iofgetpos.c: New file.
6052 * sysdeps/wordsize-64/iofgetpos64.c: New file.
6053 * sysdeps/wordsize-64/iofopen.c: New file.
6054 * sysdeps/wordsize-64/iofopen64.c: New file.
6055 * sysdeps/wordsize-64/iofsetpos.c: New file.
6056 * sysdeps/wordsize-64/iofsetpos64.c: New file.
6057 * sysdeps/wordsize-64/lockf.c: New file.
6058 * sysdeps/wordsize-64/lockf64.c: New file.
6059 * sysdeps/wordsize-64/mkostemp.c: New file.
6060 * sysdeps/wordsize-64/mkostemp64.c: New file.
6061 * sysdeps/wordsize-64/mkstemp.c: New file.
6062 * sysdeps/wordsize-64/mkstemp64.c: New file.
6063 * sysdeps/wordsize-64/scandir.c: New file.
6064 * sysdeps/wordsize-64/scandir64.c: New file.
6065 * sysdeps/wordsize-64/tmpfile.c: New file.
6066 * sysdeps/wordsize-64/tmpfile64.c: New file.
6067 * sysdeps/wordsize-64/versionsort.c: New file.
6068 * sysdeps/wordsize-64/versionsort64.c: New file.
6069 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
6070 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
6071 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
6072 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
6073 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
6074 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
6075 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
6076 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
6077 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
6078 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
6079 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
6080 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
6082 * crypt/sha256-crypt.c: Fix a comment.
6083 * crypt/sha512-crypt.c: Likewise.
6085 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
6087 * sysdeps/x86_64/memset.S: Add sfence after movnti.
6089 2007-11-07 Ulrich Drepper <drepper@redhat.com>
6092 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
6093 because output buffer is too small break, don't loop.
6094 * iconvdata/Makefile (tests): Add bug-iconv6.
6095 * iconvdata/bug-iconv6.c: New file.
6097 2007-11-06 Ulrich Drepper <drepper@redhat.com>
6099 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
6101 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
6102 size_t. Add casts where needed.
6104 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
6105 old headers, don't call avc_has_perm if we don't have the
6106 permission information.
6108 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
6110 * elf/rtld.c (dl_main): Use the page size to find the map start.
6112 2007-11-05 Ulrich Drepper <drepper@redhat.com>
6114 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
6115 Patch by Szymon Siwek <sls@poczta.wp.pl>.
6117 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
6118 when the lookup call failed.
6120 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
6121 Add prune_cond and wakeup_time.
6122 (CACHE_PRUNE_INTERNAL): Define.
6123 Update declarations of prune_cache and setup_thread.
6124 * nscd/connections.c (dbs): Update initializers.
6125 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
6126 (nscd_init): Default number of threads is now 4.
6127 (invalidate_cache): Take lock before calling prune_cache.
6128 (handle_request): If SELinux forbids the request, say so.
6129 (readylist_cond): Use static initializer.
6130 (nscd_run_prune): New function. Used only by pruning threads.
6131 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
6133 (fd_ready): Update nscd_run reference.
6134 (start_threads): No need to initialize readylist_cond.
6135 Start pruning threads separately.
6136 * nscd/nscd_setup_thread.c: Change return value type to int and always
6138 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
6139 to int and return nonzero value if we can use the TID address hack.
6140 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
6141 the database is later than the new entry's timeout, update the
6142 wakeup time and wake the cleanup thread.
6143 (prune_cache): Return seconds the next entry in the database is still
6144 valid. Remove locking for pruning here.
6145 * nscd/nscd.conf: Document default number of threads.
6147 2007-10-31 Ulrich Drepper <drepper@redhat.com>
6149 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
6150 stack is properly aligned for the target function.
6151 Correct unwind info.
6153 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
6154 when using auditing libraries.
6156 2007-10-29 Ulrich Drepper <drepper@redhat.com>
6158 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
6159 _nss_dns_getnetbyaddr2_r.
6160 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
6161 extra parameter to getanswer_r.
6162 (_nss_dns_getnetbyaddr_r): Now a wrapper around
6163 _nss_dns_getnetbyaddr2_r.
6165 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
6167 * nscd/gethstbynm2_r.c: Remove.
6168 * nscd/gethstbynm3_r.c: New file.
6169 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
6171 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
6172 __gethostbyaddr_r compatibility wrapper.
6173 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
6174 determining timeout of entry.
6175 (lookup): Take new parameter and pass it to __gethostbyname3_r and
6177 (addhstbyX): Pass reference to variable for TTL to lookup and
6179 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
6180 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
6181 and __nss_next2. Remove __nss_services_lookup.
6182 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
6184 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
6186 * nss/getXXent_r.c: Likewise.
6187 * nss/getnssent_r.c: Likewise.
6188 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
6189 does not exist in module, try the optional second name.
6190 (__nss_next2): New function.
6191 (__nss_next): Now wrapper around __nss_next2.
6192 * nss/nsswitch.h: Adjust __nss_lookup prototype.
6193 Declare __nss_next2.
6194 Adjust definition of db_lookup_function type.
6195 * nss/service-lookup.c: Define NO_COMPAT.
6196 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
6197 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
6198 * inet/ether_ntoh.c: Likewise.
6199 * sunrpc/netname.c: Likewise.
6200 * sunrpc/publickey.c: Likewise.
6201 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
6202 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
6203 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
6204 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
6205 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
6207 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
6209 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
6211 2007-10-28 Ulrich Drepper <drepper@redhat.com>
6214 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
6215 * crypt/sha512c-test.c: Likewise.
6218 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
6219 to keep track of end of %[ format string element.
6220 * stdio-common/Makefile (tests): Add bug20.
6221 * stdio-common/bug20.c: New file.
6224 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
6225 path elements in counting mode.
6227 2007-10-27 Andreas Jaeger <aj@suse.de>
6230 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
6233 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
6234 (__cleanup): Free shared library when exiting.
6235 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
6236 (__cleanup): Free shared library when exiting.
6238 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
6241 * math/libm-test.inc (check_float_internal): Support
6242 denormalized return.
6244 2007-10-23 Andreas Jaeger <aj@suse.de>
6247 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
6248 __LONG_LONG_PAIR to handle little endian byte order.
6249 Suggested by abhishekrai@google.com
6251 2007-10-27 Ulrich Drepper <drepper@redhat.com>
6253 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
6255 2007-10-26 Ulrich Drepper <drepper@redhat.com>
6257 * nscd/cache.c (prune_cache): Move test for modified file outside
6260 2007-10-21 Andreas Jaeger <aj@suse.de>
6262 * manual/texinfo.tex: Update to latest version.
6264 * manual/sysinfo.texi (System Parameters): Fix Formatting.
6266 * manual/arith.texi (Status bit operations): Fix formatting.
6268 * manual/errno.texi (Error Messages): Fix formatting.
6270 * manual/sysinfo.texi (System Parameters): Fix formatting.
6272 * manual/libc.texinfo: Update VERSION and UPDATED.
6274 2007-10-19 Roland McGrath <roland@redhat.com>
6276 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
6278 2007-10-06 David S. Miller <davem@davemloft.net>
6280 * configure.in: Add sparcv9v2 and sparc64v2.
6281 * scripts/config.sub: Likewise.
6282 * configure: Regenerate.
6283 * elf/elf.h (HWCAP_SPARC_N2): New.
6284 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
6285 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
6286 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
6287 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
6288 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
6289 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
6290 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
6292 2007-10-18 Ulrich Drepper <drepper@redhat.com>
6294 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
6295 even if the poll result indicates there is data to read.
6296 Patch by Jeff Moyer <jmoyer@redhat.com>.
6298 2007-10-18 Roland McGrath <roland@redhat.com>
6300 * elf/elf.h (NT_PPC_VMX): New macro.
6302 2007-10-17 Ulrich Drepper <drepper@redhat.com>
6304 * version.h (VERSION): Set to 2.7.90.
6306 2007-10-17 Jakub Jelinek <jakub@redhat.com>
6308 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
6311 2007-10-17 Roland McGrath <roland@frob.com>
6313 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
6314 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
6316 2007-10-17 Ulrich Drepper <drepper@redhat.com>
6318 * version.h (VERSION): Bump to 2.7.
6319 * include/features.h (__GLIBC_MINOR__): Bump to 7.
6322 * time/tzset.c (__tz_convert): Don't force testing for a change of
6323 TZ if not called from localtime. But then also see whether the
6324 file changed, in case __use_tzfile is set.
6326 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
6327 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6328 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6329 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6330 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6331 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6332 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6333 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6335 2007-10-17 Jakub Jelinek <jakub@redhat.com>
6337 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
6338 and admin selects to be able to replace the gai.conf file, lock
6339 data structures around the qsort call.
6341 2007-10-17 Ulrich Drepper <drepper@redhat.com>
6343 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
6345 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
6346 too high for the improvements. Implement bzero unconditionally for
6349 2007-10-17 Ulrich Drepper <drepper@redhat.com>
6350 Jakub Jelinek <jakub@redhat.com>
6352 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
6353 even when time_t is 32-bit.
6354 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
6355 timezone data read by __tzfile_default. Ensure __tzname[0] is
6356 always set after the search.
6358 2007-10-16 Ulrich Drepper <drepper@redhat.com>
6360 * time/tzfile.c (__tzfile_read): Help the compiler recognize
6361 unreachable code on 32-bit machines.
6363 2007-10-16 Jakub Jelinek <jakub@redhat.com>
6366 * time/strftime_l.c: Include stdbool.h.
6367 (my_strftime): New wrapper, old function renamed to...
6368 (__strftime_internal): ... new function. Add tzset_called
6369 argument, pass it down to recursive calls, don't call tzset ()
6370 if already true, set to true after call to tzset ().
6372 2007-10-16 Ulrich Drepper <drepper@redhat.com>
6374 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
6375 into account when copying TZ string.
6377 2007-10-16 Jakub Jelinek <jakub@redhat.com>
6379 * time/tzfile.c (__tzfile_compute): For use_last case set i to
6380 num_transition rather than num_transitions - 1.
6382 2007-10-16 Jakub Jelinek <jakub@redhat.com>
6384 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
6387 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
6388 a local label rather than HIDDEN_JUMPTARGET.
6390 2007-10-15 Ulrich Drepper <drepper@redhat.com>
6392 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
6393 (init_cacheinfo): Initialize it.
6394 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
6395 Always define bzero.
6396 Remove non-glibc code.
6397 * sysdeps/x86_64/bzero.S: Make an empty file.
6399 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
6401 * sysdeps/x86_64/cacheinfo.c
6402 (__x86_64_preferred_memory_instruction): New.
6403 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6405 * sysdeps/x86_64/memset.S: Rewrite.
6407 2007-10-15 Roland McGrath <roland@redhat.com>
6409 * po/libc.pot: Regenerated.
6411 2007-10-15 Ulrich Drepper <drepper@redhat.com>
6413 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
6417 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
6418 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
6419 address record to T_A/T_AAAA requests.
6421 2007-10-14 Ulrich Drepper <drepper@redhat.com>
6423 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
6425 * posix/glob.c: Add some branch prediction throughout.
6427 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
6430 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
6432 (rfc3484_sort): Make sure that even if qsort doesn't support
6433 stable sorting out sorting here is stable by comparing service_order.
6434 (getaddrinfo): Initialize service_order.
6435 * posix/tst-rfc3484.c (do_test): Adjust for addition of
6436 service_order field to sorting structure.
6437 * posix/tst-rfc3484-2.c (do_test): Likewise.
6439 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
6440 * time/tzset.c (tzset_internal): Break TZ string parsing out into
6441 __tzset_parse_tz and updating of daylight, timezone, tzname into
6443 (__tz_compute): Renamed from tz_compute. Take additional parameters.
6444 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
6445 happens in __tz_compute.
6446 * time/tzfile.c (__tzfile_read): Also read TZ string.
6447 (find_transition): Fold into __tzfile_compute.
6448 (__tzfile_compute): For times beyond the last transition try to
6450 * timezone/tst-timezone.c: Information in daylight and tzname does
6451 change for Asia/Tokyo timezone with more concrete information.
6454 * include/stdio.h: Add libc_hidden_proto for ftello.
6455 * libio/ftello.c: Add libc_hidden_def.
6458 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
6459 on the specified time and not the last entries in the file. Move
6460 code to determine tzname[] to...
6461 (find_transition): ...here. Add ugly guess for times before the
6464 2007-10-13 Ulrich Drepper <drepper@redhat.com>
6467 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
6469 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
6470 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6471 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6472 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6474 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
6475 read mechanism when there are no group members and avoid no-op
6476 read syscall in this case.
6479 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
6480 (__readall): If reading failed due to EAGAIN error wait a bit
6481 and possibly try again.
6482 (__readvall): Likewise.
6484 2007-10-13 Bruno Haible <bruno@clisp.org>
6486 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
6487 when we cannot recode the message.
6489 2007-10-13 Ulrich Drepper <drepper@redhat.com>
6492 * libio/__freading.c (__freading): Don't return true for
6493 write-only streams. For read/write streams, check whether we
6494 performed a read operation already.
6495 * libio/Makefile (tests): Add tst-ext2.
6496 * libio/tst-ext2.c: New file.
6498 2007-10-12 Ulrich Drepper <drepper@redhat.com>
6500 * locale/programs/repertoire.c (repertoire_read): Always free
6501 memory for repertoire file name [Coverity CID 270].
6503 * elf/cache.c (save_aux_cache): Free memory allocated for
6504 temporary file name [Coverity CID 267].
6506 2007-10-12 Jakub Jelinek <jakub@redhat.com>
6508 * misc/Makefile (headers): Add bits/error.h.
6510 2007-10-12 Ulrich Drepper <drepper@redhat.com>
6512 * posix/fnmatch_loop.c: Take rule index returned as part of
6513 findidx return value into account when accessing weights.
6514 * posix/regcomp.c: Likewise.
6515 * posix/regexec.c: Likewise.
6517 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
6518 (skip_to): Fix problems with parameter of elifdef/elifndef.
6520 2007-10-11 Ulrich Drepper <drepper@redhat.com>
6522 * iconv/gconv_simple.c: Add some branch prediction.
6524 2007-10-12 Jakub Jelinek <jakub@redhat.com>
6526 * locale/programs/ld-collate.c (collate_read): If ignore_content
6527 and nowtok is tok_define, eat any tok_eol tokens.
6529 2007-10-11 Jakub Jelinek <jakub@redhat.com>
6531 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
6532 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
6534 * inet/netinet/in.h: Don't include bits/socket.h.
6535 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
6537 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6539 2007-10-10 Ulrich Drepper <drepper@redhat.com>
6541 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
6543 * locale/programs/locfile-kw.gperf: Likewise.
6544 * locale/programs/ld-collate.c: Implement primitive preprocessor.
6546 2007-10-10 Jakub Jelinek <jakub@redhat.com>
6548 * stdio-common/printf-parse.h: Include string.h and wchar.h.
6549 (__find_specwc): Change into __extern_always_inline function.
6550 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
6551 (__parse_one_specmb): Remove ps argument.
6552 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
6553 Adjust __find_specmb and __parse_one_specmb callers.
6554 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
6555 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
6557 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
6560 2007-10-09 Ulrich Drepper <drepper@redhat.com>
6562 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
6563 with some Pentium Ds.
6565 2007-10-08 Ulrich Drepper <drepper@redhat.com>
6567 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
6569 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
6572 2007-10-07 Ulrich Drepper <drepper@redhat.com>
6575 * locale/C-time.c: Set week_1stday data to 19971201.
6576 * locale/programs/ld-time.c (time_finish): Default for
6577 first_workday is Monday.
6580 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
6583 * posix/glob.c (glob): Recognize patterns starting \/.
6584 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
6585 (main): Add test for pattern starting \/.
6587 * misc/error.h: Use __const instead of const.
6588 * misc/bits/error.h: Likewise.
6590 2007-10-07 Andreas Jaeger <aj@suse.de>
6592 * include/bits/error.h: New file.
6594 * misc/bits/error.h (error_at_line): Fix prototype.
6596 2007-10-06 Ulrich Drepper <drepper@redhat.com>
6599 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
6600 more little bugs in creating the stack frame when pltexit has to
6603 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
6604 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
6607 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
6608 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6609 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
6610 * math/libm-test.inc: Add test for this case.
6613 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
6614 (svc_register): Initialize sc_mapped. Set to TRUE if call to
6615 map service succeeded.
6616 (svc_is_mapped): New function.
6617 (svc_unregister): Use it before trying to unmap service.
6619 2007-10-05 Ulrich Drepper <drepper@redhat.com>
6621 * timezone/zic.c: Update from tzcode2007h.
6624 * timezone/africa: Update from tzdata2007h.
6625 * timezone/antarctica: Likewise.
6626 * timezone/asia: Likewise.
6627 * timezone/australasia: Likewise.
6628 * timezone/europe: Likewise.
6629 * timezone/leapseconds: Likewise.
6630 * timezone/northamerica: Likewise.
6631 * timezone/southamerica: Likewise.
6632 * timzeone/zone.tab: Likewise.
6635 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
6638 * string/bits/string2.h (__strdup): Cast parameters to calloc to
6639 avoid warning with -Wconversion.
6640 (__strndup): Likewise.
6641 Half the patch by Christian Iseli <christian.iseli@licr.org>.
6644 * nscd/connections.c (restart): Don't resync if database is
6645 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
6647 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
6648 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
6650 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
6651 evetnfd_read, eventfd_write.
6652 * sysdeps/unix/sysv/linux/eventfd.c: New file.
6653 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
6654 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
6655 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
6656 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
6657 eventfd_write for GLIBC_2.7.
6659 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
6660 * sysdeps/unix/sysv/linux/signalfd.c: New file.
6661 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
6662 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
6664 2007-10-04 Jakub Jelinek <jakub@redhat.com>
6666 * stdlib/msort.c: Include stdint.h.
6667 (struct msort_param): New type.
6668 (msort_with_tmp): Use struct msort_param pointer for unchanging
6669 parameters. Add optimized handling for several common sizes
6670 and indirect sorting mode.
6671 (qsort): Adjust msort_with_tmp callers. For big S use indirect
6673 Suggested by Belazougui Djamel .
6675 * stdlib/Makefile (tests): Add tst-qsort2.
6676 * stdlib/tst-qsort2.c: New test.
6678 2007-10-04 Ulrich Drepper <drepper@redhat.com>
6680 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
6681 for dup2 in case another thread races with the current one. Retry
6684 * misc/error.h: Remove support for use outside of libc. We have to
6685 include <features.h> now. Include <bits/error.h> if possible.
6686 * misc/bits/error.h: New file.
6688 2007-10-03 Jakub Jelinek <jakub@redhat.com>
6690 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
6691 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
6692 __extern_always_inline functions unconditionally, drop macros.
6694 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
6695 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
6696 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
6698 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
6699 add __artificial__ attribute.
6701 2007-10-02 Ulrich Drepper <drepper@redhat.com>
6703 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
6704 backward to forward direction.
6706 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
6709 * locale/programs/ld-collate.c (collate_finish): Compare against last
6710 used section which is known to have rules defined.
6711 (collate_read): After order_start, correctly record order of sections
6712 and queue sections up.
6714 2007-10-01 Ulrich Drepper <drepper@redhat.com>
6717 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
6718 the same number of pages.
6719 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
6721 * locale/programs/ld-collate.c (collate_read): After initial copy
6722 statement, continue in state 0.
6724 * include/stdio_ext.h (__fsetlocking): Define as macro.
6726 2007-09-30 Ulrich Drepper <drepper@redhat.com>
6728 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
6731 * po/pt_BR.po: Fix typo.
6733 2007-09-29 Ulrich Drepper <drepper@redhat.com>
6735 * iconvdata/Makefile (modules): Add ISO8859-9E.
6736 (distribute): Add iso8859-9e.c.
6737 (gen-8bit-gap-modules): Add iso8859-9e.
6738 * iconvdata/iso8859-9e.c: New file.
6739 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
6740 * iconvdata/TESTS: Likewise.
6741 * iconvdata/tst-tables.sh: Likewise.
6743 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6745 * locale/iso-639.def: Add several new entries.
6747 2007-09-24 Jakub Jelinek <jakub@redhat.com>
6749 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
6750 void * pointers instead of struct link_map **.
6751 (_dl_scope_free): Change argument type to void *.
6752 * include/link.h (struct link_map): Change type of l_reldeps
6753 to struct link_map_reldeps, move l_reldepsact into that
6755 * elf/dl-deps.c: Include atomic.h.
6756 (_dl_map_object_deps): Only change l->l_initfini when it is
6757 fully populated, use _dl_scope_free for freeing it. Optimize
6758 removal of libs from reldeps by using l_reserved flag, when
6759 some removal is needed, allocate a new list instead of
6760 reallocating and free the old with _dl_scope_free. Adjust
6761 for l_reldeps and l_reldepsact changes.
6762 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
6763 searching in l_initfini and l_reldeps without holding dl_load_lock.
6764 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
6765 l_reldepsact changes.
6766 * elf/dl-close.c (_dl_close_worker): Likewise.
6767 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
6769 2007-09-28 Ulrich Drepper <drepper@redhat.com>
6771 * iconvdata/Makefile (modules): Add KOI8-RU.
6772 (distribute): Add koi8-ru.c.
6773 (gen-8bit-gap-modules): Add koi8-ru.
6774 * iconvdata/koi8-ru.c: New file.
6775 * iconvdata/gconv-modules: Add entries for KOI8-RU.
6776 * iconvdata/TESTS: Likewise.
6777 * iconvdata/tst-tables.sh: Likewise.
6779 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6781 2007-09-26 Jakub Jelinek <jakub@redhat.com>
6783 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
6784 with __warning__/__error__ attributes.
6785 (__warnattr): Define.
6786 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
6787 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
6789 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
6790 of __*_chk if compile time detectable overflow is found.
6791 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
6792 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
6794 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
6795 instead of __*_chk if compile time detectable overflow is found.
6796 (__gets_alias): Rename to...
6797 (__gets_warn): ... this. Add __warnattr.
6798 (gets): Call __gets_warn instead of __gets_alias.
6799 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
6800 aliases with __warnattr.
6801 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
6802 time detectable overflow is found.
6803 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
6804 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
6805 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
6806 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
6807 __getdomainname_chk_warn): New aliases with __warnattr.
6808 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
6809 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
6810 __*_chk_warn instead of __*_chk if compile time detectable overflow
6812 (__getgroups_chk): Rename argument to __listlen from listlen.
6813 (__getwd_alias): Rename to...
6814 (__getwd_warn): ... this. Add __warnattr.
6815 (getwd): Call __getwd_warn instead of __getwd_alias.
6816 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
6817 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
6818 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
6819 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
6820 __wcsnrtombs_chk_warn): New aliases with __warnattr.
6821 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
6822 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
6823 compile time detectable overflow is found.
6824 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
6825 to use __*_chk or not.
6826 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
6827 in comparisons which function should be called and in __*_chk*
6828 arguments. Call __*_chk_warn instead of __*_chk if compile time
6829 detectable overflow is found.
6830 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
6832 * debug/tst-chk1.c (do_test): Add a few more tests.
6834 2007-09-24 Ulrich Drepper <drepper@redhat.com>
6837 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
6838 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
6839 (_nl_unload_domain): Finalize conversions_lock.
6840 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
6841 handling table of known conversions.
6843 2007-09-24 Jakub Jelinek <jakub@redhat.com>
6845 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
6846 close_not_cancel_no_status instead of close.
6848 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
6851 * posix/regcomp.c (lookup_collation_sequence_value): Check that
6852 nrules != 0 for multibyte chars.
6854 2007-09-23 Ulrich Drepper <drepper@redhat.com>
6856 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
6857 Provide better error message in case the type is unknown.
6860 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
6861 * string/stratcliff.c: Make usable to test wide char functions.
6862 * wcsmbs/wcsatcliff.c: New file.
6863 * wcsmbs/Makefiel (tests): Add wcsatcliff.
6866 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
6867 (distribute): Add mac-centraleurope.c.
6868 (gen-8bit-gap-modules): Add mac-centraleurope.
6869 * iconvdata/mac-centraleurope.c: New file.
6870 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
6871 * iconvdata/TESTS: Likewise.
6872 * iconvdata/tst-tables.sh: Likewise.
6875 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
6877 2007-09-21 Ulrich Drepper <drepper@redhat.com>
6879 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
6880 from __x86_64_core_cache_size_half.
6881 (init_cacheinfo): Compute shared cache size for AMD processors with
6882 shared L3 correctly.
6883 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
6885 Patch in large parts by Evandro Menezes.
6887 2007-09-19 Ulrich Drepper <drepper@redhat.com>
6889 * elf/dl-lookup.c (add_dependency): Handle failing memory
6890 allocation for dependency list. Remove unnecessary check.
6892 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
6893 open/close when determining source addresses.
6895 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
6896 sha512-crypt, and sha512.
6897 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
6898 (distribute): Add sha256.h and sha512.h.
6899 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
6900 and call the appropriate code.
6901 * crypt/sha256-crypt.c: New file.
6902 * crypt/sha256.c: New file.
6903 * crypt/sha256.h: New file.
6904 * crypt/sha256c-test.c: New file.
6905 * crypt/sha256test.c: New file.
6906 * crypt/sha512-crypt.c: New file.
6907 * crypt/sha512.c: New file.
6908 * crypt/sha512.h: New file.
6909 * crypt/sha512c-test.c: New file.
6910 * crypt/sha512test.c: New file.
6912 2007-09-19 Jakub Jelinek <jakub@redhat.com>
6914 * misc/bits/syslog.h (syslog): Remove extraneous argument from
6915 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
6918 2007-09-18 Jakub Jelinek <jakub@redhat.com>
6920 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
6921 %as in fscanf format strings.
6923 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
6924 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6925 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
6927 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
6930 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
6931 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
6932 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
6933 * elf/dl-sym.c (do_sym): Likewise.
6934 * include/link.h (struct link_map): Add l_serial field.
6935 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
6936 * elf/dl-lookup.c (add_dependency): Add flags argument.
6937 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
6938 flags, use THREAD_GSCOPE_RESET_FLAG before and
6939 THREAD_GSCOPE_SET_FLAG after
6940 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
6941 Don't dereference map until it has been found on some list.
6942 If map->l_serial changed, return -1.
6944 2007-09-17 Jakub Jelinek <jakub@redhat.com>
6946 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
6947 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
6948 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
6950 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
6951 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
6952 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
6953 add libc_hidden_proto.
6954 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
6955 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
6956 conformance requested.
6957 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
6958 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
6959 conformance requested.
6960 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
6961 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
6962 conformance requested.
6963 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
6964 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
6965 ISO C99 or POSIX conformance requested.
6966 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
6967 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
6968 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
6969 and __isoc99_vsscanf@@GLIBC_2.7.
6970 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
6971 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
6972 (tests): Add scanf14.
6973 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
6974 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
6975 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
6976 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
6977 CFLAGS-isoc99_scanf.c): Add $(exceptions).
6978 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
6979 from using internal headers.
6980 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
6981 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
6982 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
6983 and __isoc99_vswscanf@@GLIBC_2.7.
6984 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
6985 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
6986 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
6987 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
6988 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
6989 * stdio-common/isoc99_scanf.c: New file.
6990 * stdio-common/isoc99_vsscanf.c: New file.
6991 * stdio-common/isoc99_vscanf.c: New file.
6992 * stdio-common/isoc99_vfscanf.c: New file.
6993 * stdio-common/isoc99_fscanf.c: New file.
6994 * stdio-common/isoc99_sscanf.c: New file.
6995 * wcsmbs/isoc99_fwscanf.c: New file.
6996 * wcsmbs/isoc99_vswscanf.c: New file.
6997 * wcsmbs/isoc99_swscanf.c: New file.
6998 * wcsmbs/isoc99_wscanf.c: New file.
6999 * wcsmbs/isoc99_vwscanf.c: New file.
7000 * wcsmbs/isoc99_vfwscanf.c: New file.
7001 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
7002 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
7003 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
7004 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
7005 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
7006 * stdio-common/scanf14.c: New test.
7007 * stdio-common/scanf15.c: New test.
7008 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
7009 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
7010 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
7011 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
7012 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
7013 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
7014 __nldbl___isoc99_scanf@@GLIBC_2.7,
7015 __nldbl___isoc99_fscanf@@GLIBC_2.7,
7016 __nldbl___isoc99_sscanf@@GLIBC_2.7,
7017 __nldbl___isoc99_vscanf@@GLIBC_2.7,
7018 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
7019 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
7020 __nldbl___isoc99_wscanf@@GLIBC_2.7,
7021 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
7022 __nldbl___isoc99_swscanf@@GLIBC_2.7,
7023 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
7024 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
7025 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
7026 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
7027 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
7028 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
7029 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
7030 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
7031 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7032 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
7033 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
7034 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
7035 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
7036 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
7037 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
7039 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
7040 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
7041 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
7042 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
7043 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
7044 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
7045 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
7046 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
7047 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
7048 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
7049 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
7050 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
7052 * stdio-common/Makefile (tests): Add scanf13.
7054 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
7055 m modifier followed by l.
7056 (STRING_ARG): Add width argument.
7057 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
7058 <case L_('C')>: Handle %mlc and %mC.
7059 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
7061 * stdio-common/scanf13.c: New test.
7063 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
7064 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
7066 2007-09-18 Ulrich Drepper <drepper@redhat.com>
7068 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
7069 type and __THROW marker of splice, vmsplice, and tee.
7070 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7071 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7072 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7073 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7074 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7075 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7076 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7077 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
7078 as cancellation points.
7080 2003-11-01 Daniel Jacobowitz <dan@debian.org>
7082 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
7083 parse more than three parts of the version number.
7085 2007-09-15 Ulrich Drepper <drepper@redhat.com>
7087 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
7088 modifier. Patch by Jakub Jelinek.
7090 2007-08-26 Jakub Jelinek <jakub@redhat.com>
7092 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
7093 call_fallocate in misc subdir.
7094 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
7095 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
7096 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
7097 instead of __fallocate64.
7098 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
7100 2007-09-15 Jakub Jelinek <jakub@redhat.com>
7102 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
7103 * rt/Makefile (headers): Add bits/mqueue2.h.
7104 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
7105 optimizing with GCC and __va_arg_pack_len is defined.
7106 * rt/bits/mqueue2.h: New file.
7107 * rt/mq_open.c (__mq_open): Renamed from mq_open.
7108 (mq_open): New strong_alias.
7109 (__mq_open_2): New function.
7110 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
7111 (mq_open): New strong_alias.
7112 (__mq_open_2): New function.
7113 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
7114 * Versions.def (librt): Add GLIBC_2.7 version.
7115 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
7116 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
7118 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
7119 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
7120 is defined rather than when not C++.
7121 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
7122 __openat64_alias): New redirects.
7123 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
7124 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
7125 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
7126 (open, open64, openat, openat64): Rewrite as __extern_always_inline
7127 functions instead of function-like macros.
7129 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
7131 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
7132 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
7133 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
7135 2007-09-15 Mike Frysinger <vapier@gentoo.org>
7137 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
7138 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
7140 2007-09-14 Mike Frysinger <vapier@gentoo.org>
7142 * inet/tst-network.c: Increment ERRORS for failing tests.
7144 2007-09-07 Jakub Jelinek <jakub@redhat.com>
7146 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
7147 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
7148 implement as __extern_always_inline function.
7149 (vsyslog): Define as __extern_always_inline function unconditionally.
7150 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
7151 When __va_arg_pack is defined, implement as __extern_always_inline
7153 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7154 __extern_always_inline functions unconditionally.
7155 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
7156 bits/stdio2.h will be included.
7157 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
7158 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
7159 implement as __extern_always_inline functions.
7160 (vswprintf, vwprintf, vfwprintf): Define as
7161 __extern_always_inline functions unconditionally.
7162 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
7164 2007-09-03 Jakub Jelinek <jakub@redhat.com>
7166 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
7167 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
7169 * include/features.h (__USE_EXTERN_INLINES): Define only when
7170 __extern_inline is defined.
7171 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
7172 is defined instead of when not __cplusplus.
7173 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
7174 is defined instead of when not __cplusplus.
7175 * socket/sys/socket.h: Include bits/socket2.h when
7176 __extern_always_inline is defined instead of when not __cplusplus.
7177 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
7178 is defined instead of when not __cplusplus.
7179 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
7180 is defined instead of when not __cplusplus.
7181 * string/string.h: Include bits/string3.h when __extern_always_inline
7182 is defined instead of when not __cplusplus.
7183 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
7184 is defined instead of when not __cplusplus.
7185 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
7186 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
7188 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
7189 defined __extern_always_inline instead of !defined __cplusplus.
7190 * libio/bits/stdio-ldbl.h: Likewise.
7191 * wcsmbs/bits/wchar-ldbl.h: Likewise.
7192 * misc/bits/syslog.h (syslog): Don't define for C++.
7193 (vsyslog): Use __extern_always_inline function for C++ instead of
7195 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
7196 whenever that macro is defined.
7197 (vprintf): Don't provide the inline for C++.
7198 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
7199 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
7200 define the macros for C++.
7201 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7202 __extern_always_inline functions for C++.
7203 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
7204 stat64, lstat64, fstat64, fstatat64): Don't define if not
7205 __USE_EXTERN_INLINES.
7206 * wcsmbs/bits/wchar2.h: Fix #error message.
7207 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
7208 (vswprintf, vwprintf, vfwprintf): Define using
7209 __extern_always_inline functions for C++.
7210 * string/bits/string3.h: Don't #undef macros if __cplusplus.
7211 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
7212 strncpy, strcat, strncat): Define as __extern_always_inline
7213 functions instead of macros for C++.
7214 * math/bits/cmathcalls.h: Guard __extern_inline routines with
7215 defined __extern_inline.
7216 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
7217 to __extern_inline whenever that macro is defined.
7218 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7219 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7220 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
7221 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
7222 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7223 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7224 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7225 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7226 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
7227 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
7228 prototypes. Only provide __extern_inline routines if
7229 __USE_EXTERN_INLINES.
7230 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
7232 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
7233 For now avoid some *printf tests in C++. Skip all testing
7234 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
7236 * debug/tst-chk4.cc: New file.
7237 * debug/tst-chk5.cc: New file.
7238 * debug/tst-chk6.cc: New file.
7239 * debug/tst-lfschk4.cc: New file.
7240 * debug/tst-lfschk5.cc: New file.
7241 * debug/tst-lfschk6.cc: New file.
7242 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
7244 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
7245 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
7246 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
7248 2007-09-13 Ulrich Drepper <drepper@redhat.com>
7250 * po/cs.po: Update from translation team.
7252 2007-09-11 Roland McGrath <roland@redhat.com>
7254 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
7257 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
7259 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
7261 2007-09-05 Roland McGrath <roland@redhat.com>
7263 * manual/signal.texi (Signaling Another Process): Typo fix.
7264 From Karl Berry <karl@freefriends.org>.
7266 2007-08-29 Ulrich Drepper <drepper@redhat.com>
7268 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
7269 zero if not defined.
7270 (make_request): Recognize optimistic addresses and treat them like
7271 deprecated addresses.
7272 Reported by Neil Horman <nhorman@redhat.com>.
7274 2007-08-28 Ulrich Drepper <drepper@redhat.com>
7276 * nscd/connections.c (send_ro_fd): Also transfer file size.
7277 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
7278 file size don't call fstat.
7280 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
7281 ahead and map the file. This should always be correct and we can
7282 catch problems later.
7284 2007-08-28 Jakub Jelinek <jakub@redhat.com>
7286 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
7288 (__fread_alias, __fread_unlocked_alias): New aliases.
7289 (fread): New extern inline.
7290 (fread_unlocked): Likewise. Undef macro before definition of
7291 the inline function.
7292 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
7293 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
7294 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
7295 and __fread_unlocked_chk@@GLIBC_2.7.
7296 * debug/fread_chk.c: New file.
7297 * debug/fread_u_chk.c: New file.
7298 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
7300 2007-08-27 Jakub Jelinek <jakub@redhat.com>
7302 * sysdeps/unix/sysv/linux/syscalls.list
7303 (personality): Change caller to EXTRA.
7305 2007-08-25 Ulrich Drepper <drepper@redhat.com>
7307 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
7309 * iconvdata/iso-2022-cn.c (BODY): Likewise.
7311 * locale/programs/ld-collate.c (collate_output): Avoid warning if
7314 * Makerules: Use -p option with mkdir.
7316 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
7317 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
7318 (_xdr_directory_obj): Likewise.
7319 (xdr_entry_obj): Likewise.
7320 (xdr_group_obj): Likewise.
7321 (xdr_link_obj): Likewise.
7322 (xdr_table_obj): Likewise.
7323 (_xdr_nis_result): Likewise.
7324 (_xdr_ns_request): Likewise.
7325 (_xdr_ib_request): Likewise.
7326 (_xdr_nis_taglist): Likewise.
7327 (xdr_cback_data): Likewise.
7328 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
7329 (xdr_ypresp_maplist): Likewise.
7331 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
7333 * posix/regex_internal.h: Prevent some declarations and definitions
7334 to be seen when used in tests.
7336 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
7337 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
7339 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
7341 * config.make.in (datarootdir): Add to shut up configure.
7343 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
7344 associativity for fully-associative caches.
7346 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
7347 requests. Fill on more associativity values for L2.
7348 Patch mostly by Evandro Menezes.
7350 2007-08-24 Ulrich Drepper <drepper@redhat.com>
7352 * sysdeps/unix/sysv/linux/x86_64/init-first.c
7353 (_libc_vdso_platform_setup): Avoid using exported variable by using
7356 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
7358 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
7359 fallocate64 as EXTRA. It is not referenced if the symbol isn't
7362 2007-08-23 Ulrich Drepper <drepper@redhat.com>
7364 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
7365 align stack for call if pltexit is to be used.
7368 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
7369 align for function call in case pltexit has to be called later.
7371 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
7372 implicit atomic operation when storing function pointer.
7373 (_dl_runtime_profile): Likewise.
7375 2007-08-17 Jakub Jelinek <jakub@redhat.com>
7377 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
7380 2007-08-21 Ulrich Drepper <drepper@redhat.com>
7383 * string/strtok.c: Fix typo in comment.
7386 * debug/segfault.c: Fix typos in comments.
7389 * stdio-common/tempnam.c: Fix comment, it is not checked that
7390 TMPDIR points to a writable directory.
7393 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
7394 memory allocated for the name server address.
7397 * nscd/connections.c (handle_request): Using sendfile always
7398 requires that mmap is used for the database.
7399 Patch by Petr Baudis <pasky@suse.cz>.
7402 * nscd/hstcache.c (cache_addhst): When reloading an entry which
7403 suddenly has two or more addresses, ignore it and remove the old
7407 * resolv/res_hconf.c: Prepare for compiling outside libc.
7408 * nscd/res_hconf.c: New file.
7409 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
7411 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
7412 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
7414 * nscd/hstcache.c (cache_addhst): Minimal optimization.
7417 * debug/pcprofiledump.c: Turn on internationalization by calling
7418 setlocale. Patch mostly by Benno Schulenberg.
7421 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
7423 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
7424 * iconvdata/bug-iconv5.c: New file.
7426 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
7429 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
7430 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
7431 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
7432 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
7433 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
7434 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
7435 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
7436 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
7438 2007-08-21 Ulrich Drepper <drepper@redhat.com>
7441 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
7442 lookup loop. Suggested by John Reiser.
7444 2007-08-21 Jakub Jelinek <jakub@redhat.com>
7446 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
7448 2007-08-20 Ulrich Drepper <drepper@redhat.com>
7450 * csu/libc-start.c: Don't handle VDSO_SETUP here.
7451 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
7452 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
7453 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
7454 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
7456 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
7458 2007-08-18 Ulrich Drepper <drepper@redhat.com>
7460 * po/nl.po: Update from translation team.
7462 2007-08-16 Andreas Jaeger <aj@suse.de>
7464 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
7465 Reported by Peter Festner <peter.festner@ewetel.net>.
7467 2007-08-17 Jakub Jelinek <jakub@redhat.com>
7469 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
7471 2007-08-16 Jakub Jelinek <jakub@redhat.com>
7473 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
7474 to check for undefined symbols.
7476 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
7477 If the syscall fails, set errno to the actual returned error number
7479 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
7480 arguments are incorrect, set errno to EINVAL, if the syscall
7481 fails, set errno to the actual returned error number.
7483 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
7484 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
7486 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
7487 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
7489 (ASI_PNF, ASI_BLK_P): Don't define.
7490 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
7491 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
7493 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
7494 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
7497 2007-08-15 Jakub Jelinek <jakub@redhat.com>
7499 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
7500 FE_UNDERFLOW on Niagara CPUs.
7502 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
7505 2007-08-14 Jakub Jelinek <jakub@redhat.com>
7507 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
7508 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
7509 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
7510 flush should be used or not inside of the function.
7511 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
7513 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
7514 __thread_start): Use HIDDEN_JUMPTARGET.
7515 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
7516 __thread_start): Likewise.
7517 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
7519 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
7520 Add libc_hidden_proto.
7521 (STRTOF): Add libc_hidden_proto.
7522 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
7523 (strtold_l, wcstold_l): Use them as second argument for
7526 2007-08-14 Ulrich Drepper <drepper@redhat.com>
7528 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
7530 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7532 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
7534 2007-08-14 Ulrich Drepper <drepper@redhat.com>
7536 * po/bg.po: New file. From the translation team.
7538 2007-08-13 Jakub Jelinek <jakub@redhat.com>
7540 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
7541 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
7542 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
7543 when each feature was introduced.
7545 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
7546 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
7547 (CHECK_HASH): New macro.
7548 (PREPARE_VERSION): Use it.
7550 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
7551 prototype if not __ASSUME_PSELECT.
7552 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
7553 prototype if not __ASSUME_PPOLL.
7555 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
7557 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
7558 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
7561 2007-08-13 Ulrich Drepper <drepper@redhat.com>
7563 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7564 (_libc_vdso_platform_setup): If vDSO is not available point
7565 __vdso_gettimeofday to the vsyscall.
7566 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
7567 __vdso_gettimeofday instead of vsyscall.
7569 2007-08-13 Jakub Jelinek <jakub@redhat.com>
7571 * nscd/servicescache.c: Include kernel-features.h.
7572 * nscd/gai.c: Likewise.
7573 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
7574 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
7575 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
7576 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
7577 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
7578 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
7579 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
7580 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
7581 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
7583 2007-08-12 Ulrich Drepper <drepper@redhat.com>
7585 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
7586 and _dl_get_origin defines anymore.
7588 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
7589 Build fix for systems which might lack POSIX timer support.
7591 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7592 (_libc_vdso_platform_setup): Mangle function pointers before storing
7594 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
7595 Demangle vdso pointer before use.
7596 (INTERNAL_VSYSCALL): Likewise.
7598 * elf/cache.c (primes): Mark as const.
7599 Noted by Roland McGrath.
7601 2007-08-01 Andreas Jaeger <aj@suse.de>
7602 Jakub Jelinek <jakub@redhat.com>
7604 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
7605 (options): Add option.
7606 (parse_opt): Handle option.
7607 (manual_link): Adjust process_file caller. Call implicit_soname.
7608 (search_dir): Formatting. Use and populate auxiliary cache.
7609 (main): Load and save auxiliary cache.
7610 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
7611 stat64 from fstat64 to caller.
7612 (implicit_soname): New function.
7613 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
7614 leave *soname as NULL.
7615 * elf/cache.c: Include libgen.h.
7616 (print_entry, print_cache, compare, save_cache, add_to_cache):
7617 Formatting and cleanups.
7618 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
7619 aux_cache_file): New structures.
7620 (AUX_CACHEMAGIC): Define.
7621 (primes): New array.
7622 (aux_hash_size, aux_hash): New variables.
7623 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
7624 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
7625 load_aux_cache, save_aux_cache): New functions.
7626 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
7627 (init_aux_cache, search_aux_cache, add_to_aux_cache,
7628 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
7629 (process_file): Adjust prototype.
7631 2007-08-12 Jakub Jelinek <jakub@redhat.com>
7633 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
7636 2007-08-12 Ulrich Drepper <drepper@redhat.com>
7638 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
7639 r_found_version structure as second parameter.
7640 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
7641 (_dl_vdso_vsym): Change type of second parameter accordingly.
7642 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
7643 (_libc_vdso_platform_setup): Adjust.
7644 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7645 (_libc_vdso_platform_setup): Likewise.
7647 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
7648 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
7649 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
7650 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
7651 * csu/libc-start.c: Pretty printing.
7652 Use VDSO_SETUP if defined.
7653 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
7654 and let generic code call into _libc_vdso_platform_setup.
7655 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
7656 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
7657 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
7658 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
7659 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
7661 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
7662 (sysdep_rountines): Add dl-vdso.
7664 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
7667 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
7668 attribute_hidden to __vdso_gettimeofday prototype.
7670 2007-08-12 Roland McGrath <roland@redhat.com>
7672 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
7673 From: Karl Berry <karl@freefriends.org>.
7675 2007-08-11 Ulrich Drepper <drepper@redhat.com>
7677 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
7678 an atime update for the files we read.
7680 2007-08-10 Ulrich Drepper <drepper@redhat.com>
7682 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
7684 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
7687 * misc/Makefile (routines): Add mkostemp and mkostemp64.
7688 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
7689 * misc/mkostemp.c: New file.
7690 * misc/mkostemp64.c: New file.
7691 * stdlib/stdlib.h: Declare the new functions.
7692 * sysdeps/posix/tempname.c: Add new parameter which is added to
7693 the flags for open. Remove __GT_BIGFILE handling.
7694 * stdio-common/tempname.c: Likewise.
7695 * include/stdio.h: Adjust __gen_tempname prototype.
7696 Renumber __GT_* constants.
7697 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
7698 * misc/mkdtemp.c: Likewise.
7699 * misc/mkstemp.c: Likewise.
7700 * misc/mkstemp64.c: Likewise.
7701 * misc/mktemp.c: Likewise.
7702 * stdio-common/tempnam.c: Likewise.
7703 * stdio-common/tmpfile.c: Likewise.
7704 * stdio-common/tmpfile64.c: Likewise.
7705 * stdio-common/tmpnam.c: Likewise.
7706 * stdio-common/tmpnam_r.c: Likewise.
7708 2007-08-10 Roland McGrath <roland@frob.com>
7710 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
7712 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
7713 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7715 2007-08-10 Ulrich Drepper <drepper@redhat.com>
7717 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
7719 * nss/nss_files/files-alias.c (internal_setent): Likewise.
7720 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
7721 * nss/nss_files/files-have_o_cloexec.c: New file.
7723 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
7726 2007-08-10 Jakub Jelinek <jakub@redhat.com>
7728 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
7729 ___new_wcstold_l): New weak aliases.
7730 (strtold_l, wcstold_l): Use them as second argument for
7733 2007-08-09 Ulrich Drepper <drepper@redhat.com>
7735 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
7736 register in test for error.
7738 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
7739 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
7741 * po/sv.po: Update from translation team.
7743 2007-08-06 Roland McGrath <roland@redhat.com>
7745 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
7746 Remove __strto*_l inlines.
7747 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
7748 * stdlib/strtod.c: Add libc_hidden_def.
7749 * stdlib/strtod_l.c: Likewise.
7750 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
7751 for __new_strtold and __new_wcstold.
7752 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
7754 * stdlib/strtol.c: Add libc_hidden_def.
7755 * stdlib/strtol_l.c: Likewise.
7756 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
7759 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
7761 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
7762 * scripts/data/localplt-generic.data: ... here.
7763 * elf/Makefile (check-data): Get generic file if no other.
7764 ($(objpfx)check-localplt.out): Make target unconditional.
7766 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
7769 2007-08-05 Ulrich Drepper <drepper@redhat.com>
7771 * po/zh_CN.po: Updated translation from translation team.
7773 2007-08-05 Jakub Jelinek <jakub@redhat.com>
7775 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
7776 Don't use CGOTSETUP and CGOTRESTORE macros.
7778 2007-08-04 Roland McGrath <roland@redhat.com>
7780 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
7782 2007-08-04 Jakub Jelinek <jakub@redhat.com>
7784 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
7785 __extension__ around the whole statement expression.
7787 2007-08-04 Ulrich Drepper <drepper@redhat.com>
7789 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
7790 elements during initialization.
7792 * po/pl.po: Updated translation from translation team.
7793 * po/tr.po: Likewise.
7794 * po/nl.po: Likewise.
7796 2007-08-03 Ulrich Drepper <drepper@redhat.com>
7798 * rt/aio.h: Add __nonnull attributes.
7800 2007-08-03 Jakub Jelinek <jakub@redhat.com>
7802 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
7803 * stdlib/Makefile (tests): Add tst-strtod5.
7804 (tst-strtod5-ENV): New.
7805 * stdlib/tst-strtod5.c: New file.
7807 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
7809 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
7812 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
7815 2007-08-03 Jakub Jelinek <jakub@redhat.com>
7817 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
7820 2007-08-02 Ulrich Drepper <drepper@redhat.com>
7822 * io/Makefile (aux): Add have_o_cloexec.
7823 * include/fcntl.h: Declare __have_o_cloexec.
7824 * io/have_o_cloexec.c: New file.
7825 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
7826 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
7827 fcntl call if not necessary.
7828 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
7831 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
7832 Avoid memset, add explicit initialization.
7833 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
7834 to the end and change into zero-sized array.
7835 Move lock member to fill a hole on 64-bit platforms.
7837 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
7839 * include/stdlib.h: Add __strto*_internal prototypes here.
7840 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
7842 * include/wchar.h: Add __wcsto*_internal prototypes.
7843 * sysdeps/generic/inttypes.h: No need to protect the declaration
7844 of the __strto*_internal and __wcsto*_internal members here.
7846 * rt/mqueue.h: Change const to __const and add nonnull attributes.
7848 2007-08-02 Roland McGrath <roland@redhat.com>
7850 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
7851 $(inst_bindir)/getconf if possible.
7853 * posix/Makefile ($(objpfx)getconf.speclist): New target.
7854 (generated): Add it.
7855 ($(inst_libexecdir)/getconf): Use it.
7857 2007-08-01 Ulrich Drepper <drepper@redhat.com>
7859 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
7860 /proc is faster and sufficient. /sys is still needed for
7863 2007-08-01 Jakub Jelinek <jakub@redhat.com>
7865 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
7866 syscall as __fallocate64.
7867 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
7868 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
7870 2007-07-30 Jakub Jelinek <jakub@redhat.com>
7872 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
7875 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
7876 if off_t is different rank from size_t.
7878 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
7879 uw_frame_state_for): Avoid type punning warnings.
7880 * sysdeps/generic/unwind-dw2-fde-glibc.c
7881 (_Unwind_IteratePhdrCallback): Likewise.
7882 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
7883 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
7884 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
7887 2007-07-31 Ulrich Drepper <drepper@redhat.com>
7889 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
7890 total processors using sysfs.
7891 (__get_nprocs): Use sysfs to determine which processors are online.
7893 2007-07-31 Jakub Jelinek <jakub@redhat.com>
7895 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
7896 syscall arguments count.
7898 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
7900 2007-07-30 Roland McGrath <roland@redhat.com>
7902 * manual/libc.texinfo: Update copyrights, formatting magic, and
7903 @dircategory. From Karl Berry <karl@freefriends.org>.
7905 2007-07-29 Ulrich Drepper <drepper@redhat.com>
7908 * io/Makefile (headers): Add bits/fcntl2.h.
7910 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
7912 (__CPU_EQUAL_S): Likewise.
7914 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
7915 (tests): Add tst-cpuset.
7916 * posix/sched_cpualloc.c: New file.
7917 * posix/sched_cpufree.c: New file.
7918 * posix/tst-cpuset.c: New file.
7919 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
7921 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
7922 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
7923 macros. Define CPU_*_S macros.
7925 2007-07-28 Ulrich Drepper <drepper@redhat.com>
7927 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
7931 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
7932 #.0g and value rounded to 1.0.
7933 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
7935 2007-07-26 Jakub Jelinek <jakub@redhat.com>
7937 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
7938 for int_frac_digits and frac_digits.
7940 * login/logout.c (logout): Avoid aliasing violation.
7941 * login/logwtmp.c (logwtmp): Likewise.
7943 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
7945 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
7947 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
7949 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
7951 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
7954 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
7956 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
7958 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
7959 char * to avoid warning.
7960 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
7962 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
7964 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
7965 allocate_arrays): Cast second argument to charmap_find_symbol
7966 to char * to avoid warnings.
7968 * locale/programs/repertoire.c (repertoire_new_char): Change
7969 from_nr, to_nr and cnt to unsigned long, adjust printf format
7972 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
7973 Cast second argument to new_element to char * to avoid warnings.
7975 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
7977 * intl/gettextP.h (struct loaded_domain): Change plural to const
7978 struct expression *.
7979 * intl/plural-eval.c (plural_eval): Change first argument to
7980 const struct expression *.
7981 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
7982 argument to const struct expression **.
7983 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
7985 * intl/loadmsgcat (_nl_unload_domain): Cast away const
7986 in call to __gettext_free_exp.
7988 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
7989 unitialized wstring/wpattern var warnings.
7991 * posix/runtests.c (struct a_test): Make data field const char *.
7993 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
7994 vars if not LDBL_MANT_DIG >= 106.
7996 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
7998 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
7999 __find_specmb to avoid warning.
8001 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
8003 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
8006 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
8009 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
8010 tv var when it will be actually used.
8012 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
8015 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
8016 char array resp. pointer.
8017 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
8019 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
8020 to const unsigned char **.
8021 (ucs4_to_cns11643): Change second argument to unsigned char *.
8022 * iconvdata/euc-tw.c (BODY): Change endp type to
8023 const unsigned char *.
8024 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
8026 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
8027 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
8028 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
8029 types to unsigned char pointers/arrays instead of char.
8030 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
8032 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
8033 * iconvdata/jis0212.h: Include assert.h.
8034 (ucs4_to_jisx0212): Change second argument to unsigned char *.
8035 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
8036 of trying to handle that.
8037 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
8039 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
8040 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
8041 two dimensional const unsigned char arrays.
8042 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
8043 Initialize endp to inptr to shut up a warning.
8045 2007-07-20 Jakub Jelinek <jakub@redhat.com>
8048 * time/strptime_l.c (__strptime_internal): Silently ignore
8049 strftime modifiers and field width in recursive calls.
8051 * include/time.h (enum ptime_locale_status): Remove.
8052 (__strptime_internal): Remove decided and era_cnt arguments,
8053 add statep argument.
8054 * time/strptime_l.c (__strptime_internal): Remove decided
8055 and era_cnt arguments, add statep argument. Don't recompute
8056 any fields in recursive calls, only update caller's tm
8057 and state, if recursive call fails, don't change tm nor
8059 (get_alt_number): Adjust.
8060 (recursive): Adjust caller.
8061 (strptime): Likewise.
8062 * time/strptime.c (strptime): Likewise.
8064 2007-07-19 Jakub Jelinek <jakub@redhat.com>
8066 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
8067 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
8068 if from and to charsets are the same.
8069 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
8070 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
8071 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
8073 2007-07-17 Jakub Jelinek <jakub@redhat.com>
8075 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
8076 Don't define wint_t when __need_mbstate_t unless it
8078 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
8079 in the typedef if possible.
8080 * wctype/wctype.h (wint_t): Define by including
8081 wchar.h with __need_wint_t instead of including stddef.h
8082 with __need_wint_t and as fallback definining it ourselves.
8083 * iconv/gconv.h (__need_wint_t): Define before including
8085 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
8086 or _GLIBCPP_USE_WCHAR_T.
8087 (__need_wchar_t): Don't define
8088 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8089 (__need_wint_t): Don't define before including stddef.h,
8090 define before including wchar.h only if _LIBC or
8091 _GLIBCPP_USE_WCHAR_T.
8092 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8093 * sysdeps/mach/hurd/_G_config.h: Likewise.
8094 * sysdeps/generic/_G_config.h: Likewise.
8095 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
8096 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
8097 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
8098 if _LIBC or _GLIBCPP_USE_WCHAR_T.
8100 2007-07-28 Ulrich Drepper <drepper@redhat.com>
8102 * sysdeps/posix/posix_fallocate64.c: Undefine
8103 __posix_fallocate64_l64 before alias handling.
8104 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
8105 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
8106 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
8107 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
8109 * io/tst-posix_fallocate.c: Include <fcntl.h>.
8111 2007-07-23 Jakub Jelinek <jakub@redhat.com>
8113 * locale/programs/ld-collate.c (atwc): New variable.
8114 (add_to_tablewc): New toplevel function, moved from collate_output.
8115 (collate_output): Remove add_to_tablewc nested function.
8117 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
8118 (name_insert): New function.
8119 (write_output): Remove hash_table and hash_size vars and name_insert
8122 2007-07-24 Roland McGrath <roland@redhat.com>
8124 * Makerules (install-others-programs-nosubdir): New target.
8125 (install-no-libc.a-nosubdir): Depend on it.
8127 * iconv/Makefile (install-others-programs): Set this instead of
8129 * login/Makefile (install-others-programs): Likewise.
8130 * posix/Makefile (install-others-programs): Likewise.
8132 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
8135 2007-07-23 Ulrich Drepper <drepper@redhat.com>
8137 * io/Makefile (tests): Add tst-posix_fallocate.
8138 * io/tst-posix_fallocate.c: New file.
8140 * sysdeps/unix/sysv/linux/kernel-features.h: Define
8143 2007-07-22 Roland McGrath <roland@frob.com>
8145 * hurd/getdport.c: Add missing copyright year update.
8147 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
8148 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
8150 2007-07-22 Ulrich Drepper <drepper@redhat.com>
8152 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
8154 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
8155 O_CLOEXEC is needed.
8156 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
8157 Avoid additional fcntl to set O_CLOEXEC if not needed.
8158 * nis/nss_compat/compat-initgroups.c: Likewise.
8159 * nis/nss_compat/compat-pwd.c: Likewise.
8160 * nis/nss_compat/compat-spwd.c: Likewise.
8162 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
8165 * manual/errno.texi: Change ECANCELED value to 119.
8168 * mach/lock-intern.h: Include <sys/cdefs.h>.
8171 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
8175 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
8178 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
8180 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
8182 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
8184 * sysdeps/mach/hurd/i386/tls.h: Likewise.
8186 2007-07-21 Ulrich Drepper <drepper@redhat.com>
8188 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
8189 descriptor received from nscd.
8191 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
8193 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
8194 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8195 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8196 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8197 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8198 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8200 2007-07-20 Jakub Jelinek <jakub@redhat.com>
8203 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
8206 * login/forkpty.c (forkpty): Close master and slave fds on
8207 fork failure. Patch by
8208 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
8210 2007-07-18 Jakub Jelinek <jakub@redhat.com>
8212 * include/features.h (__USE_ISOC95): New define.
8213 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
8214 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
8215 for -std=iso9899:199409.
8216 * CONFORMANCE: Remove comments about unsupported AMD1.
8218 2007-07-17 Jakub Jelinek <jakub@redhat.com>
8220 * sysdeps/ia64/sched_cpucount.c: New file.
8221 * sysdeps/powerpc/sched_cpucount.c: New file.
8223 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
8224 __BEGIN_DECLS/__END_DECLS around the prototype.
8225 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
8226 pointer to const cpu_set_t.
8228 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
8229 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
8230 __need_size_t and include stddef.h.
8231 * sysvipc/sys/msg.h: Likewise.
8232 * posix/sched.h: Likewise.
8233 * hurd/hurd/signal.h (__need_size_t): Define.
8235 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
8236 neither does signal.h in pedantic ISO C namespaces. stdio.h
8237 no longer defines wint_t or wchar_t.
8239 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
8240 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
8241 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
8242 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
8243 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
8244 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
8245 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
8246 * debug/printf_chk.c (__printf_chk): Likewise.
8247 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
8248 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
8250 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
8253 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
8254 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
8256 2007-07-16 Jakub Jelinek <jakub@redhat.com>
8259 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
8260 * malloc/malloc.h (realloc): Likewise.
8262 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
8263 if one of proc_file_chain streams has that fileno.
8264 * stdio-common/Makefile (tests): Add tst-popen2.
8265 * stdio-common/tst-popen2.c: New test.
8267 2007-07-14 Jakub Jelinek <jakub@redhat.com>
8269 * elf/ldconfig.c: Allow GPLv2 or any later version.
8270 * elf/readlib.c: Likewise.
8271 * elf/chroot_canon.c: Likewise.
8272 * elf/cache.c: Likewise.
8273 * nscd/mem.c: Likewise.
8274 * nscd/getpwuid_r.c: Likewise.
8275 * nscd/grpcache.c: Likewise.
8276 * nscd/aicache.c: Likewise.
8277 * nscd/getsrvbynm_r.c: Likewise.
8278 * nscd/nscd.c: Likewise.
8279 * nscd/servicescache.c: Likewise.
8280 * nscd/getsrvbypt_r.c: Likewise.
8281 * nscd/initgrcache.c: Likewise.
8282 * nscd/gethstbyad_r.c: Likewise.
8283 * nscd/gethstbynm2_r.c: Likewise.
8284 * nscd/getgrnam_r.c: Likewise.
8285 * nscd/nscd_setup_thread.c: Likewise.
8286 * nscd/getpwnam_r.c: Likewise.
8287 * nscd/gai.c: Likewise.
8288 * nscd/connections.c: Likewise.
8289 * nscd/dbg_log.c: Likewise.
8290 * nscd/cache.c: Likewise.
8291 * nscd/hstcache.c: Likewise.
8292 * nscd/nscd_conf.c: Likewise.
8293 * nscd/getgrgid_r.c: Likewise.
8294 * nscd/pwdcache.c: Likewise.
8295 * catgets/gencat.c: Likewise.
8296 * locale/programs/linereader.h: Likewise.
8297 * locale/programs/locarchive.c: Likewise.
8298 * locale/programs/ld-paper.c: Likewise.
8299 * locale/programs/locfile-kw.h: Likewise.
8300 * locale/programs/ld-address.c: Likewise.
8301 * locale/programs/xmalloc.c: Likewise.
8302 * locale/programs/ld-time.c: Likewise.
8303 * locale/programs/localedef.c: Likewise.
8304 * locale/programs/simple-hash.c: Likewise.
8305 * locale/programs/xstrdup.c: Likewise.
8306 * locale/programs/ld-numeric.c: Likewise.
8307 * locale/programs/locfile-kw.gperf: Likewise.
8308 * locale/programs/ld-collate.c: Likewise.
8309 * locale/programs/charmap-kw.gperf: Likewise.
8310 * locale/programs/charmap.h: Likewise.
8311 * locale/programs/charmap-kw.h: Likewise.
8312 * locale/programs/config.h: Likewise.
8313 * locale/programs/locfile.c: Likewise.
8314 * locale/programs/ld-ctype.c: Likewise.
8315 * locale/programs/charmap.c: Likewise.
8316 * locale/programs/ld-messages.c: Likewise.
8317 * locale/programs/repertoire.h: Likewise.
8318 * locale/programs/locale.c: Likewise.
8319 * locale/programs/ld-name.c: Likewise.
8320 * locale/programs/linereader.c: Likewise.
8321 * locale/programs/locfile.h: Likewise.
8322 * locale/programs/3level.h: Likewise.
8323 * locale/programs/ld-monetary.c: Likewise.
8324 * locale/programs/ld-measurement.c: Likewise.
8325 * locale/programs/charmap-dir.c: Likewise.
8326 * locale/programs/ld-identification.c: Likewise.
8327 * locale/programs/localedef.h: Likewise.
8328 * locale/programs/charmap-dir.h: Likewise.
8329 * locale/programs/repertoire.c: Likewise.
8330 * locale/programs/simple-hash.h: Likewise.
8331 * locale/programs/ld-telephone.c: Likewise.
8332 * locale/programs/locale-spec.c: Likewise.
8333 * locale/programs/locfile-token.h: Likewise.
8334 * posix/getconf.c: Likewise.
8335 * iconv/dummy-repertoire.c: Likewise.
8336 * iconv/iconv_charmap.c: Likewise.
8337 * iconv/iconvconfig.c: Likewise.
8338 * iconv/iconv_prog.c: Likewise.
8339 * malloc/memusagestat.c: Likewise.
8340 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
8342 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8344 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
8345 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
8346 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
8347 check for the first argument.
8349 2007-07-12 Jakub Jelinek <jakub@redhat.com>
8352 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
8353 (__tgmath_real_type): Fix if expr is const int or other const
8354 qualified integral type.
8355 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
8356 expressions and handle const qualified arguments.
8357 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
8358 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
8359 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
8360 statement expressions.
8361 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
8362 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
8363 (__TGMATH_UNARY_IMAG): Define.
8364 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
8365 * math/Makefile (tests): Add test-tgmath2.
8366 (CFLAGS-test-tgmath2.c): Add.
8367 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
8368 count_cfloat, count_cldouble): New variables.
8370 (main): Check number of complex calls as well.
8371 (F(compile_test)): Add complex tests and tests with const qualified
8373 (y, z, ccount): Define.
8374 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
8375 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
8376 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
8377 F(cproj)): New functions.
8378 * math/test-tgmath2.c: New test.
8380 2007-07-11 Jakub Jelinek <jakub@redhat.com>
8383 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
8384 RPATH etc. as "/" rather than "", don't segfault on empty paths,
8386 * dlfcn/Makefile (distribute): Add glreflib3.c.
8387 (module-names): Add glreflib3.
8388 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
8390 (LDFLAGS_glreflib3.so): New.
8391 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
8393 * dlfcn/glreflib3.c: New file.
8395 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
8396 returned -1, return NULL.
8397 * intl/explodename.c (_nl_explode_name): Return -1 if
8398 _nl_normalize_codeset failed.
8400 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
8402 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
8403 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
8404 and avoid branch misspredicts for > 31 bytes memset case.
8405 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
8406 Remove toc ref to __cache_line_size.
8408 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
8409 to get ISA-V2.0 branch hints.
8410 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
8411 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
8412 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
8413 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
8414 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
8415 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
8416 Remove toc ref to __cache_line_size.
8418 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
8419 Include math_ldbl_opt.h.
8421 2007-07-10 Ulrich Drepper <drepper@redhat.com>
8424 * time/strptime_l.c (__strptime_internal): Implement greedy
8425 matching of weekday and month names.
8427 2007-07-09 Roland McGrath <roland@redhat.com>
8429 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
8430 (ELF_NOTE_ABI): Use it.
8431 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
8433 2007-07-09 Ulrich Drepper <drepper@redhat.com>
8435 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
8436 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
8438 2007-07-07 Ulrich Drepper <drepper@redhat.com>
8441 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
8442 in loop to look for conversion specifier to avoid testing of
8444 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
8445 * stdio-common/bug18.c: New file.
8446 * stdio-common/bug18a.c: New file.
8447 * stdio-common/bug19.c: New file.
8448 * stdio-common/bug19a.c: New file.
8450 2007-07-05 Mike Frysinger <vapier@gentoo.org>
8452 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
8455 2007-07-01 Jakub Jelinek <jakub@redhat.com>
8457 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
8458 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
8459 Return NULL if mmap failed instead of asserting it does not.
8460 (calloc): Check for integer overflow.
8462 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
8465 2007-07-03 Jakub Jelinek <jakub@redhat.com>
8468 * nis/nss-default.c: Include errno.h.
8469 (init): Preserve errno.
8471 2007-07-02 Ulrich Drepper <drepper@redhat.com>
8473 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
8475 2007-06-30 Ulrich Drepper <drepper@redhat.com>
8477 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
8479 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
8481 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
8483 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
8485 * sysdeps/s390/dl-procinfo.c: New file.
8486 * sysdeps/s390/dl-procinfo.h: New file.
8487 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
8489 2007-06-29 Jakub Jelinek <jakub@redhat.com>
8491 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
8492 in PT_NOTE segments with multiple notes.
8493 * elf/readelflib.c (process_elf_file): Likewise.
8495 2007-06-22 Ulrich Drepper <drepper@redhat.com>
8497 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
8500 2007-06-19 Ulrich Drepper <drepper@redhat.com>
8502 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
8504 2007-06-13 Jakub Jelinek <jakub@redhat.com>
8506 * include/link.h: Don't include rtld-lowlevel.h.
8507 (struct link_map): Remove l_scope_lock.
8508 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
8509 (_dl_scope_free_list): New field (variable) in _rtld_global.
8510 (DL_LOOKUP_SCOPE_LOCK): Remove.
8511 (_dl_scope_free): New prototype.
8512 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
8513 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
8514 (_dl_profile_fixup): Likewise.
8515 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
8516 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
8517 THREAD_GSCOPE_RESET_FLAG around it.
8518 * elf/dl-close.c (_dl_close_worker): Don't use
8519 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
8520 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
8521 scopes were queued or if l_scope_mem has been abandoned.
8522 * elf/dl-open.c (_dl_scope_free): New function.
8523 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
8524 * elf/dl-support.c (_dl_scope_free_list): New variable.
8525 * elf/dl-lookup.c (add_dependency): Remove flags argument.
8526 Remove DL_LOOKUP_SCOPE_LOCK handling.
8527 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
8529 * elf/dl-object.c (_dl_new_object): Don't use
8530 __rtld_mrlock_initialize.
8532 2007-06-19 Ulrich Drepper <drepper@redhat.com>
8534 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
8536 (rtld_global_ro): Likewise.
8538 2007-06-18 Jakub Jelinek <jakub@redhat.com>
8540 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
8541 Move PT_LOAD checking to...
8542 (_dl_addr_inside_object): ... here, new function.
8543 * elf/dl-sym.c (do_sym): If not l_contiguous,
8544 call _dl_addr_inside_object.
8545 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
8546 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
8547 * elf/dl-open.c (dl_open_worker): Likewise.
8548 (_dl_addr_inside_object): New function if IS_IN_rtld.
8549 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
8550 holes are present or are PROT_NONE protected.
8551 * include/link.h (struct link_map): Add l_contiguous field.
8552 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
8554 2007-06-18 Jakub Jelinek <jakub@redhat.com>
8555 Tomas Janousek <tjanouse@redhat.com>
8556 Ulrich Drepper <drepper@redhat.com>
8559 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
8560 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
8562 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
8563 unused member a bitmap.
8564 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
8565 servers are configured.
8567 2007-06-18 Jakub Jelinek <jakub@redhat.com>
8569 * elf/rtld.c (dl_main): Don't call init_tls more than once.
8571 2007-06-17 Andreas Schwab <schwab@suse.de>
8573 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
8575 2007-06-16 Andreas Jaeger <aj@suse.de>
8578 * sysdeps/unix/sysv/linux/sys/ptrace.h
8579 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
8580 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
8581 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
8582 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
8583 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
8585 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8586 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8587 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8588 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8590 2007-06-16 Ulrich Drepper <drepper@redhat.com>
8593 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
8594 determining whether there are IPv4/IPv6 addresses, ignore loopback
8597 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
8599 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
8600 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
8601 as the return type. Change type of "r" variable to CMPtype.
8602 * soft-fp/eqsf2.c (__eqsf2): Likewise.
8603 * soft-fp/eqtf2.c (__eqtf2): Likewise.
8604 * soft-fp/gedf2.c (__gedf2): Likewise.
8605 * soft-fp/gesf2.c (__gesf2): Likewise.
8606 * soft-fp/getf2.c (__getf2): Likewise.
8607 * soft-fp/ledf2.c (__ledf2): Likewise.
8608 * soft-fp/lesf2.c (__lesf2): Likewise.
8609 * soft-fp/letf2.c (__letf2): Likewise.
8610 * soft-fp/unorddf2 (__unorddf2): Likewise.
8611 * soft-fp/unordsf2 (__unordsf2): Likewise.
8612 * soft-fp/unordtf2 (__unordtf2): Likewise.
8614 2007-06-09 Ulrich Drepper <drepper@redhat.com>
8616 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
8617 make sure gcc doesn't mess around with this.
8619 2007-06-08 Ulrich Drepper <drepper@redhat.com>
8621 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
8623 2007-06-08 Jakub Jelinek <jakub@redhat.com>
8625 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
8626 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
8627 at most once per _dl_close_worker.
8629 2007-06-08 Ulrich Drepper <drepper@redhat.com>
8631 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
8632 __sched_cpucount as const.
8633 * posix/sched_cpucount.c: Adjust.
8635 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
8636 instruction for counting bits.
8637 * sysdeps/x86_64/sched_cpucount.c: New file.
8639 2007-06-07 Ulrich Drepper <drepper@redhat.com>
8641 * configure.in: Avoid variable named BASH.
8642 * config.make.in: Likewise.
8643 Patch in part by Mike Frysinger.
8645 2007-06-06 Jakub Jelinek <jakub@redhat.com>
8648 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
8649 pseudo-zeros as zero.
8650 * sysdeps/x86_64/ldbl2mpn.c: New file.
8651 * sysdeps/ia64/ldbl2mpn.c: New file.
8653 2007-06-04 Jakub Jelinek <jakub@redhat.com>
8655 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
8656 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
8657 Remove unreachable code at the end.
8659 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
8661 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
8662 ldbl-128ibm in comment.
8663 (fpclassifyl): Correct classification of denormals.
8664 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
8665 return value for MIN denormal. Rewrite using long double math too
8666 correctly handle denormals and canonicalize the results.
8668 2007-06-05 Jakub Jelinek <jakub@redhat.com>
8670 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
8671 (__mpn_construct_long_double): Fix conversion where result ought
8672 to be smaller than __LDBL_MIN__, or the low double should be
8673 denormal. Fix decision where to negate low double - honor round
8675 * stdio-common/tst-sprintf2.c: Include string.h.
8676 (COMPARE_LDBL): Define.
8677 (TEST): Also test whether a string hexadecimal float representation
8678 can be parsed back to the number.
8679 (main): Add a couple of further tests.
8681 2007-06-04 Jakub Jelinek <jakub@redhat.com>
8683 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
8684 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
8685 is non-zero, but smaller than 2 * __DBL_MIN__.
8686 * stdio-common/tst-sprintf2.c: New test.
8687 * stdio-common/Makefile (tests): Add tst-sprintf2.
8689 * math/test-misc.c (main): Don't run last batch of tests with
8690 IBM long double format.
8692 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
8694 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
8695 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
8696 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
8697 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
8698 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8699 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
8700 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
8701 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
8702 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
8703 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8704 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
8705 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
8707 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
8709 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
8711 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
8713 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
8715 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
8716 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
8718 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
8720 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
8722 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
8724 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
8727 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
8729 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
8730 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
8731 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
8732 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
8733 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
8734 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
8735 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
8736 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
8738 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
8740 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
8741 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8742 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
8743 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8744 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
8745 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8746 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
8747 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8749 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
8751 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
8752 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
8753 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
8754 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
8756 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
8758 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
8759 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
8761 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
8763 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
8764 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
8765 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
8766 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
8768 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
8770 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
8771 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
8773 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
8775 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
8776 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
8778 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
8779 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
8780 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
8781 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
8783 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
8785 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
8786 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
8787 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
8788 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
8790 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
8792 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
8793 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
8794 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
8795 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8796 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
8797 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8799 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
8801 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
8802 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
8803 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
8804 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
8806 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
8808 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
8809 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
8810 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
8811 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
8812 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
8813 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
8814 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
8815 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
8816 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
8817 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
8818 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
8819 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
8820 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
8821 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
8822 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
8823 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
8825 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
8827 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
8828 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
8830 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
8832 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
8833 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
8835 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
8837 * sysdeps/powerpc/powerpc32/970/Implies: New file.
8838 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
8839 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
8840 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
8841 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
8842 * sysdeps/powerpc/powerpc64/970/Implies: New file.
8843 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
8844 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
8845 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
8846 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
8848 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
8850 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
8852 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
8854 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
8855 branch miss-predicts. Ensure that cache line crossing does not impact
8858 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
8860 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
8861 "../../powerpc32/power4/memcopy.h".
8862 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
8863 "../../powerpc32/power4/wordcopy.c".
8865 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
8867 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
8868 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
8869 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
8870 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
8871 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
8872 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
8874 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
8876 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
8878 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
8880 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
8881 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
8882 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
8883 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
8884 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
8885 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
8886 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
8887 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
8889 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
8891 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
8893 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
8895 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
8896 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
8897 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
8898 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
8899 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
8900 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
8901 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
8903 2007-05-29 Roland McGrath <roland@redhat.com>
8905 * po/Makefile (po-sed-cmd): New variable.
8906 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
8908 2007-05-29 Ulrich Drepper <drepper@redhat.com>
8910 * crypt/md5-crypt.c: Fix comment.
8912 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
8913 of crashing. When this is the case or if the reply is malformed,
8914 don't try to close the new file descriptor since it does not
8916 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
8918 2007-05-28 Jakub Jelinek <jakub@redhat.com>
8920 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
8921 if __NR_utimensat is not defined.
8923 2007-05-26 Ulrich Drepper <drepper@redhat.com>
8925 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
8927 2007-05-25 Jakub Jelinek <jakub@redhat.com>
8929 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
8930 (open): Fix comment typos. Don't call __open_2 if flags
8931 is a compile time constant without O_CREAT.
8932 (__open64_2): Add nonnull attribute.
8933 (open64): Fix comment typos. Don't call __open64_2 if flags
8934 is a compile time constant without O_CREAT.
8935 (__openat_2): Add nonnull attribute, fix nonnull attribute
8937 (openat): Fix comment typos. Don't call __openat_2 if flags
8938 is a compile time constant without O_CREAT.
8939 (__openat64_2): Add nonnull attribute, fix nonnull attribute
8941 (openat64): Fix comment typos. Don't call __openat64_2 if flags
8942 is a compile time constant without O_CREAT.
8944 2007-05-24 Ulrich Drepper <drepper@redhat.com>
8946 * Makerules (sysd-rules): Define PTW for ptw-* files.
8947 * Versions: Define GLIBC_2.7 for libc.
8948 * include/stdio.h: Declare __fortify_fail.
8949 * debug/fortify_fail.c: New file.
8950 * debug/Makefile (routines): Add fortify_fail.
8951 * debug/chk_fail.c: Use __fortify_fail.
8952 * debug/stack_chk_fail.c: Likewise.
8953 * io/Versions: Export __open_2, __open64_2, __openat_2, and
8954 __openat64_2 for GLIBC_2.7.
8955 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
8956 * io/open.c: Define *_2 variant of function which checks for O_CREAT
8957 and fails if necessary.
8958 * io/open64.c: Likewise.
8959 * io/openat.c: Likewise.
8960 * io/openat64.c: Likewise.
8961 * sysdeps/unix/sysv/linux/open64.c: Likewise.
8962 * sysdeps/unix/sysv/linux/openat.c: Likewise.
8963 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
8964 * io/bits/fcntl2.h: New file.
8965 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
8967 * include/bits/fcntl2.h: New file.
8968 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8970 * sysdeps/unix/sysv/linux/open_2.c: New file.
8972 2007-05-21 Ulrich Drepper <drepper@redhat.com>
8974 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
8975 as second parameter to handle_intel.
8977 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
8980 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
8982 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
8983 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
8985 * sysdeps/x86_64/memcpy.S: Complete rewrite.
8986 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
8987 Patch by Evandro Menezes <evandro.menezes@amd.com>.
8989 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
8991 2007-05-21 Jakub Jelinek <jakub@redhat.com>
8994 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
8995 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
8996 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
8998 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
9001 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
9002 reinitialize workend at the start of each do_positional format spec
9003 loop, free workstart before do_positional loops.
9004 (printf_unknown): Fix size of work_buffer.
9005 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
9007 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
9008 (public_sET_STATe): If ms->version < 3, put all chunks into
9009 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
9012 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
9013 * malloc/hooks.c: Likewise.
9014 * malloc/arena.c: Likewise.
9015 * malloc/malloc.c (do_check_malloc_state): Don't assert
9016 n_mmaps is not greater than n_mmaps_max. This removes the need
9017 for the previous change.
9019 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
9022 2007-05-19 Ulrich Drepper <drepper@redhat.com>
9024 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
9025 Define for kernel >= 2.6.22.
9027 2007-05-18 Ulrich Drepper <drepper@redhat.com>
9029 * elf/dl-close.c (_dl_close_worker): When removing object from
9030 global scope, wait for all lookups to finish afterwards.
9031 * elf/dl-open.c (add_to_global): When global scope array must
9032 grow, allocate a new one and free old array only after all
9034 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
9035 (_dl_lookup_symbol_x): Likewise.
9036 * elf/dl-support.c: Define _dl_wait_lookup_done.
9037 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9038 _dl_wait_lookup_done.
9040 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
9041 not overlapping with arena.
9043 * malloc/mcheck.c (reallochook): If size==0, free the block.
9045 * rt/tst-shm.c: Use fstat64 instead of fstat.
9047 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
9048 __NR_sync_file_range is not defined.
9050 2007-05-17 Ulrich Drepper <drepper@redhat.com>
9052 Dummy files to prevent stub versions from being used.
9053 * sysdeps/x86_64/fpu/k_cosl.c: New file.
9054 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
9055 * sysdeps/x86_64/fpu/k_sinl.c: New file.
9056 * sysdeps/x86_64/fpu/k_tanl.c: New file.
9058 * version.h (VERSION): Set to 2.6.90.
9060 2007-05-14 Ulrich Drepper <drepper@redhat.com>
9062 * version.h (VERSION): Define to 2.6.
9063 * include/features.h (__GLIBC_MINOR__): Define to 6.
9065 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
9067 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
9070 2007-05-13 Ulrich Drepper <drepper@redhat.com>
9072 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
9073 number of mmaps. n_mmaps_max is the target.
9074 * malloc/hooks.c: Likewise.
9075 * malloc/arena.c: Likewise.
9077 2007-05-12 Andreas Jaeger <aj@suse.de>
9079 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
9082 2007-05-11 Ulrich Drepper <drepper@redhat.com>
9084 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
9085 adding new variables.
9087 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
9088 optimize. Completely extend global scope array before making the
9089 new entries visible.
9091 2007-05-10 Ulrich Drepper <drepper@redhat.com>
9093 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
9094 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
9097 * include/link.h: Move l_version and l_nversion members around to
9100 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
9102 * sysdeps/unix/sysv/linux/sched_setaffinity.c
9103 (__sched_setaffinity_new): If syscall was successful and
9104 RESET_VGETCPU_CACHE is defined, use it before returning.
9105 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
9107 * io/sys/stat.h: Make sure struct timespec is defined for
9110 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
9112 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
9113 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
9114 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
9115 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
9116 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
9117 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
9118 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
9119 * io/sys/stat.h: Declare utimensat, futimens.
9120 * io/utimensat.c: New file.
9121 * io/futimens.c: New file.
9122 * sysdeps/unix/sysv/linux/utimensat.c: New file.
9123 * sysdeps/unix/sysv/linux/futimens.c: New file.
9124 * io/Makefile (routines): Add utimensat, futimens.
9125 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
9126 * sysdeps/unix/sysv/linux/lutimes.c: New file.
9127 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
9130 * include/sys/cdefs.h: Redefine __nonnull so that test for
9131 incorrect parameters in the libc code itself are not omitted.
9133 2007-05-09 Jakub Jelinek <jakub@redhat.com>
9135 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
9136 exception in addition to inexact when asked to raise only FE_INEXACT.
9139 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
9142 2007-05-07 Ulrich Drepper <drepper@redhat.com>
9145 * string/strfry.c (strfry): Make result more random.
9147 2007-05-07 Richard Henderson <rth@redhat.com>
9149 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
9150 if __NO_LONG_DOUBLE_MATH.
9151 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
9152 available in the compiler, add .arch directive to the assembly.
9154 2007-05-07 Jakub Jelinek <jakub@redhat.com>
9156 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
9157 compat_symbol to GLIBC_2_1.
9158 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
9159 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
9160 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
9161 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
9162 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
9163 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
9164 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
9166 (__isnanl): New compat_symbol.
9168 2007-05-07 Ulrich Drepper <drepper@redhat.com>
9169 Jakub Jelinek <jakub@redhat.com>
9171 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
9172 (new_heap): Initialize mprotect_size.
9173 (grow_heap): When growing, only mprotect from mprotect_size till
9174 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
9175 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
9177 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
9178 Peter Bergner <bergner@us.ibm.com>
9180 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
9181 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
9182 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
9183 * sysdeps/powerpc/fpu/fe_mask.c: New file.
9184 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
9185 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
9186 Call __fe_mask_env() if all FP exceptions disabled.
9187 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
9188 from old FPSCR to new fenv to propagate DFP rounding modes.
9189 Call __fe_mask_env() if FP exceptions previously enabled.
9190 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
9191 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
9192 transitioning from all exceptions disabled to any exception enabled
9194 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
9195 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
9196 when transitioning from all exceptions disabled to any exception
9197 enabled or visa versa.
9198 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
9199 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
9200 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
9201 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
9202 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
9203 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
9205 2007-05-06 Ulrich Drepper <drepper@redhat.com>
9208 * posix/unistd.h: Remove __THROW from fdatasync.
9210 2007-05-06 Mike Frysinger <vapier@gentoo.org>
9213 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
9215 2007-05-06 Ulrich Drepper <drepper@redhat.com>
9217 * stdio-common/vfprintf.c (process_string_arg): Optimize
9218 ridiculous precision in wide char code printing multi-byte string.
9219 Reported by Jim Meyering <jim@meyering.net>.
9222 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
9223 boundaries to work around systems with overlapping binary loading.
9224 Based on a patch by Suzuki <suzuki@in.ibm.com>.
9226 2007-05-04 Ulrich Drepper <drepper@redhat.com>
9228 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
9229 __mbsnrtowcs after last change.
9231 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
9232 (get_ident): Likewise.
9234 2007-05-03 Jakub Jelinek <jakub@redhat.com>
9236 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
9237 with setting the sticky bit.
9238 * math/test-misc.c (main): Add more truncation tests.
9240 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
9242 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
9243 double in the function declaration.
9244 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
9245 double in the function declaration.
9246 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9247 float in the function declaration.
9248 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9249 float in the function declaration.
9251 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
9252 denormal operands. Do not generate FP_EX_DENORM exception.
9253 (FP_UNPACK_RAW_EP): Ditto.
9254 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
9255 undefined _FP_UNPACK_RAW_E.
9256 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
9257 undefined _FP_UNPACK_RAW_EP.
9258 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
9259 undefined _FP_PACK_RAW_E.
9260 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
9261 undefined _FP_PACK_RAW_EP.
9263 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
9265 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
9268 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
9269 Jakub Jelinek <jakub@redhat.com>
9271 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
9272 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
9274 * soft-fp/op-common.h (FP_TRUNC): Ditto.
9276 2007-05-03 Jakub Jelinek <jakub@redhat.com>
9278 * math/test-misc.c (main): Add tests for rounding long double
9279 values close to smallest double denormalized value to double.
9281 2007-04-30 Joseph Myers <joseph@codesourcery.com>
9283 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
9284 condition for truncating to 0. Set sticky bit for such
9287 2007-05-02 Jakub Jelinek <jakub@redhat.com>
9289 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
9290 fixed length array for ignore.
9292 2007-04-30 Ulrich Drepper <drepper@redhat.com>
9295 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
9296 stack for large precisions.
9297 * stdio-common/test-vfprintf.c (main): Add test for large
9300 2007-04-30 Jakub Jelinek <jakub@redhat.com>
9302 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
9304 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
9307 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
9308 account in the size check.
9309 * resolv/tst-inet_ntop.c: New test.
9310 * resolv/Makefile (tests): Add tst-inet_ntop.
9312 2007-04-30 Ulrich Drepper <drepper@redhat.com>
9313 Jakub Jelinek <jakub@redhat.com>
9316 * malloc/malloc.c: Keep separate list for first blocks on the bin
9317 lists with a given size. This helps skipping over list elements
9318 we know won't fit in two places.
9319 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
9321 2007-04-28 Ulrich Drepper <drepper@redhat.com>
9324 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
9325 label to Teredo tunnel addresses 2001://32.
9327 2007-04-27 Ulrich Drepper <drepper@redhat.com>
9329 * locale/programs/ld-collate.c (collate_read): Allow order_start
9332 * locale/programs/ld-collate.c (collate_read): Fix printing of
9336 * locale/C-translit.h.in: Add entry for U2044.
9339 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
9340 hexa-decimal floats without exponent.
9341 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
9343 2007-04-25 Ulrich Drepper <drepper@redhat.com>
9345 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
9346 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
9347 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
9348 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
9350 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
9353 2007-04-25 Jakub Jelinek <jakub@redhat.com>
9355 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
9356 of 0 after the out_fail label.
9358 2007-04-25 Ulrich Drepper <drepper@redhat.com>
9361 * iconv/gconv_charset.h (strip): Allow ':'.
9362 * iconv/iconv_open.c (iconv_open): Adjust comment.
9364 2007-04-25 Jakub Jelinek <jakub@redhat.com>
9366 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
9369 2007-04-23 Jakub Jelinek <jakub@redhat.com>
9372 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
9373 alignment of buffer and tmp_buffer.
9374 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
9375 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
9376 alignment of buffer.
9377 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
9378 bigger than INT_MAX.
9379 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
9380 h_errnop arguments. Fail if buflen is too small.
9381 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
9383 2007-04-23 Jakub Jelinek <jakub@redhat.com>
9386 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
9387 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
9389 2007-04-22 Roland McGrath <roland@redhat.com>
9391 * elf/elf.h (NT_PRXFPREG): New macro.
9393 2007-04-19 Andreas Jaeger <aj@suse.de>
9396 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
9397 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
9400 2007-04-19 Ulrich Drepper <drepper@redhat.com>
9402 * include/sys/mman.h: Mark madvise hidden.
9403 * misc/madvise.c: Add libc_hidden_def.
9405 2007-04-06 Jakub Jelinek <jakub@redhat.com>
9407 * nis/nis_domain_of.c (__nis_domain_of): New function.
9408 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
9409 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
9410 * nis/nis_call.c (rec_dirsearch): Likewise.
9411 (first_shoot): Likewise. Remove search_parent_first argument.
9412 (struct nis_server_cache): Rename search_parent_first field
9414 (nis_server_cache_search, nis_server_cache_add): Rename
9415 search_parent_first argument to search_parent.
9416 (__nisfind_server): Likewise. If search_parent, call
9419 2007-04-18 Ulrich Drepper <drepper@redhat.com>
9421 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
9423 2007-04-17 Ulrich Drepper <drepper@redhat.com>
9426 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
9428 2007-04-16 Ulrich Drepper <drepper@redhat.com>
9431 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
9433 2007-04-15 Jakub Jelinek <jakub@redhat.com>
9435 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
9436 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
9437 current number of locales in SUPPORTED.
9438 (create_archive): Initialize serial.
9439 (enlarge_archive): Preserve aliases rather than duplicating
9442 2007-04-13 Jakub Jelinek <jakub@redhat.com>
9444 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
9445 after _IO_un_link, not before it.
9447 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
9448 special case handling when wcp == wstartp + 1. Fix a comment typo.
9449 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
9451 2007-03-30 Jakub Jelinek <jakub@redhat.com>
9453 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
9454 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
9455 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
9457 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
9458 _IO_file_xsgetn_maybe_mmap): Likewise.
9459 * libio/oldfileops.c (old_do_write): Likewise.
9460 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
9461 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
9462 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
9463 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
9464 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
9465 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
9466 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
9467 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
9468 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
9469 _IO_file_underflow, _IO_file_underflow_mmap,
9470 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
9471 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
9472 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
9473 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
9474 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
9475 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
9476 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
9477 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
9478 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
9479 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
9480 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
9481 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
9482 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
9483 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
9484 _IO_adjust_column_internal, _IO_default_uflow_internal,
9485 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
9486 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
9487 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
9488 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
9489 _IO_file_close_it_internal, _IO_file_underflow_internal,
9490 _IO_file_overflow_internal, _IO_file_attach_internal,
9491 _IO_file_fopen_internal, _IO_file_sync_internal,
9492 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
9493 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
9494 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
9495 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
9496 _IO_seekpos_unlocked): Likewise.
9497 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
9498 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
9500 2007-04-16 Jakub Jelinek <jakub@redhat.com>
9502 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
9503 argument in xmalloc size computation.
9505 2007-04-01 Jakub Jelinek <jakub@redhat.com>
9507 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
9508 math_opt_barrier and math_force_eval macros.
9510 2007-03-27 Jakub Jelinek <jakub@redhat.com>
9513 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
9514 * sysdeps/i386/fpu/math_private.h: New file.
9515 * sysdeps/x86_64/fpu/math_private.h: New file.
9516 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
9517 math_force_eval macros. Use "+m" constraint on asm rather than
9519 * math/s_nextafter.c (__nextafter): Likewise.
9520 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
9522 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
9523 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
9524 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9525 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
9526 math_opt_barrier and math_force_eval macros.
9527 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
9528 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
9529 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
9530 (__nexttoward): Use math_opt_barrier and
9531 math_force_eval macros. Use "+m" constraint on asm rather than
9532 "=m" and "m". Only use asm to force double result if
9533 FLT_EVAL_METHOD is 2.
9534 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
9535 (__nexttowardf): Use math_opt_barrier and
9536 math_force_eval macros. Use "+m" constraint on asm rather than
9537 "=m" and "m". Only use asm to force double result if
9538 FLT_EVAL_METHOD is not 0.
9539 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
9540 (__nexttowardf): Use math_opt_barrier and
9541 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
9542 x to float using asm.
9543 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
9544 (__nldbl_nexttowardf): Use math_opt_barrier and
9545 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
9546 x to float using asm.
9547 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
9548 (__nexttowardf): Use math_opt_barrier and math_force_eval
9549 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
9550 * math/bug-nextafter.c (zero, inf): New variables.
9551 (main): Add new tests.
9552 * math/bug-nexttoward.c (zero, inf): New variables.
9553 (main): Add new tests.
9555 2007-03-22 Jakub Jelinek <jakub@redhat.com>
9558 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
9559 exceptions both in SW and MXCSR.
9560 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
9561 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
9562 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
9563 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9564 in MXCSR if SSE is available.
9565 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
9567 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
9569 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
9570 Return 0 rather than 1.
9571 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
9572 Remove incorrect part of a comment. Fix argument to feraiseexcept.
9573 * math/test-fenv.c (feholdexcept_tests): New function.
9576 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
9579 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9582 2007-04-13 Jakub Jelinek <jakub@redhat.com>
9585 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
9586 Reported by David Anderson <davea42@earthlink.net>.
9588 2007-04-07 Ulrich Drepper <drepper@redhat.com>
9590 * posix/sys/wait.h: Remove unnecessary forward declaration.
9592 2007-04-05 Jakub Jelinek <jakub@redhat.com>
9594 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
9595 with obj->do_servers after first_shoot.
9597 2007-04-03 Ulrich Drepper <drepper@redhat.com>
9599 * posix/Makefile (routines): Add sched_cpucount.
9600 (tests): Add tst-cpucount.
9601 * posix/sched_cpucount.c: New file.
9602 * posix/tst-cpucount.c: New file.
9603 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
9604 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
9605 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
9606 * posix/sched.h: Define CPU_COUNT.
9608 2007-03-27 Jakub Jelinek <jakub@redhat.com>
9610 * posix/fnmatch.c (STRUCT): Define.
9611 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
9612 * posix/fnmatch_loop.c (struct STRUCT): New type.
9613 (FCT): Add ends argument. If ends != NULL and normal * is
9614 seen in the pattern, store current pattern and string pointers
9615 and return. Adjust recursive calls.
9616 (EXT): Adjust FCT callers.
9617 (STRUCT): Undef at the end of the file.
9618 * posix/Makefile (tests): Add tst-fnmatch2.
9619 * posix/tst-fnmatch2.c: New test.
9621 2007-04-01 Jakub Jelinek <jakub@redhat.com>
9623 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
9626 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
9627 Change last argument to unsigned int.
9629 2007-03-23 Jakub Jelinek <jakub@redhat.com>
9631 * scripts/check-local-headers.sh: Filter out sys/capability.h.
9633 2007-03-22 Jakub Jelinek <jakub@redhat.com>
9635 * config.h.in (HAVE_LIBCAP): Add.
9636 * nscd/selinux.h: Include sys/capability.h rather than non-existent
9638 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
9639 free_caps. Cast away const from 4th cap_set_flag argument.
9641 2007-03-26 Ulrich Drepper <drepper@redhat.com>
9643 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
9645 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9646 Add sync_file_range.
9647 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
9649 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
9651 * sysdeps/powerpc/bits/atomic.h
9652 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
9653 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
9654 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9655 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
9656 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9657 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
9658 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
9659 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9660 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9661 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9662 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
9663 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9664 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9665 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9666 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9667 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
9668 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9669 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
9670 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9671 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
9673 2007-03-20 Jakub Jelinek <jakub@redhat.com>
9675 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9676 (__cache_line_size): Define the variable here. Add
9677 attribute_hidden, remove weak_extern.
9678 (__libc_start_main): Set __cache_line_size
9680 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
9681 (__cache_line_size): Define the variable here. Add
9682 attribute_hidden, remove weak_extern.
9683 (DL_PLATFORM_AUXV): Set __cache_line_size
9685 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
9686 weak_extern, add attribute_hidden.
9687 (__elf_machine_runtime_setup): Assume __cache_line_size is always
9689 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
9691 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
9693 2007-03-26 Jakub Jelinek <jakub@redhat.com>
9696 * timezone/africa: Update from tzdata2007d.
9697 * timezone/asia: Likewise.
9698 * timezone/australasia: Likewise.
9699 * timezone/backward: Likewise.
9700 * timezone/europe: Likewise.
9701 * timezone/iso3166.tab: Likewise.
9702 * timezone/leapseconds: Likewise.
9703 * timezone/northamerica: Likewise.
9704 * timezone/southamerica: Likewise.
9705 * timezone/zone.tab: Likewise.
9707 * timezone/private.h: Update from tzcode2007d.
9708 * timezone/zdump.c: Likewise.
9709 * timezone/zic.c: Likewise.
9711 2007-03-21 Jakub Jelinek <jakub@redhat.com>
9713 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
9714 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
9716 (nis_server_cache_search, nis_server_cache_add): New functions.
9717 (__nisfind_server): Use them. Add dbp and flags argument, if
9718 call __nisbind_create.
9719 (__nisbind_create): Add server_used and current_ep arguments,
9720 only call __nis_findfastest if server_used is ~0.
9721 (__do_niscall2, __prepare_niscall): Adjust callers.
9722 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
9723 ckey_cache_euid, ckey_cache_lock): New variables.
9724 (get_ckey): New function.
9725 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
9726 __pmap_getnisport. Save __pmap_getnisport result in
9727 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
9729 * nis/nis_lookup.c (nis_lookup): Likewise.
9730 * nis/nis_table.c (nis_list): Likewise.
9731 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
9734 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
9735 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
9736 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
9737 _nss_nisplus_getservbyport_r): Likewise.
9738 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
9739 _nss_nisplus_getnetbyaddr_r): Likewise.
9740 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
9741 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
9742 _nss_nisplus_getntohost_r): Likewise.
9743 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
9744 _nss_nisplus_getrpcbynumber_r): Likewise.
9746 2007-03-20 Jakub Jelinek <jakub@redhat.com>
9748 * configure.in (libc_cv_gnu89_inline): Only do compile test.
9749 * configure: Rebuilt.
9751 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
9753 * soft-fp/extended.h (_FP_UNION_E): Likewise.
9755 2006-06-07 Joseph Myers <joseph@codesourcery.com>
9758 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
9761 2007-03-18 Jakub Jelinek <jakub@redhat.com>
9763 * nscd/gai.c: Include alloca.h.
9764 (__libc_use_alloca): Define.
9766 2007-03-16 Jakub Jelinek <jakub@redhat.com>
9768 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
9770 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
9771 (DL_DST_REQUIRED): Adjust user.
9773 * include/dlfcn.h (struct link_map): New forward decl.
9775 * inet/getnameinfo.c: Include stddef.h.
9776 (getnameinfo): Use offsetof.
9778 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
9780 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
9782 * string/strerror_l.c: Include stdlib.h.
9784 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
9785 * config.make.in (gnu89-inline-CFLAGS): New variable.
9786 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
9788 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
9789 * argp/argp.h: Use it.
9790 * bits/mathinline.h: Likewise.
9791 * bits/sigset.h: Likewise.
9792 * bits/string.h: Likewise.
9793 * ctype/ctype.h: Likewise.
9794 * hurd/hurd.h: Likewise.
9795 * hurd/hurd/fd.h: Likewise.
9796 * hurd/hurd/port.h: Likewise.
9797 * hurd/hurd/signal.h: Likewise.
9798 * hurd/hurd/threadvar.h: Likewise.
9799 * hurd/hurd/userlink.h: Likewise.
9800 * io/sys/stat.h: Likewise.
9801 * libio/bits/stdio.h: Likewise.
9802 * libio/bits/stdio2.h: Likewise.
9803 * mach/lock-intern.h: Likewise.
9804 * mach/mach/mig_support.h: Likewise.
9805 * math/bits/cmathcalls.h: Likewise.
9806 * posix/bits/unistd.h: Likewise.
9807 * socket/bits/socket2.h: Likewise.
9808 * stdlib/bits/stdlib.h: Likewise.
9809 * stdlib/stdlib.h: Likewise.
9810 * string/argz.h: Likewise.
9811 * string/bits/string2.h: Likewise.
9812 * string/bits/string3.h: Likewise.
9813 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
9814 * sysdeps/generic/inttypes.h: Likewise.
9815 * sysdeps/generic/machine-lock.h: Likewise.
9816 * sysdeps/generic/machine-sp.h: Likewise.
9817 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
9818 * sysdeps/i386/i486/bits/string.h: Likewise.
9819 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
9820 * sysdeps/mach/alpha/machine-lock.h: Likewise.
9821 * sysdeps/mach/alpha/machine-sp.h: Likewise.
9822 * sysdeps/mach/i386/machine-lock.h: Likewise.
9823 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9824 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
9825 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
9826 * sysdeps/s390/bits/string.h: Likewise.
9827 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
9828 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
9829 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
9830 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
9831 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9832 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
9833 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
9834 * wcsmbs/bits/wchar2.h: Likewise.
9835 * wcsmbs/wchar.h: Likewise.
9836 * stdlib/gmp.h: Likewise. Include <features.h> to get
9837 __extern_inline definition.
9839 2007-03-15 Jakub Jelinek <jakub@redhat.com>
9841 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
9845 * math/libm-test.inc (log_test): Test -Inf and NaN.
9846 (log10_test, log1p_test, log2_test): Test -Inf.
9847 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
9848 FE_INVALID when argument is qNaN.
9849 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
9850 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
9851 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
9852 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
9853 andb $1, %ah with testb $1, %ah, don't test for parity, instead
9854 testb $4, %ah and jump if non-zero.
9855 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
9856 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
9859 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
9860 ancestors with the same depths.
9861 Patch by Niels Moeller <nisse@lysator.liu.se>.
9862 (filter_doc): Don't crash if argp is NULL.
9863 * argp/Makefile (tests): Add tst-argp2.
9864 * argp/tst-argp2.c: New test.
9867 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
9869 (updwtmp_file): Likewise.
9872 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
9873 (inet6_opt_append): Don't check extlen is big enough if extbuf
9875 (inet6_opt_finish): Likewise.
9876 * inet/Makefile (tests): Add test-inet6_opt.
9877 * inet/test-inet6_opt.c: New test.
9879 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
9880 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
9881 NLMSG_ERR. Instead use a page sized buffer.
9882 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
9885 2007-03-14 Richard Henderson <rth@redhat.com>
9887 * sysdeps/alpha/fpu/s_llround.c: New file.
9888 * sysdeps/alpha/fpu/s_llroundf.c: New file.
9889 * sysdeps/alpha/fpu/s_lround.c: New file.
9890 * sysdeps/alpha/fpu/s_lroundf.c: New file.
9891 * sysdeps/alpha/fpu/s_round.c: New file.
9892 * sysdeps/alpha/fpu/s_roundf.c: New file.
9893 * sysdeps/alpha/fpu/s_trunc.c: New file.
9894 * sysdeps/alpha/fpu/s_truncf.c: New file.
9896 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
9897 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
9898 * sysdeps/alpha/fpu/s_floor.c: Likewise.
9899 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
9900 * sysdeps/alpha/fpu/s_rint.c: Likewise.
9901 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
9903 * sysdeps/alpha/fpu/s_fmax.S: New file.
9904 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
9905 * sysdeps/alpha/fpu/s_fmin.S: New file.
9906 * sysdeps/alpha/fpu/s_fminf.S: New file.
9907 * sysdeps/alpha/fpu/s_isnan.c: New file.
9908 * sysdeps/alpha/fpu/s_isnanf.c: New file.
9909 * sysdeps/alpha/fpu/s_llrint.c: New file.
9910 * sysdeps/alpha/fpu/s_llrintf.c: New file.
9911 * sysdeps/alpha/fpu/s_lrint.c: New file.
9912 * sysdeps/alpha/fpu/s_lrintf.c: New file.
9913 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
9914 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
9916 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
9917 (__fdimf, fdimf, __fdim, fdim): Remove.
9918 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
9919 (__isnanf, __isnan, __isnanl): New.
9921 2007-03-13 Richard Henderson <rth@redhat.com>
9923 * sysdeps/ieee754/ldbl-128/Makefile: New file.
9925 2007-03-13 Richard Henderson <rth@redhat.com>
9927 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
9928 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
9929 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
9930 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
9931 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
9932 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
9934 2007-03-13 Richard Henderson <rth@redhat.com>
9936 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
9937 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
9938 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
9939 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
9940 Move to dl-auxv.h; initialize instead of extern weak.
9941 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
9943 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
9944 Extern instead of initialized.
9946 2007-03-13 Richard Henderson <rth@redhat.com>
9948 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
9949 __sigsuspend_nocancel.
9951 2007-03-06 Ulrich Drepper <drepper@redhat.com>
9953 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
9954 172.16/12 address range.
9956 2007-03-02 Jakub Jelinek <jakub@redhat.com>
9958 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
9959 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
9962 2007-03-01 Jakub Jelinek <jakub@redhat.com>
9965 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
9967 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
9969 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
9970 for x qNaN and y either +-inf or non-integer value.
9971 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
9972 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
9973 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9975 2007-02-10 Mike Frysinger <vapier@gentoo.org>
9977 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
9978 from sysdep_headers.
9980 2007-02-28 Jakub Jelinek <jakub@redhat.com>
9982 * time/tzfile.c (find_transition): Instead of a linear search try to
9983 guess the transition index, use a linear search if the result is at
9984 most 10 transitions away from the guess or binary search otherwise.
9986 2007-02-27 Jakub Jelinek <jakub@redhat.com>
9988 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
9989 memory reallocation.
9991 2007-02-21 Ulrich Drepper <drepper@redhat.com>
9993 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
9995 Optimize use of TOLOWER.
9998 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
9999 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10000 * sysdeps/i386/fpu/e_fmod.S: Likewise.
10003 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
10004 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
10007 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
10008 (open_dir_stream): Likewise.
10009 * io/Makefile (tests): Add bug-ftw5.
10010 * io/bug-ftw5.c: New file.
10012 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
10013 * nscd/servicescache.c (cache_addserv): Likewise.
10015 * nscd/grpcache.c (cache_addgr): In case a record changed on
10016 refresh, adjust key_copy.
10019 * nscd/pwdcache.c (cache_addpw): In case a record changed on
10020 refresh, adjust key_copy.
10023 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
10025 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
10027 2007-02-19 Ulrich Drepper <drepper@redhat.com>
10029 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
10032 * stdio-common/vfscanf.c: Small cleanups throughout.
10034 2007-02-18 Ulrich Drepper <drepper@redhat.com>
10037 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
10038 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10039 * sysdeps/i386/fpu/e_fmod.S: Likewise.
10040 Patch by Jared Casper <jaredcasper@gmail.com>.
10042 * sysdeps/unix/closedir.c: Outside libc don't use locking.
10043 * sysdeps/unix/opendir.c: Likewise.
10044 * sysdeps/unix/readdir.c: Likewise.
10047 * stdio-common/vfscanf.c: Handle localized digits etc for floating
10049 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
10051 * stdio-common/vfscanf.c: Fix problems in width accounting.
10052 * stdio-common/tst-sscanf.c (double_tests): New tests.
10053 (main): Hook them up.
10055 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
10056 More simplifications of floating-point reader.
10058 * stdio-common/Makefile (tests): Add tst-swscanf.
10059 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
10061 * stdio-common/tst-swscanf.c: New file.
10063 2007-02-17 Ulrich Drepper <drepper@redhat.com>
10066 * libio/stdio.h: Define struct _IO_FILE in global namespace.
10067 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
10068 Remove using for __jmp_buf_tag.
10069 * locale/locale.h (struct lconv): Also define in std namespace.
10070 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
10073 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
10074 using __libc_enable_secure.
10077 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
10080 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
10081 of names for ellipsises.
10084 * malloc/memusage.sh: Cleanups.
10085 * debug/xtrace.sh: Quoting and trap changes.
10087 2007-02-16 Ulrich Drepper <drepper@redhat.com>
10089 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
10091 * locale/iso-3166.def: Update entry for Serbia.
10092 * locale/iso-4217.def: Define RSD, remove CSD.
10094 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
10095 and 64-bit operations.
10098 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
10101 * nscd/nscd.c (parse_opt): One more conversion to use send instead
10104 2007-02-15 Ulrich Drepper <drepper@redhat.com>
10107 * assert/assert.h (assert): Simplify.
10108 (assert_perror): Likewise.
10109 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
10111 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
10114 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
10115 change: don't pass NULL in place of an integer.
10117 2007-02-02 Bruno Haible <bruno@clisp.org>
10120 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
10121 Add mapping for U+327E.
10122 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
10123 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10124 mapping of 0xD9 0xE8.
10125 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
10127 Reported by Jungshik Shin <jungshik@google.com>.
10130 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10131 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
10132 Reported by Jungshik Shin <jungshik@google.com>.
10134 2007-02-14 Ulrich Drepper <drepper@redhat.com>
10136 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
10140 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
10141 byte variants. Patch mostly be tom@tommay.net.
10143 2007-02-14 Jakub Jelinek <jakub@redhat.com>
10146 * posix/glob.c (attribute_hidden): Define if not defined.
10147 (glob): Unescape dirname, filename or username when needed and not
10148 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
10149 is NULL. Handle unescaped [ in pattern without closing ].
10150 Don't pass GLOB_CHECK down to recursive glob for directories.
10151 (__glob_pattern_type): New function.
10152 (__glob_pattern_p): Implement using __glob_pattern_type.
10153 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
10154 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
10155 Remove unreachable code.
10156 * posix/globtest.sh: Add a couple of new tests.
10158 2007-02-13 Ulrich Drepper <drepper@redhat.com>
10160 * po/ru.po: Update from translation team.
10162 2007-02-12 Jakub Jelinek <jakub@redhat.com>
10164 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
10165 to the list of i486+ CPUs.
10166 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10168 2007-02-12 Ulrich Drepper <drepper@redhat.com>
10170 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
10171 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
10174 2007-02-09 Ulrich Drepper <drepper@redhat.com>
10176 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
10178 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
10179 * resolv/res_mkquery.c: Define __res_nopt.
10180 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
10181 try adding EDNS0 record.
10182 * resolv/res_send.c (send_dg): If request failed with FORMERR and
10183 EDNS0 record was send make sure we don't try it again.
10184 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
10185 * include/resolv.h: Declare __res_nopt.
10187 2007-02-08 Jakub Jelinek <jakub@redhat.com>
10190 * time/strptime_l.c (__strptime_internal): Set have_mon for
10191 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
10192 have been computed from tm_yday and tm_year. Don't crash
10193 in day_of_the_week or day_of_the_year if not have_mon
10194 and tm_mon contains bogus value.
10195 * time/Makefile (tests): Add tst-strptime3.
10196 * time/tst-strptime3.c: New test.
10198 2007-02-05 Jakub Jelinek <jakub@redhat.com>
10201 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
10202 bit for RE_HAT_LISTS_NOT_NEWLINE.
10203 (build_charclass_op): Remove bogus comment.
10204 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
10205 * posix/bug-regex27.c: New test.
10206 * posix/bug-regex28.c: New test.
10208 2007-02-03 Ulrich Drepper <drepper@redhat.com>
10210 * po/sv.po: Update from translation team.
10212 2007-02-02 Ulrich Drepper <drepper@redhat.com>
10214 * nscd/nscd_helper.c (open_socket): Minor size optimization.
10216 2007-02-02 Jakub Jelinek <jakub@redhat.com>
10218 * include/locale.h (__uselocale): Add libc_hidden_proto.
10219 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
10221 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
10224 2007-02-01 Ulrich Drepper <drepper@redhat.com>
10226 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
10228 (PTR_DEMANGLE): Real definition now that it's not the same as
10229 PRT_MANGLE anymore.
10230 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10232 * string/strerror_l.c: New file.
10233 * string/Makefile (routines): Add strerror_l.
10234 * string/string.h: Declare strerror_l.
10235 * string/Versions: Export strerror_l for GLIBC_2.6.
10237 2007-01-31 Ulrich Drepper <drepper@redhat.com>
10239 * nscd/nscd_helper.c (open_socket): Now takes request type and key
10240 as parameter. Construct request record. Try sending request
10241 before the first poll use, it usually succeeds. Adjust all
10243 * nscd/nscd-client.h: Define MAXKEYLEN.
10244 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
10246 2007-01-31 Jakub Jelinek <jakub@redhat.com>
10248 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
10250 * nscd/nscd_helper.c: Include string.h.
10251 (__nscd_cache_search): Remove const qualifier from return value.
10252 On strict alignment architectures check hash entry and data head
10254 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
10255 mmapped data during GC cycle contains garbage. If
10256 __nscd_drop_map_ref fails, decrement mapped->counter when returning
10257 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
10259 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
10260 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
10261 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
10262 * nscd/nscd_getai.c (__nscd_getai): Likewise.
10263 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
10265 2007-01-30 Ulrich Drepper <drepper@redhat.com>
10267 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
10269 2007-01-26 Ulrich Drepper <drepper@redhat.com>
10271 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
10272 names not numbers in cfi_*.
10274 2007-01-26 Andreas Jaeger <aj@suse.de>
10276 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
10277 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
10278 Correct values of PER_HPUX and PER_OSF4.
10280 2007-01-24 Ulrich Drepper <drepper@redhat.com>
10282 * elf/dl-minimal.c: Undefine _itoa first.
10283 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
10284 * malloc/mtrace.c: Revert last change.
10285 * posix/wordexp.c: Likewise.
10287 2007-01-24 Jakub Jelinek <jakub@redhat.com>
10289 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
10290 and __geode__ to the list of i486+ CPUs.
10291 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10293 2007-01-23 Ulrich Drepper <drepper@redhat.com>
10295 * stdio-common/_itoa.c: Include <limits.h>.
10296 * stdio-common/_itowa.c: Likewise.
10298 2007-01-22 Ulrich Drepper <drepper@redhat.com>
10300 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
10302 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
10304 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
10306 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
10310 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
10311 * stdio-common/Makefile (tests): Add bug17.
10312 * stdio-common/bug17.c: New file.
10314 2007-01-19 Ulrich Drepper <drepper@redhat.com>
10316 * iconvdata/brf.c: New file.
10317 * iconvdata/testdata/BRF: New file.
10318 * iconvdata/testdata/BRF..UTF8: New file.
10319 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
10320 * iconvdata/Makefile: Add rules to build BRF.
10321 * iconvdata/TESTS: Add BRF entry.
10322 * iconvdata/gconv-modules: Likewise.
10323 * iconvdata/tst-tables.sh: Likewise.
10325 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
10327 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
10328 type `long long int', not `long int'.
10329 (wcstoq): Likewise.
10331 2007-01-18 Ulrich Drepper <drepper@redhat.com>
10333 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
10334 of values on 64-bit platforms which are too large.
10336 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
10337 Joe Kerian <jkerian@us.us.ibm.com>
10340 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
10341 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
10342 (__copysignl): Use signbit() for comparison.
10343 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
10344 SET_LDOUBLE_WORDS64.
10347 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
10348 (__ceill): Remove calls to fegetround(), fesetround().
10349 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
10350 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
10351 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
10353 2007-01-17 Jakub Jelinek <jakub@redhat.com>
10355 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
10357 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
10359 2007-01-17 Ulrich Drepper <drepper@redhat.com>
10361 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
10363 * csu/libc-start.c: Likewise.
10365 2007-01-16 Ulrich Drepper <drepper@redhat.com>
10367 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
10368 really work anyway.
10370 2007-01-15 Ulrich Drepper <drepper@redhat.com>
10372 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
10374 (handle_request): Remove unnecessary tests.
10376 * nscd/cache.c (cache_add): Record the failure to add to the cache.
10378 2007-01-15 Jakub Jelinek <jakub@redhat.com>
10380 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
10381 workbits in semi-raw fraction.
10383 * math/test-misc.c: Add new tests.
10385 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
10387 * math/basic-test.c: Include test-skeleton.c.
10388 (TEST_TRUNC): Define.
10389 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
10390 (main): Rename to ...
10391 (do_test): ...this. Run new tests.
10392 (TEST_FUNCTION): Define.
10394 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
10395 Joe Kerian <jkerian@us.us.ibm.com>
10398 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
10399 handling for high words.
10400 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
10401 and overflow for infinity.
10403 2007-01-15 Ulrich Drepper <drepper@redhat.com>
10405 * nscd/connections.c (handle_request): Add a __builtin_expect.
10407 * nscd/connections.c (serv2db): Change type into structure which
10408 also says whether this is a request for data. Renamed to
10409 servinfo. All users changed.
10410 (handle_request): Much simpler test whether we should search the cache.
10412 * nscd/connections.c (handle_request): Fix thinko in selinux test
10415 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
10416 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
10417 it before getting dl_load_lock and then relock.
10418 (_dl_lookup_symbol_x): Pass flags to add_dependency.
10419 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
10420 case we unlocked the scope.
10421 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
10422 _dl_lookup_symbol_x in case we locked the scope.
10423 (_dl_profile_fixup): Likewise.
10424 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
10425 set DL_LOOKUP_SCOPE_LOCK.
10427 2007-01-13 Ulrich Drepper <drepper@redhat.com>
10429 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
10430 CFLAGS-getsrvbynpt_r.c.
10431 * nscd/getsrvbynm_r.c: New file.
10432 * nscd/getsrvbypt_r.c: New file.
10433 * nscd/nscd_getserv_r.c: New file.
10434 * nscd/servicescache.c: New file.
10435 * nscd/Makefile (routines): Add nscd_getserv_r.
10436 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
10437 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
10438 CFLAGS-getsrvbypt_r.c.
10439 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
10440 table. Add entries for services database.
10441 * nscd/connections.c (serv2str): Mark as const. Add entries for
10443 (dbs): Add .reset_res and servdb initialization.
10444 (serv2db): Add entries for services database.
10445 (verify_persistent_db): Accept dbnr == servdb.
10446 (invalidate_cache): Rewrite database name recognition to use a table.
10447 Call res_init() if .reset_res is set for database.
10448 (handle_request): Add code to handle services database.
10449 * nscd/gai.c: Don't define __getservbyname_r.
10450 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
10451 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
10452 (serv_response_header): Define.
10453 (struct datahead): Add serv_response_header member.
10454 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
10456 * nscd/nscd.conf: Add entries for services database.
10457 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
10458 Declare serv_iov_disabled.
10459 Declare addservbyname, readdservbyname, addservbyport, and
10461 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
10462 (find_db): Fix error message.
10463 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
10464 __nscd_getservbyname_r, and __nscd_getservbyport_r.
10465 * nscd/selinux.c (perms): Add entries for services database.
10466 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
10467 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
10469 * nscd/grpcache.c: Remove obsolete code. Cleanups.
10470 * nscd/hstcache.c: Likewise.
10471 * nscd/pwdcache.c: Likewise.
10473 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
10474 computation of keylen.
10476 * include/string.h: Only redefine strndupa if this is really for
10479 2007-01-12 Ulrich Drepper <drepper@redhat.com>
10481 * nscd/nscd_gethst_r.c: Minor cleanups.
10483 * nscd/connections.c (handle_request): Check selinux permissions
10484 for all non-admin commands.
10486 * sysdeps/i386/i486/bits/atomic.h: Define
10487 atomic_compare_and_exchange_val_acq,
10488 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
10489 using __sync_* built-ins for gcc >= 4.1.
10490 * sysdeps/x86_64/bits/atomic.h: Likewise.
10493 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
10496 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
10498 * stdlib/tst-makecontext.c: Include errno.h. Change main()
10499 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
10500 (do_test): Check errno and exit(0) if ENOSYS.
10502 2007-01-11 Jakub Jelinek <jakub@redhat.com>
10504 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
10505 thousands separators.
10506 * stdlib/Makefile: Add rules to build and run tst-strtod4.
10507 * stdlib/tst-strtod4.c: New test.
10510 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
10511 hexadecimal digit should accept just the initial 0.
10512 * stdlib/tst-strtod2.c (tests): New variable.
10513 (do_test): Run several tests rather than just one.
10515 2007-01-11 Jakub Jelinek <jakub@redhat.com>
10517 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
10518 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
10520 2007-01-10 Ulrich Drepper <drepper@redhat.com>
10522 * io/fts.c: Make sure fts_cur is always valid after return from
10524 Patch by Miloslav Trmac <mitr@redhat.com>.
10526 2006-10-27 Richard Sandiford <richard@codesourcery.com>
10528 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
10529 (R_MIPS_NUM): Bump by 1.
10531 2007-01-03 Jakub Jelinek <jakub@redhat.com>
10533 * posix/execvp.c: Include alloca.h.
10534 (allocate_scripts_argv): Renamed to...
10535 (scripts_argv): ... this. Don't allocate buffer here nor count
10537 (execvp): Use alloca if possible.
10538 * posix/Makefile: Add rules to build and run tst-vfork3 test.
10539 * posix/tst-vfork3.c: New test.
10541 2007-01-03 Ulrich Drepper <drepper@redhat.com>
10543 * string/Makefile (tst-strxfrm2-ENV): Define.
10544 * stdlib/Makefile (tst-strtod3-ENV): Define.
10546 2007-01-02 Ulrich Drepper <drepper@redhat.com>
10548 * posix/getconf.c: Update copyright year.
10549 * nss/getent.c: Likewise.
10550 * iconv/iconvconfig.c: Likewise.
10551 * iconv/iconv_prog.c: Likewise.
10552 * elf/ldconfig.c: Likewise.
10553 * catgets/gencat.c: Likewise.
10554 * csu/version.c: Likewise.
10555 * elf/ldd.bash.in: Likewise.
10556 * elf/sprof.c (print_version): Likewise.
10557 * locale/programs/locale.c: Likewise.
10558 * locale/programs/localedef.c: Likewise.
10559 * nscd/nscd.c (print_version): Likewise.
10560 * debug/xtrace.sh: Likewise.
10561 * malloc/memusage.sh: Likewise.
10562 * malloc/mtrace.pl: Likewise.
10563 * debug/catchsegv.sh: Likewise.
10565 2006-12-24 Ulrich Drepper <drepper@redhat.com>
10567 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
10570 2006-12-23 Ulrich Drepper <drepper@redhat.com>
10572 * posix/wordexp.c: Remove some unnecessary tests.
10574 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
10576 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
10577 blacklist the group till after we look it up.
10579 2006-12-21 Ulrich Drepper <drepper@redhat.com>
10581 * include/atomic.h (atomic_forced_read): New macro.
10583 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
10585 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
10587 2006-12-19 Jakub Jelinek <jakub@redhat.com>
10589 * nss/getXXbyYY_r.c: Include atomic.h.
10590 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
10591 add atomic_write_barrier () in between.
10593 * stdlib/Makefile (tests): Add tst-makecontext.
10594 * stdlib/tst-makecontext.c: New test.
10596 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
10597 (__makecontext): Don't realign uc_mcontext.uc_regs.
10599 2006-11-28 Jakub Jelinek <jakub@redhat.com>
10601 * elf/dl-support.c: Include dl-procinfo.h.
10602 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
10603 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
10604 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
10606 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
10607 hardcoded constants.
10608 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
10609 PPC_PLATFORM_* macros for array designators.
10611 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
10613 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
10614 names to the beginning.
10615 (_dl_powerpc_platforms): Add "power6x".
10616 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10617 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
10618 (_DL_PLATFORMS_COUNT): Increase.
10619 (_dl_string_platform): Handle power6x case.
10620 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
10621 PPC_FEATURE_POWER6_EXT): Define.
10622 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
10624 2006-12-18 Jakub Jelinek <jakub@redhat.com>
10627 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
10628 [-2^31 .. 2^31) range.
10629 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
10631 * stdlib/tst-rand48-2.c: New test.
10632 * stdlib/Makefile (tests): Add tst-rand48-2.
10634 2006-12-14 Jakub Jelinek <jakub@redhat.com>
10636 * misc/tst-pselect.c (do_test): Fix sigblock argument.
10638 2006-12-14 Ulrich Drepper <drepper@redhat.com>
10640 * misc/tst-pselect.c (do_test): Make sure the helper process is
10641 terminating when the test is aborted.
10643 2006-12-13 Ulrich Drepper <drepper@redhat.com>
10645 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
10646 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
10647 Handle relatime mount option.
10650 * libio/Makefile (tests): Add tst-setvbuf1.
10651 * libio/tst-setvbuf1.c: New file.
10653 2006-12-08 Jakub Jelinek <jakub@redhat.com>
10656 * libio/genops.c (__uflow): Fix a typo.
10657 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
10658 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
10659 the narrow buffer size.
10661 2006-11-24 Jakub Jelinek <jakub@redhat.com>
10664 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
10665 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
10666 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
10668 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
10669 _IO_wstr_finish): Likewise.
10670 * libio/wmemstream.c (open_wmemstream): Likewise.
10671 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
10672 even for wide streams.
10674 2006-12-13 Jakub Jelinek <jakub@redhat.com>
10676 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
10679 2006-12-11 Ulrich Drepper <drepper@redhat.com>
10681 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
10682 separators also if no non-zero digits found.
10683 * stdlib/Makefile (tests): Add tst-strtod3.
10685 2006-12-09 Ulrich Drepper <drepper@redhat.com>
10688 * include/features.h: Fix comment about default value for
10692 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
10693 empty parsed strings.
10694 * stdlib/Makefile (tests): Add tst-strtod2.
10695 * stdlib/tst-strtod2.c: New file.
10698 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
10700 * stdlib/Makefile (tests): Add tst-atof2.
10701 * stdlib/tst-atof2.c: New file.
10704 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
10705 correctly if removing trailing zero of hex-float.
10706 * stdlib/Makefile (tests): Add tst-atof1.
10707 * stdlib/tst-atof1.c: New file.
10709 2006-12-09 Jakub Jelinek <jakub@redhat.com>
10711 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
10712 Start searching for next comma at p rather than rest.
10713 * misc/Makefile (tests): Add tst-mntent2.
10714 * misc/tst-mntent2.c: New test.
10716 * misc/getusershell.c (initshells): Check for integer overflows.
10717 Make strings buffer one bigger as fgets always succeeds when second
10718 argument is 1. Don't use calloc for shells array. Disallow
10721 2006-12-08 Ulrich Drepper <drepper@redhat.com>
10723 * malloc/memusage.c: Handle realloc with new size of zero and
10724 non-NULL pointer correctly.
10725 (me): Really write first record twice.
10726 (struct entry): Make format bi-arch safe.
10727 (dest): Write out more realloc statistics.
10728 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
10730 2006-12-05 Jakub Jelinek <jakub@redhat.com>
10732 * nis/nis_subr.c (nis_getnames): Revert last change.
10734 2006-12-04 Jakub Jelinek <jakub@redhat.com>
10736 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
10737 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
10738 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
10739 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
10741 * io/Makefile: Add rules to build and run tst-ttyname_r test.
10742 * io/tst-ttyname_r.c: New test.
10744 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10746 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
10748 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
10750 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
10751 jump table entries.
10753 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
10755 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
10756 `clone' function to ensure proper unwinding stop of gdb.
10757 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
10759 2006-12-01 Ulrich Drepper <drepper@redhat.com>
10761 * nscd/nscd.init: Remove obsolete and commented-out -S option
10764 2006-11-23 Jakub Jelinek <jakub@redhat.com>
10767 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
10770 * manual/string.texi (strtok): Remove duplicate paragraph.
10772 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10774 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
10775 libgcc not supporting `rflags' unwinding (register # >= 17).
10777 2006-11-30 Jakub Jelinek <jakub@redhat.com>
10779 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
10782 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
10783 Jakub Jelinek <jakub@redhat.com>
10784 Jan Kratochvil <jan.kratochvil@redhat.com>
10786 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
10787 unwind information.
10788 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
10789 'restore_rt' even in the 'signal' directory.
10790 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
10792 2006-11-27 Jakub Jelinek <jakub@redhat.com>
10795 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
10796 malloc crashed. Don't allocate memory unnecessarily in each
10799 2006-10-21 Jakub Jelinek <jakub@redhat.com>
10801 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
10803 2006-11-20 Ulrich Drepper <drepper@redhat.com>
10805 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
10807 2006-11-18 Bruno Haible <bruno@clisp.org>
10809 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
10810 __sysconf only after having tried to call getgroups32.
10812 2006-11-19 Ulrich Drepper <drepper@redhat.com>
10814 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
10815 addresses for IPv4 queries if they can be mapped.
10817 2006-11-16 Jakub Jelinek <jakub@redhat.com>
10819 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
10820 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
10821 (signmask): Add .size directive.
10822 (othermask): Add .type directive.
10824 2006-11-14 Ulrich Drepper <drepper@redhat.com>
10826 * po/nl.po: Update from translation team.
10828 * timezone/zdump.c: Redo fix for BZ #3137.
10830 2006-11-14 Jakub Jelinek <jakub@redhat.com>
10832 * nss/nss_files/files-alias.c (get_next_alias): Set line back
10833 to first_unused after parsing :include: file.
10835 2006-11-10 Ulrich Drepper <drepper@redhat.com>
10837 * timezone/africa: Update from tzdata2006o.
10838 * timezone/antarctica: Likewise.
10839 * timezone/asia: Likewise.
10840 * timezone/australasia: Likewise.
10841 * timezone/backward: Likewise.
10842 * timezone/europe: Likewise.
10843 * timezone/iso3166.tab: Likewise.
10844 * timezone/northamerica: Likewise.
10845 * timezone/southamerica: Likewise.
10846 * timezone/zone.tab: Likewise.
10848 * time/tzfile.c (__tzfile_read): Extend to handle new file format
10849 on machines with 64-bit time_t.
10851 * timezone/checktab.awk: Update from tzcode2006o.
10852 * timezone/ialloc.c: Likewise.
10853 * timezone/private.h: Likewise.
10854 * timezone/scheck.c: Likewise.
10855 * timezone/tzfile.h: Likewise.
10856 * timezone/tzselect.ksh: Likewise.
10857 * timezone/zdump.c: Likewise.
10858 * timezone/zic.c: Likewise.
10861 * elf/ldconfig.c (main): Call setlocale and textdomain.
10862 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
10865 * manual/argp.texi: Fix typos.
10866 * manual/charset.texi: Likewise.
10867 * manual/errno.texi: Likewise.
10868 * manual/filesys.texi: Likewise.
10869 * manual/lang.texi: Likewise.
10870 * manual/maint.texi: Likewise.
10871 * manual/memory.texi: Likewise.
10872 * manual/message.texi: Likewise.
10873 * manual/resource.texi: Likewise.
10874 * manual/search.texi: Likewise.
10875 * manual/signal.texi: Likewise.
10876 * manual/startup.texi: Likewise.
10877 * manual/stdio.texi: Likewise.
10878 * manual/sysinfo.texi: Likewise.
10879 * manual/syslog.texi: Likewise.
10880 * manual/time.texi: Likewise.
10881 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10884 * sunrpc/clnt_raw.c: Minimal message improvements.
10885 * sunrpc/pm_getmaps.c: Likewise.
10886 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
10887 * nis/nis_print_group_entry.c: Likewise.
10888 * locale/programs/repertoire.c: Likewise.
10889 * locale/programs/charmap.c: Likewise.
10890 * malloc/memusage.sh: Likewise.
10891 * elf/dl-deps.c: Likewise.
10892 * locale/programs/ld-collate.c: Likewise.
10893 * libio/vswprintf.c: Likewise.
10894 * malloc/memusagestat.c: Likewise.
10895 * sunrpc/auth_unix.c: Likewise.
10896 * sunrpc/rpc_main.c: Likewise.
10897 * nscd/cache.c: Likewise.
10898 * locale/programs/repertoire.c: Unify output messages.
10899 * locale/programs/charmap.c: Likewise.
10900 * locale/programs/ld-ctype.c: Likewise.
10901 * locale/programs/ld-monetary.c: Likewise.
10902 * locale/programs/ld-numeric.c: Likewise.
10903 * locale/programs/ld-time.c: Likewise.
10904 * elf/ldconfig.c: Likewise.
10905 * nscd/selinux.c: Likewise.
10906 * elf/cache.c: Likewise.
10907 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
10910 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
10914 2006-11-10 Jakub Jelinek <jakub@redhat.com>
10916 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
10917 if N is one bigger than return value.
10918 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
10919 and l1 last arguments, if buf is defined, verify the return value
10920 equals to strlen (buf) and verify no byte beyond passed length
10923 2006-11-10 Ulrich Drepper <drepper@redhat.com>
10925 * po/sv.po: Update from translation team.
10927 2006-11-09 Ulrich Drepper <drepper@redhat.com>
10929 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
10930 noinline attribute.
10932 2006-11-10 Jakub Jelinek <jakub@redhat.com>
10934 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
10935 noinline attribute.
10937 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
10938 Use __new_sys_siglist instead of _sys_siglist_internal as
10939 second macro argument.
10940 (_old_sys_siglist): Use declare_symbol_alias macro instead of
10943 2006-11-09 Ulrich Drepper <drepper@redhat.com>
10946 * posix/unistd.h (sysconf): Remove const attribute.
10948 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
10949 temporary or deprecated addresses.
10950 Patch by Sridhar Samudrala <sri@us.ibm.com>.
10952 * string/Makefile (tests): Add tst-strxfrm2.
10953 * string/tst-strxfrm2.c: New file.
10955 2006-10-09 Jakub Jelinek <jakub@redhat.com>
10957 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
10958 rather than r->r_brk.
10960 2006-11-08 Jakub Jelinek <jakub@redhat.com>
10962 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
10963 optimization even if needed > n.
10965 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
10966 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
10967 return false, otherwise return true.
10968 (cache_rpath): Return decompose_rpath return value.
10970 2006-11-07 Jakub Jelinek <jakub@redhat.com>
10972 * include/libc-symbols.h (declare_symbol): Rename to...
10973 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
10974 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
10976 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
10978 * sysdeps/gnu/siglist.c: Likewise.
10980 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
10982 * sysdeps/powerpc/fpu/bits/mathinline.h
10983 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
10984 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
10986 2006-11-05 Ulrich Drepper <drepper@redhat.com>
10988 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
10989 Update handling of cache descriptor 0x49 for new models.
10990 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
10993 2006-11-02 Jakub Jelinek <jakub@redhat.com>
10995 * malloc/memusage.c (dest): Reset not_me back to false after
10996 printing statistics.
10998 2006-11-02 Ulrich Drepper <drepper@redhat.com>
11000 * configure.in: Work around ld --help change and avoid -z relro
11001 test completely if the architecture doesn't care about security.
11003 2006-11-01 Ulrich Drepper <drepper@redhat.com>
11005 * po/sv.po: Update from translation team.
11007 2006-10-31 Ulrich Drepper <drepper@redhat.com>
11009 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
11010 generate compatibility version.
11012 2006-10-29 Ulrich Drepper <drepper@redhat.com>
11014 * configure.in: Relax -z relro requirement a bit.
11016 * po/sv.po: Update from translation team.
11018 2006-10-29 Jakub Jelinek <jakub@redhat.com>
11020 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
11021 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
11022 * elf/dl-close.c (_dl_close_worker): Likewise.
11023 * elf/dl-open.c (_dl_open_worker): Likewise.
11024 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
11026 2006-10-27 Ulrich Drepper <drepper@redhat.com>
11028 * configure.in: Require assembler support for visibility, compiler
11029 support for visibility and aliases, linker support for various -z
11031 * Makeconfig: Remove conditional code which now is unnecessary.
11032 * config.h.in: Likewise.
11033 * config.make.in: Likewise.
11034 * dlfcn/Makefile: Likewise.
11035 * elf/Makefile: Likewise.
11036 * elf/dl-load.c: Likewise.
11037 * elf/rtld.c: Likewise.
11038 * include/libc-symbols.h: Likewise.
11039 * include/stdio.h: Likewise.
11040 * io/Makefile: Likewise.
11041 * io/fstat.c: Likewise.
11042 * io/fstat64.c: Likewise.
11043 * io/fstatat.c: Likewise.
11044 * io/fstatat64.c: Likewise.
11045 * io/lstat.c: Likewise.
11046 * io/lstat64.c: Likewise.
11047 * io/mknod.c: Likewise.
11048 * io/mknodat.c: Likewise.
11049 * io/stat.c: Likewise.
11050 * io/stat64.c: Likewise.
11051 * libio/stdio.c: Likewise.
11052 * nscd/Makefile: Likewise.
11053 * stdlib/Makefile: Likewise.
11054 * stdlib/atexit.c: Likewise.
11055 * sysdeps/generic/ldsodefs.h: Likewise.
11056 * sysdeps/i386/dl-machine.h: Likewise.
11057 * sysdeps/i386/sysdep.h: Likewise.
11058 * sysdeps/i386/i686/memcmp.S: Likewise.
11059 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11060 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11061 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
11063 * Makerules: USE_TLS support is now default.
11064 * tls.make.c: Likewise.
11065 * csu/Versions: Likewise.
11066 * csu/libc-start.c: Likewise.
11067 * csu/libc-tls.c: Likewise.
11068 * csu/version.c: Likewise.
11069 * dlfcn/dlinfo.c: Likewise.
11070 * elf/dl-addr.c: Likewise.
11071 * elf/dl-cache.c: Likewise.
11072 * elf/dl-close.c: Likewise.
11073 * elf/dl-iteratephdr.c: Likewise.
11074 * elf/dl-load.c: Likewise.
11075 * elf/dl-lookup.c: Likewise.
11076 * elf/dl-object.c: Likewise.
11077 * elf/dl-open.c: Likewise.
11078 * elf/dl-reloc.c: Likewise.
11079 * elf/dl-support.c: Likewise.
11080 * elf/dl-sym.c: Likewise.
11081 * elf/dl-sysdep.c: Likewise.
11082 * elf/dl-tls.c: Likewise.
11083 * elf/ldconfig.c: Likewise.
11084 * elf/rtld.c: Likewise.
11085 * elf/tst-tls-dlinfo.c: Likewise.
11086 * elf/tst-tls1.c: Likewise.
11087 * elf/tst-tls10.h: Likewise.
11088 * elf/tst-tls14.c: Likewise.
11089 * elf/tst-tls2.c: Likewise.
11090 * elf/tst-tls3.c: Likewise.
11091 * elf/tst-tls4.c: Likewise.
11092 * elf/tst-tls5.c: Likewise.
11093 * elf/tst-tls6.c: Likewise.
11094 * elf/tst-tls7.c: Likewise.
11095 * elf/tst-tls8.c: Likewise.
11096 * elf/tst-tls9.c: Likewise.
11097 * elf/tst-tlsmod1.c: Likewise.
11098 * elf/tst-tlsmod13.c: Likewise.
11099 * elf/tst-tlsmod13a.c: Likewise.
11100 * elf/tst-tlsmod14a.c: Likewise.
11101 * elf/tst-tlsmod2.c: Likewise.
11102 * elf/tst-tlsmod3.c: Likewise.
11103 * elf/tst-tlsmod4.c: Likewise.
11104 * elf/tst-tlsmod5.c: Likewise.
11105 * elf/tst-tlsmod6.c: Likewise.
11106 * include/errno.h: Likewise.
11107 * include/link.h: Likewise.
11108 * include/tls.h: Likewise.
11109 * locale/global-locale.c: Likewise.
11110 * locale/localeinfo.h: Likewise.
11111 * malloc/arena.c: Likewise.
11112 * malloc/hooks.c: Likewise.
11113 * malloc/malloc.c: Likewise.
11114 * resolv/Versions: Likewise.
11115 * sysdeps/alpha/dl-machine.h: Likewise.
11116 * sysdeps/alpha/libc-tls.c: Likewise.
11117 * sysdeps/generic/ldsodefs.h: Likewise.
11118 * sysdeps/generic/tls.h: Likewise.
11119 * sysdeps/i386/dl-machine.h: Likewise.
11120 * sysdeps/ia64/dl-machine.h: Likewise.
11121 * sysdeps/ia64/libc-tls.c: Likewise.
11122 * sysdeps/mach/hurd/fork.c: Likewise.
11123 * sysdeps/mach/hurd/i386/tls.h: Likewise.
11124 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
11125 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
11126 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
11127 * sysdeps/s390/libc-tls.c: Likewise.
11128 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11129 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11130 * sysdeps/sh/dl-machine.h: Likewise.
11131 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11132 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11133 * sysdeps/x86_64/dl-machine.h: Likewise.
11135 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
11136 split out locking and parameter checking.
11137 (_dl_close): Call _dl_close_worker after locking and checking.
11138 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
11140 * elf/Makefile: Add rules to build and run tst-thrlock.
11141 * elf/tst-thrlock.c: New file.
11144 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
11148 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
11149 we are sure we do not need it anymore for _dl_close. Also move
11150 the asserts inside the lock region.
11151 Patch mostly by Suzuki <suzuki@in.ibm.com>.
11153 2006-10-27 Jakub Jelinek <jakub@redhat.com>
11155 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
11157 (_dl_lookup_symbol_x): Adjust caller.
11159 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
11161 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
11163 * elf/dl-libc.c: Revert l_scope name changes.
11164 * elf/dl-load.c: Likewise.
11165 * elf/dl-object.c: Likewise.
11166 * elf/rtld.c: Likewise.
11167 * elf/dl-close.c (_dl_close): Likewise.
11168 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
11169 always use __rtld_mrlock_{change,done}. Always free old scope list
11170 here if not l_scope_mem.
11171 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
11172 change. Never free scope list here. Just __rtld_mrlock_lock before
11173 the lookup and __rtld_mrlock_unlock it after the lookup.
11174 * elf/dl-sym.c: Likewise.
11175 * include/link.h (struct r_scoperec): Remove.
11176 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
11177 with l_scope_mem and l_scoperec_lock with l_scope_lock.
11179 2006-10-25 Ulrich Drepper <drepper@redhat.com>
11181 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
11183 2006-10-18 Ulrich Drepper <drepper@redhat.com>
11185 * configure.in: Disable building profile libraries by default.
11187 2006-10-17 Jakub Jelinek <jakub@redhat.com>
11189 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
11190 as signed longs, check for x_base + pos overflow.
11191 * sunrpc/Makefile (tests): Add tst-xdrmem2.
11192 * sunrpc/tst-xdrmem2.c: New test.
11194 2006-10-18 Ulrich Drepper <drepper@redhat.com>
11196 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
11197 _dl_lookup_symbol_x code.
11199 2006-10-17 Jakub Jelinek <jakub@redhat.com>
11201 * elf/dl-runtime.c: Include sysdep-cancel.h.
11202 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
11203 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
11204 instead of catomic_* macros.
11205 * elf/dl-sym.c: Include sysdep-cancel.h.
11206 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
11207 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
11208 * elf/dl-close.c: Include sysdep-cancel.h.
11209 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
11210 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
11211 * elf/dl-open.c: Include sysdep-cancel.h.
11212 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
11213 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
11215 2006-10-17 Jakub Jelinek <jakub@redhat.com>
11218 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
11219 fastbin rather than end of fastbin array.
11221 2006-10-18 Ulrich Drepper <drepper@redhat.com>
11223 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
11225 * sysdeps/x86_64/bits/atomic.h
11226 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
11227 (catomic_decrement): Use correct body macro.
11229 2006-10-17 Jakub Jelinek <jakub@redhat.com>
11231 * include/atomic.h: Add a unique prefix to all local variables
11233 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
11235 2006-10-16 Ulrich Drepper <drepper@redhat.com>
11238 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
11241 2006-10-14 Ulrich Drepper <drepper@redhat.com>
11243 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
11245 2006-10-13 Ulrich Drepper <drepper@redhat.com>
11248 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
11249 determine highest fast bin to consolidate, always look into all of
11251 (do_check_malloc_state): Only require for empty bins for large
11252 sizes in main arena.
11254 * libio/stdio.h: Add more __wur attributes.
11256 * elf/dl-minimal.c (realloc): Optimize last patch.
11258 2006-10-12 Richard Sandiford <richard@codesourcery.com>
11261 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
11262 and use memcpy() if it does.
11264 2006-11-12 Andreas Jaeger <aj@suse.de>
11267 * manual/search.texi (Hash Search Function): Clarify.
11268 (Array Search Function): Clarify.
11270 2006-11-12 Joseph Myers <joseph@codesourcery.com>
11273 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
11275 * math/atest-exp2.c (read_mpn_hex): Likewise.
11276 * math/atest-sincos.c (main): Likewise.
11278 2006-10-11 Ulrich Drepper <drepper@redhat.com>
11280 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
11281 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
11282 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
11284 * Versions.def: Add GLIBC_2.6 for libc.
11286 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
11288 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
11290 2006-10-11 Jakub Jelinek <jakub@redhat.com>
11292 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
11294 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
11296 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
11297 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
11299 2006-10-11 Ulrich Drepper <drepper@redhat.com>
11301 * include/atomic.c: Define catomic_* operations.
11302 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
11303 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
11304 * malloc/memusage.c: Likewise.
11305 * gmon/mcount.c: Likewise.
11306 * elf/dl-close.c: Likewise.
11307 * elf/dl-open.c: Likewise.
11308 * elf/dl-profile.c: Likewise.
11309 * elf/dl-sym.c: Likewise.
11310 * elf/dl-runtime.c: Likewise.
11311 * elf/dl-fptr.c: Likewise.
11312 * resolv/res_libc.c: Likewise.
11314 2006-10-10 Ulrich Drepper <drepper@redhat.com>
11316 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
11317 components which lack them.
11319 * nis/nis_subr.c (nis_getnames): Make sure that we always return
11320 at least one entry consisting of the parameter concatenated with
11323 2006-10-10 Roland McGrath <roland@frob.com>
11325 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
11326 * sysdeps/mach/hurd/futimes.c: Likewise.
11327 * sysdeps/mach/hurd/lutimes.c: Likewise.
11329 2006-10-09 Ulrich Drepper <drepper@redhat.com>
11330 Jakub Jelinek <jakub@redhat.com>
11332 Implement reference counting of scope records.
11333 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
11334 from the list in objects which remain. Always allocate new scope
11336 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
11337 don't resize, allocate a new one.
11338 * elf/dl-runtime.c: Update reference counters before using a scope
11340 * elf/dl-sym.c: Likewise.
11341 * elf/dl-libc.c: Adjust for l_scope name change.
11342 * elf/dl-load.c: Likewise.
11343 * elf/dl-object.c: Likewise.
11344 * elf/rtld.c: Likewise.
11345 * include/link.h: Include <rtld-lowlevel.h>. Define struct
11346 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
11347 Add l_scoperec_lock.
11348 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
11349 * sysdeps/generic/rtld-lowlevel.h: New file.
11351 * include/atomic.h: Rename atomic_and to atomic_and_val and
11352 atomic_or to atomic_or_val. Define new macros atomic_and and
11353 atomic_or which do not return values.
11354 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
11356 * sysdeps/i386/i486/bits/atomic.h: Likewise.
11358 * po/sv.po: Update from translation team.
11360 2006-10-07 Ulrich Drepper <drepper@redhat.com>
11362 * Versions.def: Add GLIBC_2.6 to libpthread.
11364 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
11365 (versioned_symbol): Likewise.
11366 (compat_symbol): Likewise.
11368 * po/tr.po: Update from translation team.
11370 2006-10-06 Ulrich Drepper <drepper@redhat.com>
11372 * nis/Banner: Removed. It's been integral part forever and the
11373 author info is incomplete anyway.
11374 * libio/Banner: Likewise.
11376 * nis/nis_table.c (nis_list): If __follow_path fails in the new
11377 code, make sure the nis_freeresult call doesn't crash and that the
11378 result is reported correctly.
11380 2006-09-27 Jakub Jelinek <jakub@redhat.com>
11382 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
11383 when callback is NULL.
11385 * nis/Versions (libnss_nisplus): Add
11386 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
11387 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
11388 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
11389 _nss_create_tablename): Rename to...
11390 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
11391 ... these. No longer static.
11392 (internal_setgrent): Adjust users.
11393 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
11394 Don't use locking around _nss_grp_create_tablename call.
11395 * nis/nss_nisplus/nisplus-initgroups.c: New file.
11397 2006-10-06 Ulrich Drepper <drepper@redhat.com>
11399 * version.h (VERSION): Bump to 2.5.90 for new development tree.
11401 2006-10-06 Andreas Jaeger <aj@suse.de>
11403 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
11405 2006-10-06 Ulrich Drepper <drepper@redhat.com>
11407 * po/pl.po: Update from translation team.
11409 * nscd/nscd.c (main): Fix typo in message.
11410 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
11412 2006-10-02 Jakub Jelinek <jakub@redhat.com>
11415 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
11416 errno.h, signal.h, unistd.h and sysdep-cancel.h.
11417 (__sigprocmask): Define.
11419 2006-10-02 Ulrich Drepper <drepper@redhat.com>
11421 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
11424 2006-10-02 Jakub Jelinek <jakub@redhat.com>
11426 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
11427 in oldtotal and newtotal calculation.
11428 * nscd/nscd-client.h (struct mapped_database): Add datasize
11430 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
11431 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
11433 (__nscd_cache_search): Add checks to make sure we never reference
11434 data beyond the current mapping.
11436 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
11438 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
11439 variables const to avoid compiler warnings.
11441 * io/fts.c (fts_close): Remove redundant checks.
11442 (fts_build): Likewise.
11443 (fts_palloc): Likewise.
11445 * manual/message.texi (Advanced gettext functions,
11446 Using gettextized software): Fix typos.
11448 2006-09-30 Ulrich Drepper <drepper@redhat.com>
11450 * posix/glob.c (glob_in_dir): Add some comments and asserts to
11451 explain why there are no leaks.
11453 2006-09-29 Ulrich Drepper <drepper@redhat.com>
11455 * libio/wmemstream.c: Include <wchar.h>.
11456 * libio/bug-wmemstream1.c: Likewise.
11457 * libio/tst-wmemstream1.c: Likewise.
11458 * libio/tst-wmemstream2.c: Likewise.
11460 * version.h (RELEASE): Bump to 2.5.
11461 * README: Regenerated.
11463 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
11466 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
11467 found no group members.
11468 Patch by Petr Baudis.
11470 2006-09-29 Jakub Jelinek <jakub@redhat.com>
11472 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
11473 assert bootstrap_map.l_tls_modid is zero.
11474 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
11477 2006-09-27 Ulrich Drepper <drepper@redhat.com>
11479 * libio/stdio.h: Move open_wmemstream prototype to ...
11480 * wcsmbs/wchar.h: ... here.
11482 2006-09-25 Jakub Jelinek <jakub@redhat.com>
11485 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
11486 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
11487 __{,l}chown to handle the rest.
11488 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
11489 fchownat syscall and __ASSUME_32BITUIDS case inline, call
11490 __{,l}chown to handle the rest.
11491 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
11493 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
11494 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
11497 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
11498 time, rather allocate increasingly bigger arrays of pointers, if
11499 possible with alloca, if too large with malloc.
11501 2006-09-24 Jakub Jelinek <jakub@redhat.com>
11503 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
11505 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
11507 2006-09-24 Ulrich Drepper <drepper@redhat.com>
11509 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
11511 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
11512 IFA_F_HOMEADDRESS flag for interfaces.
11513 * include/ifaddrs.h (struct in6addrinfo): Define
11516 2006-09-21 Jakub Jelinek <jakub@redhat.com>
11519 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
11520 PTR_DEMANGLE3): Define.
11521 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
11522 PTR_DEMANGLE3): Likewise.
11523 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
11524 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
11526 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
11528 2006-09-20 Jakub Jelinek <jakub@redhat.com>
11530 * po/libc.pot: Regenerated.
11531 * po/be.po: Updated.
11532 * po/ca.po: Likewise.
11533 * po/cs.po: Likewise.
11534 * po/da.po: Likewise.
11535 * po/de.po: Likewise.
11536 * po/el.po: Likewise.
11537 * po/en_GB.po: Likewise.
11538 * po/es.po: Likewise.
11539 * po/fi.po: Likewise.
11540 * po/fr.po: Likewise.
11541 * po/gl.po: Likewise.
11542 * po/hr.po: Likewise.
11543 * po/hu.po: Likewise.
11544 * po/ja.po: Likewise.
11545 * po/ko.po: Likewise.
11546 * po/nb.po: Likewise.
11547 * po/nl.po: Likewise.
11548 * po/pl.po: Likewise.
11549 * po/pt_BR.po: Likewise.
11550 * po/ru.po: Likewise.
11551 * po/rw.po: Likewise.
11552 * po/sk.po: Likewise.
11553 * po/sv.po: Likewise.
11554 * po/tr.po: Likewise.
11555 * po/zh_CN.po: Likewise.
11556 * po/zh_TW.po: Likewise.
11559 * iconv/iconv_prog.c (main): Fix spelling in error message.
11560 * iconv/iconvconfig.c (main): Likewise.
11561 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
11562 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
11563 * locale/programs/localedef.c (main): Likewise.
11564 * locale/programs/repertoire.c (repertoire_read): Likewise.
11565 * timezone/zdump.c (main): Likewise.
11566 * nscd/connections.c (handle_request): Fix spelling in log message.
11567 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
11569 2006-09-20 Ulrich Drepper <drepper@redhat.com>
11571 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
11574 2006-09-20 Andreas Jaeger <aj@suse.de>
11576 * math/libm-test.inc (lrint_test_upward): Fix typo.
11578 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
11581 * math/libm-test.inc (lrint_test_tonearest): New function.
11582 (lrint_test_towardzero): New function.
11583 (lrint_test_downward): New function.
11584 (lrint_test_upward): New function.
11585 (main): Run these new tests.
11586 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
11587 of values near to 0.
11588 (two52): Use double not long double.
11589 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11590 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11591 (two23): Use float not double.
11592 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11593 (two23): Use float not double.
11594 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
11595 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11596 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
11597 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11599 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
11601 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
11602 Cast sp to unsigned long to avoid compiler warning.
11603 Use __makecontext_ret function instead of a trampoline on the stack.
11604 (__makecontext_ret): New function.
11605 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
11607 2006-09-19 Jakub Jelinek <jakub@redhat.com>
11609 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
11610 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
11613 2006-09-19 Ulrich Drepper <drepper@redhat.com>
11615 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
11616 sure no reference to the unloaded map's search list remains in the
11617 dependency's scope.
11619 2006-09-16 Jakub Jelinek <jakub@redhat.com>
11621 * elf/Makefile: Add rules to build and run unload7 test.
11622 * elf/unload7.c: New test.
11623 * elf/unload7mod1.c: New file.
11624 * elf/unload7mod2.c: New file.
11626 2006-09-18 Jakub Jelinek <jakub@redhat.com>
11628 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
11629 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
11630 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11631 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
11632 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11633 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
11634 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11635 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
11636 PTRACE_GETEVENTMSG): Likewise.
11637 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
11640 2006-09-17 Mike Frysinger <vapier@gentoo.org>
11642 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
11643 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11644 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
11645 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
11647 2006-09-16 Jakub Jelinek <jakub@redhat.com>
11649 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
11650 write '\0' to the fd.
11651 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
11652 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
11653 Change regs to unsigned long pointer from unsigned int, fix fscr
11656 2006-09-14 Jakub Jelinek <jakub@redhat.com>
11658 * io/Makefile (CFLAGS-fstatat.c): Set.
11659 (CFLAGS-fstatat64.c): Likewise.
11660 (CFLAGS-mknodat.c): Likewise.
11662 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
11663 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11664 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
11665 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
11667 2006-09-14 Jakub Jelinek <jakub@redhat.com>
11668 Steven Munroe <sjmunroe@us.ibm.com>
11670 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
11671 names to the beginning. Rename "cell" to "cellbe".
11672 (_dl_powerpc_platforms): New.
11673 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11674 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
11675 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
11676 (_DL_HWCAP_PLATFORM): Define to new mask.
11677 (_dl_platform_string, _dl_string_platform): New functions.
11678 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
11679 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
11681 2006-09-12 Jakub Jelinek <jakub@redhat.com>
11684 * README.libm: Fix a thinko in sqrt algorithm description.
11687 * manual/string.texi (argz_delete): Fix prototype.
11688 Patch by <alpt@freaknet.org>.
11690 2006-08-26 Joseph Myers <joseph@codesourcery.com>
11693 * io/test-lfs.c (do_prepare): Give name_len type size_t.
11694 * io/tst-fcntl.c (do_prepare): Likewise.
11695 * posix/tst-exec.c (do_prepare): Likewise.
11696 * posix/tst-preadwrite.c (do_prepare): Likewise.
11697 * posix/tst-spawn.c (do_prepare): Likewise.
11698 * posix/tst-truncate.c (do_prepare): Likewise.
11699 * rt/tst-aio.c (do_prepare): Likewise.
11700 * rt/tst-aio64.c (do_prepare): Likewise.
11701 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
11704 2006-09-09 Ulrich Drepper <drepper@redhat.com>
11707 * time/mktime.c (guess_time_tm): Fix overflow detection.
11708 * time/Makefile (tests): Add bug-mktime1.
11709 * time/bug-mktime1.c: New file.
11712 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
11713 (mremap): Likewise.
11715 2006-09-07 Jakub Jelinek <jakub@redhat.com>
11718 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
11719 Ensure relocation doesn't clobber any bits outside of the
11720 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
11721 R_SPARC_HI22 and R_SPARC_H44.
11724 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
11725 (long) (MINSIZE + nb - old_size) is positive.
11727 * malloc/arena.c (grow_heap): When growing bail even if new_size
11731 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
11734 2006-09-06 Jakub Jelinek <jakub@redhat.com>
11736 * posix/regex_internal.c (re_string_reconstruct): Handle
11737 offset < pstr->valid_raw_len && pstr->offsets_needed case.
11738 Ensure no bytes read before raw_mbs array. Pass a saved copy of
11739 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
11740 re_string_context_at.
11741 * posix/Makefile: Add rules to build and run bug-regex26 test.
11742 * posix/bug-regex26.c: New test.
11744 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
11745 rather than col_sym_free. Move seqp declaration earlier.
11747 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
11749 2006-09-05 Jakub Jelinek <jakub@redhat.com>
11751 * nscd/initgrcache.c (addinitgroupsX): Move any_success
11752 decl before first goto out.
11754 2006-09-04 Jakub Jelinek <jakub@redhat.com>
11756 * Makerules (shlib.lds): If have-hash-style, put .hash section
11757 at the end of the RO segment.
11759 2006-09-04 Ulrich Drepper <drepper@redhat.com>
11761 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
11762 style hash table format is used.
11764 2006-09-04 Jakub Jelinek <jakub@redhat.com>
11766 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
11767 randomization rather than before.
11768 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
11770 2006-08-31 Jakub Jelinek <jakub@redhat.com>
11772 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
11774 * malloc/malloc.c (_int_malloc): Use full list insert and not
11775 shortcut which assumes the list is empty for large requests
11778 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
11780 2006-08-30 Jakub Jelinek <jakub@redhat.com>
11782 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
11783 and offout arguments to the prototype.
11784 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
11785 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
11786 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
11787 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
11788 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
11789 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
11790 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
11791 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
11793 2006-08-28 Ulrich Drepper <drepper@redhat.com>
11795 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
11797 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
11800 2006-08-28 Jakub Jelinek <jakub@redhat.com>
11802 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
11803 only if herrno is NETDB_INTERNAL. Handle errors other than
11804 ERANGE outside of the loops, handle TRY_AGAIN.
11806 * locale/programs/ld-ctype.c (translit_flatten): Issue error
11807 if other's ctype category was missing.
11808 * locale/programs/ld-collate.c (collate_read): Return if
11809 copy_locale's collate category is missing.
11811 2006-08-27 Ulrich Drepper <drepper@redhat.com>
11814 * malloc/malloc.c (public_rEALLOc): Try harder by using other
11815 arenas if allocation failed.
11816 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
11818 2006-08-26 Ulrich Drepper <drepper@redhat.com>
11820 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
11822 (malloc_state): Reduce bins size by 2.
11823 (_int_malloc): Fix test for large enough buffer for early termination.
11824 When no unsorted block matches perfectly and an exiting block has
11825 to be split, use full list insert and not shortcut which assumes
11828 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
11831 2006-08-24 Ulrich Drepper <drepper@redhat.com>
11833 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
11836 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
11837 symbol require exact match (these are PLTs).
11838 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
11839 (_dl_ppc64_addr_sym_match): Likewise.
11842 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
11843 If symbol has a value use it.
11844 * elf/tst-dladdr1.c: New file.
11845 * elf/Makefile: Add rules to build and run tst-addr1.
11847 2006-08-24 Jakub Jelinek <jakub@redhat.com>
11849 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
11850 keeps failing and heap growth or new heap creation isn't
11852 * malloc/tst-malloc.c (main): Add new tests.
11854 2006-08-24 Ulrich Drepper <drepper@redhat.com>
11857 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
11858 as in the x86-64 code to use bswap.
11860 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
11863 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
11865 * posix/bits/unistd.h: Likewise.
11867 2006-05-15 Mike Frysinger <vapier@gentoo.org>
11870 * string/strchr.c: Add cast to avoid warning.
11872 2006-08-21 Ulrich Drepper <drepper@redhat.com>
11874 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
11875 platforms define as 512K. For 64-bit platforms as 32MB. The lower
11876 limit is needed to avoid the exploding of the address space
11877 requirement for secondary heaps.
11878 * malloc/arena.c (HEAP_MAX_SIZE): Define using
11879 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
11881 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
11884 * Makerules (depfiles): Handle extra-test-objs the same as
11886 (common-mostlyclean): Likewise.
11887 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
11889 * elf/Makefile (extra-objs): Likewise.
11890 * stdlib/Makefile (extra-objs): Likewise.
11892 2006-08-14 Eric Blake <ebb9@byu.net>
11895 * misc/error.h: Assume C89 or better.
11896 * misc/error.c: Likewise.
11898 2006-08-21 Ulrich Drepper <drepper@redhat.com>
11901 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
11902 __ASSUME_ATFCTS is defined.
11904 2006-08-19 Ulrich Drepper <drepper@redhat.com>
11906 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
11907 to sort in each call.
11909 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
11910 is empty simply return and use next service.
11911 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
11913 * locale/programs/charmap.c (charmap_read): Add new parameter. It
11914 tells us when not finding a charmap file is an error.
11915 * locale/programs/charmap.h: Adjust charmap_read prototype.
11916 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
11917 cannot find a charmap.
11918 * locale/programs/localedef.c (main): Adjust charmap_read call.
11920 2006-08-15 Jakub Jelinek <jakub@redhat.com>
11922 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
11923 sysdeps/posix/pause.c implementation instead.
11925 2006-08-09 Jakub Jelinek <jakub@redhat.com>
11927 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
11930 2006-08-13 Andreas Schwab <schwab@suse.de>
11932 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
11933 Don't clobber caller's LRSAVE.
11934 (_dl_prof_resolve): Likewise.
11936 2006-08-14 Ulrich Drepper <drepper@redhat.com>
11939 * libio/memstream.c (open_memstream): Allocate initial buffer with
11941 * libio/wmemstream.c (open_wmemstream): Likewise.
11942 * libio/strops.c: Pretty printing.
11943 (_IO_str_overflow): Clear uninitialized part of the new buffer.
11944 (enlarge_userbuf): New function.
11945 (_IO_str_seekoff): Call it if seek position is larger than current
11947 * libio/wstrops.c: Likewise.
11948 * libio/vasprintf.c: Add comment as to why we do not have to use
11949 calloc instead of malloc to allocate initial buffer.
11950 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
11951 * libio/bug-memstream1.c: New file.
11952 * libio/bug-wmemstream1.c: New file.
11954 2006-08-13 Ulrich Drepper <drepper@redhat.com>
11956 * libio/wstrops.c: Remove dead macro definitions and comments.
11957 * libio/strops.c: Likewise.
11960 * login/utmpname.c (__utmpname): Remove unnecessary test.
11962 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
11965 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
11968 2006-08-13 Ulrich Drepper <drepper@redhat.com>
11971 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
11973 * sysdeps/unix/clock_settime.c: Add support for platform-specific
11974 setting of CPU clocks.
11976 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
11979 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
11980 since C99 requires the result to promote to 'int' when uint_least8_t
11981 and uint_least16_t promote to 'int'.
11983 2006-08-12 Ulrich Drepper <drepper@redhat.com>
11986 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
11987 lenght of one output field, correct bitmask creation.
11988 * locale/programs/ld-time.c: Add alignment.
11991 * misc/error.c: Add space between program name and message if file
11994 2006-08-03 Eric Blake <ebb9@byu.net>
11997 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
11999 2006-08-09 Ulrich Drepper <drepper@redhat.com>
12001 * malloc/memusagestat.c: Silence warnings.
12003 * malloc/malloc.c: Dynamically size mmap treshold if the program
12004 frees mmaped blocks.
12005 Patch by Valerie Henson and Arjan van de Ven.
12007 2006-08-08 Jakub Jelinek <jakub@redhat.com>
12009 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
12012 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
12013 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
12014 (DEF): Don't put the var into .gnu.linkonce.r.* section.
12015 Only provide var definitions in strtol_l (or for *ull*
12018 * stdio-common/bug16.c (tests): New array.
12019 (do_tests): Allow the first hexadecimal digit
12020 to be 1, 2, 4 or 8. Do 3 additional tests.
12022 * sysdeps/s390/fpu/libm-test-ulps: Update.
12024 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
12025 fchownat syscall if available.
12026 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
12027 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
12028 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
12030 2006-08-07 Ulrich Drepper <drepper@redhat.com>
12032 * nis/nis_xdr.c: Avoid some function calls.
12034 2006-08-07 Jakub Jelinek <jakub@redhat.com>
12035 Ulrich Drepper <drepper@redhat.com>
12037 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
12038 short cut if only one name component is stripped away.
12040 2006-08-07 Ulrich Drepper <drepper@redhat.com>
12042 * nis/nis_call.c: Minor cleanups throughout.
12043 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
12044 (first_shoot): Add search_parent_first parameter. Only if it is set
12045 search parent server first.
12046 If directory for table found through cold start cache is not the same
12047 as referenced in the cache, don't use it.
12048 (__nisfind_server): Take additional parameter. Pass it on to
12050 (__prepare_niscall): Adjust __nisfind_server call.
12051 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
12052 * nis/nis_table.c: Adjust __nisfind_server call.
12053 * nis/nis_lookup.c: Likewise.
12054 (nis_lookup): Don't loop endlessly if name is reduced to ".".
12056 2006-08-03 Ulrich Drepper <drepper@redhat.com>
12059 * math/s_cacosh.c: Return values from positive branch.
12060 * math/s_cacoshf.c: Likewise.
12061 * math/s_cacoshl.c: Likewise.
12064 * sysvipc/sys/msg.h: Change return value to ssize_t.
12065 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
12066 * sysvipc/msgrcv.c: Likewise.
12067 * include/sys/msg.h: Likewise.
12069 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
12070 test introduced in patch for bz #661.
12071 (getgrouplist): Simplify code a bit. Don't allocate one additional
12072 element for NEWGROUPS.
12075 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
12076 'f', use '1' as leading digit not '\1'.
12077 * stdio-common/Makefile (tests): Add bug16.
12078 * stdio-common/bug16.c: New file.
12081 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
12082 and don't try to open it. The patch introducing the macro
12083 contained a bug and used the same file name as the new file
12084 instead of using /var/adm/hostid. Nobody complaint so I'm taking
12085 this out completely.
12088 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
12089 Patch by Jerry James <Jerry.James@usu.edu>.
12091 * rt/Makefile (tests): Add tst-clock2.
12092 * rt/tst-clock2.c: New file.
12095 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
12096 function and its parameters and pass it to new thread.
12097 (__gai_notify): Add support for alternative waiting for completion.
12098 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
12099 waiting for completion.
12100 * resolv/getaddrinfo_a.c: Likewise.
12101 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
12102 waiting for completion is used.
12103 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
12104 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
12105 * resolv/gai_error.c: Likewise.
12106 * resolv/gai_sigqueue.c: Likewise.
12108 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
12110 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
12111 errno to EBADF and return MACH_PORT_NULL.
12113 2006-06-23 Joseph Myers <joseph@codesourcery.com>
12116 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
12118 2006-08-02 Ulrich Drepper <drepper@redhat.com>
12120 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
12121 walk them instead of the symbol table.
12123 2006-08-01 Ulrich Drepper <drepper@redhat.com>
12126 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
12127 status of NSS calls, not the number of returned entries.
12129 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
12130 request_key, keyctl.
12132 2006-07-31 Ulrich Drepper <drepper@redhat.com>
12134 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
12136 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
12138 * elf/tst-auditmod1.c: Fix typo in #error.
12140 2006-07-31 Ulrich Drepper <drepper@redhat.com>
12142 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
12144 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
12146 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
12148 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
12149 that the directory is empty even on non-POSIX filesystems.
12151 2006-07-31 Ulrich Drepper <drepper@redhat.com>
12153 * elf/dl-open.c (dl_open_worker): Add branch prediction.
12155 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
12156 the backend NSS module. If backend setgrent call failed, don't have
12157 internal_setgrent fail. Just remember this until it is needed.
12158 * nis/nss_compat/compat-pwd.c: Likewise.
12159 * nis/nss_compat/compat-spwd.c: Likewise.
12161 2006-07-30 Roland McGrath <roland@redhat.com>
12163 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
12164 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
12165 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
12166 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
12168 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
12169 (nanosleep_not_cancel): New macro.
12170 (sigsuspend_not_cancel): new macro.
12171 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
12172 (do_sigsuspend): Define as inline.
12173 (__sigsuspend): Always use do_sigsuspend.
12174 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
12175 * include/signal.h: Declare __sigsuspend_nocancel.
12176 * sysdeps/posix/pause.c
12177 [! NO_CANCELLATION] (__pause_nocancel): New function.
12179 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
12180 * include/time.h (__nanosleep_nocancel): Likewise.
12182 2006-07-30 Ulrich Drepper <drepper@redhat.com>
12184 * locale/programs/localedef.c (add_to_readlist): Rename local
12185 variables to avoid confusion.
12187 * locale/programs/charmap.c (charmap_read): Emit error message if
12188 charmap couldn't be found or read.
12190 2006-07-28 Ulrich Drepper <drepper@redhat.com>
12192 * sysdeps/unix/sysv/linux/kernel-features.h: Define
12193 __ASSUME_FUTEX_LOCK_PI.
12194 * include/time.h: Declare __nanosleep_nocancel.
12195 * include/unistd.h: Declare __pause_nocancel.
12197 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
12198 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
12199 get the __stack_chk_fail_local definition when it's needed.
12201 2006-07-26 Ulrich Drepper <drepper@redhat.com>
12203 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
12204 * dlfcn/bug-atexit3.c: New file.
12205 * dlfcn/bug-atexit3-lib.cc: New file.
12207 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
12208 used when the namespace is not the base namespace.
12210 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
12212 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
12213 (__new_exitfn): Bump it in every successful call.
12214 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
12215 more exit handlers, call them right away.
12216 * stdlib/exit.h: Declare __new_exitfn_called.
12218 2006-07-25 Ulrich Drepper <drepper@redhat.com>
12220 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
12221 calling registered handler.
12223 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
12224 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12225 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12226 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12227 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12228 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12229 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12230 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12232 2006-07-10 Ulrich Drepper <drepper@redhat.com>
12234 * elf/dl-lookup.c (dl_new_hash): New functions.
12235 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
12236 value here. Compute new-style hash value. Pass new hash value
12237 and reference to variable with the old value to do_lookup_x.
12238 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
12239 old-style hash table.
12240 (_dl_debug_bindings): Pass new hash value and reference to variable
12241 with the old value to do_lookup_x.
12242 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
12243 new-style hash value and change old-style hash value parameter to
12244 be a reference. Reoganize functions to determine whether
12245 new-style hash table is available. Only fall back on old-style
12246 table. If old-style hash value is needed, compute it here.
12247 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
12249 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
12250 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
12251 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
12252 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
12253 * Makeconfig: If linker supports --hash-style option add it to all
12254 linker command lines to build DSOs.
12255 * config.make.in: Define have-hash-style.
12256 * configure.in: Test whether linker supports --hash-style option.
12258 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
12259 * sysdeps/generic/ldsodefs.h: Adjust prototype.
12261 2006-06-27 Ulrich Drepper <drepper@redhat.com>
12263 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
12266 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
12267 RPATH of main map twice.
12269 2006-06-22 Ulrich Drepper <drepper@redhat.com>
12271 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
12272 look further, return original strings.
12273 (_nl_find_msg): Do not return found translation if the conversion
12274 failed. Either signal the string is unusable or that something went
12275 wrong and the original should be used.
12277 2006-06-21 Ulrich Drepper <drepper@redhat.com>
12279 * string/_strerror.c (__strerror_r): Add __builtin_expect.
12281 2006-06-14 Jakub Jelinek <jakub@redhat.com>
12284 * misc/insremque.c (insque): Handle prev == NULL.
12285 * misc/Makefile (tests): Add tst-insremque.
12286 * misc/tst-insremque.c: New test.
12288 2006-06-17 Ulrich Drepper <drepper@redhat.com>
12291 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
12292 conflict with DL_DST_REQUIRED.
12294 2006-06-16 Ulrich Drepper <drepper@redhat.com>
12296 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
12297 match what Solaris does.
12299 2006-06-04 Ulrich Drepper <drepper@redhat.com>
12301 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
12302 local_setegid instead of seteuid and setegid.
12303 * sysdeps/generic/local-setxid.h: New file.
12304 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
12306 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
12308 * string/Makefile (tests): Add bug-envz1.
12309 * string/bug-envz1.c: New file.
12311 2006-06-02 Jakub Jelinek <jakub@redhat.com>
12313 * posix/regex_internal.c (re_string_skip_chars): If no character has
12314 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
12315 to the byte which couldn't be converted.
12316 (re_string_reconstruct): Don't clear valid_raw_len before calling
12317 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
12318 tip_context using re_string_context_at.
12319 * posix/Makefile: Add rules to build and run bug-regex25 test.
12320 * posix/bug-regex25.c: New test.
12322 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
12325 * string/envz.c (envz_strip): Correct erroneously reversed src
12326 and dest parameters to memmove() invocation.
12328 2006-05-30 Jakub Jelinek <jakub@redhat.com>
12330 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
12331 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
12332 to make sure the database has been already invalidated.
12333 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
12334 after the cache has been invalidated. Use pthread_mutex_lock rather
12335 than pthread_mutex_trylock if fd != -1.
12336 * nscd/connections.c (invalidate_cache): Add fd argument, write
12337 response to fd if not calling prune_cache, pass fd to prune_cache.
12338 (handle_request): Adjust invalidate_cache caller.
12339 (nscd_run): Pass -1 as fd to prune_cache.
12341 2006-05-30 Ulrich Drepper <drepper@redhat.com>
12343 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
12346 2006-05-29 Ulrich Drepper <drepper@redhat.com>
12348 * nscd/nscd.h (struct database_dyn): Add prunelock field.
12349 * nscd/cache.c (prune_cache): Take prunelock before starting the
12350 work. Just return in case it is already taken.
12351 * nscd/connections.c (dbs): Initialize .prunelock.
12353 2006-05-25 Ulrich Drepper <drepper@redhat.com>
12355 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
12356 copying. No need to allocate new array for group members. Just
12357 move the pointers and update the size.
12359 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
12360 Avoid memory leak in case realloc fails. Simplification for
12361 better code generation.
12363 Avoid deprecation warning because of libc_hidden_proto for
12364 inet6_option_alloc.
12365 * inet/inet6_option.c (option_alloc): Renamed from
12366 inet6_option_alloc. Made static.
12367 (inet6_option_alloc): Now a simple wrapper around option_alloc.
12368 (inet6_option_append): Call option_alloc.
12369 * include/netinet/in.h: Remove libc_hidden_proto for
12370 inet6_option_alloc.
12372 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
12373 for cleanup when cb!=NULL [Coverity CID 233].
12375 2006-05-24 Ulrich Drepper <drepper@redhat.com>
12378 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
12379 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
12380 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
12381 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
12382 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
12383 and inet6_rth_getaddr.
12384 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
12386 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
12387 Mark inet6_option_* interfaces as deprecated.
12388 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
12389 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
12390 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
12391 inet6_rth_segments, and inet6_rth_getaddr.
12392 * inet/inet6_opt.c: New file.
12393 * inet/inet6_rth.c: New file.
12395 * inet/netinet/icmp6.h: Pretty printing.
12398 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
12400 2006-05-23 Ulrich Drepper <drepper@redhat.com>
12402 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
12403 doing it all here. When server does not know the answer do not
12404 fail immediate, try parent first.
12406 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
12409 2006-05-20 Ulrich Drepper <drepper@redhat.com>
12411 * nis/nis_call.c (__prepare_niscall): New function. Split out
12413 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
12415 (__follow_path): New function. Split out from nis_list.
12416 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
12418 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
12420 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
12422 * nis/Versions: Export __prepare_niscall, __create_ib_request,
12423 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
12424 from libnsl for version GLIBC_PRIVATE.
12425 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
12426 Remove entry parameter from _nss_nisplus_parse_pwent and
12427 _nss_nisplus_parse_grent.
12428 * nis/nss_nisplus/nisplus-parser.c: Likewise.
12429 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
12430 again. Rewrite getpwent handling to not use nis_first_entry and
12431 nis_next_entry. Roll out own niscall handling.
12432 * nis/nss_nisplus/nisplus-grp.c: Likewise.
12434 * sunrpc/xdr_rec.c: Fix typo in comment.
12436 2006-05-19 Ulrich Drepper <drepper@redhat.com>
12438 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
12441 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
12442 to allocate memory for my_pollfd. Better initialization of
12443 cb_is_running. Use TEMP_FAILURE_RETRY.
12445 * malloc/memusage.sh (memusageso): Add quotes.
12446 (memusagestat): Likewise.
12447 * debug/xtrace.sh (pcprofileso): Likewise.
12448 (pcprofiledump): Likewise.
12449 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
12451 * malloc/Makefile ($(objpfx)memusage): Likewise.
12453 * nis/nis_callback.c (__nis_create_callback): Calls to
12454 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
12455 asprintf call fails.
12457 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
12458 no uninitialized memory is passed to sendto.
12460 2006-05-18 Ulrich Drepper <drepper@redhat.com>
12462 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
12463 of snprintf+strdup. Handle OOM.
12464 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
12465 cb->serv together. Remove now obsolete free calls.
12466 (__nis_destroy_callback): Remove now obsolete free call.
12468 2006-05-18 David Woodhouse <dwmw2@redhat.com>
12470 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
12471 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
12472 and ULA respectively). Set precedence for IPv4 address to 10 as
12473 defined in RFC3484 for preferring IPv6.
12474 * posix/gai.conf: Update to match the new default tables.
12476 2006-05-18 Jakub Jelinek <jakub@redhat.com>
12478 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
12479 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
12480 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
12481 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
12483 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
12485 (init_nss_interface): Remove initialization of these variables.
12487 2006-05-18 Ulrich Drepper <drepper@redhat.com>
12489 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
12490 nis_free_directory forward to avoid duplication.
12492 2006-05-17 Ulrich Drepper <drepper@redhat.com>
12494 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
12495 rec_dirsearch returning NULL.
12496 (first_shoot): Handle __nis_finddirectory returning NULL.
12497 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
12499 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
12500 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
12502 2006-05-17 Jakub Jelinek <jakub@redhat.com>
12504 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
12507 2006-05-15 Ulrich Drepper <drepper@redhat.com>
12509 * include/rpc/pmap_prot.h: Mark all functions as hidden.
12511 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
12512 * nscd/nscd_getgr_r.c: Likewise.
12514 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
12516 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
12517 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
12519 * stdlib/longlong.h (__clz_tab): Mark as hidden.
12521 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
12523 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
12525 * include/rpc/auth.h: Mark xdr_des_block_internal and
12526 xdr_opaque_auth_internal as hidden.
12528 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
12531 * include/rpc/xdr.h: Mark all _internal functions as hidden.
12533 * misc/getusershell.c (okshells): Don't use static initializers,
12536 * stdlib/fmtmsg.c (keywords): Change type of len element to
12537 uint32_t to not waste space on 64bit machines.
12539 * locale/setlocale.c: Change _nl_category_names into a string.
12540 Add new _nl_category_name_idxs. Change all users.
12541 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
12542 Declare _nl_category_name_idxs.
12543 * locale/findlocale.c: Adjust for _nl_category_names change.
12544 * locale/loadlocale.c: Likewise.
12545 * locale/newlocale.c: Likewise.
12546 * intl/dcigettext.c: Likewise.
12548 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
12549 (add_alias2): ...here. New function.
12550 (__gconv_read_conf): Simplify builtin alias handling.
12551 (builtin_aliases): Convert to string to avoid relocations.
12552 * iconv/gconv_builtin.h: Add comment about correct formatting.
12554 2006-05-15 Jakub Jelinek <jakub@redhat.com>
12556 * resolv/res_debug.c (loc_ntoa): Make error const.
12558 2006-05-14 Andreas Schwab <schwab@suse.de>
12560 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
12562 2006-05-12 Jakub Jelinek <jakub@redhat.com>
12564 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
12565 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
12566 sizeof (cpu_set_t).
12568 2006-05-11 Ulrich Drepper <drepper@redhat.com>
12570 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
12572 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
12574 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
12575 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
12577 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
12578 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
12580 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
12581 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
12584 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
12585 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12588 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
12589 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
12591 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
12592 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
12594 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
12595 * include/rpcsvc/nis_callback.h: New file.
12597 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
12598 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
12600 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12601 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12603 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
12604 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
12606 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12607 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12609 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
12610 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12613 * nis/nis_xdr.h: Mark all functions as hidden. Remove
12614 __BEGIN_DECLS and __END_DECLS, the header is not installed.
12616 * nis/nis_error.c: Remove table of strings. Use position
12617 independent mechanism.
12618 * nis/nis_error.h: New file.
12620 2006-05-11 Jakub Jelinek <jakub@redhat.com>
12622 * locale/programs/ld-time.c (time_finish): If wide era name or
12623 format aren't provided, set both wname and wformat to L"".
12625 2006-05-10 Ulrich Drepper <drepper@redhat.com>
12627 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
12628 results if the call was succesful.
12630 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
12632 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
12635 2006-05-10 Jakub Jelinek <jakub@redhat.com>
12637 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
12639 2006-05-10 Ulrich Drepper <drepper@redhat.com>
12641 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
12642 caller makes sure this is not the case.
12643 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
12645 2006-05-09 Ulrich Drepper <drepper@redhat.com>
12647 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
12650 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
12651 [Coverity CID 229, 230]
12653 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
12655 (hol_help): Likewise. [Coverity CID 226, 227]
12657 * string/argz-replace.c (__argz_replace): Unconditionally call
12658 free on SRC. [Coverity CID 225]
12660 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
12661 the return value of __nis_default_owner and __nis_default_group,
12662 it has been especially allocated. [Coverity CID 224]
12664 * nis/nis_defaults.c (searchXYX): New functions. Used by both
12665 searchgroup and searchowner. Significantly simplified.
12666 (__nis_default_owner): Remove duplication. Do not locally copy the
12667 string before duplicating it.
12668 (__nis_default_group): Likewise.
12670 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
12671 we must clear the variable before calling __nisfind_server.
12673 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
12674 nis_getnames. [Coverity CID 223]
12676 * locale/programs/locfile.c (locfile_read): Use alloca instead of
12677 xmalloc to allocate local repertoire name. [Coverity CID 222]
12679 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
12680 allocate memory for the input to add_bytes. [Coverity CID 221]
12682 * posix/wordexp.c (w_addword): Free word if realloc fails and it
12683 was allocated here. [Coverity CID 219, 220]
12685 * posix/getconf.c (print_all): Free confstr data after printing.
12688 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
12689 list allocation fails. [Coverity CID 215]
12691 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
12694 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
12695 string is NULL. [Coverity CID 212]
12696 * argp/Makefile: Add rules to build and run bug-argp1.
12697 * argp/bug-argp1.c: New file.
12699 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
12701 * stdlib/canonicalize.c (__realpath): Likewise.
12703 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
12704 pointer. [Coverity CID 206]
12706 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
12707 in statically linked code.
12708 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
12709 statically built code, be prepared to have no link map.
12712 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
12713 dgettext calls. [Coverity CID 204]
12715 * argp/argp-help.c (struct uparams): Remove valid member. Change
12717 (uparam_names): Reduce size. Avoid relative relocations.
12718 Moved to read-only segment.
12719 (fill_in_uparams): Update for new layout.
12721 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
12722 assumed to always be != NULL. [Coverity CID 202]
12724 * argp/argp-help.c (hol_entry_help): Remove some dead code
12725 [Coverity CID 200].
12727 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
12728 away a few more unconditional yperr2nss calls.
12729 (_nss_nis_getservbyname_r): Likewise.
12731 2006-05-06 Ulrich Drepper <drepper@redhat.com>
12733 * sysdeps/generic/ldsodefs.h: Remove support for non-core
12736 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
12737 that unused memory passed to sendto is nevertheless initialized.
12740 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
12741 possibly unaligned memory accesses.
12743 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
12744 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
12745 and __putlong respectively. Correct buffer overflow check for
12748 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
12750 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
12751 (send_dg): Rewrite error handling to be more compact and avoid
12752 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
12754 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
12756 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
12757 instead of ns_get16.
12758 (res_queriesmatch): Likewise. Minor optimization.
12761 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
12762 __libc_res_nsend might reallocate the buffer for the answer. In
12763 this case we have to reload the HP pointer.
12765 2006-05-05 Ulrich Drepper <drepper@redhat.com>
12767 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
12768 some branch prediction hints.
12770 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
12771 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12772 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12773 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12774 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12775 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12776 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12777 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12779 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
12781 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
12782 by a GOT relocation to make Scrt1.o position independent.
12783 * sysdeps/s390/s390-64/elf/start.S: Likewise.
12785 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
12786 six system call parameters.
12787 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
12789 2006-05-05 Ulrich Drepper <drepper@redhat.com>
12791 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
12794 * sunrpc/svc_udp.c (BZERO): Remove definition.
12796 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
12798 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
12799 (des_SPtrans): Use uint32_t type.
12800 (des_skb): Likewise.
12802 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
12804 2006-05-05 Jakub Jelinek <jakub@redhat.com>
12807 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
12810 2006-05-05 Ulrich Drepper <drepper@redhat.com>
12812 * locale/programs/ld-address.c (address_finish): Fix one more
12813 place where the iso639 array might be accessed beyond the limits.
12815 2006-05-04 Ulrich Drepper <drepper@redhat.com>
12817 * nis/nis_table.c (nis_list): Avoid clearing res twice before
12818 filling it for the first time.
12820 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
12821 Adjust all callers.
12822 Free res object content before returning.
12824 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
12826 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
12829 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
12830 cleanup for initial thread, just the free call on TVP.
12832 * nscd/gai.c (__getline): Define.
12835 See ChangeLog.16 for earlier changes.